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 >

[Boston.pm] Re: Scripted image manipulation

2003-06-18 Thread John Sequeira
Anthony R. J. Ball wrote: 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 one

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

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

[Boston.pm] Oscon Room Share

2003-06-18 Thread Ronald J Kimball
Hey all, I foolishly missed the deadline for reserving a room at the hotel for the Open Source Convention, and when I called today they were all full up. I don't suppose anyone on the list is going to the convention, has already reserved a room, but is still looking for a roommate to share the

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 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] 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=; 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 Simon Rosenthal
--- Ron Newman <[EMAIL PROTECTED]> wrote: > > I don't know if either of these really address the performance issue, > but ... > > > $REC=""; > > $REC=; > > the first assignment serves no purpose since you are immediately > overwriting it. agreed, but its effect would be minuscule. >

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=; 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] 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

[Boston.pm] Re: Scripted image manipulation

2003-06-18 Thread Anthony R. J. Ball
Well... I have scripts set up to do button/tab etc generation of my company's web graphics using all perl. I create the images using Imlib2 and xml templates. I really doubt I could share the code with you, but I could probably help you along, and even give you my slightly enhanced version

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

2003-06-18 Thread Bob Mariotti
Fellow Monger Experts; 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 as a subroutine I am

[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] 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

Re: [Boston.pm] DBI question

2003-06-18 Thread Gyepi SAM
On Wed, Jun 18, 2003 at 09:18:42AM -0400, Joel Gwynn wrote: > $dbh = > DBI->connect("dbi:$$config{dbi}:PROVIDER=$$config{provider};SERVER=$$con > fig{dbserver};UID=$$config{uid};PWD=$$config{password};DATABASE=$$config > {database}") || return "Couldn't connect."; > > The problem is not so much

Re: [Boston.pm] DBI question

2003-06-18 Thread darren chamberlain
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * Joel Gwynn [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 wrapping this in an eval, and

[Boston.pm] DBI question

2003-06-18 Thread Joel Gwynn
Hm. Sorry about that. Anyhoo, I'm connecting to an OLE DB like so: $dbh = DBI->connect("dbi:$$config{dbi}:PROVIDER=$$config{provider};SERVER=$$con fig{dbserver};UID=$$config{uid};PWD=$$config{password};DATABASE=$$config {database}") || return "Couldn't connect."; And if there's a problem,