johnk's blog

What's up with ADO?

Example of how to add a row to a db table, in ADO:

http://msdn.microsoft.com/en-us/library/ms677536(VS.85).aspx

Hispanic Surname Extraction with Regular Expressions

The challenge with these names is twofold. For one, they follow a European convention of using "of" to denote the family, e.g. De La Cruz. This is like the Irish O'Connor or Italian del Vecchio.

Symfony: SQL-Phobia

In the symfony book
there's an alarming bit of explanation:

Terse Javascript Alternations, and the Frameworks' Problem with SQL

Cool

Here's a snippet of javascript that breaks up a phone number into its parts, if it's formatted in the common formats.


	var cell = namesArray[rownum]['Cell'];

Strong Typing and Dynamic

I've been dabbling in Haskell, which is a strongly typed functional language.

Guantanamo Bay, Cuba

This is a map of Cuba and Guantanamo Bay NAS.

Sarah Palin Pork Barrel Calculator

Vice Presidential candidate Sarah Palin has recently been criticized for her pork-barrel spending. This web-calculator helps you figure out how extreme she is. (Calculator is on the full story.)

Purchasing Recommendations

This is my strictly commercial page. There are some links on here that pay off with an affiliate kickback, but these are genuine recommendations.

Playing the Subway Freshbuzz.com Scrabble Contest on Linux (by Changing the User Agent String)

I wanted to play the Subway Fresh Buzz Scrabble game, but the problem was, the website didn't support Linux.

Rearranging RAID 10 disks on a CERC 1.5/6ch

I recently posted this question on Experts Exchange. I'm still lost on this one. The CERC docs don't discuss how the controller makes decisions about how to build the array.

Possum Living - what a great book!

This is a fun book for hard-working "lazy" cheapskates.

http://www.f4.ca/text/possumliving.htm

Not Quite

I don't know what it is with college students these days. They were pretty illiterate when I went to school, but, today, they're displaying their ignorance online.

Learn Capitalism: Bank Implode-O-Meter

The Bank Implode-O-Meter is an interesting way to learn captialism: by watching it fail. This sector blog/news/community is crazy.

Lazy Evalutation in PHP (sorta)

This is a nice little example that will show you how to do something really useful and cool. It'll also show you how PHP kinda sucks:



<?php

function f( $x )
{
        say("function f called with $x...");
        return create_function( '', " return quote('$x'); ");
}

function quote( $s )
{
        say('quote called...');
        return '***'.$s.'***';
}

say('starting...');

$x = f( 'hello, world' );

say('$x defined as '.$x.'...');

print $x();

///// utility funcs
function say( $s ) { echo $s.'

'; }

The results look like this:

starting...

function f called with hello, world...

$x defined as �lambda_6...

quote called...

***hello, world***

Anti-Microsoft Post to Tech Republic

There was a thread on TR lionizing Bill Gates. As usual, a lot of incorrect information was being spread about the Richest Man On Earth. I had to post this corrective:

Gates and Microsoft have had some legal problems.

In the late 90s, there was the "permanent independent contractor" problem, when ICs and temps were working at MS for years, inside their offices, during regular business hours. This was against the law. (If you're in this situation, your "client" aka "boss" is breaking the law.)

See Vizcaino v. Microsoft.

Syndicate content