Natalie Portman gangsta rap

Holy crap, this is funny.

Natalie Portman gangsta rap . . . → Read More: Natalie Portman gangsta rap

Multiple dispatch in Ruby

I’ve been reading recently about Common Lisp and CLOS and I’ve been intrigued by their radically different approach to OO and some of their interesting features, one of which is multiple dispatch. Most mainstream OO languages don’t support multiple dispatch natively although one can sometimes pull it off with tricks (e.g..: for C++, check out More Effective C++ from Scott Meyers or Alexandrescu’s Modern C++ Design or this article from Dr. Carlo Pescio in C++ Report).

Ruby doesn’t support multiple dispatch natively, but there’s an add-on called the Multiple Dispatch Library (multi) that let’s you do it and it’s a snap to use. Even a Rube n00b like me had it going in 5 minutes…

Continue reading Multiple dispatch in Ruby

Accessing C functions from CLISP

It’s pretty impressive how easy it is to call C functions from Lisp, once you know the proper FFI voodoo. For example, this is how I accessed the standard C library function time from CLISP on my Linux system.

(ffi:def-call-out time
(:arguments (tloc (ffi:c-ptr-null ffi:int) :in))
(:library “/lib/libc.so.6″)
. . . → Read More: Accessing C functions from CLISP

New Series 2 TiVo box with 2 Tuners and Built-In Ethernet

There’s a new TiVo box on the block:

New Series 2 TiVo box with 2 Tuners and Built-In Ethernet

There’s not a ton of info available, except that Amazon lists these product features:

Does not support recording from two digital cable or satellite channels at once
Record shows from two basic cable channels, or one basic cable and . . . → Read More: New Series 2 TiVo box with 2 Tuners and Built-In Ethernet

TurboTax 2005 for Mac sucks

TurboTax on the Mac seems to be a big pile of garbage.

First as I was importing my investment income from the Internet, I noticed that it downloaded all the correct amounts from my institution but then added duplicate entries for each of my mutual funds with completely bogus amounts of additional income that I have never . . . → Read More: TurboTax 2005 for Mac sucks

Bay Area housing market in decline?

It’s become apparent that properties are staying on the market much longer than they used to – weeks and sometimes months. But so far, prices have either dropped a little or not at all it seems, depending on where you look.

Continue reading Bay Area housing market in decline?

Patching Bot Check plugin for WP 2.0

Having upgraded to WordPress 2.0 the other day, I knew that something had gone horribly wrong with the Bot Check plugin when I logged into my dashboard today and saw 33 comments in the moderation queue. A quick test revealed of course that Bot Check was accepting comments without the numeric code.

I found the solution in comment 87 on the Bot Check page.

Continue reading Patching Bot Check plugin for WP 2.0