OpenDNS Needs Coders
February 25, 2008 @ 9:52 am · Filed under PHP, Web 2.0
Hey, if you are a PHP coder who is looking to work at a hot startup, check out these jobs at OpenDNS. This is a great company that provides a really great service.
February 25, 2008 @ 9:52 am · Filed under PHP, Web 2.0
Hey, if you are a PHP coder who is looking to work at a hot startup, check out these jobs at OpenDNS. This is a great company that provides a really great service.
January 4, 2008 @ 5:19 pm · Filed under PHP, Web 2.0, Web Development
I went to another SF PHP Meetup last night. As always, it was highly entertaining, and well worth staying in the city until 10 PM. I love the fact that we host these at CNET now. Big thanks to Tougeron for running these meetings. As you can see from Touge’s account, Terry was in full effect (that’s a good thing). Next time, Mager should come instead of watching VT getting their ass kicked.
December 30, 2007 @ 8:02 pm · Filed under Algorithms, PHP
One of an occasional series of posts on PHP algorithms. I found this originally at United Scripters, and bookmarked it for some reason.
Code
function bubbleSort($array=array()/*could have been a pointer*/){
$lastIndex=sizeof($array)-1;
while(true){
$newStartIndex=false;
$newLastIndex=0;
for($j=($startIndex)?$startIndex:1; $j<=$lastIndex; $j++){
if( $array[$j-1] > $array[$j] ){/*SWAP:*/
$temp=$array[$j-1];
$array[$j-1]=$array[$j];
$array[$j]=$temp;
if($newStartIndex===false){$newStartIndex=$j-1;};
$newLastIndex=$j-1;
};
}
if($newStartIndex===false){return $array;};
$startIndex=$newStartIndex;
$lastIndex=$newLastIndex;
}
/* keep this comment to reuse freely:
Orwant, Hietaniemi, Macdonald algorithm as Php implemented by:
http://www.unitedscripters.com */
}
"Nihil est incertius vulgo"