Archive for March, 2010

Php Code Beautifier Textmate Bundle

March 24th, 2010 by pyrat

Make your manky pretty.

I think this could me my first php blog post ever! I am normally so excited about ruby and related technologies that my involvement with php has wained over recent years.

I think this is a good thing as I can now see that PHP is not as good as its Python and Ruby colleagues. However, recently I have been unable to choose technology and have been working on a number of php projects at work.

Using textmate as my weapon of choice (instead of eclipse based IDEs which are more common) I have come to use the ruby code beautifier bundle a lot when crafting elite ruby code.

I have put together a code beautifier bundle for textmate which makes dirty php code look prettier.

The actual beautifier php class was modified from the original . This is a relatively crude beautifier and could do with some fine tuning to improve a few annoyances. If you feel like helping please fork the project on github and give me a pull request.

Happy tarting!

Install Mysql Gem on Snow Leopard and Macports

March 8th, 2010 by pyrat

export ARCHFLAGS="-arch i386 -arch x86_64" ; gem install --no-rdoc --no-ri mysql -- --with-mysql-dir=/opt/local/lib/mysql5 --with-mysql-config=/opt/local/lib/mysql5/bin/mysql_config

Ski Touring Equipment List

March 8th, 2010 by pyrat

Juratind Summit Ridge, Romsdalen
Juratind Summit Ridge, Romsdalen

In my continuing quest for not being as slow to pack for weekends away I have included a packing list for a weekend ski touring trip.


  • skis
  • boots
  • skins
  • transceiver
  • shovel
  • probe
  • map + compass in map case
  • food (enough for tour plus a little extra)
  • strap (for attaching skis together on back)
  • poles (collapsible)
  • ski leashes
  • rucksack 35l

Tour Dependent

  • crampons
  • ice axe
  • walkie talkies + charger


  • jacket lightweight
  • jacket beefy
  • waterproof trousers
  • thermal bottoms x2
  • thick gloves
  • inner gloves x2
  • ski socks
  • goggles
  • sunglasses
  • hat x3
  • buff x2
  • sun cream
  • waterbottle
  • thermal tops x3
  • down jacket
  • lightweight fleece
  • watch
  • first aid (incl compeed)
  • survival blanket
  • knife
  • small headtorch w/ spare batteries
  • mobile phone

Civi Stuff

  • toiletries + personal medication (eg. asthma inhaler)
  • trousers x2
  • boxers x3
  • socks x3
  • tshirt x2
  • towel
  • sleeping bag + pillow case
  • trainers