Well this weekend I am here in at the GooglePlex at the Google Mentor Summit. Until two days ago – I had no ideas of the purpose of this meeting – but I knew it would be cool.
But as I traveled to come her – it dawned on me that the essense of the meeting is talking cross-project. I want to make sure to get contact with OLAT, Moodle, DSpace Drupal, Fedora, and Others. We have a LMS/CMS meeting Sunday morning – the discussions has already started with Moodle, DSapace, Sakai and OLAT.
Idea: We need a way for folks to have a badge for paying for open source software. Dang I have so little time!
It is amazing when smart people get in the same space and then start talking.
Daily Archives: October 25, 2008
Comparing dates in PHP coming from MySql
Just a little nugget:
if (strtotime($php_row->end_date) < time()) { $php_bgcolor = $php_record_row_expired_bgcolor; }
My version:
print "Updated at:".$track->data(updated_at)."\n"; print "File:".strtotime($track->data(updated_at))."\n"; print "now:".time()."\n"; $diff = time() - strtotime($track->data(updated_at)); print "Diff:".$diff; $count = $track->data(count); if ( ! isset($count) ) $count = 0; // De-bounce if ( $diff > 5 ) { $count = $count + 1; $track->setall( array( "count" => $count ) ) ; $track->update(); }
From: http://www.issociate.de/board/goto/926394/Comparing_PHP_Dates_with_MySQL_Dates.html