-
Recent Entries
- Debian, ProFTPD, FTPS, TLS, SSL, and SSL23_GET_SERVER_HELLO:unknown protocol Recently I needed to test against an FTPS server. ... December 27th, 2011 No comments
- osx terminal taking seconds to show a prompt? You can likely fix it with these simple instructions. November 1st, 2011 3 comments
- Can’t use esc key in OSX Lion? Most likely this will help your escape key woes but ... October 30th, 2011 One comment
- Grace Marie Kelly October 1st, 2011 6 comments
- Why is uams_dhx2.so missing from netatalk? If you're finally getting around to making your linux based ... August 31st, 2011 2 comments
-
Recent Comments
- YOU ARE AWESOME! ... On Can’t use esc key in OSX Lion?
- So many people want to know how to write a daemon script but almo ... On As Close to A Real Daemon As Bash Scripts Get
- This actually is a function of the shell login, not the terminal ... On osx terminal taking seconds to show a prompt?
- Switch to xterm ;) ... On osx terminal taking seconds to show a prompt?
- Very very very usefull!!! Thanks a lot ... On Why is uams_dhx2.so missing from netatalk?
Kebabs, they’re what’s for dinner
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
@apokzen: Integrity is not having nothing to be embarrassed about, but admitting to that which we are ashamed and working constantly for improvement.
@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?



