Skip to main content


Showing posts from December, 2005

Ruby :symbols understood - "A symbol is an object with a name"

Back in August, I blogged about Ruby's symbols as I tried to get my head around what they really were. Jim Weirich made a post yesterday entitled 'Symbols Are Not Immutable Strings' which really helped solidify my understanding, his main two points being:

* Symbols are not immutable strings
* A symbol is an object with a name

Thanks Jim!

Technorati Tags: , ,

Support the new blog/RSS feed icon

Based on the Firefox RSS feed icon, (and adopted by Microsoft) is the transmitting symbol that with a big push from Feed Icons is trying to become the standard symbol that means "this is an RSS feed". I've added it to my blog today to support the effort.

Let's make RSS feeds simple enough for anyone to recognise - none of this orange XML this or RSS that...

Technorati Tags: , , , ,

Migration to Ruby for Java developers

As an experienced Java developer converting to a Ruby newbie I found the following posts from Sam Newman rather helpful in making the switch:

* Ruby For Java (and C#) Programmers, Part 1 - Conventions, methods, modules, and classes
* Ruby For Java (and C#) Programmers, Part 2 - Operators, methods, and more on classes
* Ruby For Java (and C#) Programmers, Part 3 - Introducing Arrays, Hashes and the typing system

If your anything like me having a good book by your side can really help when picking up a new language. There is one Ruby book that everyone seems to have, Programming Ruby: The Pragmatic Programmer's Guide. It really is an excellent book, I liked the first edition so much that I bought the second as well!

Let me know if you find any other resources that would be helpful to anyone else making the switch.

Another useful resource for people interested in see what Ruby is all about is Try Ruby! - an online interactive Ruby terminal that runs in a browser, created by the rather in…

Missed your bookmarks when was down? Not if you've got Foxylicious!

If you are a regular user you will most probably know that they have had some server & database troubles over the past couple of days that caused the whole system to be unavailable for a considerable number of hours.

What you might not know is that you could have had access to them (if you are a Firefox user) if you had the Foxylicious extension installed. It maintains a copy of your links as normal Firefox bookmarks and I blogged about it back in April.

I find the Firefox extension better for posting to, but nothing beats Foxylicious for ensuring that you have fast local access to all your bookmarks should every have problems in the future.

Technorati Tags: , , , ,

DevBoi - the Ruby on Rails & web development quick reference sidebar for Firefox

If you use Firefox and develop either websites in HTML/XHTML, CSS & JavaScript or web applications in Ruby on Rails (or PHP) then the DevBoi sidebar written by Martin Cohen is a pretty handy extension to have.

Rob Sanheim has a great post introducing the new features and the offline version comes highly recommended if you ever want to develop whilst not connected to the net.

Technorati Tags: , , , , , , , ,

Increasing your USB gaming mouse polling rate with USB Mouserate Switcher 1.1 (usbmrs11.exe)

In my last post I talked about how to check your gaming mouse polling rate with a Windows utility called mouserate. You may have noticed that my polling rate was way above the standard 100Hz - in this post I'll tell you how I did it. This obviously only works with USB mice but there are not that many PS/2 gaming mice sold these days.

Important Disclaimer: Although I have not had any problems since running this patch, there have been reports on various gaming forums that people's mice or other USB devices have stopped working as a result of applying this patch. For some people it was fixed by choosing a slower patch rate but I wanted to mention this, as if you follow my instructions below and something goes wrong with your setup - your on your own... (it might be best to have a PS/2 mouse handy or know the keyboard shortcuts to revert the patch).

Ok with that disclaimer out the way, let's get stuck in and really ramp the polling speed up. First download USB Mouserate Swi…

Check your gaming mouse polling rate with mouserate.exe

I'm not a big PC gamer but I do enjoy the odd hour online playing ET (Wolfenstein - Enemy Territory). Recently I've been disappointed with my accuracy and aiming, I just seem to always miss when in the middle of a frantic firefight.

I had read on an ET forum that a good way to improve your aim was to download and consume 'Aiming by RaZiel'. After reading some of the documentation and watching a couple of the movies in this pack I wanted to try and 'tweak' my mouse configuration.

One tip was to increase the mouse polling rate within Windows so that it would be read faster and therefore give a more accurate reading on the mouse's position. One way that you can check your mouse polling rate is with the rather handy 'mouserate' by Oliver Andreas Tscherwitschke.

It's a tiny download that contains a simple executable file that pops up a window which gives you an area in which to move your mouse around, and a list of the polled rate on the right-hand s…

Creating a Trac instance on Debian Linux

In a post back in October (has it really been that long?) I walked through how to install Trac on Debian Linux. This post will cover the configuration of Trac so that at the end you will have a running Trac system that you can use as a wiki, ticket manager and Subversion repository browser.

First you need to decide where you want your Trac instance to live, I wanted mine to be accessible via a sub-section of a website, but I wanted the instance to live outside of that website's directory structure. I decided on /var/www/Trac which I would link to from within my other website.

To create the instance run the trac-admin command as the root user like so:
trac-admin /var/www/Trac initenv

It will now ask you a number of questions about your environment and project:
* Project Name - enter a human-readable name for your project, this will appear on emails, webpages, etc.
* Database connection string - just hit return to use the default SQLite
* Path to repository - the directory path to your S…