Author Archives: Mads Sülau Jørgensen

Keeping ssh connections alive

I’ve got nothing more to say than: mads@workmads ~ % cat .ssh/config ServerAliveInterval 60 Happy ssh’ing.

Posted in Uncategorized | Tagged , , | 1 Comment

Python http_head method

Seeing as there is no really easy way to do a HTTP HEAD request from python, I wrote up the following small method: In advance I’d like to apologize for the method that assemblies the request path. Update: Added handling … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

Formatting xml with xmllint

I keep forgetting how to format and indent xml from the command line. The tool xmllint does a fine job of doing just that, which has saved me numerous times whilst working with sports results. So. Much. Data. Running xmllint … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

Very simple email sending method in python

I needed to send an email, so I came up with this:   def send_plain_mail(subject, body, from_mail, to): import smtplib from email.MIMEText import MIMEText from email.Encoders import encode_quopri   msg = MIMEText(body, ‘plain’, ‘iso-8859-1′)   msg[’Subject’] = subject msg[’From’] = … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

Concurrent aacgain on iTunes library

Lets face it, I’m way to lazy to write blog posts at the moment, so I’m just going to publish some python code that i wrote today. It’s a program that runs aacgain on all the albums in your iTunes … Continue reading

Posted in Uncategorized | Leave a comment

Django compatible PyAMF test client

While working on a project using PyAMF today, i was about to write a unittest of a service method, when I realized that it would be harder than necessary to make unittests of the service. The cause of this is, … Continue reading

Posted in Django, Programming, Python, Work, flash | Tagged , , , | 1 Comment

New theme

I figured, that with all the past year has brought, it was about time with a change of appearance. At some point I might make my own wordpress theme, but until that day I’ll be using infimum which, as you … Continue reading

Posted in Uncategorized | Tagged , | 4 Comments

Choosing a font in Carbon Emacs

It took me a while of messing with fontsets and various other settings, before i came across how to select fonts in the Emacs wiki: M-x mac-font-panel-mode and pick the font you want. M-x describe-font and copy the font name … Continue reading

Posted in Programming | Tagged , , | Leave a comment

A ongoing discussion about C and libmemcached – don’t censor me

And there I was, happy as a 4-year old who had just found a whole box of strawberries. Then all of a sudden, along came a post about how Amir Salihefendic had made a little daemon in C, using libevent … Continue reading

Posted in Insanity, Programming, Ramblings, Rants | 5 Comments

Using mercurial with eclipse to edit actionscript files on os x

We have recently switched to use mercurial as our DVCS. We’re hosting our many repositories on bitbucket. I love it. When it comes to actionscript files, flash has always had odd newlines. For some reason, it has always used \r … Continue reading

Posted in Actionscript, Programming, Work | Tagged , | 1 Comment