Skip to content

{ Category Archives } Programming

HAR inspired Python Pygame fun

I have always wanted to do some stuff with Pygame. When i saw the logo on the HAR2009 wiki I whipped up a little python program that draws squares and fades between colors. It looks pretty cool!
Needed: Python, Pygame
Downloads: har_squares

[edit]Seems i have uploaded the wrong file… My apologies to the original writer. The right file [...]

Tagged , ,

Nginx userdir list

Our Nginx server was without a proper ~user listing. While this is default in most apache configs, its not in Nginx. My friend Dominiek made a hack with a ruby script. This would have worked fine if had some more work but memory usage was pretty bad (especially for big files).
So, I started on a [...]

Tagged , , , ,

Vim tags not sorted error

Vim has a pretty nice (although not that smart) completion command, Ctrl+n.
Lately I’ve been getting this error:
E432: Tags file not sorted
This error is pretty annoying as it interrupts your work with an error. Googeling for this gave me no solution. Then I searched for files named tags (which are a lot), and I found [...]

Tagged , ,

The curse called PHP

PHP is a bad piece of software. It has too many bugs, some which cause great security risks in production software.
My last weird bug with php was with GD. I use Gallery2 for my pictures, and with my new camera it failed misserably. The tumbnails were generted perfectly, but when trying to view a [...]

I hate JavaScript

Last 2 days I’ve been stuck on a small JavaScript issue and i can’t find the damn solution for it. I need an element from an iframe which itself is in an iframe. I’m going nuts, I can’t get it. I need it. AAAAAAAAAARGH! I hate javascript.

GTA:SA soundtrack playlist creator

I found some time again to work on this little project. It’s not finished, but it does the most important stuff: generate a playlist with random intro’s and outro’s (with or without dj chatter or both). Here it is.
You need to install this first:
http://www.lysator.liu.se/~creideiki/ra … n-andreas/

Vim case insensitive search

Not much of news, but I ran into this problem today, do a case insensitive search in vim.
this can be done with:
:set ci or :set caseinsensitive
This makes future searches case insensitive.
A per search way is this:
/pattern\c
Notice the \c. It does not really matter where you put that \c as /foo\cbar also works.