Archive

Archive for June, 2008

Finished. For the moment.

June 27th, 2008 dkam Comments off

Well, I’ve painted the shell and put the stickers on. Looks finished now.

DSC_2336.JPG

DSC_2340.JPG

Added an extra sticker. I’ve had so many of them lying about – this is the first time I’ve ever used one.

Categories: RC Stuff Tags:

Another shop for Booko

June 26th, 2008 dkam Comments off

Guys at the Ruby meeting tonight mentioned another online bookstore – Boomerang Books. I’ve added them to the roster. Let me know if there’s any issues.

Categories: Booko Tags:

New Girl Talk album

June 25th, 2008 dkam Comments off

Girl Talk have released a new album “Feed the Animals”. They’ve released it in a similar fashion to Nine Inch Nails most resent release. You can pay any amount you think is fair. If you download for free, I understand they ask some questions about why you’re not paying. If you pay at least $5 you can get the FLAC version + a single track of the whole album. Over $10 and you can get a physical CD when they’re available. If you’re in Australia ( and you know, who isn’t? ) you’ll need to pay another $7 USD to get it shipped over here.

I’m up to track 4 of 14 and I’m enjoying it. I loved the previous album – Night Ripper. Well worth downloading.

Categories: Music Tags:

USB2 Vs FW400 Vs FW800

June 25th, 2008 dkam Comments off

Had access to a 1TB WD drive recently. Comes with USB2, FireWire 400 & FireWire 800. Thought I’d check out the performance of the various connection methods. It had two internal 500GB drives arranged in RAID 0 (striped). I tested it by running:

$ time cp Movies/Parallel.avi /Volumes/MYBOOK/

The movie was 525MB and I did each test 3 times. The very first run was slowest – presumably the file (or parts of it) was in the disk cache for subsequent runs. Here’s the times:

FW800:  12.5 seconds
FW400: 16.9 seconds
USB2:  21.6 seconds

Just to make sure my laptop drive wasn’t affecting the test, I also performed this test (several times for each):

dd if=/dev/zero of=/Volumes/MYBOOK/test.file.fw800 bs=1m count=1024
FW800: 24.8 seconds
FW400: 32.4 seconds
USB2: 40.9 seconds

For comparison:
Local SATA drive: 20.3 seconds

My laptop hard drives results were a bit erratic – peaking up to 27 seconds and down to 20. No doubt due in part to the 21 applications I’m currently running. Stopping iTunes playing helped things ;-)

I was surprised that FireWire 400 was that much faster than USB2 – I’d always assumed they were on par. Anyway, looks like FW800 is clearly the king for connecting external HD.

Categories: Geeky, SysAdmin Tags:

The parts arrived.

June 23rd, 2008 dkam Comments off

And we’re back in action. Nothing says we’re back in action like driving over a small obstacle slowly.

Categories: Uncategorized Tags:

$500 Ethernet cable?

June 23rd, 2008 dkam Comments off
Categories: Funny, Geeky Tags:

Migration to Passenger ( mod_rails )

June 22nd, 2008 dkam Comments off

Ruby On Rails apps are finally easy to install – mod_rails is here. Just installed it for the Blag ( Typo 5.0.1 on Gentoo Unstable ) and it looks to be working quite nicely. Only roadbump I encountered was problems getting static content to be served. Kept getting:

[error] [client 124.168.83.214] client denied by server configuration: /var/www/da.nmilne.com/htdocs/public/javascripts/typo.js

The problem was pretty straight forward – now that mongrel isn’t serving up the static content, I had to make sure that apache was configured to allow access. Added a this stanza:

  <Directory "/var/www/da.nmilne.com/htdocs/public">
        Options FollowSymLinks
        AllowOverride None
        Order allow,deny
        Allow from all
  </Directory>

Naturally it feels snappier. Nice.

Categories: Ruby, SysAdmin Tags:

Frustrating

June 22nd, 2008 dkam Comments off

I spent several hours yesterday fighting with RubyGems – I’d even written a vitriolic post about it – but I … did something … and bam, like that it was gone. RubyGem is Ruby’s version of Perl’s CPAN. It’s got a very annoying trait – its prodigious use of memory. For each gem ( a gem is a Ruby module – like rails or hpricot for example ) RubyGem would load the spec into memory in order ( I’m guessing after reading a bunch of forum posts ) to build a dependency tree. On a 256MB slice host, this pushes you into swap hell. On a 512MB host it would use up to 68% of memory.

So what can you do but rent a bigger slicehost? Moe Sizlack said it best: “I’m choking on my own rage over here!”

Naturally, it’s been fixed. Today.

If only I’d done something more constructive yesterday. Like played COD.

Categories: Development, Geeky, Ruby, SysAdmin Tags:

SSH Tricks

June 16th, 2008 dkam 1 comment

Read this tip here – if you add:

Host *
       ControlMaster auto
       ControlPath /tmp/%r@%h:%p

to your .ssh/config, ssh will reuse your network connections to hosts with already established ssh sessions – saving a bit of time and reducing the number of network sockets you’ve got.

$ man ssh_config

for the details. You learn something new every week eh?

Categories: Geeky, SysAdmin Tags:

Booko Bugs

June 15th, 2008 dkam Comments off

Fixed some Booko bugs/interface problems this weekend.

These ones were reported by Niall:

  1. Search results report ISBN, but that value is listed as EAN on the next page. Fixed this to be consistent. I use ISBN to mean the 10 digit version, and EAN to mean the post January 1st 2007 13 digit version, although they are both technically ISBNs.
  2. Searching for a valid ISBN which didn’t exist in Fishpond or The Nile doesn’t return any results. The spinning thing just kept spinning for ever. This bug was a bit surprising – thought I’d fixed this once before. Probably before a recent refactoring. Damn my lack of testing!

Made the message explaining when the price was last looked up more clear. Reported by Andy.

Improved a fragment caching problem reported by Joel. The problem was (as far as I can tell) that adding something to your cart, then moving to a different page before the cart is updated continued to show you the old version of the cart. This was because I was doing things in this order:

  1. Expire Cache for the cart
  2. Look up the book to add, then add the book to the cart and do a bunch of lookups and calculations,
  3. Regenerate the cart html and send it.

#2 takes a while. If the user navigates away before #2 is done, then the cart html is regenerated without the book being in the cart. Subsequent adding / removing of books will refresh the html and your book will be there. I’ve tried to fix this by shuffling the order things are done to this:

  1. Look up the book to add, then add the book to the cart and do a bunch of lookups and calculations,
  2. Expire Cache for the cart
  3. Regenerate the cart html and send it.

Hopefully this will reduce the problem, but it may not eliminate it.

Categories: Booko Tags: