Friday, January 27, 2012

Wednesday, January 25, 2012

Lisp in ruby

Lisp in ruby. Short and sweet.

Friday, January 13, 2012

What the bagel man saw

Interesting story, but the conclusion might suffer from survival bias - is the number of dropped customers statistically significant?

Tuesday, January 10, 2012

Random notes on WebGL

Notes on WebGL.

SML vs OCaml

I was learning SML over the holidays. Neat language.

Here's a syntax comparison between it and OCaml.

Tuesday, December 6, 2011

Fixing IE PNG opacity

So you've got a sweet jQuery-based animation working in Firefox and Chrome and all that, and you check in IE, and, in horror, you find that the opacity animations on PNG background images are showing this ugly black halo. What to do?

Easiest fix:

//say this is your initial style
.thing {
background:url(images/translucent.png) no-repeat;
filter:alpha(opacity=50);
opacity:0.5;
}

//add this to the stylesheet
.thing {
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(
src=/path/to/images/translucent.png) alpha(opacity=50);
background:none\9;
}

(I wrapped the one line to fit in the blog, but the filter declaration should be all in one line)

Just make sure you use an absolute image path on the filter, not a relative one. Tweak the opacity to your liking.

When animating, jQuery is smart enough to not clobber the AlphaImageLoader filter when it changes the opacity one.

Monday, October 17, 2011

Tuesday, October 11, 2011

On Dart

So people are going bananas over this new language that Google says will supposedly replace Javascript.

What I'm wondering is: what can I do with this new language that I cannot do with Javascript? Can I compete with native mobile apps? Can I compete with the Flash 11 API? Flash 10? 9? 8? Or does it only provide me with yet-another-slightly-different-syntax-to-do-what-I-can-already-do?

Tuesday, October 4, 2011

On Node.js

Some trolling on Node.js. I remember having a convo with Dave S. about exactly this a few weeks ago.

I don't know about slow Fibonacci functions, but I could totally see a misguided soul writing yet-another-MVC-framework that used require (a blocking function in Node.js) in the wrong place.

Thursday, August 11, 2011