cacharbe's Journal http://use.perl.org/~cacharbe/journal/ cacharbe's use Perl Journal en-us use Perl; is Copyright 1998-2006, Chris Nandor. Stories, comments, journals, and other submissions posted on use Perl; are Copyright their respective owners. 2012-01-25T02:44:29+00:00 pudge pudge@perl.org Technology hourly 1 1970-01-01T00:00+00:00 cacharbe's Journal http://use.perl.org/images/topics/useperl.gif http://use.perl.org/~cacharbe/journal/ Weight Watchers Update http://use.perl.org/~cacharbe/journal/8589?from=rss <p>Since April 4th, 2002, I have lost:</p><p>*drum roll*</p><p>52 pounds.</p><p>I'm going to continue to work to keep it off. I feel healthier, I have more energy, and when a few of us opened our theatre last night (yes, I'm now officially an 'Associate Producer') people were more amazed by my weightloss than my improv.</p><p>*shrug*</p><p>Take the notice where you can, I suppose.</p><p> C-.</p> cacharbe 2002-10-25T12:48:48+00:00 journal People Actually DO THAT?!? http://use.perl.org/~cacharbe/journal/4115?from=rss The Current Process: <ol> <li>Users (from various locations) ftp files containing financial data to a central repository in Tab delimited files</li><li>Someone (by hand) opens these files one at a time and Copy/Pastes them into Excel.</li><li>Final combined file is saved out to One Big Frickin TAB file(tm)</li><li>Two tables are created prior from a Duns &amp; Bradstreet SAM dB export into MS Access</li><li>Using queries as filters, said TAB file is loaded into Access, filtered and exported back out</li><li>Final file is uploaded to the SAM database</li><li>Rinse-Repeat, once a week. Process takes 3-7 hours from start to finish</li></ol><p> WHAT?!? Who the hell thought that one up?!?</p><p> My solution? - Write 200 Lines of code (exactly, as a matter of fact) that: </p><ol> <li>Traverses the Dir tree (File::Find)</li><li>Validates each entry from the files against Enterprise SQL server tables (Automated / Scheduled Import into SQL tables from SAM)</li><li>Creates proper upload file and updates an 'unknown' table for unknown entries for user validation via a web based interface</li><li>One button click, or automated scheduled process (still in debate)</li><li>Total Time from start to upload - 34 seconds to 2 minutes, depending on number of files and file size.</li></ol><p> I can't stand inefficiency...It's chaps my ass.</p><p>C-.</p> cacharbe 2002-04-11T13:12:32+00:00 journal The Actor's Nightmare http://use.perl.org/~cacharbe/journal/4080?from=rss No kidding. Last night, I had the Actor's Nightmare. I'm moments before a show, I don't know my lines (I think we were doing "Long Days Journey into Night"), and my costuming is all wrong. The crowd is tiny, and I do believe we were on a train. erk, the Dinner Train theatre crowd. *Shudder*<p> As an actor and improviser for the past 10 years, I can honestly say I've only had this dream once maybe twice in the past. Wow. Weird. And I'm only directing a show right now, no lines to learn what so ever.</p><p> I now return you to your regularly scheduled programming.</p><p> I recently started reading Declan McCullagh's <a href="http://www.politechbot.com/">Politech</a> newsletter / email list. There are some well informed, well connected people on this list, that or they are a group of no-sh!t bullsh!tters. I suspect that it's the former, and look forward to good tech information as it relates politics in our current uncertain society.</p><p> <i>*sigh* Back to the grind.</i> </p><p> My task over the next few days is to determine whether Peter Tschipper's <a href="http://search.cpan.org/search?dist=MsgQ">MsgQ</a> module will be enough for a project that I am working on, or if I have to write a queuing system of my own devising. I'd like to make one that uses a mysql back end with possibilities of hooking to an IBM MQ series queue (yet another package to read through), so I'm thinking I might have to build onto what ever I find anyway.</p><p> No rest for the wicked. </p><p>C-.</p> cacharbe 2002-04-10T12:20:05+00:00 journal The Things we do for Love http://use.perl.org/~cacharbe/journal/4065?from=rss I was having lunch recently, when the topic of <a href="http://www.weightwatchers.com/">Weightwatchers</a> came up, and how one of the fellas at the table had lost 47 pounds in about six months.<p> I'm over weight, about 40 lbs heavier than when I started college, and I have been trying desperately to change that. His 47 lbs weight loss struck a chord.</p><p> I got home early from work that afternoon (it was the Thursday before Easter, we had the next day off, and the lunch was an appreciation lunch for a project roll out) and decided to surf a little cable while my laptop booted up.</p><p> *flip*Weight Watchers Commercial <br>*flip*Weight Watchers Commercial <br>*flip*Weight Watchers Commercial</p><p> *GAH*</p><p> And I proceeded to surf over to perl monks for some light reading. A few hours later my girlfriend got home from work (she works at a styling salon), and the first thing out of her mouth?</p><p> &lt;VOICE accent="Ben Stein"&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;Anyone?<br> &nbsp;&nbsp;&nbsp;&nbsp;Anyone?<br> &lt;/VOICE &gt;</p><p> "We had a new customer today, and she was really informative. She is a manager at the local Weight Watchers, and I want to go, but I don't want to do it alone."</p><p> OKAY!! I can take a hint!!</p><p> For those of you that don't know (but might care) WW uses a "POINTS" system to determine how much and of what you can eat in one day. Based on my weight, I can eat so many points in one day, each food item has a points value based on Dietary Fiber, Calories and Fat. But I'll be damned, all of their data is in booklets, in pamphlets and on a little slide-rule like device. </p><p> How archaic!</p><p> (Of course, they do have a subscription based on-line service, but I'm already shelling out $12 each for the two of us a week plus the money it's costing me to change my diet - cleaning out the fridge can be painful)</p><p> And so began the quest. I scoured the web for all of the data files and perhaps even a canned application to do all this data tracking and number crunching. I found one for the Palm (that has been 'decommisioned' thanks to the WW legal team - but that's another story) and it's related data files. Problem is, only one of us has a PalmPilot, and it ain't the girlfriend.</p><p> So the quest continued. I've found a large number of text files that contain most of the data I want, now it's a matter of parsing over 100 different files with different file formats, getting them into a data base with some kind of maintainable structure, and implementing an application that will track all the data on the intranet at home.</p><p>*sigh*</p><p> If she hadn't said something, I could have ignored the prompting, but no...</p><p> At least I can flex the geek(tm) by designing the application</p><p>C-.</p> cacharbe 2002-04-09T20:09:28+00:00 journal