[ Content | Sidebar ]

Archives for June, 2008

Underwater nuclear reactor

June 23rd, 2008

Underwater nuclear reactors are an amazing idea aren’t they? Turns out someone’s already patented a design. And there are even plans to build one in Estonia!

So last night I designed my own underwater nuclear reactor, complete with multi-colour submarines and colourful aquatic beasties!

I’m rather proud of it.

I think this is also a subject ripe for Thunderbirds fan fiction… :-P

Filed in musings - Comments closed

Ruby Toys

June 18th, 2008

UPDATE 6/4/15: this post was previously a page but was removed when I reorganised the sidebar. Check out the rbib project on GitHub.

This page contains a couple of small Ruby utilities I’ve written.

BibTeX parser

A parser for BibTeX databases. Mostly intended for transforming the entries in some way, such as deleting unneeded keys. But it also works as a general purpose BibTeX interface.

Example: remove all the url fields from a database:

BibTeX::Parser.parse('input.bib').map do |entry|
  entry.reject_fields [:url]
end.save('stripped.bib')

Source code: git clone https://nickg@github.com/nickg/rbib.git

Released under the GPLv3.

Future:

  • Documentation
  • Gem installer

Lunar Lander update

June 13th, 2008

I’ve posted an updated version of my Lunar Lander game. This is mostly a code clean-up of the last release, but it also features a new options screen and the ability to switch resolutions.

Download it here.

Ideas for next xcowsay version

June 13th, 2008

These are some of things I’m thinking of adding for xcowsay 1.1:

  • Think mode: draw a thought bubble like cowthink in the original cowsay.
  • Dream mode: display images in the bubble.
  • Draw the bubble with Cairo and anti-aliasing.
  • Translations.
  • A few bug fixes ;-).

Thanks to everyone who downloaded xcowsay 1.0!!!!! :D

Filed in xcowsay - Comments closed

Beta version of xcowsay panel applet

June 8th, 2008

I’ve written a GNOME panel applet based on the xcowsay source code. It doesn’t do much at the moment – click it to run xcowfortune.

If you want to try it out, get the source code here.

You’ll need to configure it with --prefix=/usr or set BONOBO_ACTIVATION_PATH for GNOME to find it.

Filed in xcowsay - Comments closed

Lunar Lander game

June 2nd, 2008

I’ve posted the source code of my Lunar Lander clone that I’ve be working on for a while now.

Check it out here!