Thursday, August 12, 2010

Modifier Keys

Stumbled upon this gem today in OS X

System Preferences -> Keyboard -> Keyboard tab -> Modifier Keys button

This would've been handy over the past 5 years switching between the laptop keyboard and various PC keyboards.

Saturday, February 13, 2010

Kayaking

Scan a series of days with flexible dates for a multi-city trip on Kayak. Doing this in the browser is pretty tedious so here's a Ruby script to do it.

depart_between = ['2010-06-13', '2010-06-16']
airports = ['SFO', 'CDG', 'ARN']
durations = [7, 7]
plus_or_minus_days = 1

Date.parse(depart_between[0]).upto(Date.parse(depart_between[1])) do |d|
(-plus_or_minus_days..plus_or_minus_days).each do |i|
(-plus_or_minus_days..plus_or_minus_days).each do |j|
url = "http://www.kayak.com/flights?mc=y&action=doflights&basicmode=false&basicprofile=&cabin=e&datelimit=#{Date.today.strftime("%m/%d/%Y")}&depart_date0=#{d.strftime("%m/%d/%Y")}&depart_date1=#{(d + durations[0] + i).strftime("%m/%d/%Y")}&depart_date2=#{(d + durations[0] + durations[1] + j).strftime("%m/%d/%Y")}&depart_date3=&depart_date4=&depart_date5=&depart_time0=a&depart_time1=a&depart_time2=a&depart_time3=a&depart_time4=a&depart_time5=a&destcode0=#{airports[1]}&destcode1=#{airports[2]}%2F9880&destcode2=#{airports[0]}%2F13852&destcode3=&destcode4=&destcode5=&destination0=#{airports[1]}&destination1=#{airports[2]}&destination2=#{airports[0]}&destination3=&destination4=&destination5=&fid=&oneway=m&origin0=#{airports[0]}&origin1=#{airports[1]}&origin2=#{airports[2]}&origin3=&origin4=&origin5=&origincode0=&origincode1=#{airports[1]}&origincode2=#{airports[2]}&origincode3=&origincode4=&origincode5=&personality=&po=&r9debug=&r9secret=&recent=N&screenY=900&tab=flights&travelers=2"

%x[open "#{url}"]

sleep(30)
end
end
end

Tuesday, January 12, 2010

PowrFone

http://37signals.com/svn/posts/2104-product-blog-update-bring-your-highrise-data-to-iphone-caller-id-screen-new-android-app-for-basecamp-etc

I'm normally a fan of all things on this blog, but why are the actions not hyperlinked? Instead, a URL shortener is used to add clutter to the screen.

Add note or task: http://bit.ly/3SFoyD
Edit contact info: http://bit.ly/1wCTt9

Could be

Add note or task
Edit contact info