Skip to main content


Showing posts from July, 2010

Ubuntu in Compaq nc6220

Ubuntu in Compaq nc6220 (Lucid)

Everything works out of the box except the sleep and wake.

1. After closing the lid and re-opening it, the screen might flicker badly. To resolve that put the laptop to sleep and wake it again (use the fn key). The flicker should be gone.

2. After waking up from sleep/ screen lock, the wireless would be disconnected. Just re-connect it from the network manager applet located in the main panel.

3. Sometimes, the password login stos working. This is because some hidden characters are being spontaneously generated. This is realted to the screen flicker issue. So do the sleep + wake up drill.

4. Over-heating issue - There are 4 thermal zones. See the applet in the panel to see how hot they are getting. If it crosses 50C it is time to slow down. Stop all intensive jobs and put the laptop upside down because its lower part gets too hot and its ventilation is poor. Only by inverting it will get some cool air.

5. Always make sure that the fan on the left side …

Make firefox faster

1.Type “about:config” into the address bar and hit return. Scroll down and look for the following entries:

network.http.pipelining network.http.proxy.pipelining network.http.pipelining.maxrequests

Normally the browser will make one request to a web page at a time. When you enable pipelining it will make several at once, which really speeds up page loading.

2. Alter the entries as follows:

Set “network.http.pipelining” to “true”

Set “network.http.proxy.pipelining” to “true”

Set “network.http.pipelining.maxrequests” to some number like 30. This means it will make 30 requests at once.

3. Lastly right-click anywhere and select New-> Integer. Name it “nglayout.initialpaint.delay” and set its value to “0″. This value is the amount of time the browser waits before it acts on information it receives.

If you’re using a broadband connection you’ll load pages MUCH faster now!

3. Faster loading

If you haven't moved your mouse or touched the keyboard for 0.75 seconds (the content switch thr…


source :

Compiz-Check is a script to test if Compiz is able to run on your system/setup and if not, it will tell you the reason why.

Additionally you can use the output of the script to look for support in the official Compiz Fusion forums or the mailing list / forum of your distribution, which will make it much easier to locate your problem.

The script is suitable for GNOME, KDE and Xfce users and is not limited to a specific Linux distribution – in fact, the script lists those infos for you.

The test consists mainly of three parts:

   1. List relevant system information
   2. Run several Compiz related checks
   3. Check for problematic hardware and problems with the setup in use.

Download & Usage
Do not just copy & paste the following to your blog/forum – find out why

The script is available here.
You can use this command to download it to your home directory:

wget -O compiz-check


Commands to create CSV file of contacts

Terminal commands to create CSV file of contacts out of list of names and phone numbers from website.

The idea is to copy paste the file list from the website onto a openoffice spreadsheet document. now save it as a CSV file.

Now, use the following commands in terminal (to remove the unnecessary whitespaces.).

cat a2.csv | sed 's/ //g' | sed 's/\" /\"/g'  | sed 's/ \"/\"/g' > contacts.csv

Some simple scripts about how life is

$ cat

while (! dead || ! beggar)
wife.speak > /dev/null
chmod 707 me.c
rm -rf wife/
echo -e "relief"
mkdir newgirlfriend
wait 946707779000
./marriage newgirlfriend

read this as
1. Start loop.
2. anything wife says goes to junk.
3. The groups are (yourself, your woman, other women). chmod 707 => Make yourself available to yourself and other women but not to your wife.
4. Finally get rid of her.
5. Sigh of relief.
6. Make new girlfriend.
7. Wait three years (in seconds).
8. Execute marriage with newgirlfriend. marriage is a separate script with different commands.
9. Repeat process till not dead or not a beggar.

$ cat

 if [[ "$gender" == "male" ]]
echo "Todo : Buy a ring, be on time and remember to say the right name."
echo "Todo : .... Stack overflow ...."


I got the idea of writing these scripts while reading the boring Tips & Trick…

Longest words

It is a transliteration of the Ancient Greek word


in the Greek alphabet (1169–74). Liddell & Scott translate this as "name of a dish compounded of all kinds of dainties, fish, flesh, fowl, and sauces."
The original Greek spelling had 171 characters (something which is not obvious in the Roman transcription, depending on the variant) and for centuries it was the longest word known and it is considered the longest word ever to appear in literature.

Another word is Pneumonoultramicroscopicsilicovolcanoconiosis

I experienced Pneumonoultramicroscopicsilicovolcanoconiosis …

Draws chessboard on a maximised linux terminal using a bash script

Open a new terminal.

Save the following as a file "chessboard" -

vim chessboard 

and paste -

for (( i = 1; i <= 49 ; i++ )) ### Outer for loop ###
  for (( j = 1 ; j <= 49; j++ )) ### Inner for loop ###
       tot=`expr $i + $j`
       tmp=`expr $tot % 2`
       if [ $tmp -eq 0 ]; then
           echo -e -n "\033[49m  "
           echo -e -n "\033[40m  "
echo -e -n "\033[49m" #### set back background colour to black
echo "" #### print the new line ###
echo -e -n "\033[49m \n" #### set back background colour to white

Make it executable -
chmod 755 chessboard

Run the script -

The terminal must be maximised.

Stare at the pattern for some time. Does it move ?

latex error .sty not found in Cadabra

"latex error your-new-file.sty not found"
while building your .tex files, and you are sure you've just put them in some sort of directory like:

After that run the command
$ texhash
and then, latex should be ready to find your style files

Foe example, xcadabra showed the error breqn.sty not found. I downloaded it from
and copied it to /usr/share/texmf/tex/latex/cadabra
Still it was not working. Then I used texhash and it worked.

Sometimes then it might miss some other .sty file and even after adding that file manually from CTAN it keeps on adding up. More and more sty files are not found.

A fix would be to delete the directory /usr/share/texmf/tex/latex/cadabra

then reinstall cadabra

sudo apt-get install --reinstall cadabra

It should work now.

If that does not work and there is error that flexisym.sty not found andeven after adding that s…

Customising Nautilus in Lucid Lynx

The new Nautilus is very annoying . The first thing i missed was the ability to type the path directly into the browser rather than keep clicking till I reach there. The location bar which was it is called, is just not available in default Nautilus installation (maybe just in my installation). It can be brought back temporarily with Ctrl+L, but its temporary. I want a permanent fix.

So, I had to manually modify the configurations options for Nautilus through gconf-editor. And I liked it. It gives explicit control over Nautilus. Everything can be changed. I had it look like Dolphin at some point of time. It shows how flexible Nautilus can be. The default installation is for the novices, to mimic the Windows explorer. I do not care about that.

So, lets see what changes we can do to Nautilus to make it outright funky.

I wrote these following options to a text file and saved it as Made it excutable (chmod 755) and ran it. It sets the values for Nautilus in gconf-edi…