From daniel at coder.com Fri Feb 1 15:20:54 2008 From: daniel at coder.com (Daniel R. Allen) Date: Fri, 1 Feb 2008 18:20:54 -0500 (EST) Subject: [kw-pm] MySQL/perl job listing Message-ID: A recruiter asked to post this job on our list. Please contact him with any questions. --- MySQL Expert Location: Kitchener/Waterloo Type: Permanent (contacts will also be considered) Job Overview: Our growing Waterloo client is looking for an experienced MySQL architect/designer. Requirements: Bachelor of Engineering, Computer Science degree or equivalent knowledge and experience. A minimum of 5 years experience with MySQL. Pervious experience in the Linux/UNIX environment. Experience architecting/designing databases (preferable MySQL). Experience with various aspects of database administration, including: fail-over planning, security, testing, troubleshooting and maintenance. Shell scripting (Bash, Batch and Perl). If interested please apply online at www.ianmartin.com Job # 08-0843 or email Jaime at robinsonj at ianmartin.com From roberthpike at yahoo.com Mon Feb 4 11:12:14 2008 From: roberthpike at yahoo.com (Robert Pike) Date: Mon, 4 Feb 2008 11:12:14 -0800 (PST) Subject: [kw-pm] Date difference Message-ID: <794494.51223.qm@web58708.mail.re1.yahoo.com> I was trying to use timelocal but ran into a few issues (from examples and discussions I got off the perl monks site). Can anyone suggest a good module or procedure to find the number of days from Jan 1, 1968 to a specified date? The database we use stores dates as an internal integer (represents number of days since 01/01/68) and I need to store that number as opposed to a more user-friendly date string. Thanks up front for any feedback. Rob ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping From ceeshek at gmail.com Mon Feb 4 14:59:10 2008 From: ceeshek at gmail.com (Cees Hek) Date: Tue, 5 Feb 2008 09:59:10 +1100 Subject: [kw-pm] Date difference In-Reply-To: <794494.51223.qm@web58708.mail.re1.yahoo.com> References: <794494.51223.qm@web58708.mail.re1.yahoo.com> Message-ID: On Feb 5, 2008 6:12 AM, Robert Pike wrote: > I was trying to use timelocal but ran into a few > issues (from examples and discussions I got off the > perl monks site). Can anyone suggest a good module or > procedure to find the number of days from Jan 1, 1968 > to a specified date? The database we use stores dates > as an internal integer (represents number of days > since 01/01/68) and I need to store that number as > opposed to a more user-friendly date string. Thanks up > front for any feedback. Hi Robert, The definitive date module would be DateTime, and the following gets you your answer. use DateTime; my $base = DateTime->new(year => 1968, month => 1, day => 1 ); my $date = DateTime->new( year => $year, month => $month, day => $day ); my $days = $date->delta_days($base)->in_units('days'); However, the older but still useful Date::Calc module has a method for you that makes it look much easier: use Date::Calc qw(Delta_Days); my $days = Delta_Days( 1968, 1, 1, $year, $month, $day); Although I haven't benchmarked it, my guess would be that Date::Calc will also be much faster in this case. Cheers, Cees Hek From daniel at coder.com Thu Feb 21 10:06:45 2008 From: daniel at coder.com (Daniel R. Allen) Date: Thu, 21 Feb 2008 13:06:45 -0500 (EST) Subject: [kw-pm] Tonight's Mongering plan: dinner at Ethel's Lounge Message-ID: For folks who aren't on the IRC channel: this month is again bad for our regular presenters, and so instead of a formal presentation, those of us who are in town and available will meet for dinner and drinks at Ethel's Lounge at the usual meeting time. That's 7pm, on King St. at Spring St., uptown. Hope you can make it. So: we've not had any technical talks since November. Fresh blood^W presenters are always welcome to talk about topics of interest. For March and onward: what's of interest? perl 5.10 updates? SQLite? Prototypes? Spend a bit of time on intro talks for teh student mongers-in-training? What do you think? -Daniel