Posts

Showing posts from April, 2010

Best way to get IE on ubuntu

I was doing web development(???) and I needed to check page on IE. so this is what I found out. sudo apt-get install wine sudo apt-get install cabextract wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-2.99.0.1.tar.gz tar xzvf ies4linux-2.99.0.1.tar.gz ./ies4linux-2.99.0.1/ies4linux ln /root/bin/ie6 /usr/bin/ie6 ie6 And nice IE for testing...

popup=popup, not popup=newtab

For some reason or other, Firefox does not have the option under the Tabs option items to “force links that open in new windows to open in:”. I have Firefox 2.0.0.7 now, and I don’t have that under Tabs options. But, if you open about:config in your address bar, you can change the setting manually. Change: browser.link.open_newwindow Mine was set to 3, which told the popups to always open in a new tab. I like that, mostly. But some web sites, TinyMCE editor in this case, like to open a popup and return you back the the original page. I keep losing that original popup. So I wanted to turn off my popup forced to new tab option. To make this behave normally, I set it to 2. All worked just peachy!

Disabling touchpad while typing

cat >> /etc/hal/fdi/policy/shmconfig.fdi <?xml version="1.0" encoding="UTF-8"?> <deviceinfo version="0.2"> <device> <match key="input.x11_driver" string="synaptics"> <merge key="input.x11_options.SHMConfig" type="string">True</merge> </match> </device> </deviceinfo> END In start-up programs, add command syndaemon -i 1 -d and reboot!!!

Listing files by decreasing directory size / space left

Nautilus doesn't give you total size of folder. It just gives the number files in the folder. If you want to see how is your disk being used, you can use du -s * | sort -k 1 -rn If you want to see hidden files, du -s .* | sort -k 1 -rn Unfortunately, I couldn't combine both of them and also couldn't use -h option of du If you want to see size of different partition, you can also use df -h

Removing ^M from end of the line in VI

To remove the ^M characters at the end of all lines in vi, use: :%s/^V^M//g The ^v is a CONTROL-V character and ^m is a CONTROL-M. When you type this, it will look like this: :%s/^M//g In UNIX, you can escape a control character by preceding it with a CONTROL-V. The :%s is a basic search and replace command in vi. It tells vi to replace the regular expression between the first and second slashes (^M) with the text between the second and third slashes (nothing in this case). The g at the end directs vi to search and replace globally (all occurrences).

Invisible plugin in pidgin

Want to become invisible in pidgin?? wget http://fahhem.com/pidgin/gtalkinvisible.tar.gz tar -vxf gtalkinvisible.tar.gz mv gtalkinvisible/gtalkinvisible.so ~/.purple/plugins/ rm -rf gtalkinvisible*