Archive by Author

Git. Make sure branch is updated

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 [...]

Comments ( 0 )

Git. Pushing your local branch to remote branch repo

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 [...]

Comments ( 0 )

Updating Ruby on Ubuntu 8.04

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 [...]

Comments ( 0 )

Firebug < Firefox3 < Hardy Heron

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 [...]

Comments ( 0 )

Rails 2.1 Label

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 [...]

Comments ( 0 )

I.Am.Lazy.Programmer

http://c2.com/cgi/wiki?LazyProgrammer

Comments ( 0 )

Quote Phobia

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?

Comments ( 0 )

Netbeans

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 [...]

Comments ( 2 )

Rails 2.1 script/dbconsole

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.

Comments ( 0 )

I like this

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

Comments ( 0 )