Archive for the ‘Ubuntu’ Category

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: o – [...]

Read the rest of this entry »

Problem with execution of SNX on GNU/Linux (libstdc++)

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 [...]

Read the rest of this entry »

System-wide SOCKS Proxy

Sometimes, there is a need to use SOCKS Proxy for connection even if an application itself isn’t providing such feature. If you’re working on Windows you can use FreeCap which allows you to put your applications into FreeCap “sandbox”. Everytime you run app from this “sandbox” it is sent through the SOCKS proxy you set [...]

Read the rest of this entry »

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

Read the rest of this entry »

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 [...]

Read the rest of this entry »

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} Be the first to like. Like Unlike

Read the rest of this entry »

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 Be the first to like. Like Unlike

Read the rest of this entry »

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 [...]

Read the rest of this entry »