Category Archives: Programming

Managing multiple AWS identities

I’m running multiple different project on AWS which was so much of a pain to use, as I often find myself having to use the identity of project-a together with the official amazon ec2 tools. To help myself manage the … Continue reading

Posted in Python, Work | 1 Comment

Django – sharing a memcached instance

Update: Some Curious User brought to my attention, that a ticket has been opened which, when implemented, will add a setting for a cache prefix. It will also allow other cache key manipulations. Until recently I’ve been using the file:// … Continue reading

Posted in Django, Programming, Python, Work | Tagged , , , | 6 Comments

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

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

Mercurial trac commit hook

Having searched a lot around google, it does not seem that anyone has published their trac commit hooks for mercurial. Since I had to use just that, I’ve cooked up a little hook which is based on the hook from … Continue reading

Posted in Python, Ramblings, Work | 13 Comments

Actionscript 3 – posting XML data with URLLoader

So, you want to POST some XML data to a web service. Let’s for the fun of it say, that we would like to POST the following piece of XML to a PHP script: 1 <request command="run-command" />

Posted in Actionscript, Programming, Work, flash | 2 Comments

Fun with mod_macro and django

At work we yestoday decided to update our internal url structure for our client test sites, issue management systems and such arround a bit. Seeing as we decided on purchasing a genuine signed ssl wildcard certificate, we needed to change … Continue reading

Posted in Apache, Django, Python, Work | Tagged , , , , | Leave a comment

Asynchronous socket server in python

The code for a very simple asynchronous socket server written in python utilizing the asynchat module. It’s all in good fun.

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