[VPM] demo program code (incomplete) for Jul 20 meeting
Darren Duncan
darren at DarrenDuncan.net
Tue Jul 13 02:55:51 CDT 2004
I apologize, but I was unable to make the complete working program
that I wanted to hand out now, a week in advance, for you guys to
play with before the July 20 meeting. It is now 12:30am and I have
to get up at 7am in order to take my trip, so I can't stay up later
to finish it.
However, I am hereby giving you the code that I did so far, as
attachments (assuming the list server allows them, if not, I'll
upload them somewhere). This existing code is a skeleton/framework
for the program. So far, it starts up, opens a database, prints a
message to say we're in the main run loop of the program, then closes
the database and quits. It does other things too in regards to
framing, and this is all tested and known to work. A whole bunch of
utility functions are already implemented, which do most of the grunt
work, but they aren't invoked yet.
I will complete the program myself when I come back from the trip,
late on Monday the 19th, but that is only a day before the meeting.
It should still be ready for the meeting, but not for much advance
playtime, sorry.
The main program is "demo_gene.pl"; the other two files (DemoGeneUI
and DemoGeneEngine) are modules that it uses; place them all in the
same directory, then run the program on the command line. This
program uses DBI and DBD::SQLite, so you have to install those. I
tested with Perl 5.8.4, DBI 1.42, and DBD::SQLite 0.31. SQLite is an
embedded and file-based database engine.
Note that the UI looks a bit like the "configure" program in that
each prompt displays a default/existing value in square brackets;
simply hitting return chooses/retains the existing value, typing and
return changes the value to what you typed.
A couple values can be specified on the command-line. Call with:
perl demo_gene.pl [[<database file name>] <SQL error log file name>]
If either of the command-line arguments is missing, the program will
prompt you to provide values; it prompts anyway, so you can change or
keep existing values.
If you know what you are doing, you could try hacking the program as
it is, but I suggest you wait until after the meeting instead.
Peter Scott, can you please update the website to mention the July
meeting. I didn't get to doing that, sorry.
Also feel free to forward this email and attachments to VLUG.
Okay, I'm off...
Have a good week. -- Darren Duncan
P.S. I may be able to answer some emails during the week away, but it
is doubtful I will be able to work on code then.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DemoGeneUI.pm
Type: application/mac-binhex40
Size: 5769 bytes
Desc: not available
Url : http://mail.pm.org/pipermail/victoria-pm/attachments/20040713/70521789/DemoGeneUI.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DemoGeneEngine.pm
Type: application/mac-binhex40
Size: 7970 bytes
Desc: not available
Url : http://mail.pm.org/pipermail/victoria-pm/attachments/20040713/70521789/DemoGeneEngine.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: demo_gene.pl
Type: application/mac-binhex40
Size: 723 bytes
Desc: not available
Url : http://mail.pm.org/pipermail/victoria-pm/attachments/20040713/70521789/demo_gene.bin
More information about the Victoria-pm
mailing list