Count a particular word in vim
I found (http://codesnippets.joyent.com/posts/show/882) the following command to count a particular word in vim:
:%s/word/&/g
I don’t no wheter this command is the best or not, but it works.
RubyMine and environment variables
I had some trouble with RubyMine(on a Mac) and environment variables, e.g. a path to an Oracle configuration file if i had started RubyMine from Spotlight. If i had started RubyMine from the Dock, everything works great. The problem was that RubyMine ignored my environment.plist file (details can you find here http://pivotallabs.com/users/david/blog/articles/968-really-setting-environment-variables-in-rubymine-on-a-mac ). To solve this problem, put your required environment variables into the /etc/launchd.conf configuration file. For example:
setenv TNS_ADMIN /.../oracle/product/10.2.0/db_1/network/admin
Recommendations [2]
- Some CSS-Sugar with the :nth-child Pseudo-class Expressions http://ozmm.org/posts/nth_child.html
- “Amp - Unifying Version Control” looks really cool http://amp.carboni.ca/
- How a Web Design Goes Straight to Hell some funny stuff
Recommendations [1]
- Watch the RubyConf-Talk from Tom Preston-Werner about BERT and Ernie: Scaling your Ruby site with Erlang. This stuff is very interesting and the the presentation is very inspirational.
- Read Thomas Enebo’s blog post about J is for JVM: Why the ‘J’ in JRuby? .