Being wrong is not a…
Being wrong is not a bad thing. It means there's one less thing you can try before being right. Being wrong and giving up… is a bad thing.
When in doubt check the…
When in doubt check the assumptions on which you base your assumptions. Poisoned roots sprout no leaves. When the problem speaks… Listen.
Sun Kissed Puppy
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
When searching for problems in…
When searching for problems in code and in life remember to look up and down. Floor, ceiling, call stack. All places we forget to look. Do.
Ignoring a problem is rarely…
Ignoring a problem is rarely the answer. A wise man takes the first step quickly, disarming the problem, lest a mole hill become a mountain.
Sometimes the problem IS the…
Sometimes the problem IS the network. Just don't let it go to your head when it is. Next time it probably won't be 🙂