Archives
Blogroll
Python
Category Archives: Work
How to resize ext3 partition on LVM
From time to time I have to resize the file systems on various systems which are primarily using ext3 on top of LVM. Resizing such an ext3 file system is not a complex task at all. For starters, make sure … Continue reading
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
Detaching a running process on *nix (or how to make a process continue to run after logging out)
Today, I had to copy 70 GiB of data from a ext3 filesystem to a XFS filesystem. This involved a lot of small files. After a couple of hours of waiting, I thought it’d be best to just leave it … Continue reading
Posted in Work
7 Comments
Poormans cloudfront with EC2 and varnish
Recently (10-20 minutes ago), amazon couldfront (a cdn) stopped sending dns replies in europe: % dig -t ns cloudfront.net ; DiG 9.4.3-P1 -t ns cloudfront.net ;; global options: printcmd ;; connection timed out; no servers could be reached I was … Continue reading
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
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
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
DNS management done right (and without the crappy attitude)
I’ve been using GratisDNS A free danish dns provider to manage my dns for a long time. Using their management interface is no walk in the park. It also has a bat habit of sending the username and password as … Continue reading
Posted in Insanity, Ramblings, Rants, Work
Leave a 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