Heads Up!

It took me 2 hours to get to work today so I am a little shook up. The work on the second Narrows Bridge has started a new phase in which the workers are raising and attaching sections of the roadway to the suspension cables. It is interesting to say the least but I really need to start taking the ferry. I will try and get some pictures up soon.

Oh and I need to give you guys all a heads up that we are disconnecting our cell phone service effective immediately. We paid the final bill and decided its a luxury we can live without so all of you will need to call the house number if you want to get a hold of us. If we don’t answer, please leave a message. This will save us about $105.00 a month. There isn’t a crisis or anything but our goal is to have Crystal stay home with the little guy and this will help gear us in that direction.

I have been working hard on new stuff at work. This time it will be for all to examine. I am building a tournament ladder for the website which will employ the stored procedure I posted about a few days ago. My previous task on making that front and back end submission form with the administrative tool is almost done. I spent last week optimizing the tables and queries. Its amazing what proper indexing can do for you! Our testers have also had a whack at it and I think we’ve got it polished.

I found plenty of JavaScript samples online for this next thing but nothing in PHP. Here is a little PHP function I put together to add the st, nd, rd, and th on numbers like 1st, 2nd, 3rd and 4th:

public function add_ordinals($number)
    $ordinals = array("th","st","nd","rd");

    $i = $number % 10;
    if(($i > 3) || (floor($number % 100 / 10) == 1)) {
	  $number = $number."".$ordinals[0]."";
    else {
	  $number = $number."".$ordinals[$i]."";

    return $number;

Some modulus fun! :)

This entry was posted in Uncategorized. Bookmark the permalink.

One Response to Heads Up!