Archive for November, 2006

Use Ruby on Rails to Maintain Database Schema

Monday, November 20th, 2006

For my J2EE-based RSS reader project, I have managed to successfully use Rails to maintain my database schema.

Quick summary:
* Create a Rails project.
* Create a new model.
* Use rake db:migrate to upgrade or to downgrade the database schema.
(more…)

Switching to a Mac

Sunday, November 19th, 2006

I am one of the Windows-to-Linux-to-Mac switcher. My previous machine was an Ubuntu linux and it was a good machine.

I bought a 2.33 GHz MacBook Pro with 2 GB of RAM. :) I have 120GB of drive and a resoultion of 1440×900. The screen is gorgeous! I’ve never seen any notebook with a sharper and brighter screen.

In short, it’s a sweet machine!

One thing that drives me nuts in Mac OS X is the window resizing. In Windows, I can drag any side of the window to resize it. In Mac, I have to use the itsy-bitsy-tiny resizer. :(
I will post a switcher’s guide and various programs that I am using.

PS: As I posted before, I use ecto to manage my blog.

Blog Client (Software)

Sunday, November 19th, 2006

I have wasted so much time managing my blog using pure HTML. So, I decided to buy a software called ecto.

It’s a very nice software to manage and to format my blog. I have only used it for a couple of hours and I am hooked!

Post your questions in the comment and I will answer them as much as I know.

XML Processing In Java Using XOM

Sunday, November 19th, 2006

I have decided to use XOM API to process XML data. There is no good reason actually. I may revisit another XML API (e.g. JDOM) in the future.

What I have done is to read the XML from the Internet (e.g. Digg RSS) and process it.

To summarize what I have done:
1. Open a connection.
2. Tell the XML API to read from the connection stream.

Simple, eh? :)
(more…)

Type java.lang.object cannot be resolved

Sunday, November 19th, 2006

I switched my main development computer. I thought all I needed to do was to move my development directory from my previous computer to the new one.

When I start the Eclipse IDE, I started to get the “Type java.lang.object cannot be resolved” error everywhere (I mean EVERYWHERE).

After some research using Google, I found the solution!

I assume that Java has been installed correctly in your (new) machine. Do the following steps:
1. Right-click on your project.
2. Select Build Path.
3. Select Configure Build Path.
4. Select Libraries tab.
5. Select Add Library.
6. Select JRE System Library and select Next.
7. Remove the previous JRE System Libary.

Switching over to WordPress!

Sunday, November 19th, 2006

After reviewing various blog software, I finally decided to use WordPress.

I played around with Drupal and I found it too complicated to use for my simple tech blog.
Joomla is way to overwhelming too.