One post at a time
11 Jun
11 Jun
We three of us in Learnhub, Wesley Moxam, Carsten Nielsen and my self have attended RailsConf 2008 last weekend. It was a great event for sure. After came back, we did a presentation for Toronto Ruby on Rails Project Night yesterday. Here is the presentation file which we’ve used:
More details are on LearnHub Rails Community:
RailsConf 2008 Summary and Review
3 Jun
DHH & Libin, originally uploaded by Wes and Faye.
Thanks to my dear co-worker Wesley took this nice picture for me!
It was after David has finished his Keynote in RailsConf 2008.
29 May
12 May

Nearly 10000 dead in China quake, fears for many more

China quake buries nearly 900 students in Sichuan Province

Massive death toll feared in Chinese earthquake
�
11 May

We all love TextMate, by all means. It is the best friend for Ruby Developers.
After our project upgraded to Rails 2.0+ at LearnHub.com, I noticed that there are some very powerful Ruby Bundle Commands just stopped working. Especially these two:
This is an awesome lovely command in Ruby Bundle, absolutely my favorite! It allows you to run a single unit test out of a whole suite of tests by simply positioning your cursor into the test you’d like to run.
This is another cool command too. It shows a popup window which list all the available rake tasks you have and it will show a pretty HTML result window after you choose from the list.
This thing really bothers me a lot. I could be fine for the second one, as I do have terminal windows open all the time. But I really really miss the first one, as our test files get longer very soon.
I have to make it work!
After couple of hours trying today, I’ve pretty much got the right reason and the simple solution, for now.
The reason is that TextMate includes its own version of builder.rb, which is conflicting with Rails 2.0′ version of builder.rb.
The simple solution:

That’s it! And apply the same changing method to other commands such as “Run Rake Task” as well.
And just want to point out the alternate solution is:
mv /Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb /Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb.bak
It’s up to you to choose one of them.
Hope Google can pickup this post quickly so we can save somebody else sometime too.
Enjoy!
11 May
My personal life and learning timeline.
Collect and share your Learning life!
Create yours on Dipity.com too.
10 May
Toronto, May 10, Sunny, 19°C. A beautiful day after the long long winter.

There is a ZipCar parking spot in front of our building, I’ve been thinking to try them for a while. Finally, I’ve got my zipcard this Monday. So I decided to spend some time with this hot red mini cooper today. It was absolutely an exciting experience and I’ve learned three things:
Wanna give ZipCar a try too?
29 Apr
Half a year after Leopard has been released, we finally get an official Java SE 6 from Apple today!
Java for Mac OS X 10.5 Update 1 adds support for Java SE 6

Thanks Apple! Anyway…
As you can see from the description:
This update does not replace the existing installation of J2SE 5.0 or change the default version of Java.
So if you want to make Java SE 6 your default version of Java, there is one thing you need to do:
sudo ln….. OK, no command line this time.
Here is the right way to do:

You could change Java Applet Runtime Version to J2SE 6 too, but please make sure you know you really need it.
Enjoy!

13 Apr
$> mate config/routes.rb
map.namespace :admin do |admin| admin.resources :user end
$> rake routes
admin_user_index GET /admin/user
{:controller=>'admin/user', :action=>'index'}
......
$> mate config/routes.rb
map.namespace :admin do |admin|
admin.namespace :user do |user|
user.resources :profile
end
end
$> rake routes
admin_user_profile_index GET /admin/user/profile
{:controller=>'admin/user/profile', :action=>'index'}
......
Recent Comments