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 unchecking 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. In fact, I’m pretty sure that the Flash Player is one of the best way to crash your Ubuntu box. In fact on my Dell Vostro 3555 it randomly restarts the X Window Server… sigh.

Nevertheless, the world has been saved one more time.

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:

cat /etc/*release

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).

For other good pieces of advice, take a look at the KDEnlive site: http://www.kdenlive.org/.

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:
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.

I’ve recently bumped into a problem with using a SSL Network Extender when trying to establish a VPN connection through the web browser.

The SNX was throwing a ‘failed to initialize’ error without any details despite the right credentials.
To identify the error, I needed to execute the snx from the command line (snx) which points that the SNX is missing a libstdc++.so.5. I had a libstdc++.so.6 installed at that point.

In the Ubuntu repositories, there wasn’t anything earlier than libstdc++6, so the only solution I found, was to download version 5 from this site (version for 32 bits).

After installing this package, the snx (both – from the command line and from the web browser) worked just fine.

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 (in Windows it might be something like C:\Program Files\Mozilla Firefox\components\nsLoginManager.js)

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.

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.

Just add

install tun /bin/true

to one of conf files in /etc/modprobe.d, or use the commands below:

echo -e "install tun /bin/true\n" > built-in.conf
sudo cp built-in.conf /etc/modprobe.d/

Thanks to Constantine Peresypkin and psorcerer for providing a solution.

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