Mar 14, 2009
DHH: fuck the real world
If you haven't read the summary yet, here is the link from www.rubyrailways.com. I was not a big fun of DHH, but I think this article might change it. Anyway, can't wait for the video out.
Mar 8, 2009
Javascript plotting for jquery: flot
Recently, I was working on a project to visualize data. After trying a couple of tools and frameworks, I found FLOT. I love it immediately! That is really a very solid project, high quality code. Very easy to use. Most of important - very flexible for your special needs. Here is the charts I generated:


What can I say, I am really impressed by FLOT.


What can I say, I am really impressed by FLOT.
Feb 28, 2009
FOWA Miami 2009 Notes' Notes
Didn't make FOWA Miami 2009, but after reading the notes from Obie Fernandez, I felt it's a fantastic event. Here is the notes from the "notes":
3rd place:
"If you're in this room trying to convince someone to use Facebook or Twitter, stop it."
2nd place:
"Fail early, fail often is invalid in business. Learn from success."
1st place, this is my favorite one:
"I asked him how many years until he buys the jets. He said 25, but if he can't he'll take out the NFL. 'Fuck the NFL' (ROFL!)"
Again, thanks Obie Fernandez for the wonderful notes.
3rd place:
"If you're in this room trying to convince someone to use Facebook or Twitter, stop it."
2nd place:
"Fail early, fail often is invalid in business. Learn from success."
1st place, this is my favorite one:
"I asked him how many years until he buys the jets. He said 25, but if he can't he'll take out the NFL. 'Fuck the NFL' (ROFL!)"
Again, thanks Obie Fernandez for the wonderful notes.
Feb 21, 2009
Compile do_mysql on OS X(Mac)
I was trying to upgrade DM to the latest version the other day, but I failed miserable:
I also noticed that there is a plugin dm-constraints, I haven't check it out yet, but it seems like the same, here is the code from the plugin:
I filed an issue report on lighthouseapp.com.
UPDATE(Feb-21-2009): Just got the note from Dan Kubb( one of the core DM developers):
"The Collection#destroy! method is actually supposed to bypass all hooks. The way you're doing it by looping over the records and calling each Resource#destroy method is the proper approach to execute each Resources' hooks.
In dm-core 0.10.0 there will be a Collection#destroy method that wraps this up and essentially does the same thing."
This makes a lot of sense. Like always, I really appreciate the attitude of the developers from DM, that is one one the reason I am using DM.
I also noticed that there is a plugin dm-constraints, I haven't check it out yet, but it seems like the same, here is the code from the plugin:
I filed an issue report on lighthouseapp.com.
UPDATE(Feb-21-2009): Just got the note from Dan Kubb( one of the core DM developers):
"The Collection#destroy! method is actually supposed to bypass all hooks. The way you're doing it by looping over the records and calling each Resource#destroy method is the proper approach to execute each Resources' hooks.
In dm-core 0.10.0 there will be a Collection#destroy method that wraps this up and essentially does the same thing."
This makes a lot of sense. Like always, I really appreciate the attitude of the developers from DM, that is one one the reason I am using DM.
Feb 7, 2009
Smart Sleep - Mac OS X
I can't remember since when Apple decided that when you sleep your laptop, it will write all the data in memory to the hard drive, then go to hibernate. It is a good thing if you are on road, and want to change the battery. Once you power it on, every thing just like before you swap the battery. But for me, I've had 4 apple laptops, I've never done this for a single time. Especially for my latest MacBook Pro, I have to wait it to dump 4GB memory on to hard drive every time. And most of the time, I found it is even faster if you just power off it. I would be more happier if it can go to sleep right away when I close the lid.
Now, you can do that - SmartSleep PrefPane. I've been looking for something like this for a while. Why I love it, you know, now, I can get home 5 mins earlier every day. :-)
Now, you can do that - SmartSleep PrefPane. I've been looking for something like this for a while. Why I love it, you know, now, I can get home 5 mins earlier every day. :-)
Subscribe to:
Posts (Atom)
Blog Archive
Labels
- _why
- Ack
- Automator
- autotest
- baby
- bluetooth
- c++
- compile
- ctags
- datamapper
- daycare
- Elaine
- flot
- fonts
- format
- FOWA
- git
- GMail
- iPhone
- javascript
- Mac
- MacBook Pro
- MaxDB
- Merb
- Merb authorization
- merb routes
- Migration
- MySQL
- new born
- new year
- new_born
- OS X
- performance
- Phusion Passenger
- Prawn
- prefpane
- quartz
- Rack
- Rails
- render
- ruby
- SapDB
- sleep
- SSL
- target
- TinkerTool
- tuning
- video
- Vim
