Lucassmith - lucassmith.name - ls.n

Latest News:

Satyen's Chai 29 Dec 2010 | 07:00 pm

This chai recipe is courtesy of my coworker, Satyen Desai. He was kind enough to bring a pot of this into the office. Chai has forever been changed for me. Ingredients (for one cup) 1/2 cup water 2...

I want my touch screen 22 Oct 2010 | 02:33 am

At yesterday's Apple event "Back to the Mac", the point was stated and reiterated that they opted not to make the laptop screen a (multi) touch interface. The reason? ergonomics. After a while, your a...

Liam quotes of the day 24 Dec 2009 | 05:04 pm

I want to break it into five pieces. — in reference to many many things. I have hummus in my nose. — while being rocked to sleep. And my personal favorite needs a little context. The metal drum in o...

CommonJS require(..) API is a poor fit for client side JS 25 Nov 2009 | 07:54 pm

This post is in response to David Flanagan's client side JS implementation of CommonJS's module pattern/API. There are several performance considerations with script/module/dependency loading. scrip...

Test if a font is installed via JavaScript 27 May 2009 | 03:45 am

There are a few threads available on the web with regard to how to test if a font is installed on a client machine, but I'm not satisfied with any of those that I found. The reason being that they eac...

Factory/Constructor that accepts N args 21 May 2009 | 02:38 pm

I'm a big fan of the Factory/Constructor pattern in JavaScript. But this runs into a problem when you want your constructor to accept any number of arguments. Apply invocation vs Constructor invocat...

Emelia Isa Lorraine Smith 19 Feb 2009 | 04:15 pm

I became a papa again on Sunday. At 1pm, Feb 15th 2009, my second child was born. My daughter, Emelia Isa Lorraine. The two births were very different. Where Liam was 7lbs 14oz, Emelia was 8lbs 10oz...

Seven things 10 Jan 2009 | 08:20 pm

Dear Ryan. You suck. I've been tagged, so on with the show. Seven things you (probably) don't know about me I've taught a little bit of Lindy Hop and/or East Coast swing to thousands of people. For...

Another js function to insert commas in numbers 15 Dec 2008 | 06:52 pm

This evening's academic exercise was to write your basic 1234 => 1,234 function as terse as possible, and without a loop. At first I thought I could do it with just a clever regex, and maybe I could h...

Add business days to a Date 19 Nov 2008 | 05:11 pm

This morning in ##javascript, a visitor asked how to add n business days to a Date instance. Call me a sucker, but I love little tasks like this. Maybe I just get antsy when I smell a potential modulo...

Recently parsed news:

Recent searches: