Entries Tagged 'Tips and Tricks' ↓

Turbogears Catwalk UserStyle

For people who have been using Turbogears, Catwalk is an excellent tool to manage the database models and for populating the data into the database. But the footer which displays “Turbogears under the hood” is irritating as I couldn’t select items in which lie directly below the div. So I thought of writing down a quick userstyle where the display property of that div is set to none.

Find the Turbogears Catwalk - Remove footer userscript here. You may need to install the Stylish firefox extension for it to work.

Popularity: 63%

Ubuntu Eyecandy Repository

If you want to use the latest snapshot of Beryl, Compiz, OpenCompositing Compiz Tools and Plugins, Emerald, kiba-dock on your Ubuntu Feisty, then you should add TreviƱo’s repositories. Once you add these repositories, you can install them by using apt-get.

Edit your /etc/apt/sources.list file and add the following to it.

deb http://download.tuxfamily.org/3v1deb feisty eyecandy

deb-src http://download.tuxfamily.org/3v1deb feisty eyecandy

After you do that, update your packages and then install your required package.

Popularity: 71%

Record Screencasts with recordmyDesktop

recordMyDesktop logoRecording screencasts in Linux was a difficult problem faced by many users. recordmyDesktop is a command line tool to record screencasts and it has a GTK and a qt based frontend to make it easy for newbies. RecordMyDesktop can be tweaked to your hearts content by changing the sound and video quality, frames captured per second, mouse cursor style, compression, and whether to record the current window or the entire desktop.

Ubuntu users can install recordMyDesktop and gtk-recordMyDesktop with:

sudo apt-get install recordmydesktop gtk-recordmydesktop

Other distro users too can use their package management tool to install it.

Popularity: 53%

Top 10 commands used

Just found through this post by Technofreak, where a simple(ok, that is not simple), onliner on your terminal will show you the top 10 commands used recently.
$ history | awk '{print $2}' | awk 'BEGIN {FS="|"}{print $1}' | sort | uniq -c | sort -n | tail | sort -nr

This on my system shows up
82 cd
63 ls
51 sudo
51 screen
18 ps
17 irssi
15 python
14 svn
12 irb
11 uptime

Popularity: 49%

Javascript trick to edit the page displayed

Goto any website and paste

javascript:document.body.contentEditable='true'; document.designMode='on'; void 0

in the address bar.

Now you can edit anything in that page. Really cool trick.

Popularity: 63%

Embed Youtube in Wordpress

When I tried to post the previous post I tried hard at embedding the Youtube code into this. The Visual MCE editor didn’t accept the code and I couldn’t embed the video. So, I changed my settings to use the old plain editor instead of the WYSIWYG editor. It is there is the Users > Your Profile. Under the Personal Options, uncheck the “Use the visual rich editor when writing” option and Update your profile. Now you can easily embed the videos.

Popularity: 18%

Mount NTFS filesystem read/write on Ubuntu

ubuntu logoHere is the simple method to enable read write access for your NTFS file system on your Ubuntu Box. This method uses ntfs-3g which is still in beta. You should not use it on production machines.

First enable Universe repository

Then in your terminal type

sudo apt-get install ntfs-3g

You can view the partition table by using this command

sudo fdisk -l

Then in your /media folder create new mount folders. This is where your filesystem will be mounted. Then make a backup of the /etc/fstab file and edit the file

sudo mkdir /media/windows
sudo cp /etc/fstab /etc/fstab.bak
gksudo gedit /etc/fstab

Append this line to the fstab file, by substituting the respective drive name. This should be done for every drive in your system.

/dev/hda1    /media/windows    ntfs-3g    defaults,locale=en_US.utf8    0    0

Save the file and reboot the system. You can however mount them without reboot by issuing this command.

sudo umount -a && sudo mount -a

This would unmount all your file systems and again mount them.

Popularity: 30%

Wordpress 404 error when publishing or saving

Wordpress logoWordpress has this particular problem when publishing or saving a blog post where it shows a 404 page instead of the required effect. This is irritating when you have typed a long post and just after you have published it shows the 404 error, and all your data is lost. I have faced this same problem for many times.
After a bit of Googling, I found out that the problem is with mod_security being set on server.
To fix this, add the following two lines in our .htaccess file.
SecFilterEngine Off
SecFilterScanPOST Off

This should fix the problem. Let me try publishing this post.

Popularity: 23%

200 linux commands

Here is a huge list of about 200 linux commands for newbies. But i wonder whether newbies would really use the CLI. This list is for those who want to get into linux seriously.

Popularity: 18%

Todo.txt - simple todo app

You might have used a variety of online services to maintain your todo list. But there are variuos reasons to use a text todo file which is stored on your own PC. You just have to use a single todo.txt file which contains your list of items. Todo.txt shows you how to maintain your todo list.
The file contains one item per line. The items can be categorised under variuos projects using the tag p:project. For eg. if I want to categorise a particular item under college, then I tag it as p:college. There are also contexts which show when/where the particular item has to be done. Eg. if I have to make a phone call, then I would tag it as @phone.
An example todo.txt file may be

write blog entry about todo.txt p:fslog
clean up room
call broadband provider for connection @phone

The site also has shell files which can be used to maintain the todo.txt files. You can download them and use it to maintain your own todo list. One advantage of using the text files are that you could just grep the file to find what tasks are pending.

Popularity: 20%