My gdgt widget

They don’t really provide you a way to put this on any webpage, IMO the clearspring thing is pretty lame, but no worries, inspect the page and grab the object tag and you can put it anywhere:

I’m really loving gdgt, if they make it easier to add new companies and products it would be even better. From the discussion forums, I already helped sold RadTech ScreenSaverz, and I bought Beejive from info I got from there.

optimize your mac firefox (sqlite db)

A while ago I read a few blog posts about running the sqlite vacuum command on the Apple Mail internal databases to speed things up, and it dramatically sped up my Mail, I saw that Firefox also uses sqlite for a lot of stuff, so I tried this after upgrading to 3.5, and it definitely sped things up even further, so here it is, quite Firefox and run it and re-launch Firefox:

find ~/Library/Application\ Support/Firefox/ -name \*.sqlite -exec sqlite3 {} 'vacuum;' \;

For other OSes just change the find path to whatever you use, like ~/.mozilla for Linux.

After I did this I noticed my del.icio.us extension is a bit messed up, so I re-installed that add-on and everything’s fine.

List of Ruby stuff I use

RubyTrends is an interesting concept, the site is not all that polished but it works, I voted for most of the things that I use in my dev and consulting projects, here’s a skitch:

RubyTrends
Uploaded with plasq’s Skitch!

Chip in to help iPhone Dev Team to hack the 3GS

The DevTeam just released ultrasn0w last night, which makes unlocking the iPhone 3G with the 3.0 software possible and insanely easy. They’re now raising money for a few of their guys to get the new 3GS so they can work on jailbreaking and unlocking it, so if you care about this, chip in to the fund with the following widget:

selling our white 16GB unlocked iPhone 3G

If you’re interested, I jailbroke and unlocked our white iPhone 3G and they’re up on eBay here and here.

update: first one just sold, don’t miss out on the second one!

Wordpress image lazy-loading plugin

Recently I’ve been spending a lot of time on a new Rails project that deals with photos and it also uses a lot of jQuery. I love the jQuery image lazy load plugin and thought since my blog is pretty image-heavy, it’d benefit from it too. It’s trivial to use this plugin, but since my blog tracks Wordpress via Subversion, I wanted to do it as a plugin so I wouldn’t have to touch the Wordpress code. After 15 minutes or so I hacked together a plugin for this.

You can download it at the plugins directory at Wordpress. It’s also available on Github.

It took a day to get commit rights to the Subversion repo of Wordpress, since I use Git and had already pushed to Github, it was a bit of an annoyance to add the empty Subversion repo with git-svn. I won’t go into the steps, but this thread helped a lot. I must say that since it’s a shared Subversion repo, the revision number was 119065 to start with, so git svn fetch took a very long time. I spent almost an hour to get to the point so I could do git svn dcommit. And now every time I do dcommit it takes a while coz it pretty much has to compute the diffs between all the recent commits and apply them to Subversion. After using Git for so long I forgot how painful Subversion was.

Sand Harbor near Incline Village

We rode Northstar last Saturday and we went around the east side of the lake to go back to our cabin in South Lake. There were constructions on 28 and traffic was bad, so we stopped by Sand Harbor to take a few photos and picked up a few giant pine cones.

Couple drinking wine and chilling with their dog:

Sand Harbor (by Andrew Ng Images)

Pine cones:

Sand Harbor (by Andrew Ng Images)

These were both shot with a circular polarizer, graduated filters in ACR were used to adjust exposure of sky and beach. They were shot at f/22, at small apertures like this I see quite a bit of dusts in the frame, so dust removal was also done in ACR.

Rainbow and clouds over San Francisco

I bought a Hoya Pro1 Digital circular polarizer off eBay a while ago, but didn’t get a chance to try it until today. It rained last night and first half of the day, and then the sun came out. I drove up to Twin Peaks with my camera, tripod, and my 24-70/2.8L with the circular polarizer attached for a few shots. We were lucky enough to catch the rainbow, it was definitely an interesting sight.

Both of the images here were enhanced with the graduate filter in Adobe Camera Raw to bring out a bit more of the buildings, as they were both metering more to the sky. Exposure info can be seen at Flickr (you click on the image to go to its Flickr page, and then click on “more properties” in the EXIF info section). Black and white conversion was done by simply creating a Black & White adjustment layer.

Rainbow (by Andrew Ng Images)

Clouds (by Andrew Ng Images)

Photography and Snowboarding

Took a hiatus from blogging. I have been busy with photography and snowboarding, I also did some personal works outside of the commercial stuff. I picked up a B+W ND4 filter, and went to Ocean Beach to test it out, my original intention was to slow down the shutter speed so I can have a photograph of the moving sand when the waves hit, but I couldn’t quite get the shot I wanted. Instead I got a decent shot of the sunset:

Sunset at Ocean Beach (by Andrew Ng Images)

We are in Tahoe a lot this season, we took the cable car at Squaw:

Sqauw Valley Cable Car (by Andrew Ng Images)

We then went back there 2 weeks later to ride Squaw, Sherry on top of Siberia Bowl (shot with my Fuji point-and-shoot):

On top of Siberia Bowl at Squaw (by Andrew Ng Images)

We got back to the city and decided to do a short day trip to Napa earlier this week, on our way there we saw an empty cargo train stopped in the middle of the track, so we climbed up there for a few shots, here’s one:

empty cargo train in Napa (by Andrew Ng Images)

They wanted to do a jumping shot so I snapped one, Peju saw this photo on Flickr and they are going to put it up on their website.

Peju (by Andrew Ng Images)

Sherry made a video of herself snowboarding (and before you ask, no, it wasn’t shot with the 5d2):

I’ll get back into running and do more skating after the snowboarding season ends.

Lake Tahoe

Sherry went to Taipei for Lunar New Year so Bear and I spent 2 weeks at our cabin in Tahoe. I snowboarded most days and it was pretty awesome. Riding Sierra on weekdays means pretty much having the slopes to myself, we got huge amount of pow the first weekend and yesterday it started snowing again so I rode pow on my last day as well. This weekend and next week should be awesome so we will probably go there again.

On my way to the cabin I took a few snaps on 50 around Echo Lake, here’s one:

Echo Lake (by Andrew Ng Images)

The mountain closes at 4pm so I had about an hour and a half before sunset, and I ventured out around the lake to take some shots. I didn’t plan to take landscapes there so I left my tripod in SF, these shots were all taken at ISO settings just barely low enough for handheld.

I googled to find photo spots in Tahoe and the top spot was Emerald Bay, I took Bear there and got a decent shot of it:

Emerald Bay before sunset (by Andrew Ng Images)

Bear at Emerald Bay (by Andrew Ng Images)

The following day we went to Zephyr Cove, I think I was at around Zephyr Cove but wasn’t quite there. I went to this private convention center or something like that, had to hike a bit to get to the beach, but the sight was worth it:

Zephyr Cove (by Andrew Ng Images)

After that I drove back to the California side and stopped by Ski Run Blvd by Heavenly:

Ski Run Blvd (by Andrew Ng Images)

There was a public beach nearby, the sunset on the beach was spectacular, there were properties with backyards facing the beach. These shots were taken ISO3200, a bit noisy for colors (at least to me so I converted them to duotone:

LT (by Andrew Ng Images)

Beach (by Andrew Ng Images)

The next day I went down Luther Pass toward Kirkwood:

Luther's Pass (by Andrew Ng Images)

sunset @ intersection of 89 and 88 (by Andrew Ng Images)

I meant to stop by a Pony Express remount station that was used for only 5 weeks in Woodfords but it was getting dark so I turned back and headed back home.