Re: [Boston.pm] DBI question

2003-06-18 Thread darren chamberlain
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * Joel Gwynn joel.gwynn at digipress.net [2003-06-18 09:28]: The problem is not so much that I can't connect, the problem is that if I can't, I don't want to return the db credentials to the browser. How can I turn this off? I assume you're

RE: [Boston.pm] DBI question

2003-06-18 Thread Joel Gwynn
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of darren chamberlain Sent: Wednesday, June 18, 2003 9:38 AM To: [EMAIL PROTECTED] Subject: Re: [Boston.pm] DBI question -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * Joel Gwynn joel.gwynn at

[Boston.pm] Scripted image manipulation

2003-06-18 Thread John Sequeira
I'm working on a web site that would like to change their color scheme. They have about a thousand images (buttons/widgets/etc) and I was wondering if there was a easy way to do this programmatically or at least give the manual process a big head start. Since the elements of the site are 2D

Re: [Boston.pm] Scripted image manipulation

2003-06-18 Thread ceo
Hi John, This is fairly trivial (god I've been dying to feel that way about something in Perl) for GD.pm. The only problem is you may have to convert your gifs to png, because gif support in the module got yanked out a few years ago. I've used the module to change image copyright notices by

Re: [Boston.pm] Help with very sluggish perl process?

2003-06-18 Thread Ron Newman
I don't know if either of these really address the performance issue, but ... $REC=; $REC=CXIBIO; the first assignment serves no purpose since you are immediately overwriting it. # Contruct Host Response String $RECIN=$RECIN.$REC; Would the Perl compiler generate better code for $RECIN .=

Re: [Boston.pm] Help with very sluggish perl process?

2003-06-18 Thread Ted Zlatanov
Have you tested the subroutine without any data assignments, just: open(CXIBIO,+$ARGV[0]) or die Could NOT open $ARGV[0]\n; print CXIBIO $ARGV[1]\015; EP: while (1) { $REC=CXIBIO; if ( $REC =~ m/[EMAIL PROTECTED]/) { next EP; } if ( $REC =~ m/^0999/) { last EP; } }

Re: [Boston.pm] Help with very sluggish perl process?

2003-06-18 Thread Dan Sugalski
At 1:02 PM -0400 6/18/03, Bob Mariotti wrote: I have something that works but the timing is just tooo slow. I have a subroutine that communications with remote hosts. It simply passes a one line string as a request and receives back from 1 to 100+ lines of text in return. As this is done

Re: [Boston.pm] Scripted image manipulation

2003-06-18 Thread Chris Devers
On Wed, 18 Jun 2003, John Sequeira wrote: I'm working on a web site that would like to change their color scheme. They have about a thousand images (buttons/widgets/etc) and I was wondering if there was a easy way to do this programmatically or at least give the manual process a big head

Re: [Boston.pm] Help with very sluggish perl process?

2003-06-18 Thread John Tobin
On Wed, Jun 18, 2003 at 01:02:16PM -0400, Bob Mariotti wrote: However, when timing the snippet below, it takes over 12 seconds to complete. That's 8 seconds (and that's an eternity) to respond. Have you tried using a non-Perl client? Something like netcat

Re: [Boston.pm] Scripted image manipulation

2003-06-18 Thread Alex Vandiver
On Wed, 2003-06-18 at 13:08, John Sequeira wrote: I'm working on a web site that would like to change their color scheme. They have about a thousand images (buttons/widgets/etc) and I was wondering if there was a easy way to do this programmatically or at least give the manual process a

[Boston.pm] Re: Scripted image manipulation

2003-06-18 Thread John Sequeira
Anthony R. J. Ball wrote: snip As for changing image colors, you could do that with imlib2 as well... though maybe pixel by pixel. The probalem you may run into is if they have anti-aliased text, which will make wholesale color-swapping difficult. Thanks everyone for your suggestions. Using

Re: [Boston.pm] Re: Scripted image manipulation

2003-06-18 Thread Chris Devers
On Wed, 18 Jun 2003, John Sequeira wrote: Is there a way to figure out what the yellowish or blueish antialiasing pixels should map to in the new graphic? Would I have to dig down deep into understanding antialiasing algorithms, or is there a simpler way to use something like a color