January 2012
1 post
Takk
Takk for 14 fine år.
November 2011
1 post
3 tags
Java dependencies
A little python snippet for creating dot-representation of the dependencies in a java app.
Let this little baby chew on your target/classes dir and you will get a dot-file on stdout.
#!/usr/bin/env python
import re
import os
import sys
from os.path import join, basename
LIB_REG_EXP = re.compile('[,+L#][a-z][A-Za-z0-9/]+')
PACKAGE_FILTER = ''
CLASS_PREFIX_REMOVE = ''
if len(sys.argv) >...
October 2011
1 post
Rot
I’m quite fascinated by how quickly code rots and becomes a mess, despite the programmers best intentions. A lot could be fixed by testing and and refactoring more often, but it always seems to come second to getting shit done, and does sometimes have
unintended effects.
For some reason I see this more often in Java code than in other languages. Maybe it’s because of its...
July 2011
1 post
Take control over your data - banking
So, banking data is quite interesting. If one could get a hold of your credit card transactions in an easy way, that would be sweet. But, its not that easy.
My bank, DNBNor, has a feature that you can download either an excel document, or a CSV formatted dump of the transactions against one of your accounts on a monthly basis. The programmers choice would be CSV, but I found the CSV exports to...
June 2011
1 post
March 2011
1 post
6 tags
apache2-mpm-itk and libapache2-mod-wsgi
If you are running Apache 2 with mpm-itk
and mod_wsgi on a debian system, you’re a bit out of luck performance wise.
From the MPM-ITK documentation:
mpm-itk is based on the traditional prefork MPM, which means
it’s non-threaded; in short, this means you can run non-thread-aware code
(like many PHP extensions) without
problems. On the other hand, you lose out to any performance...