2006-02-28

Rails Development Environment on Fedora Core 5 (Test 3)

It seems that Fedora Core 5 is not that different from FC4. Especially when it comes to Rails development. Almost all instructions from Installing Ruby on Rails with Lighttpd and MySQL on Fedora Core 4 apply.

Only the part about creating test application is a bit outdated. I would suggest following Apple's tutorial instead. It introduces reader to migrations which should be used in Rails development from day one.

One more thing: don't forget to install Eclipse and RadRails.

Damn You, Gnome Icon Chooser!

One of the most annoying things. I don't encounter it too often but still.

Have you ever tried to add a new custom launcher to Gnome panel? It is very easy. Unless you want to customize the icon as well.

I was trying to add a shortcut for my installation of Eclipse. When I wanted to choose the icon a Browse Icons window appeared. Eclipse provides nice own icon which I wanted to use. I clicked Browse. Strange thing - I wasn't able to choose the icon - I was only able to pick a directory. Hm... So I picked it and guess what? Nothing. Mhm. It took me a while to realize that after choosing a directory you have to click on the address field and press enter just to see your only icon that was present in directory. Which I could just choose from the requester, didn't I?

There already is a bug (#328803 filled for it. I hope they will fix it ASAP.

I just can't stand the fact that my precious Gnome has any faults. I want it to be perfect

2006-02-27

External Repositories for Fedora 5 Test 3

Fedora is nice but is missing several crucial components after installation. It won't be long before external repositories start to include RPMs for FC5. Right now ATrpms is doing a great job providing for example mplayer. I am still missing mp3 support though :(

2006-02-26

Fedora Core 5 Test 3

Installation attempt one: Upgrade from FC4

  1. Put DVD in drive
  2. Admire new logo
  3. Be surprised that installer tells installation will take 400+ minutes.
  4. Be surprised that it really takes that long.
  5. Go to a party
  6. Return to find finished installation
  7. Restart
  8. Be shocked by kernel panic
  9. Fail to recover
  10. Say bad words (a lot)

Installation attempt two: Clean Install

  1. Put DVD in drive
  2. Install in 30 mins.
  3. Customize in 2h
  4. Be productive

I am still installing some auxiliary software. Aside of that it is a clean and slick system. Nice!

2006-02-23

Rails and URLs without a host name/port number

I was digging a in how cache_page works and found a nice little surprise.

Sometimes you want URLs in your site to follow some convention. Like not having host name or port number. You can specify options in each invokation of url_for. Or you can be smart.

Override a method default_url_options in your controller and from within return a hash with your favourite options. Works for whole application if you do it in ApplicationController

[Link] Loading your test db to your development db

I have found this little piece today. Quite a nice way to initialize your database on first run.

Loading your test db to your development db

Back to rewriting fixtures then :)