Jue's Blog

Jul 14, 2010

An American Dinner

Dinner
from Dave’s Flickr

I just discovered the joy of marinating meat. This first attempt is inspired by the motherland, although the real Chinese would never cook chicken this way. Same goes for the Thai-style stir-fry, which is Thai only in style.

Be assured, though, that both came out tasty. (more…)

Jul 5, 2010

Noodles with pork broth

Noodles with pork neck bone broth

Another of my mom’s recipes. The noodles are quick to make, but the broth takes a while to simmer. (more…)

Jun 29, 2010

On Google Buzz now…

In case you actually follow this blog, just a note that I’ve pretty much consolidated my entire online presence to Google Buzz. Posts on this blog will be fed into my Buzz, and anything I tweet will also hit Buzz first. Some thoughts and links, additionally, will only live on Buzz.

Jun 21, 2010

Opticrop: Content-aware Cropping with PHP and ImageMagick

Opticrop is a PHP script I wrote to crop a thumbnail of a specific width and height from a full-sized image.

Unlike most cropping routines out there, Opticrop uses edge-detection to find the most “interesting” part of the image to crop, so you won’t get a useless thumbnail just because the top-left corner of your image happened to be a big patch of featureless sky. This post is a big-picture discussion of my method. If you just want the script, see the post on Opticrop’s usage and implementation. (more…)

Opticrop: Usage and Implementation

Opticrop is a PHP script I wrote to crop a thumbnail of a specific width and height from a full-sized image.

Unlike most cropping routines out there, Opticrop uses edge-detection to find the most “interesting” part of the image to crop, so you won’t get a useless thumbnail just because the top-left corner of your image happened to be a big patch of featureless sky. This post is an overview of usage and implementation. For a more general discussion, see my post on the methods behind the script. Also check out the live demo of Opticrop, with a slick jQuery interface. You can also get the Opticrop code on Github. (more…)