Rails blank? happy or sad

Given the rails following code: Quick what is the value of happiness in the following code if : If you said, “Dah! ‘happy’ of course Mr. Obvious”, you are right. Good job! what about: Well of course, ‘unknown’. last one, how about this one: If ...Read More

Vim: Using Ruby Regular Expression

I needed to remove line number from a web copy-pasted code snippet. I know there is a way to configure vim to use the perl style regular expressions but I couldn’t find how quickly. What I found was: http://vim.wikia.com/wiki/Perl_compatible_regular_expressions Here is my specific command: ...Read More