Archive for Uncategorized

Rails 2.0.1 Todo List tutorial

I’ve been meaning to try Rails 2.0.1, and I had some trouble finding an example. I did find this one, which is quite good.

I thought I would add one of my own. Here in five lines are the steps to create a basic todo list application in rails.

rails todo
cd todo
rake db:create:all
script/generate scaffold Todo title:string body:text done:boolean due:datetime
rake db:migrate

Then start the web server
script/server

Open your browser to http://localhost:3000/todos

You can now create, edit and Delete items. Wow. Not one SQL command.

This tutorial assumes the following:
ralis 2.0.1 installed
running mysql with no password for root at localhost.
(And it was also made on a Macbook OS X Leopard).

Comments (4)

TravelMate C110 Disable Touchpad Tap in Ubuntu

I just spent the last few hours disabling the touchpad tap from my little laptop. In Ubuntu I kept losing focus because it would detect a tap on the touchpad. Well this post here by Matt tells you how to disable it.

Here is the code for /etc/X11/xorg.conf

Section "InputDevice"

Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizScrollDelta" "0"
Option "SHMConfig" "on"
Option "MaxTapTime" "0"
EndSection

If you don't have this section then add it. Also include this new device in server layout section. That fixes it!

Comments

Eclipse Ignore Folder

Sometimes when using eclipse I need to jump to a file. I press CTRL-SHFT-R to pop up the resource. However most of the time I end up editing a copy of the file in a build folder.

The solution to this problem is to Right click the troublesome folder, select properties and Click Derived. Now when Jumping to files with CTRL-SHIFT-R  you wont edit the bad copy.

Comments (5)

Windows Vista takes 30 minutes to boot

Over the weekend I purchased a new laptop with Vista pre installed. The first boot took over 30 minutes, and rebooted 3 times.

Thats pathetic Microsoft!  Oh and special thanks to Compaq for requiring me to fill out a registration form, I hope you enjoy all that fake information I gave you.

Comments (1)

What a smart web app

Every so often I find a site that makes think, ‘why didn’t I think of that!’

http://www.spotplex.com/
is another one of those. It builds a better digg by monitoring the traffic an article has.

Comments

« Previous entries · Next entries »