Categories
Hints

How to correctly manage UTF-8 with Perl

Perl has a native support for different character encodings, like the well known UTF-8, but its default behavior is to use Latin-1. This brings easily to a lot of problems if you don’t tune certain settings.

Categories
Hints

Remove “compatibility view” button in Internet Explorer

Old Internet Explorer version are often a big problem for web developers. Fortunately everyday the people using IE 7, IE6 or even IE5.5 became lesser and lesser. So usually we don’t have to spend to much time to fix everything in our CSS to make every page look perfect in all this old browsers because […]

Categories
Hints

Remove frameBorder on Internet Explorer in quirks mode

I know that the most of the internet pages run in standard mode, but sometimes it happens to work for some generic plugin and so you have to check your code in such a situation and especially with Internet Explorer 6, 7 and 8 there are a lot of bad surprises 🙁 A page runs […]

Categories
Hints

“My unqualified host name (localhost) unknown; sleeping for retry” with sendmail

Sendmail is a easy to use mail delivery service. I use it on my linux box for developing purposes for deliver test mails to an example.com domain to my local mail box. Very easy and effective. Same time ago sendmail began to hang on startup apparently without any reason. I’m start it on demand through […]

Categories
Hints

Port rewriting with iptables

Sometime it is useful to rewrite incoming connection to a different port. It’s very easy with iptables: iptables -t nat -A PREROUTING -i eth0 -p tcp –dport 443 -j REDIRECT –to-ports 9090 Obviously you have to change source port (443 in my example) and the destination post (9090 in the example) and maybe the interface. […]

Categories
Fixes Hints

Using command line subversion with svn+ssh and identity file

Apache Subversion (SVN) is a good and commonly used versioning tool. Even if there are a lot of graphical interfaces for it you sometimes have the need to use it on command line (using the svn client) or it can be your choice. Anyway using Subversion this way isn’t very difficult, just a little bit […]