Kebabs, they’re what’s for dinner

20110611-054525.jpg

must destroy tennis ball

20110611-054349.jpg

Sun Kissed Puppy

20110610-103937.jpg

AirPort ♡ Free IPV6 From TunnelBroker.net

After signing up for a (free) account on tunnelbroker.net and creating a (free) tunnel with my ipv4 address as the endpoint I was able to easily configure my AirPort Extreme. View your tunnel, then click on “Example Configurations” and then “Apple Airport.”

In TCP/IP prefs for my MacBooks Network/AirPort Preferences I have “Configure IPv6″ set to “Automatically” Then BOOM “ping6 en.blog.wordpress.com” works just fine.

IPv6 without needing my ISPs support and it didn’t cost me an extra dime. Happy World IPv6 Day

Longest Common Prefix Between Two Strings

While working on a “for fun” side project I needed to get the longest common prefix of two arbitrary strings. Since I didn’t find what I was looking for in the PHP string functions I made my own. And for some perverse reason i decided to see what the fewest number of lines I could do it in was without displaying warnings…

I got down to a one line function, and managed to avoid using an @ to silence anything…


function str_common_prefix( $s1, $s2, $i=0 ) {
return ( !empty($s1{$i}) && !empty($s2{$i}) && $s1{$i} == $s2{$i} ) ? str_common_prefix( $s1, $s2, ++$i ) : $i;
}

I’d be interested to see what others come up with.

I approve, Mr. Kovács, I approve

This list… Know it… Live it… Love it…

Via

Via

@apokzen: Integrity is not having nothing to be embarrassed about, but admitting to that which we are ashamed and working constantly for improvement.

Off to do the WP5k

Out in Half Moon Bay :)

Brisket, it’s what’s for dinner.

20110402-111750.jpg

@apokzen: Your answers are a function of the questions that you ask. When you don’t like your answers it is, perhaps, time to ask different questions?