How to prevent saslauthd sucking up memory

For about a year I noticed that very infrequently my VPS would run out of memory.. at first I thought it was probably just a wordpress plugin, but after a while I discovered it was actually saslauthd. This is a known bug (not known very well though..) with saslauthd on Debian. Anyway, here’s the fix - I’m not totally sure of the implications, so if you run a busy mail server I’d recommend you look into it a bit more before doing it:
[Read more]

Accessing get vars with ActionScript 3

I’ve just started to learn a bit of ActionScript for a new project I’m working on. The first thing I needed to do was integrate a message from the source html (and eventually a php file.) Turns out there’s pretty much no clear documentation out there on the web, so I decided to write this. First thing’s first, create a text object in your flash file and set the instance name to something you can easily remember, in this example I set it to message.
[Read more]

BigDump

Recently I’ve started having to work with sites hosted on shared hosting with phpMyAdmin and a measly 2MB upload limit for database imports. To get around this issue, I found a great little tool called bigdump which can just import a mysqldump file (even if gzipped) - just upload via ftp and import! Pretty sweet. http://www.ozerov.de/bigdump.php
[Read more]

Javascript short tags - don’t do it.

Yeah, so I just spent about an hour trying to figure out why javascript had stopped working. <script src="blah.js" type="text/javascript" /> will cause some very strange things to happen. You *must* have a closing tag. <script src="blah.js" type="text/javascript"></script>
[Read more]

TWiT Live via MediaTomb for your WDTV Live (and probably ps3, whatever..)

I recently upgraded from a WDTV media player to a WDTV Live. The WDTV is just a simple set top box that allows you to play video on your tv, much like an xbox 360 and a whole bunch of other devices. The WDTV live allows you to play stuff over the network which opens up a whole host of cool stuff if you use the mediatomb DLNA server software available for linux (google tversity if you want something similar for windows.
[Read more]

Samsung Galaxy S / Android review

On Monday I recieved my shiny new Samsung Galaxy S mobile phone. I’ve been putting off getting a smart phone for quite some years now as I never felt there was anything worth spending money on, and after some experience with my ipod touch I was put off getting an iphone. Anyway, I felt like writing my thoughts on the device now I’ve had it a week. The hardware My first impressions were that it does indeed look a lot like the iphone 3g, and I found I was trying to press the standby button which wasn’t there quite often, as well as picking it up and holding it upside down.
[Read more]

Ubuntu Lucid (10.04) on Dell Studio 1555

Ok, so I decided to natively install Ubuntu 10.04 on my Studio 1555.. fairly impressed.. almost everything works out the box which is a bit annoying. The only issue I’ve had is that the included proprietary ATI driver fails when you try to use suspend, however this is apparently easily circumvented by using the most recent driver from the ATI site (it was a bug with their driver.) Using the open source driver results in poor power management, so I’d advise against doing that.
[Read more]

Trac quick start on Debian

Trac is pretty easy to set up on Debian, here’s a mini guide of what I did to get it working nice and quick. You’ll probably want to configure users etc afterwards, but this should be enough to get going. Install: apt-get install trac libapache2-mod-wsgi Initiate the trac environment: trac-admin /var/www/srdev/trac/ initenv Set permissions: chown -R www-data /var/www/srdev/trac/ Install the wsgi script and web resources. The first argument before ‘deploy’ should match the install environment (the path above.
[Read more]

What’s going on

I’ve recently moved john-hunt.com again, from Australia to Texas in the states. The reason for this is my web host here in Australia was crap and the server kept going down (among other things.) They weren’t that terrible (hence I won’t mention them), but not worth the hassle. Anyway, hopefully this year john-hunt.com will undergo a bit of a transformation.
[Read more]

Converting SVG to png (with alpha channel)

Recently discovered this while creating some web graphics in inkscape: http://studio.imagemagick.org/pipermail/magick-users/2007-August/020001.html convert -density 100 -background None [filename].svg -compress none -depth 16 [filename].png Really quite handy seeing as my version of inkscape loses the alpha channel when exporting.
[Read more]