From fiedlert at gmail.com Wed Nov 8 10:26:16 2006 From: fiedlert at gmail.com (Ted Fiedler) Date: Wed, 8 Nov 2006 13:26:16 -0500 Subject: [ABE.pm] beer? wednesday? nov 1 In-Reply-To: <20061028220535.GA28449@zodiac.codesimply.com> References: <20061028220535.GA28449@zodiac.codesimply.com> Message-ID: <814422ce0611081026k44c83624y6822899a03813c68@mail.gmail.com> are we on for tonight? Ted On 10/28/06, Ricardo SIGNES wrote: > > I should have sent this sooner, but I'm in Florida. I am visiting my in-laws, > so you can imagine that when I arrive back in ABE, I will be ready to drink > beer. I get back Wednesday afternoon, just in time to take a shower and walk > up to Machts Gut for another good burger and their cheap beer. > > Who else is in? > > -- > rjbs > _______________________________________________ > ABE-pm mailing list > ABE-pm at pm.org > http://mail.pm.org/mailman/listinfo/abe-pm > -- "You are never dedicated to something you have complete confidence in. No one is fanatically shouting that the sun is going to rise tomorrow. They know it's going to rise tomorrow. " -- Robert M Pirsig From faber at linuxnj.com Wed Nov 8 10:31:30 2006 From: faber at linuxnj.com (Faber Fedor) Date: Wed, 8 Nov 2006 13:31:30 -0500 Subject: [ABE.pm] beer? wednesday? nov 1 In-Reply-To: <814422ce0611081026k44c83624y6822899a03813c68@mail.gmail.com> References: <20061028220535.GA28449@zodiac.codesimply.com> <814422ce0611081026k44c83624y6822899a03813c68@mail.gmail.com> Message-ID: <300ccfa50611081031m58204b79r59b9b5b45c8236b7@mail.gmail.com> You mean on for last week or did you guys reschedule? On 11/8/06, Ted Fiedler wrote: > are we on for tonight? > > Ted > > On 10/28/06, Ricardo SIGNES wrote: > > > > I should have sent this sooner, but I'm in Florida. I am visiting my in-laws, > > so you can imagine that when I arrive back in ABE, I will be ready to drink > > beer. I get back Wednesday afternoon, just in time to take a shower and walk > > up to Machts Gut for another good burger and their cheap beer. > > > > Who else is in? > > > > -- > > rjbs > > _______________________________________________ > > ABE-pm mailing list > > ABE-pm at pm.org > > http://mail.pm.org/mailman/listinfo/abe-pm > > > > > -- > "You are never dedicated to something you have complete confidence in. > No one is fanatically shouting that the sun is going to rise tomorrow. > They know it's going to rise tomorrow. " > -- Robert M Pirsig > _______________________________________________ > ABE-pm mailing list > ABE-pm at pm.org > http://mail.pm.org/mailman/listinfo/abe-pm > > -- Regards, Faber Fedor Linux New Jersey, Inc. 908-320-0357 http://www.linuxnj.com From fiedlert at gmail.com Wed Nov 8 10:36:12 2006 From: fiedlert at gmail.com (Ted Fiedler) Date: Wed, 8 Nov 2006 13:36:12 -0500 Subject: [ABE.pm] Fwd: beer? wednesday? nov 1 In-Reply-To: <300ccfa50611081031m58204b79r59b9b5b45c8236b7@mail.gmail.com> References: <20061028220535.GA28449@zodiac.codesimply.com> <814422ce0611081026k44c83624y6822899a03813c68@mail.gmail.com> <300ccfa50611081031m58204b79r59b9b5b45c8236b7@mail.gmail.com> Message-ID: <814422ce0611081036p2e729fedif8b473850c09f63f@mail.gmail.com> Im an idiot. I lost a week somehow. ---------- Forwarded message ---------- From: Faber Fedor Date: Nov 8, 2006 1:31 PM Subject: Re: [ABE.pm] beer? wednesday? nov 1 To: abe-pm at mail.pm.org You mean on for last week or did you guys reschedule? On 11/8/06, Ted Fiedler wrote: > are we on for tonight? > > Ted > > On 10/28/06, Ricardo SIGNES wrote: > > > > I should have sent this sooner, but I'm in Florida. I am visiting my in-laws, > > so you can imagine that when I arrive back in ABE, I will be ready to drink > > beer. I get back Wednesday afternoon, just in time to take a shower and walk > > up to Machts Gut for another good burger and their cheap beer. > > > > Who else is in? > > > > -- > > rjbs > > _______________________________________________ > > ABE-pm mailing list > > ABE-pm at pm.org > > http://mail.pm.org/mailman/listinfo/abe-pm > > > > > -- > "You are never dedicated to something you have complete confidence in. > No one is fanatically shouting that the sun is going to rise tomorrow. > They know it's going to rise tomorrow. " > -- Robert M Pirsig > _______________________________________________ > ABE-pm mailing list > ABE-pm at pm.org > http://mail.pm.org/mailman/listinfo/abe-pm > > -- Regards, Faber Fedor Linux New Jersey, Inc. 908-320-0357 http://www.linuxnj.com _______________________________________________ ABE-pm mailing list ABE-pm at pm.org http://mail.pm.org/mailman/listinfo/abe-pm -- "You are never dedicated to something you have complete confidence in. No one is fanatically shouting that the sun is going to rise tomorrow. They know it's going to rise tomorrow. " -- Robert M Pirsig From rjbs-perl-abe at lists.manxome.org Wed Nov 8 11:12:29 2006 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Wed, 8 Nov 2006 14:12:29 -0500 Subject: [ABE.pm] Fwd: beer? wednesday? nov 1 In-Reply-To: <814422ce0611081036p2e729fedif8b473850c09f63f@mail.gmail.com> References: <20061028220535.GA28449@zodiac.codesimply.com> <814422ce0611081026k44c83624y6822899a03813c68@mail.gmail.com> <300ccfa50611081031m58204b79r59b9b5b45c8236b7@mail.gmail.com> <814422ce0611081036p2e729fedif8b473850c09f63f@mail.gmail.com> Message-ID: <20061108191229.GA19424@zodiac.codesimply.com> * Ted Fiedler [2006-11-08T13:36:12] > Im an idiot. I lost a week somehow. OMG! Can you remember anything? Check yourself for weird bruises or puncture marks. The aliens might be trying to keep you from voting! Last week, it was just me and Tom. We had a good time, a few beers, and I DID NOT CRY AND MISS YOU GUYS AT ALL. More news about some fun stuff a little later. Right now, I need to kill a signal handler... -- rjbs From fiedlert at gmail.com Wed Nov 8 11:48:53 2006 From: fiedlert at gmail.com (Ted Fiedler) Date: Wed, 8 Nov 2006 14:48:53 -0500 Subject: [ABE.pm] Fwd: beer? wednesday? nov 1 In-Reply-To: <20061108191229.GA19424@zodiac.codesimply.com> References: <20061028220535.GA28449@zodiac.codesimply.com> <814422ce0611081026k44c83624y6822899a03813c68@mail.gmail.com> <300ccfa50611081031m58204b79r59b9b5b45c8236b7@mail.gmail.com> <814422ce0611081036p2e729fedif8b473850c09f63f@mail.gmail.com> <20061108191229.GA19424@zodiac.codesimply.com> Message-ID: <814422ce0611081148t1dddf408mdae3912c0892fc0e@mail.gmail.com> I remember some stuff - the seizures have stopped, and my family is talking to me again. On 11/8/06, Ricardo SIGNES wrote: > * Ted Fiedler [2006-11-08T13:36:12] > > Im an idiot. I lost a week somehow. > > OMG! Can you remember anything? Check yourself for weird bruises or puncture > marks. > > The aliens might be trying to keep you from voting! > > Last week, it was just me and Tom. We had a good time, a few beers, and I DID > NOT CRY AND MISS YOU GUYS AT ALL. > > More news about some fun stuff a little later. Right now, I need to kill a > signal handler... > > -- > rjbs > _______________________________________________ > ABE-pm mailing list > ABE-pm at pm.org > http://mail.pm.org/mailman/listinfo/abe-pm > -- "You are never dedicated to something you have complete confidence in. No one is fanatically shouting that the sun is going to rise tomorrow. They know it's going to rise tomorrow. " -- Robert M Pirsig From faber at linuxnj.com Thu Nov 9 17:34:17 2006 From: faber at linuxnj.com (Faber J. Fedor) Date: Thu, 9 Nov 2006 20:34:17 -0500 Subject: [ABE.pm] Generating report graphs Message-ID: <20061110013417.GA10165@neptune.faber.nom> This is a programming/framework question. The OS is RHEL 3, database is MySQL 3.23, the preferred viewer is Firefox and the languages involved should be scripting languages, i.e. no C++ or Java. The task at hand is to generate a report of various charts. The characteristics of the reports are: 1. The charts are statistically-based time series, i.e. standard deviations, modes, summations of series, multiplication of series, etc over days or months. Although the data is financial, the reports are not what we typically think of as business-based, e.g. not "net profit of the past three quarters". 2. The reports must have the ability to drill-down one level; more levels would be fine, but one level is acceptable. A "drill-down" is defined either as a new graph of data (replace the current one? Pop-up another window?) or even simply a pop-up window showing a table of data whenever the mouse clicks on or hovers over a data point. 3. There will be multiple graphs per report. 4. The report must be self-contained, i.e. once the report is generated, no calls back to the database or any outside source is possible. How would you accomplish this? My approach was to do the charts as SVG objects and contain all of the charts and pop-up/drill-down data inside an HTML page; that way it would be self-contained. I did something similar with HTML tables instead of SVG objects and it worked great. I attempted to use Perl and SVG::TT::Graph::TimeSeries to generate the individual charts and plan to use RoR to put a web interface on all of it. Unfortunately, SVG::TT::Graph::TimeSeries doesn't play well with multiple graphs on a page, doesn't do the drill downs and some of the graphs are buggy, e.g. the bar graphs assumes the bars' zero is always the x axis. I have yet to find another Perl library that can let me do SVGs the way I need to and I'd like to avoid hacking SVG::TT::Graph::TimeSeries if at all possible. -- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701 http://www.linuxnj.com From john-abe at apt202.net Fri Nov 10 08:35:58 2006 From: john-abe at apt202.net (John Cappiello) Date: Fri, 10 Nov 2006 11:35:58 -0500 Subject: [ABE.pm] Generating report graphs In-Reply-To: <20061110162045.GA12383@neptune.faber.nom> References: <20061110013417.GA10165@neptune.faber.nom> <20061110160037.GM22066@apt202.net> <20061110162045.GA12383@neptune.faber.nom> Message-ID: <20061110163558.GO22066@apt202.net> On Fri, Nov 10, 2006 at 11:20:45AM -0500, Faber J. Fedor wrote: > Because I want to be able to send the report to anyone but I don't want > to give anyone access to my database through my firewall. Huh, ok, then yes, you could generate JSON, and pass that along as part of a packge of code, that a person could work with offline. > I don't know anything about JSON but are you suggesting something like: > generate datasets in perl, then generate the JS/HTML code in perl, and > send that large text document to the browser? JSON is just JavaScriptObjectNotation. foo = { bar: new Array(), baz: '', counter: 2, }; etc. CPAN modules can automatically convert, say, an array of hashes, or anything else, into that for you. It's later eval'd by your JavaScript, and becomes just another object you have access to. Frequently it's used in things like Ajax applications instead of the much beefier, and processor intensive XML. Which reminds me, you could just generate XML instead of JSON if you feel better about that. :) If you have Dojo questions, the #dojo channel on freenode is pretty good, the docs are a mess though. Your best bet is to check out from SVN, and play witht he demos and tests, and look at the source. There's also this: http://dojotoolkit.org/api/ -- jcap From john-abe at apt202.net Fri Nov 10 08:02:02 2006 From: john-abe at apt202.net (John Cappiello) Date: Fri, 10 Nov 2006 11:02:02 -0500 Subject: [ABE.pm] Generating report graphs Message-ID: <20061110160201.GN22066@apt202.net> So, how's your JavaScript? :) Seriously, for what you're suggesting, I would look at using Dojo perhaps, or any other JS lib with support for what you want. I suggest Dojo ony because I've been using it a lot for the last few months, and know it can do everything you wanted to, on the client side. I don't quite understand the lack of requesting back to the server requirement, but, that aside... Have you data sets generated by perl, there are modules for JSON, and sent to the server as JSON, or simply, JavaScript objects. Dojo has many sublibs. 1 of which is SVG. The have actually generalized the graphics lib, and on IE it will fall back to VRML. (blast form the past or what?) But let's assume only Firefox for now. Dojo just also had a complete charting library donated to them, which would also probably be of great help to you. The dojo event system is quite complete and would allow all sorts of interaction with either the svg or chart parts. You could therefor generate one big chunk of JSON containing all the parts and sub parts of your graph data, send it to the browser, and let JS render your graphs for you, etc. As long as you don't need this process to be automated, for printing on some sort of cron'd report type system, this would work quite. Well. FURTHER... Firefox implements an internal Storage engine, which could be used to store this json for offline viewing. Again, Dojo hooks in to this, and for cross site support, falls back to its old method of using Flash cookies (much larger than http cookies) where available, as a storage mechanism. Let me know if any of this is of interest to you in how to accomplish what you wanted, and I can give more details. Faber, sorry I sent you this directly first. Argh. -- jcap From rjbs-perl-abe at lists.manxome.org Fri Nov 10 17:20:27 2006 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Fri, 10 Nov 2006 20:20:27 -0500 Subject: [ABE.pm] $oreilly_discount++ Message-ID: <20061111012027.GA13061@zodiac.codesimply.com> FYI, O'Reilly has increased our discount for their books to 35%, with free shipping over $25. If you ever want me to pick up a book for you via the group, let me know! -- rjbs From faber at linuxnj.com Sat Nov 11 08:38:41 2006 From: faber at linuxnj.com (Faber J. Fedor) Date: Sat, 11 Nov 2006 11:38:41 -0500 Subject: [ABE.pm] Generating report graphs In-Reply-To: <4554EC8F.9090404@ltrconsulting.com> References: <20061110013417.GA10165@neptune.faber.nom> <4554EC8F.9090404@ltrconsulting.com> Message-ID: <20061111163841.GA15063@neptune.faber.nom> On 10/11/06 16:18 -0500, Steven Dambeck wrote: > Faber, > > I used ploticus a few years ago for some simple graphs. > http://ploticus.sourceforge.net/doc/welcome.html You might want to check > it out. Ploticus has come a long way since I last looked at it. I noticed most of their SVG examples don't parse correctly, though. :-) John C. over on ABE-PM suggested doing it in Javascript using Dojo. That looks interesting as well. Looks like I'll have a fun weekend of coding. -- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701 http://www.linuxnj.com From rjbs-perl-abe at lists.manxome.org Tue Nov 28 15:20:36 2006 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Tue, 28 Nov 2006 18:20:36 -0500 Subject: [ABE.pm] beer good. php bad. Message-ID: <20061128232036.GC2837@knight> Seriously, I cannot stress enough how obnoxious today's PHP problems were. Basically, something was being passed a string, in a cookie, with "+" in it, and PHP decided, somewhere along the way, to URI decode that into a space. Then, since the string was already encoded in some native format (which had generated the plus to begin with) it could no longer be decoded. Result? Some unknown percentage of users couldn't log in to Squirrelmail. It took me hours to find the problem (way longer than it should have, in retrospect), but I think it solved another long-standing bug, so... hooray! It's days like this that remind me of a simple fact of life: beer good, PHP bad. To celebrate how good beer is, let's grab some beers on Wednesday, December 6, a week from tomorrow. Hopefully by then I'll have recovered and will no longer feel the need to badmouth PHP, especially if Faber is there. Now, back to optimizing memory usage! -- rjbs From fiedlert at gmail.com Tue Nov 28 17:05:53 2006 From: fiedlert at gmail.com (Ted Fiedler) Date: Tue, 28 Nov 2006 20:05:53 -0500 Subject: [ABE.pm] beer good. php bad. In-Reply-To: <20061128232036.GC2837@knight> References: <20061128232036.GC2837@knight> Message-ID: <814422ce0611281705o3ef9d0a3pf2bbadf9cdfb5e2a@mail.gmail.com> Im in - I could use some beer. Im starting to delve into Ruby and may have another language to curse by then. Ted On 11/28/06, Ricardo SIGNES wrote: > > Seriously, I cannot stress enough how obnoxious today's PHP problems were. > Basically, something was being passed a string, in a cookie, with "+" in it, > and PHP decided, somewhere along the way, to URI decode that into a space. > Then, since the string was already encoded in some native format (which > had generated the plus to begin with) it could no longer be decoded. Result? > Some unknown percentage of users couldn't log in to Squirrelmail. > > It took me hours to find the problem (way longer than it should have, in > retrospect), but I think it solved another long-standing bug, so... hooray! > > It's days like this that remind me of a simple fact of life: beer good, PHP > bad. > > To celebrate how good beer is, let's grab some beers on Wednesday, December 6, > a week from tomorrow. Hopefully by then I'll have recovered and will no longer > feel the need to badmouth PHP, especially if Faber is there. > > Now, back to optimizing memory usage! > > -- > rjbs > _______________________________________________ > ABE-pm mailing list > ABE-pm at pm.org > http://mail.pm.org/mailman/listinfo/abe-pm > -- "You are never dedicated to something you have complete confidence in. No one is fanatically shouting that the sun is going to rise tomorrow. They know it's going to rise tomorrow. " -- Robert M Pirsig From rjbs-perl-abe at lists.manxome.org Tue Nov 28 17:53:36 2006 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Tue, 28 Nov 2006 20:53:36 -0500 Subject: [ABE.pm] beer good. php bad. In-Reply-To: <814422ce0611281705o3ef9d0a3pf2bbadf9cdfb5e2a@mail.gmail.com> References: <20061128232036.GC2837@knight> <814422ce0611281705o3ef9d0a3pf2bbadf9cdfb5e2a@mail.gmail.com> Message-ID: <20061129015336.GA17078@zodiac.codesimply.com> * Ted Fiedler [2006-11-28T20:05:53] > Im in - I could use some beer. Im starting to delve into Ruby and may > have another language to curse by then. Here's one you can borrow when you get there: Holy crap! Ruby is awesome! I wish someone would write some fucking online documentation for it! There's decent (but not fantastic) documentation for the core libraries, but not the core language. It could use a simple equivalent of perlsyn and perlop and perlfunc. -- rjbs