Archive for August, 2008

i hate working with dates

This little snippet gets all the days in a month, and groups them by week.
<?php

    error_reporting(E_ALL);

    // Return an array of all the days in a month grouped by week number
    // (Sunday is considered to be the first day of the week)
    function weeksInMonth($month, $year)
    {
        [...]

Posted by Matthew on August 21st, 2008

Filed under php, programming | No Comments »

K100D Gallery Added

Just added a couple of quick photos to the k100d gallery. Really wish I could have speant longer watching the surfers near The Spit
Camera is Pentax K100D 6MP with a Sigma 70-300 / Sigma 28-70 F2.8

.thumbnail
{
float: left;
width: 140px;
height: 140px;
padding: 5px 0px 0px 5px;
text-align: center;

font-size: 0.8em;
}

.thumbnail img
{
border: 0;
}

.thumbnail a
{
text-decoration: None;
}

20080713 Springbrook.jpeg
(924 x [...]

Posted by Matthew on August 10th, 2008

Filed under random | No Comments »