Convert Ruby 1.8 to 1.9 hash syntax

thoughtbot:

In vim, for an entire file:

:%s/:\([^ ]*\)\(\s*\)=>/\1:/g

In the shell, for an entire project:

perl -pi -e 's/:([\w\d_]+)(\s*)=>/\1:/g' **/*.rb

Now, instead of those old-school hashes like this:

get '/', :agent => MOBILE_BROWSERS do

You’ll have new-school hashes like this:

get '/', agent: MOBILE_BROWSERS do

How developers, designers, project managers, QAs and sysadmins see each other

How developers, designers, project managers, QAs and sysadmins see each other

Amateurs hack systems, professionals hack people. — Bruce Schneier (via redteams)

How to charge your clients?

If you’re a web developer, content writer, graphic designer or anything related to freelancing this question always pops out.

You could:

  • Charge per hour basis
  • Charge flat fee

There’s no way to say which is right or which is wrong. A little bit experimentation is the way to test demands in your market. What is right in US might not work in Asia or vice versa.

Here are some resources I find helpful.

Update (Sep 5th):

Another good article regarding software price: