RE: Image transformation

2001-03-05 Thread Charles Maier
Yes... try Image::Magick Charles Maier CDM Consulting Services http://www.cdmcon.com (610) 942-2726 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Roee Rubin Sent: Monday, March 05, 2001 5:09 PM To: 'Perl-Win32-Web; Perl-Win32-Users Subject: Image trans

Image transformation

2001-03-05 Thread Roee Rubin
Hello, I am developing a web site and providing a page where users can upload images in a specific format. I am looking for a way to programmatically modify the size of the image once it has been transferred over the web server. For example, if the image uploaded is 400x400 - I would like to tra

Re: Q: sorting a list of lists with eval

2001-03-05 Thread Ron Grabowski
> # create test data matrix > @data_line = @data_matrix = (); > @data_line = ("1","26","0","0","2","","0","0","Long","","0","Thomas","Tom"); > #@data_line = ("1","26","0","0","2","","0","0","Long","","0","","Tom"); > push @data_matrix, [ @data_line ]; > @data_line = ("2","27","0","0","2","","0","0

RE: creating unique ID's

2001-03-05 Thread Nikola Knezevic
>If this is just for a SQL database it is MUCH more efficient to use an >integer as a unique ID. If you're using MS SQL Server and don't care about >portability just take advantage of the IDENTITY property of a table. SQL >itself will ensure a unique, auto-incrementing primary key without the id

Re: creating unique ID's

2001-03-05 Thread Nikola Knezevic
>> Does anyone knows a better way to accomplish the same thing, and which >> would be faster and more perlish? >I'm not sure if my proposed solution is more perlish or not but >it seems to me that UID is not a very good way to identify individual >e-mails. That is unless the rule is each user is

RE: Executing a script within another script

2001-03-05 Thread Newell, Paul
You're probably right. I think "system" is what you want, just not for performance reasons. I don't think "do" was intended for the sort of thing you want to. > From: Dirk Bremer [mailto:[EMAIL PROTECTED]] > > Paul, > > The script that gets called is also used as a standalone > program. The sy

Re: creating unique ID's

2001-03-05 Thread Mauricio Lairet P.
A posible solution is to retrieve the first 3 letters of the domain and add the current date to it in format: First-3-letters-of-the-mailMonthDayYearHourMinuteSecond eg. If you add the email [EMAIL PROTECTED] on March/05/2001 at 01:05:32 PM it should create an ID like: bil35200113532 This works

Re: Executing a script within another script

2001-03-05 Thread Dirk Bremer
Paul, The script that gets called is also used as a standalone program. The system function works okay for my intended purpose, the script that gets called will on average be used two times from the calling script, and the calling script is used infrequently. In fact, it used only when we want

Re: creating unique ID's

2001-03-05 Thread Carl Jolley
On Mon, 5 Mar 2001, Nikola Knezevic wrote: > Hi, > I'm still wondering about compiling problems, but today's question is > totally different. > > I'm creating a database which would contain many emails (that should be > unique). In that database would be 4-5 tables, and every one's primary > key

RE: Executing a script within another script

2001-03-05 Thread Newell, Paul
Sure, but "system" is going to do a lot worse (at least on NT) than that. It's going to create a whole new process and invoke a whole new perl. If you want to avoid re-compiling a script you should consider using a module. > From: Dirk Bremer [mailto:[EMAIL PROTECTED]] > > Brian, > > The camel

Re: Executing a script within another script

2001-03-05 Thread Carl Jolley
On Mon, 5 Mar 2001, Brian Steele wrote: > What about "call 'scriptname'" ? > I can't seem to find information about a perl function called "call". What version of perl defines it? [EMAIL PROTECTED] All opinions are my own and not necessarily those of my employer ___

RE: creating unique ID's

2001-03-05 Thread Peter Guzis
If this is just for a SQL database it is MUCH more efficient to use an integer as a unique ID. If you're using MS SQL Server and don't care about portability just take advantage of the IDENTITY property of a table. SQL itself will ensure a unique, auto-incrementing primary key without the id nee

RE: How do I use threads

2001-03-05 Thread Jesse Sookne
Oops, non-HTML version follows. -Jesse -Original Message- From: Jesse Sookne Sent: Monday, March 05, 2001 11:29 AM To: 'Peter Guzis'; 'Robert Follis'; '[EMAIL PROTECTED]' Subject: RE: How do I use threads Actually, threads are implemented in ActivePerl 5.6, but not with the Threads mo

creating unique ID's

2001-03-05 Thread Nikola Knezevic
Hi, I'm still wondering about compiling problems, but today's question is totally different. I'm creating a database which would contain many emails (that should be unique). In that database would be 4-5 tables, and every one's primary key should have a reference to 'the main table' which primary

RE: How do I use threads

2001-03-05 Thread Jesse Sookne
Title: RE: How do I use threads Actually, threads are implemented in ActivePerl 5.6, but not with the Threads module, which as far as I know is only for the 5xx builds of ActivePerl. In AP 5.6, you can use threads through the fork() emulation.  Read 'perldoc perlfork' for more info.

Re: Executing a script within another script

2001-03-05 Thread Dirk Bremer
Brian, The camel book says that the do function parses the script each time, so its not a good idea to use it inside a loop, i.e. where the do would use the same script multiple times. Dirk Bremer - Systems Programmer II - AMS Department - NISC 636-922-9158 ext. 652 fax 636-447-4471

Re: Executing a script within another script

2001-03-05 Thread Brian Steele
WHOOPS. Sorry... should be "do 'scriptname'"; e.g. do extra.pl; Brian - Original Message - From: "Dirk Bremer" <[EMAIL PROTECTED]> To: "Brian Steele" <[EMAIL PROTECTED]>; "perl-win32-users" <[EMAIL PROTECTED]> Sent: Monday, March 05, 2001 1:34 PM Subject: Re: Executing a script within

RE: How do I use threads

2001-03-05 Thread Peter Guzis
Threads are disabled in AP 5.6 as of yet. If you absolutely need this functionality you'll either need to downgrade to 522, wait for Perl 6, or hope for a 5.x build supporting threads. Peter Guzis Web Administrator, Sr. ENCAD, Inc. email: [EMAIL PROTECTED] www.encad.com -Original Message--

Re: Executing a script within another script

2001-03-05 Thread Dirk Bremer
Brian, Do not see "call" listed as a function in the camel book nor in the perldoc command. Dirk Bremer - Systems Programmer II - AMS Department - NISC 636-922-9158 ext. 652 fax 636-447-4471 - Original Message - From: "Brian Steele" <[EMAIL PROTECTED]> To:

how to transfer focus to dos window when script is executed from button click on tk window

2001-03-05 Thread mangesh
hi guru's, i want to transfer focus to dos window to show the script execution once user click's button on tk window. right now when i click button on tk window, tk window disappears which is fine and script execution starts in dos window but that window is minimised.   Thanks,

Q: sorting a list of lists with eval

2001-03-05 Thread Moulder, Glen
Good day listfolk, I'm experiencing a problem with sorting a list of lists. I'm trying to use eval to sort the list and the code sometimes dies with Error: Runtime exception when it hits the sort. Sometimes it works, sometimes it doesn't, and I don't know why. I've been able to replicate t

Re: Executing a script within another script

2001-03-05 Thread Brian Steele
What about "call 'scriptname'" ? Brian - Original Message - From: "MOTTER, JEFFREY D. (SBMS)" <[EMAIL PROTECTED]> To: "perl-win32-users" <[EMAIL PROTECTED]> Sent: Monday, March 05, 2001 12:48 PM Subject: RE: Executing a script within another script > I have been using the "system" me

Re: Freestanding Net::FTP once again

2001-03-05 Thread Marcus
On 03.03.01 at 08:31 Greg Wardawy wrote: >It works like a charm! I'm getting "Use of uninitialized value in >concatenation (.) at PERL2EXE_STORAGE/Net/Config.pm line 43." but >everything is transferred. That's definitely PerlApp problem! Great. On the uninitialized value, I think that's more

anyone else having trouble w/ ppm.activestate.com?

2001-03-05 Thread Bennett Haselton
I'm using Windows 98 Second Edition and ActivePerl 5.6.0 build 623. When I run PPM and do the "search" command (which is supposed to list all available packages), I get no results: >>> PPM interactive shell (2.1.2) - type 'help' for available commands. PPM> search PPM> quit Quit! >>> >From using

RE: Executing a script within another script

2001-03-05 Thread MOTTER, JEFFREY D. (SBMS)
I have been using the "system" method for quite some time and it seems to work very well. $var1="something"; $var2="something else"; system "c:\\perl\\scripts\\mytest.pl $var1 $var2"; > -Original Message- > From: Dirk Bremer [SMTP:[EMAIL PROTECTED]] > Sent: Monday, March 05, 2001 10:43