Odd Colors in Ubuntu's Flash Player

After one of the Ubuntu 11.10 updates I was affected by some really weird colors in the embedded flash player. Basically, every movie looked similar to the one below (notice the dominance of the bluish color): The solution is to disable hardware acceleration in Flash Player settings (RMB -> Settings) just as shown here: After un-checking this option and refreshing the page all videos were back to normal: I’m not sure if I even want to know why one update could mess up so bad with the Flash Player....

April 28, 2012 · 1 min

How to find out what GNU/Linux distribution you're using

Recently I needed to find out what GNU/Linux a terminal-only server is using. The most obvious thing I could think of was to use: uname -a Unfortunately, it will return the kernel information only – no details about the distribution though. The distribution info is located in a different file which is dependent on… the distribution itself. Check out the list of those filenames here. As a majority of those files ends with “release” part, in most cases it should be enough to execute the following command:...

August 19, 2011 · 1 min

Kdenlive -- cannot render in Xvid, H.264, MPEG-4, etc.

It’s at least the third time I try to find a solution for the unavailable codecs proclem during rendering video project in Kdenlive. This time, I’ll write it down and link to this great site to make sure I’ll be able to easily find it next time ;-) The process is quite simple (I’m using Ubuntu 10.10 x86) – just install all the codecs in their full versions: sudo apt-get install libavcodec-unstripped-52 libavdevice-unstripped-52 libavformat-unstripped-52 libpostproc-unstripped-51 libswscale-unstripped-0 and execute the KDEnlive wizard (Settings menu)....

April 1, 2011 · 1 min

Axis and Java2WSDL

In the Axis2 (which you can download from this site) bin subdirectory, there is a java2wsdl.sh file which can be used to generate a WSDL file from plain Java classes. Below is a very rough example how to use it: /home/palli/axis2-1.5.4/bin/java2wsdl.sh -o /home/palli/ -of Test.wsdl -sn WSAdditionalOperations -cp . -cn com.nullhaus.ediploma.server.WSAdditionalOperations Used arguments: Parameter Description o output directory where the generated WSDL will be saved of output filename of the WSDL cp java classpath sn name of the service cn fully qualified name of the class you want to be used to generate the WSDL file

January 8, 2011 · 1 min

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

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