How to turn off the autocomplete=off feature in Firefox

Sometimes you just really want to use the autocomplete feature and omit the HTML form autocomplete=off. To do so, you need to modify following file (the firefox version might, and probably will be, different than the one posted below): /usr/lib/firefox-3.6.10/components/nsLoginManager.js (Ubuntu) C:\Program Files\Mozilla Firefox\components\nsLoginManager.js (Windows) Change this: _isAutocompleteDisabled : function (element) { if (element.getAttribute("autocomplete").toLowerCase() == "off") return true; return false; } to this: _isAutocompleteDisabled : function (element) { return false; } or just add comments to the conditional section of the method, to assure it will always return false....

September 25, 2010 · 1 min

SNX in Ubuntu 10.04

It seems that in Ubuntu 10.04 the tun module (which is used to create fake network interface) is compiled into the kernel instead of being a module as in Ubuntu 9.10. It results in error while running the snx command: FATAL: Module tun not found. This problem can be solved either by recompiling the kernel and setting the tun as a module (not to be compiled into the kernel itself) or by adding appropriate command to modprobe....

July 3, 2010 · 1 min

LaTeX acronyms

Below is a BASH command which will find all undefined acronyms used in a LaTeX text. The result can be pasted into the appendix which lists the used acronyms. cat temp.txt |grep -oe "([A-Z]*\!)"|tr -d '\!()'|sort|uniq|xargs -i echo '\acro{'{}'}{'{}'}' Exemplary result: \acro{TRM}{TRM} \acro{VM}{VM} \acro{WML}{WML} \acro{XP}{XP}

June 4, 2010 · 1 min

Eclipse with Axis2 facets error (no Axis2 runtime)

If you wonder why Eclipse is still throwing following exception during WSDL generation: Exception occurred while reading or writing file {0}The Axis2 facets cannot be installed since the Axis2 runtime location has not been set. Go to the Web Services preference page and set the Axis2 runtime location under Axis2 Preferences. despite that you already configured the Axis2 location in Eclipse, you could try to create clean Web Project (a dummy one, just for the “cleaning the pipe” effect ;-)....

December 19, 2009 · 1 min

Good old looking fonts in Ubuntu 9.04

Executing this code will allow you to get back to firefox 3.x fonts rendering in firefox 3.5. It also makes Kadu fonts look much smoother. $ cd /etc/fonts/ $ sudo mv conf.d/10-hinting-slight.conf . $ sudo ln -s conf.avail/10-hinting-slight.conf conf.d/ $ sudo mv conf.d/10-hinting.conf . $ sudo ln -s conf.avail/10-hinting.conf conf.d/ $ sudo dpkg-reconfigure fontconfig

August 12, 2009 · 1 min

Hibernate3 and Maven2

Tonight I’ve fought with making Maven and Hibernate to cooperate… After 1,5h struggle, I’ve decided to write down what I’ve “discovered”. When adding dependencies to your persist module you should avoid adding the hibernate package dependency itself as there should be only hibernate-annotations one. When adding log4j dependency remember that version 1.2.15 is messed up and forces you to download jars from SUN webpages if you want to get rid of those nasty dependency errors that maven throw in your face… Instead of 1....

May 30, 2009 · 1 min

Quick way to create iptables rules

I like to keep my system clean and secured. Unfortunately, the GUI interface for iptables isn’t really matching my expectations. So I would like to create simple bash script which will execute iptables rules with every system boot-up. By default it blocks all incoming AND outgoing traffic also, so be careful :-) If you want to open another port – you just need to add it to the INPUT_OUTPUT list. Take a look at the source of the script:...

March 20, 2009 · 2 min

AjaXplorer -- Web based file explorer

Webapp for file management

March 14, 2009 · 1 min

Flowplayer -- Web video player

If you are looking for a script which will allow you to publish videos on your website – the Flowplayer would be a very good choice. It’s usage is as simple as it can be – you just pass the link to the file you want to be played and that’s it! The link you’ll provide the script with, need to be an *.flv file which you can obtain using ffmpeg or mencoder....

March 14, 2009 · 1 min