Raw Syntax

The stuff programs are made of

Quicksilver Lockscreen

Permalink

I've recently started locking my screen on OSX. However I found that Quicksilver's LockScreen script did not work. I believe it was designed for Leopard.

The workaround I've found is to start ScreenSaverEngine with Quicksilver, and set my Security.prefs to require a password.

UPDATE: This also works in OSX Lion.

How to Negotiate Salary

Permalink

Over the past couple weeks, I've seen a number of posts on hacker news talking about salary negotiation.

There are even authors who make a living writing books about salary negotiation. Salary negotiation is not complicated. I can explain how I do it in one sentence. I haven't read any of these negotiation books by the way.

The Secret to Salary Negotation

Figure out what salary you are happy with, and apply for jobs until you can find an employer that will pay you that amount.

I won't disclose my current salary, but I will say that in my recent job search I've had a few employers turn me down, and a few employers offer a job at my salary.

URL Validation in Rails 3 (and Ruby in General)

Permalink

I've seen some approaches, most notably here on igvita. Though the reference on igvita is quite dated (2006 ??? being more or less the beginning of the epoch in rails-years), I've seen plenty of code using the validate-a-uri-by-regex approach.

It doesn't work and always ends up excluding valid urls. This is why I prefer to use the parsing approach. If the url can be parsed, and the scheme seems reasonably valid, good enough.

Freelancing on oDesk

Permalink

Since the start of my career as a professional programmer, I've been interested in doing contract work online. Over the years I've half-heartedly tried to get jobs on sites like elance, rentacoder, and guru. I never had any success. All I found was employers / providers offering $200 fixed-bid contracts for building facebook / ebay clones, and workers willing to work for way less than I would or even could. In November 2010, after reading enough posts on hacker news I decided to give oDesk an honest try.