February 2010
17 posts
Feb 28th
2 notes
Feb 25th
13 notes
Feb 25th
Feb 25th
2,219 notes
Modularizing jQuery's $(document).ready()
While domready-type events are a welcome addition to modern JS programming, many people abuse them by dumping all of their code in there. This keeps the script overhead of your pages high when often pages only need certain functionality. There are plenty of approaches to modularizing you initialization code, but a simple approach built off of <body> ids is my go-to method. The first step...
Feb 19th
1 note
Feb 14th
I read through Tom Colicchio’s Thinking Like a Chef this week, and the one thing that really stuck out to me is his aversion to high heat cooking. For a lot of people (myself included) the zenith of protein preparation is a ripping-hot cast iron skillet and a ride in the oven to finish. This high heat cooking imparts a great crust on the meat but at what cost? Colicchio is a firm believer...
Feb 11th
Feb 11th
3 notes
Feb 9th
Feb 7th
88 notes
Feb 6th
1 note
Approximating resizeComplete in jQuery
Most browsers fire resize events continuously as the viewport is scaled. This is handy when your interface needs to change responsively during a resize, but a PITA if you only need to perform a single action when it’s “done.” Even worse is when that action is resource-intensive (such as an animation), as it can render your resize choppy or unbearable. I was faced with this very...
Feb 5th
Feb 5th
22 notes
Potato Risotto
Last night I made and fell in love with potato “risotto,” a side dish found in this month’s Bon Appétit magazine. It requires a bit of knife work to get a uniform brunoise out of the potatoes, but the contrast of textures and flavor are both well worth the effort. 1 tbsp butter 1 cup finely diced onion 1 lb yukon gold potatoes brunoised 1/8 tsp cayenne pepper pinch...
Feb 4th
3 notes
I too have thoughts on the iPad
I’ve given myself some time to mull over our latest gift from benevolent leader and arrived at this: bad name, exciting thesis, and nascent execution. I’m happiest for Cassie, as come June she’ll have a shiny new iPad that fulfills her every need as a simple and inexpensive internet machine. I don’t feel like the iPad in its current form is compelling enough to steal me...
Feb 2nd
Feb 1st
Tuning →
bobulate: Kathleen Mallery on finding the best piano: “What’s the best piano out there?” I asked. The piano tuner’s eyes sparkled. ”I always get asked this question.  Everyone always wants to know — what’s the best piano. And I always say, the piano that’s in your living room.” ”It’s all about getting it tuned right, bringing out its own sound and then when you play, you play the piano that’s...
Feb 1st
16 notes