by fadhli
on 02. Jul, 2008
in git
I had to make sure my git branch is updated with my master. So at my master branch git pull master Next, I switched to my branch named ‘feature_super_tag’. git checkout feature_super_tag and then git rebase master A good explanation of what a rebase does is from these two blogs: http://jbowes.dangerouslyinc.com/2007/01/26/git-rebase-keeping-your-branches-current/ http://adam.blog.heroku.com/past/2008/6/30/rebasing_is_editing_commits/ Note: It’s a [...]
by fadhli
on 01. Jul, 2008
in git
Assume you have a git branch named experimental and you would like to push it to your remote repository. Then just do git push origin experimental Now other people can see the remote branch if they do git branch -r. Perhaps they should do a git pull first before the git branch -r. This should [...]
by fadhli
on 27. Jun, 2008
in Ruby
Pheww.. all test pass after the latest ruby package updates from the ubuntu team. I was a little worried reading the comments from the official Rails site. From the comments, a lot of people are experiencing problems after using the patch provided by the official Ruby team. However, today I received an update notification on [...]
by fadhli
on 24. Jun, 2008
in General
Last weekend, I finally decided to upgrade my Gutsy to Hardy. After the installation, everything was working fine. The only thing is that I have no Firebug on Firefox3. I tried to install it through it’s website but it said that it’s not compatible with mine. Googling the net, I found out that it’s a [...]
by fadhli
on 14. Jun, 2008
in Programming, Rails
A label method is introduced in Rails 2.1. The following code: [sourcecode language="html"] < % form_for (@post) do |f| %> < %= f.label :title %> #Code truncated for clarity < % end %> [/sourcecode] Would generate the following HTML: [sourcecode language="html"] Title [/sourcecode] If your label contains a css class and if you need another [...]
by fadhli
on 13. Jun, 2008
in Programming
http://c2.com/cgi/wiki?LazyProgrammer
by fadhli
on 13. Jun, 2008
in Programming, Ruby
I don’t get it why some people write this %(Unverified email address. Please check your email for your activation code.) instead of this “Unverified email address. Please check your email for your activation code.” Is it that hard to put those double quote?
by fadhli
on 11. Jun, 2008
in Rails
I use Netbeans6.1 when developing in Rails. The thing I like most about it is that I can easily read the docs from a certain method in my code. I just press Ctrl + hover my mouse to that method and walla, the docs appears in my IDE. I can also do that when placing [...]
by fadhli
on 06. Jun, 2008
in Programming, Rails
In Rails 2.1, you have a new script/dbconsole Instead of accessing your MySQL database with mysql -u <username> -p You can instead do script/dbconsole and if you database has a password, just do script/dbconsole -p All this works provided that you have the correct database.yml settings.
by fadhli
on 05. Jun, 2008
in Programming
I need a tab navigation for some static display page. Stereotabs does the job nicely in my opinon. http://stereointeractive.com/blog/code/prototype-tabs