Underscores in domain names

09/23/06 20:57:21 * admin

Without big thinking I set up a test domain for a php based cms containing an underscore (_) (www_example.your.domain). The web interface to the domain server accepted the domain name without a problem. Subsequently I tested the cms with Firefox, everything worked fine. Then I wanted to try everything with Internet Explorer (6.0, XP, SP2) and the merchandising system surprisingly did not work. Searching for the error it turned out that logins also did not work. So the session management was quickly blamed. Trying to narrow the error down even a simple

session_start();
print_r($_SESSION);
$_SESSION['x'] = 1;
did not work as expected. Then I vaguely remembered that IE did not like underscores in cookie names. So I tried www-example.your.domain and bingo.

Checking RFC1738 section 3.1 only a-z, 0-9 and - are allowed. So it's indeed a broken domain name. Strange that the dns system did pass it through though.

Read More

Samsung X20 notebook, Dell 2405FPW monitor and Debian

08/08/06 19:18:17 * admin
I own a Samsung X20 notebook with integrated i915 video adapter and a Dell 2405FPW monitor with 1920x1200 native resolution. Up until now it only worked with Windows (igck) at it's native resolution. Out of the box X.org from Debian etch (7.0.22) did not work and insisted to put the monitor at 1600x1200 or even lower resolutions, even after patching the modetable with the 915resolution hack. After googling and finding no really helpful info I finally asked Alan Hourihane, one of the authors of the intel video driver of X, for help. By using the current Intel video driver from X.org's git, branch modesetting, it now works. Yay to modular X that I did not have to compile the whole server. Step by step how to...
Read More

Bluetooth Linux Link Collection

06/29/06 00:05:02 * admin
I'm trying to get the rfcomm thing going with my new Nokia E60, so that I can go online over it from my laptop via UMTS. With my Nokia 6230 it worked right out of the box. So I did some research but haven't found a solution yet. This story is just an anchor for some memorable links.
Read More

ShowIP: Firefox extension to show and query the current IP Address in the statusbar

03/29/06 21:11:25 * admin
ShowIP is a Mozilla Firefox extension which shows the IP Address of the current page in the browser's status bar and allows queries to different databases about it when you right click on it. The IP is colored red for an IPv4 address and green for an IPv6 address (hence the name). Since v0.7.8 these colors can be changed in the preferences menu. With a left click one can get information about the hostname of the current page. These queries are fully customizable in the settings dialog. You can also run custom local programs. The extension can be downloaded here: ShowIP 0.8.03
Read More

postgresql: Grant all rights on a database to a user

06/09/05 20:27:31 * admin
Ever tried the $SUBJECT task with postgresql? It's a bit difficult.
You need something along the lines of this...
Read More

Cross compilers (Debian)

05/21/05 15:05:25 * admin
Thanks to the help of Herbert Poetzl, I've now complete buildable cross compiler toolchains (binutils and gcc) for these targets: alpha arm cris frv h8300 hppa hppa64 i386 ia64 m32r m68k mips mipsel mips64 ppc ppc64 s390 s390x sh shbe sh64 sh64be sparc sparc64 v850 x86_64 and these tool versions: binutils-2.15.94.0.2.2 binutils-2.16.90.0.3 (*) gcc-3.3.6 gcc-3.4.4-20050512 gcc-4.0.0 These are ...
Read More

whois interface

02/06/05 15:20:48 * admin
'.htmlspecialchars($c).''; } $mode = (isset($_GET['mode']))?$_GET['mode']:"whois"; $ip = (isset($_GET['ip']))?$_GET['ip']:""; $disc= '
This is an interface to the Linux/Debian/Woody whois(1) program.
For questions, etc. please mail jdittmer@ppp0.net
Please DO NOT ABUSE this interface, especially don\'t do mass lookups. The IPs are logged by the web server.
The answer on this page will be delayed for 1-10 seconds to prevent this.
Read More

Linux kernel compile tests

01/30/05 18:36:29 * admin
Since a while I'm doing cross compile tests for all supported linux archs. Check out the results here: http://l4x.org/k/.
So far it seems that about half of the in-tree archs are at least sometimes successfully build.
Read More

Useful mldonkey scripts

06/08/04 18:38:00 * admin
To manage my mldonkey client under Linux I've written two scripts:
The first one ('donkeyrotate.sh') changes mldonkey port numbers and adjusts the iptables rules accordingly. Afterwards mldonkey is restarted.
The second one ('rss2donkey.pl') reads an rss feed and submits new links, which match a set of regular expressions, to mldonkey. Quite useful if run from cron.
There is also a helper script 'mlcmd' which executes its parameters via netcat on mldonkey console and a init script 'donkey'.
If anyone is interested in these, you can fetch them here.
Read More

namelen.sh

05/10/04 16:54:00 * admin
In a recent discussion on LKML (Link) the question came up how long an average filename is. To answer that, I wrote a small bash script. 94.15 Percent of the filenames in my home directory are shorter than 25 characters. Here is a sample output and the source code.
Read More

XFree Xinerama extension hack

03/08/04 11:47:00 * admin
When installing my 3 monitor setup I quickly discovered that the native xfree xinerama extension is incompatible with nvidia twinview. You can only have either one. This leads to applications believing I have one 2560x1024 screen and one 1280x1024 screen. If I maximized windows they would always span two screens. Therefore I spent a long time searching for a solution on google, but unfortunately there are a) few people with 3 monitors and b) no one had solved this. So I decided to patch the X server. What I've done so far is to take programs/Xserver/Xext/panoramiX.c and fake the reply like this:
Read More