Wide Load
Yeah, upon an overnight thought about Juha’s comment about making the blog wider, here’s the results: slightly over 25% increase on the effective playing area.
Report oddities if any. But do hit refresh a couple of times just to make sure it isn’t the browser’s caching habits that are to blame.
Still figuring out a decent and interesting way to do the header image randomizer.


Juha Ylitalo:
#!/usr/bin/python
import glob
import random
import sys
import time
imglist = glob.glob(”/home/…something…/*.jpg”)
random.seed(time.time())
fname = imglist[random.randint(0,len(imglist)-1)]
sys.stdout.write(”’Content-Type: image/jpg
”’)
February 19, 2008, 13:15f = open(fname)
content = f.read()
while content:
sys.stdout.write(content)
content = f.read()
f.close()
sys.exit(0)
# It is missing if __name__ == “__main__” type of stuff, but it does the work.
Juha Ylitalo:
And of course system decided to ignore my white spaces from beginning of lines (one of the typical problems in copy pasting python code), but if you need copy with all relevant spaces in places, send me e-mail. :)
February 19, 2008, 13:17lavonardo:
Thanks, I’ll give this baby a shot.
Shouldn’t be a problem to figure out the login/indentation :-/
February 19, 2008, 13:58