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.

This was posted 11 months ago. Notes.
New ECMAScript Language Specification(5th Edition) is out
This was posted 2 years ago. It has 0 notes.

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

This was posted 2 years ago. It has 0 notes.

Recommendations [2]

  1. Some CSS-Sugar with the :nth-child Pseudo-class Expressions http://ozmm.org/posts/nth_child.html
  2. “Amp - Unifying Version Control” looks really cool http://amp.carboni.ca/
  3. How a Web Design Goes Straight to Hell some funny stuff

This was posted 2 years ago. It has 1 note.

Recommendations [1]

  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.
  2. Read Thomas Enebo’s blog post about  J is for JVM: Why the ‘J’ in JRuby? .

This was posted 2 years ago. Notes.
Clippy

“Clippy is a very simple Flash widget that makes it possible to place arbitrary text onto the client’s clipboard.”

Damn cool for the User Experience!

This was posted 2 years ago. Notes.