Skip to main content

Posts

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

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

Compiz-Check

source : http://forlong.blogage.de/entries/pages/Compiz-Check 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 http://blogage.de/files/9124/download

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

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 ### do   for (( j = 1 ; j <= 49; j++ )) ### Inner for loop ###   do        tot=`expr $i + $j`        tmp=`expr $tot % 2`        if [ $tmp -eq 0 ]; then            echo -e -n "\033[49m  "        else            echo -e -n "\033[40m  "        fi  done echo -e -n "\033[49m" #### set back background colour to black echo "" #### print the new line ### done echo -e -n "\033[49m \n" #### set back background colour to white Make it executable - chmod 755 chessboard Run the script - ./chessboard 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: /usr/share/texmf/tex/latex/your-new-directory 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 http://www.ctan.org/tex-archive/help/Catalogue/entries/breqn.html?ref=darwinports.com 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 andev

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 nautilus.sh. Made it excutable (chmod 755) and ran it. It sets the values for Nautilus in g