Back to the main page

Archive for the 'English' Category

Next Entries »

Useful web development tools

Thursday, March 9th, 2006

Here are some tools that might be helpful if you’re creating websites.

The first one is GNOME Colorscheme which allows you to generate a variety of colorschemes from a single starting color. Note that there are many dependencies when you’re trying to compile it from the source code.

The second one is LinkChecker which allows you to check your website for broken links. I like the HTML output:

linkchecker -o html > output.html

And if you don’t know the Web Developer Toolbar for Firefox yet, check it out!

Quick script to count occurrences of words

Tuesday, March 7th, 2006

I wanted to know how many times the words in a file appear. So I wrote a Python script that counts them. Please note that the code was written in a hurry and I know it’s possible to make it better.

Here’s it:

import sys

print sys.argv[1]
f = file(sys.argv[1])
buf = ''
while True:
        line = f.readline()
        if len(line) == 0:
        buf += line

buf = buf.replace('n', ' ')
buf = buf.replace('(', ' ')
buf = buf.replace(')', ' ')

arr = buf.split(' ')
dict = {}
for word in arr:
        if not word in dict:
                dict[word] = 0
        dict[word] += 1

for i in sorted(dict.items(), lambda a, b: cmp(b[1], a[1])):
        print '%s: %s' % i

My new 404 page

Friday, February 24th, 2006

I replaced my old Windows 98-style bluescreen 404 page with a new, dynamically generated Windows NT-style bluescreen. I think it looks much cooler now.

PHP scripts for language detection and correct delivering of (X)HTML

Thursday, February 23rd, 2006

My website automatically detects which language you prefer and displays the appropriate content. I’m using this script because I didn’t want to write one myself. Strict mode is of course off (be nice to IE ;-) ).

The website is delivered in either XHTML 1.1 or HTML 4.01 Strict. It depends on whether your browser accepts the application/xhtml+xml mime type. There’s a great script which automatically sends the right version to the browser. I’m using that script because XHTML should be delivered as application/xhtml+xml and I can’t just send it to all browsers as application/xhtml+xml, because there are some browsers that do not support this mime type (yes, IE again).

First post

Thursday, February 23rd, 2006

This is the first post of the new blog. The website has got a completely new look. It should be easier to navigate now. There’s also an automatic language detection (German or English) and a nice warning for IE-users :-)

IE Warning blog is powered by WordPress
Entries (RSS) and Comments (RSS).