Posted by kiwinewt on 16 July, 2009
For future reference really:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Controller::loadModel(’Student’);
$students = array();
foreach ($courseStudents as $crsstd) {
$students[] = array($crsstd, $this->Student->find(’first’, array(’conditions’ => array(’Student.id’ => $crsstd[’student_id’]))));
}
function compare($x, $y) {
if ( $x[1][’Student’][’lastName’] == $y[1][’Student’][’lastName’] )
return 0;
else if ( $x[1][’Student’][’lastName’] < $y[1][’Student’][’lastName’] )
return -1;
else
return 1;
}
usort($students, ‘compare’);
Filed under: Code No Comments »
Posted by kiwinewt on
Brenda Wallace:
New Zealand government censoring our Internet access is in today’s Herald http://is.gd/1A535
Nate Walker:
What the hell??? They shouldnt be allowed to do this. If they must censor, government-based internet censorship should be open and people should be able to know what is on the list and there should be a process to get oneself removed [...]
Filed under: Technology No Comments »
Posted by kiwinewt on 12 July, 2009
Heh. Just turned over the compost bin. After getting through the newly added stuff, the compost underneath looked GOOOOOD! And by the time spring comes around I should actually have good compost to dig in to the soil. Huzzah!
I would post pics, but I forgot to take the camera out with me… And we are [...]
Filed under: Garden No Comments »
Posted by kiwinewt on 6 July, 2009
I have to sell on my new princess. I have done a heap of repairs to her so that she is practically running like new, but please, help support the cause and pass this on to anyone who may be interested in the slightest?
Thanks
http://www.trademe.co.nz/Browse/Listing.aspx?id=228686319
Filed under: Linkage, Trains No Comments »