From Dirk at Finches.com Mon Jan 2 07:28:18 2006 From: Dirk at Finches.com (Dirk) Date: Mon, 02 Jan 2006 08:28:18 -0700 Subject: [San-Diego-pm] 2D graphics scripting Message-ID: <1136215698.17345.14.camel@moisture.example.com> My 11 year-old nephew draws successions of war games with pencil and paper. I explained to him about playing out these scenarios by rotating and translating desktop-like icons on a computer screen. He's very interested in the idea. I've been looking on CPAN.org and sourceforge.net for such a 2D system using perl. I'd have to learn the rudiments of it myself to pass it to him. Where should I start? Thanks, Dirk From Dirk at Finches.com Tue Jan 3 05:54:07 2006 From: Dirk at Finches.com (Dirk) Date: Tue, 03 Jan 2006 06:54:07 -0700 Subject: [San-Diego-pm] 2D graphics scripting In-Reply-To: <441079bd0601022127n212b52e2w8b9db3176843935f@mail.gmail.com> References: <1136215698.17345.14.camel@moisture.example.com> <441079bd0601022127n212b52e2w8b9db3176843935f@mail.gmail.com> Message-ID: <1136296447.17345.33.camel@moisture.example.com> By rotating I meant rotating an image around a point. I guess I have a wishful notion that a few lines in perl could loop through and move an icon up-down & left-right, while rotating it x degrees clock-wise. I'll take a look at the module and the website you mentioned. Thanks, Dirk On Mon, 2006-01-02 at 21:27 -0800, David Romano wrote: > On 1/2/06, Dirk wrote: > > My 11 year-old nephew draws successions of war games with pencil and > > paper. I explained to him about playing out these scenarios by rotating > > and translating desktop-like icons on a computer screen. He's very > > interested in the idea. > > > > I've been looking on CPAN.org and sourceforge.net for such a 2D > > system using perl. I'd have to learn the rudiments of it myself to pass > > it to him. Where should I start? > Umm, what is it that you are exactly looking for? A 2D graphics > interface for your nephew to draw the successions digitally? I can > only think of perl/tk [http://perltk.org]. I'm not in to wargaming, so > I'm probably not much help. "Rotating" as in rotating the player? > Maybe Games::Sequential will help? > [http://search.cpan.org/~stig/Games-AlphaBeta-0.4.6/] > > Cheers, > David From markj at matzsoft.com Tue Jan 3 07:45:28 2006 From: markj at matzsoft.com (Mark T. Johnson) Date: Tue, 3 Jan 2006 07:45:28 -0800 Subject: [San-Diego-pm] 2D graphics scripting In-Reply-To: <1136296447.17345.33.camel@moisture.example.com> References: <1136215698.17345.14.camel@moisture.example.com> <441079bd0601022127n212b52e2w8b9db3176843935f@mail.gmail.com> <1136296447.17345.33.camel@moisture.example.com> Message-ID: I have had success using Image::Magick (http://search.cpan.org/~jcristy/PerlMagick-6.24/Magick.pm ) to create PNG files. It may take more than a few lines of Perl to do what you want. >By rotating I meant rotating an image around a point. I guess I have a >wishful notion that a few lines in perl could loop through and move an >icon up-down & left-right, while rotating it x degrees clock-wise. > >I'll take a look at the module and the website you mentioned. > >Thanks, >Dirk > > >On Mon, 2006-01-02 at 21:27 -0800, David Romano wrote: >> On 1/2/06, Dirk wrote: >> > My 11 year-old nephew draws successions of war games with pencil and >> > paper. I explained to him about playing out these scenarios by rotating >> > and translating desktop-like icons on a computer screen. He's very >> > interested in the idea. >> > >> > I've been looking on CPAN.org and sourceforge.net for such a 2D >> > system using perl. I'd have to learn the rudiments of it myself to pass >> > it to him. Where should I start? > > >> Umm, what is it that you are exactly looking for? A 2D graphics >> interface for your nephew to draw the successions digitally? I can >> only think of perl/tk [http://perltk.org]. I'm not in to wargaming, so >> I'm probably not much help. "Rotating" as in rotating the player? >> Maybe Games::Sequential will help? >> [http://search.cpan.org/~stig/Games-AlphaBeta-0.4.6/] >> >> Cheers, >> David > >_______________________________________________ >San-Diego-pm mailing list >San-Diego-pm at pm.org >http://mail.pm.org/mailman/listinfo/san-diego-pm -- -------------------------------------------------------------- Mark T. Johnson MATZ Software & Consulting Phone: 858-571-3125 FAX: 858-452-2871 From rkleeman at energoncube.net Mon Jan 9 11:27:26 2006 From: rkleeman at energoncube.net (Bob Kleemann) Date: Mon, 9 Jan 2006 11:27:26 -0800 Subject: [San-Diego-pm] Meeting Tonight! Message-ID: <20060109192726.GC22105@energoncube.net> Just a reminder folks, there is a meeting tonight, 7PM at the Panera Bread on Mira Mesa Blvd. From joel at fentin.com Thu Jan 12 18:51:28 2006 From: joel at fentin.com (Joel Fentin) Date: Thu, 12 Jan 2006 18:51:28 -0800 Subject: [San-Diego-pm] HTML to Perl Message-ID: <43C715B0.10600@fentin.com> An HTML script can be run with no server. If I click the OK button in the HTML script, I want to run a perl program. Can this be done without Apache? The following haven't worked. 1.
Displays xxx.pl rather than run it. 2. I get a message saying the file can't be found. 3. I have changed file associations such that perl runs any file with and extension of .pl. (This is in XP.) 4. I have tried variations of these with links instead of the OK button. -- Joel Fentin tel: 760-749-8863 FAX: 760-749-8864 Email me: http://fentin.com/me/ContactMe.html Biz Website: http://fentin.com Personal Website: http://fentin.com/me From merlyn at stonehenge.com Thu Jan 12 18:56:10 2006 From: merlyn at stonehenge.com (Randal L. Schwartz) Date: 12 Jan 2006 18:56:10 -0800 Subject: [San-Diego-pm] HTML to Perl In-Reply-To: <43C715B0.10600@fentin.com> References: <43C715B0.10600@fentin.com> Message-ID: <86hd8825v9.fsf@blue.stonehenge.com> >>>>> "Joel" == Joel Fentin writes: Joel> An HTML script can be run with no server. If I click the OK button in Joel> the HTML script, I want to run a perl program. Can this be done without Joel> Apache? Yes. But it takes IIS instead. :) You need a server to run a CGI script. It's that simple. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! From joel at fentin.com Thu Jan 12 19:12:30 2006 From: joel at fentin.com (Joel Fentin) Date: Thu, 12 Jan 2006 19:12:30 -0800 Subject: [San-Diego-pm] HTML to Perl In-Reply-To: <86hd8825v9.fsf@blue.stonehenge.com> References: <43C715B0.10600@fentin.com> <86hd8825v9.fsf@blue.stonehenge.com> Message-ID: <43C71A9E.9090500@fentin.com> Randal L. Schwartz wrote: > You need a server to run a CGI script. It's that simple. I don't quite get it. If I shell to DOS and type: perl xxx.pl, I get the desired result. I guess you are saying that no such shelling is possible via the browser. -- Joel Fentin tel: 760-749-8863 FAX: 760-749-8864 Email me: http://fentin.com/me/ContactMe.html Biz Website: http://fentin.com Personal Website: http://fentin.com/me From merlyn at stonehenge.com Thu Jan 12 19:27:37 2006 From: merlyn at stonehenge.com (Randal L. Schwartz) Date: 12 Jan 2006 19:27:37 -0800 Subject: [San-Diego-pm] HTML to Perl In-Reply-To: <43C71A9E.9090500@fentin.com> References: <43C715B0.10600@fentin.com> <86hd8825v9.fsf@blue.stonehenge.com> <43C71A9E.9090500@fentin.com> Message-ID: <868xtk24eu.fsf@blue.stonehenge.com> >>>>> "Joel" == Joel Fentin writes: Joel> Randal L. Schwartz wrote: >> You need a server to run a CGI script. It's that simple. Joel> I don't quite get it. If I shell to DOS and type: Joel> perl xxx.pl, I get the desired result. That's not a CGI script. Unless it happens to be one, and then CGI.pm simulates the actions. I'd be very very very very worried if your *browser* would launch an *exe* simply by referencing it as a file:// url. Security be gone! -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! From joel at fentin.com Thu Jan 12 21:13:15 2006 From: joel at fentin.com (Joel Fentin) Date: Thu, 12 Jan 2006 21:13:15 -0800 Subject: [San-Diego-pm] HTML to Perl In-Reply-To: <868xtk24eu.fsf@blue.stonehenge.com> References: <43C715B0.10600@fentin.com> <86hd8825v9.fsf@blue.stonehenge.com> <43C71A9E.9090500@fentin.com> <868xtk24eu.fsf@blue.stonehenge.com> Message-ID: <43C736EB.7070301@fentin.com> Randal L. Schwartz wrote: >>>>>>"Joel" == Joel Fentin writes: > > > Joel> Randal L. Schwartz wrote: > >>>You need a server to run a CGI script. It's that simple. > > > Joel> I don't quite get it. If I shell to DOS and type: > Joel> perl xxx.pl, I get the desired result. > > That's not a CGI script. Unless it happens to be one, and then > CGI.pm simulates the actions. > > I'd be very very very very worried if your *browser* would launch an *exe* > simply by referencing it as a file:// url. Security be gone! > Thank you -- Joel Fentin tel: 760-749-8863 FAX: 760-749-8864 Email me: http://fentin.com/me/ContactMe.html Biz Website: http://fentin.com Personal Website: http://fentin.com/me From RSuh at aol.com Thu Jan 12 21:22:21 2006 From: RSuh at aol.com (RSuh@aol.com) Date: Fri, 13 Jan 2006 00:22:21 EST Subject: [San-Diego-pm] HTML to Perl Message-ID: I used ActiveState Perl on Windows. And you can embed perl code inside your HTML page, like you do javascript. So when someone clicks on a button, you can run your perl code, which performs a system() call to an external program (if ya like) And you dont need a server. I use this technique to build simple interfaces to command line programs (for the non-techies). i dont have the code off hand, so im not much help now.. but i promise to post it tomorrow. :) heres a link to a PerlScript example and some docs. http://aspn.activestate.com/ASPN/docs/ActivePerl/5.8/Components/Windows/PerlSc ript.html -rob -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/san-diego-pm/attachments/20060113/a736a155/attachment.html From RSuh at aol.com Mon Jan 16 21:09:34 2006 From: RSuh at aol.com (RSuh@aol.com) Date: Tue, 17 Jan 2006 00:09:34 EST Subject: [San-Diego-pm] HTML to Perl Message-ID: <9a.34f81ece.30fdd60e@aol.com> better late than never.. heres some html code which will run without a server..just save it to a file and open it up in Internet Explorer. when you click the button on the form, it will run a dos command, on the local machine. Its a simple way to create a cheap interface to dos commands, for non techy end users. requires activestate perl win32. with PerlScript. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/san-diego-pm/attachments/20060117/2a5c2f6b/attachment.html From knupp at mrms.navy.mil Thu Jan 19 10:56:52 2006 From: knupp at mrms.navy.mil (Norm Knupp) Date: Thu, 19 Jan 2006 10:56:52 -0800 Subject: [San-Diego-pm] Error compiling DB_File-1.814 Message-ID: I'm trying to compile and install DB_File-1.814 on my HP-UX 11.11 system using gcc 3.3. I have already successfully compiled and installed BerkeleyDB-4.4, but now I get the following: # perl Makefile.PL Parsing config.in... Looks Good. Checking if your kit is complete... Looks good Writing Makefile for DB_File # make cp DB_File.pm blib/lib/DB_File.pm AutoSplitting blib/lib/DB_File.pm (blib/lib/auto/DB_File) gcc -c -I/usr/local/BerkeleyDB.4.4/include -D_HPUX_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -DVERSION=\" 1.814\" -DXS_VERSION=\"1.814\" -fPIC "-I/opt/perl5/lib/5.8.0/PA-RISC1.1/CORE" -D_NOT_CORE -DmDB_Prefix_t=size_t -DmDB_Hash _t=u_int32_t version.c /usr/bin/perl /opt/perl5/lib/5.8.0/ExtUtils/xsubpp -noprototypes -typemap /opt/perl5/lib/5.8.0/ExtUtils/typemap -type map typemap DB_File.xs > DB_File.xsc && mv DB_File.xsc DB_File.c gcc -c -I/usr/local/BerkeleyDB.4.4/include -D_HPUX_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -DVERSION=\" 1.814\" -DXS_VERSION=\"1.814\" -fPIC "-I/opt/perl5/lib/5.8.0/PA-RISC1.1/CORE" -D_NOT_CORE -DmDB_Prefix_t=size_t -DmDB_Hash _t=u_int32_t DB_File.c Running Mkbootstrap for DB_File () chmod 644 DB_File.bs rm -f blib/arch/auto/DB_File/DB_File.sl LD_RUN_PATH="/usr/local/BerkeleyDB.4.4/lib" /usr/bin/ld -b -L/usr/local/lib version.o DB_File.o -o blib/arch/auto/D B_File/DB_File.sl -L/usr/local/BerkeleyDB.4.4/lib -ldb-4.4 /usr/bin/ld: Invalid loader fixup in text space needed in output file for symbol "__db_associate_pp" in input file "/usr/loca l/BerkeleyDB.4.4/lib/libdb-4.4.a(db_method.o)" *** Error exit code 1 Stop. # Can anybody help? Thanks, Norm Knupp, MARMC/SWRMC RMMCO DBA and Webmaster (619) 556-4998 (DSN 312-526-4998) knupp at mrms.navy.mil -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 2488 bytes Desc: not available Url : http://mail.pm.org/pipermail/san-diego-pm/attachments/20060119/f89e3099/winmail.bin