Monday, June 7, 2010

Alimony Countdown

1 Dec-09
2 Jan-10
3 Feb-10
4 Mar-10
5 Apr-10 *House Sold
6 May-10
7 Jun-10
8 Jul-10
9 Aug-10
10 Sep-10
11 Oct-10
12 Nov-10
13 Dec-10
14 Jan-11
15 Feb-11
16 Mar-11
17 Apr-11
18 May-11
19 Jun-11
20 Jul-11
21 Aug-11
22 Sep-11
23 Oct-11
24 Nov-11
25 Dec-11
26 Jan-12
27 Feb-12
28 Mar-12
29 Apr-12
30 May-12
31 Jun-12
32 Jul-12
33 Aug-12
34 Sep-12
35 Oct-12
36 Nov-12
37 Dec-12
38 Jan-13
39 Feb-13
40 Mar-13
41 Apr-13
42 May-13
43 Jun-13
44 Jul-13
45 Aug-13
46 Sep-13
47 Oct-13
48 Nov-13
49 Dec-13
50 Jan-14
51 Feb-14
52 Mar-14
53 Apr-14
54 May-14
55 Jun-14
56 Jul-14
57 Aug-14
58 Sep-14
59 Oct-14
60 Nov-14

The purpose of alimony was to provide my ex with an education, so she could get a better job.  She chose to spend the $60,000+ on trips across the country to interfere with my custody, lawyers, a new car, rent, and bleach for her hair.  She is a fool, and a waste, and deserves everything that is coming to her.  We reap what we sow.

Saturday, June 5, 2010

PHP Sort Array of Objects pass Property and Sort Order

    class SortObjectArray

    {

        private $mPropertyToSortOn = "";

        private $mSortOrder = "";

        

        public function Sort($ObjectArray, $propertyToSortOn, $sortOrder)

        {

            $this->mPropertyToSortOn = $propertyToSortOn;

            $this->mSortOrder = $sortOrder;

            

            usort($ObjectArray, array("SortObjectArray","CompareObjects"));

            

            return $ObjectArray;

        }

        

        private function CompareObjects($firstObject, $secondObject)

        {

            $objectProperty = $this->mPropertyToSortOn;

            

            if ($firstObject->$objectProperty == $secondObject->$objectProperty) 

            {

                return 0;

            }

            

            if ($this->mSortOrder == "asc")

            {

                return ($firstObject->$objectProperty < $secondObject->$objectProperty) ? -1 : 1;

            }

            else

            {

                return ($firstObject->$objectProperty < $secondObject->$objectProperty) ? 1 : -1;

            }

        }

    }

Check This Out!

More Links to Good Information