Feeds:
Posts
Comments

Archive for the ‘Uncategorized’ Category

OS X Terminal Basics

Delete a directory recursively and forcefully. You have files in there, but you want to delete the directory -r: recursively -f: forcefully

Read Full Post »

Create an application on heroku This will create an auto-generated name. You can rename it to what you want. Then you can run db:migrate to create tables. You can check heroku logs, in case of any error

Read Full Post »

Probably the easiest one, :length. You can give :maximum length.

Read Full Post »

First of all, I am following on-line version of rails tutorial (http://ruby.railstutorial.org/ruby-on-rails-tutorial-book?version=3.2#top). Michael recommends sublime text 2 as editor. I use textmate on my mac, but I wouldn’t have the luxury of mac at work, so I am giving a try. open a terminal here Since I comes from windows background, I don’t like navigating in terminal. This [...]

Read Full Post »

Used AirBnb. Staying in a local countryhome was a fantastic experience. My wife enjoyed it more than I did. Rented a car from Zipcar. It was very handy. 

Read Full Post »

I did this on Bash on Windows 7 (64bit) against my github account. I tried to push my change to github, and found it’s not possible. Enter passphrase for key ….: To git@github.com:andrewchaa/JonSkeetCSharp4Examples.git ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to ‘git@github.com:andrewchaa/JonSkeetCSharp4Examples.git To prevent you from losing history, non-fast-forward updates [...]

Read Full Post »

ReSharper usually doesn’t like it, but you can turn off the inspection for test methods. http://atombrenner.blogspot.co.uk/2010/07/how-to-change-resharper-naming-style.html Then you can do something like this.

Read Full Post »

I use StructureMap as IoC at work. I use it to get an object I need, and it is very handy. One night, while cycling home, I thought what if I can get repository in the same way I get object from StructureMap. I know there is a pattern called “Generic Repository”, but this is [...]

Read Full Post »

As git newbie, this was very tricky but it happens quite often. You create a new project, say C# project. In case of rails, when you create a new project, it automatically creates .gitignore, but Visual Studio doesn’t. You do “git add . ” and suddenly you realise you staged so many unnecessary files like [...]

Read Full Post »

Since I installed xcode, all my ruby files (.rb) opens in xcode by default. I much prefer textmate. To change the set default application, Select a file on Finder Right click to display the context menu and select “Get Info” In “Open with:” section, you can change the default application. Don’t forget “Change All…” to [...]

Read Full Post »

« Newer Posts - Older Posts »

Follow

Get every new post delivered to your Inbox.

Join 135 other followers