From faber at linuxnj.com Wed Jul 2 10:15:52 2008 From: faber at linuxnj.com (Faber J. Fedor) Date: Wed, 2 Jul 2008 13:15:52 -0400 Subject: [ABE.pm] Tonight? Message-ID: <20080702171552.GA29616@neptune.faber.nom> The library at 6 PM, right? -- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701 http://www.linuxnj.com From perl.abe at rjbs.manxome.org Wed Jul 2 10:24:53 2008 From: perl.abe at rjbs.manxome.org (Ricardo SIGNES) Date: Wed, 2 Jul 2008 13:24:53 -0400 Subject: [ABE.pm] Tonight? In-Reply-To: <20080702171552.GA29616@neptune.faber.nom> References: <20080702171552.GA29616@neptune.faber.nom> Message-ID: <20080702172453.GA5106@cancer.codesimply.com> * "Faber J. Fedor" [2008-07-02T13:15:52] > The library at 6 PM, right? That's right! Thanks for reminding me to remind everyone. :-) Tonight! 18:00! BAPL.org! See you there. I will talk about email and then we will consume mass quantities. -- rjbs From faber at linuxnj.com Fri Jul 18 16:39:35 2008 From: faber at linuxnj.com (Faber J. Fedor) Date: Fri, 18 Jul 2008 19:39:35 -0400 Subject: [ABE.pm] ping! Message-ID: <20080718233935.GB1173@neptune.faber.nom> -- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701 http://www.linuxnj.com From perl.abe at rjbs.manxome.org Fri Jul 18 17:09:12 2008 From: perl.abe at rjbs.manxome.org (Ricardo SIGNES) Date: Fri, 18 Jul 2008 20:09:12 -0400 Subject: [ABE.pm] ping! In-Reply-To: <20080718233935.GB1173@neptune.faber.nom> References: <20080718233935.GB1173@neptune.faber.nom> Message-ID: <20080719000912.GA16259@cancer.codesimply.com> * "Faber J. Fedor" [2008-07-18T19:39:35] > (ping) Weird. Never did get the other msg you said you sent. I should move our list to Listbox. -- rjbs From perl.abe at rjbs.manxome.org Wed Jul 30 07:02:21 2008 From: perl.abe at rjbs.manxome.org (Ricardo SIGNES) Date: Wed, 30 Jul 2008 10:02:21 -0400 Subject: [ABE.pm] patting my younger self on the back: Number::Tolerant Message-ID: <20080730140221.GB20796@knight.local> First off: Tom, if you upgrade Number::Tolerant without testing, things might break. Okay, now: I'm working on doing some generic data validation work. To greatly simplify, I'm writing a schema language to describe the common data types found in JavaScript, Perl, PHP, Python, Ruby, and so on. I'm going to use it mostly to validate JSON and YAML encoded data. Simplified, some entries can contain things like this: array: size: { min: 10, max: 20 } num: range: { min-ex: 0, max: 1 } So I needed a way to convert these ranges into validators (here, closures) that would do the validation. It started out as lame but easy when I only had "min" and "max" but when I needed exclusive endpoints (in the second example, 0 is not okay, but 0.000000000000000000000000001 is) it got really obnoxious and tedious. Then I realized that this was solved! I used Number::Tolerant, made a bunch of ranges like (x >= 10, x <= 20) or (x > 0, x <=1) and fed them to List::Util::reduce to find their total intersection. Anything in that intersecting range was a valid number. Nice! -- rjbs From perl.abe at rjbs.manxome.org Wed Jul 30 06:57:11 2008 From: perl.abe at rjbs.manxome.org (Ricardo SIGNES) Date: Wed, 30 Jul 2008 09:57:11 -0400 Subject: [ABE.pm] mcgrady's, aug 6 Message-ID: <20080730135711.GA20796@knight.local> I'll see you guys a week from tonight at McGrady's. Unless someone else plans to get there earlier, I'll show up around 18:00. -- rjbs