RE: [perl-win32-gui-users] Win32::GUI help

2004-01-07 Thread Farrington, Ryan
I think I did kind of the same thing you are looking at. What I had to do was create a child process to handle all my requests. Take a look at Win32::ProcFarm to create and talk with your children processes while having your parent process deal with the interface. Give that a shot =-) I will try

RE: [perl-win32-gui-users] Win32::GUI help

2004-01-07 Thread Farrington, Ryan
Here ya go: All the use's were done to allow for perl2exe to compile it into an application. The code is really really sloppy. =( Also I used guiloft to create the win32::Gui stuff... Way easier.. I would highly recommend it! =-) ---CODE--- #!e:\perl\bin\perl #this is the parent

RE: [perl-win32-gui-users] Win32::GUI help

2004-01-07 Thread Farrington, Ryan
-users@lists.sourceforge.net Subject: RE: [perl-win32-gui-users] Win32::GUI help Looks good - I'll have to have a play. Have you had any issues rolling out your exe across different versions of windows? Do you build the child with perl2exe before shipping it out? Thanks, jez. From: Farrington

RE: passing parms to subroutine

2003-10-29 Thread Farrington, Ryan
Title: RE: passing parms to subroutine Look for dereferencing. Section 4.8.2 in Perl in a Nutshell -Original Message- From: lorid [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 29, 2003 2:14 PM To: Moon, John Cc: perl users Subject: Re: passing parms to subroutine Thanks.

reading/writing to a ascii file

2003-10-28 Thread Farrington, Ryan
Title: reading/writing to a ascii file Ok guys here is the pickle I'm in now =-) I need to read from a ASCII file and only modify the lines that match a variable. I do not want to read the entire file into memory and write the entire file out each time I need to make a change. Here is what

RE: reading/writing to a ascii file

2003-10-28 Thread Farrington, Ryan
PROTECTED]] Sent: Tuesday, October 28, 2003 9:53 AM To: 'Farrington, Ryan'; [EMAIL PROTECTED] Subject: RE: reading/writing to a ascii file Ryan, it's easier than you think: open(IN, $inputfile) or die can't open $inputfile: $!; open(OUT,$outputfile) or die can't open $outputfile: $!; while (IN){ s

RE: Getting the full cgi parameter string...

2003-10-27 Thread Farrington, Ryan
Title: RE: Getting the full cgi parameter string... Seth, Do you need the get or the post? If you want to output all the variables that become available when you run a script in cgi just parse the %ENV hash that should give you all the info you need. -Original Message- From:

RE: Killing a process on a win32 box

2003-08-14 Thread Farrington, Ryan
Title: RE: Killing a process on a win32 box BTW... Here is a good tutorial for that kind of thing http://gsu.linux.org.tr/oreilly/perl/sysadmin/ch04_02.htm Thanks OREILLY -Original Message- From: Kris Wolff [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 12, 2003 12:07 PM

RE: CGI Script permissions to call scripts on another server

2003-08-06 Thread Farrington, Ryan
Title: Message Michael, The user that apache runs as is the user you need to give access to that share... ex: my machine runs apache as a domain account. If I give that user access to a network share I can access the files in it... -Original Message-From: Rafala, Michael

RE: Win32::ODBC Question

2003-08-01 Thread Farrington, Ryan
Title: RE: Win32::ODBC Question I think the best way to do this would be to hit the registry and look at ODBC.ini -Original Message- From: Martin, Stanley G [GMG] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 01, 2003 10:50 AM To: perl-win32-users (perl-win32-users) Subject:

RE: Page generation tweeking

2003-07-23 Thread Farrington, Ryan
/option~; } } $output_htmlvar .= /select; } print $output_htmlvar . \n; -Original Message- From: Farrington, Ryan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 23, 2003 9:41 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Page generation tweeking Ok I have a page that reads 2

Page generation tweeking

2003-07-23 Thread Farrington, Ryan
Title: Page generation tweeking Ok I have a page that reads 2 files into arrays. Pretty simple stuff like this: open(FILE, file1.txt); @file1 = FILE; close(FILE); open(FILE, file2.txt); @file2 = FILE; close(FILE); Now file1 contains a complete list of users. And file2 contains a

RE: REWRITE RE: Error trapping

2003-07-18 Thread Farrington, Ryan
-w use strict; BEGIN { $| = 1; $SIG{__DIE__} = sub my $msg = shift; EventLogger(PERL Service, error, 666, $msg\n\n); exit; }; } # add your code here... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Farrington, Ryan Sent: Thursday, July 17

RE: How to edit an FTPed HTML page?

2003-07-11 Thread FARRINGTON, RYAN
to my dir (say C:\temp). Ashish From: FARRINGTON, RYAN [EMAIL PROTECTED] To: 'ashish srivastava' [EMAIL PROTECTED], [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: RE: How to edit an FTPed HTML page? Date: Fri, 11 Jul 2003 09:30:14 -0500 Ashish just make sure it saves it to a local drive

RE: Re[2]: OH NOOO SPAM ATTACK!

2003-07-10 Thread FARRINGTON, RYAN
Title: RE: Re[2]: OH NOOO SPAM ATTACK! John... The only problem with that solution is that is requires sendmail and A UNIX-like operating system what about us poor schmucks that #1 run a Microsoft OS and #2 don't have access to the mail server? =) -Original Message- From: John Mason

RE: download patches.

2003-07-08 Thread FARRINGTON, RYAN
Title: RE: download patches. Janardhan, We are working on the same solution... The XML file from shavlik is a little better to play with but microsoft in their infinate wisdom allowed Shavlik to make the XML file so convoluted that it is almost imposible (from my side at least) to get the

RE: DBI Count Distict

2003-06-27 Thread FARRINGTON, RYAN
Title: RE: DBI Count Distict I would use the SQL server to make the counts for me... or you could take the query then make a hash using the first three digits as the key and make the value increment... then you just hash through the hash (hehehe) and get your final count... -Original

RE: Creating interactive process on remote clients with WMI

2003-06-25 Thread FARRINGTON, RYAN
Title: RE: Creating interactive process on remote clients with WMI truthfully a good way around this is to create the process as a scheduled job (using WMI) and make sure it is set to go off 1-2 mins ahead of the current time... we use it and from what I can tell a lot of Microsoft Certified

RE: Changing Default Gateway

2003-06-25 Thread FARRINGTON, RYAN
Title: RE: Changing Default Gateway you could use WMI if you are working with a WIN32 system... but if your hitting an NT 4 box it will not take effect until the next reboot =) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 25, 2003 10:34

RE: Displaying a status bar

2003-06-25 Thread FARRINGTON, RYAN
Title: RE: Displaying a status bar I don;t think there is really a way unless u use a flash front end to start the perl script running then take the output from the perl script and use that to make your determination... flash has some kewl content tools... =) -Original Message- From:

RE: how to match the last line in a file

2003-06-19 Thread FARRINGTON, RYAN
Title: RE: how to match the last line in a file could you not also do open(FILE, file_for_read.txt); @array = FILE; $last_line_number = $#array; $last_line = $array[$last_line_number]; ?? you may have to add one or subtract one I can't remember =) -Original Message- From: Dave

RE: MS SQL Server

2003-06-18 Thread FARRINGTON, RYAN
Title: RE: MS SQL Server omg... linux people using MS SQL servers? shame on you... =) -Original Message- From: Andy Wardley [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 18, 2003 10:15 AM To: Matt Sergeant Cc: [EMAIL PROTECTED] Subject: Re: MS SQL Server Matt Sergeant wrote:

RE: Why is PHP popular?

2003-06-06 Thread FARRINGTON, RYAN
Title: RE: Why is PHP popular? Yes, I feel I know perl well enough to make money with it... Although my skill set it not dedicated to PERL it is just another language in the list. For me perl is a tool to assist in Server Administration and not a primary source for my income. -Original

Apache::MP3

2003-05-30 Thread FARRINGTON, RYAN
Title: Apache::MP3 Has anyone gotten Apache::MP3 to run on Mod_perl 2?

MOD_PERL 2.0?

2003-05-30 Thread FARRINGTON, RYAN
Title: MOD_PERL 2.0? just as a test I used the ALL in ONE package to get this installed and it works like a champ except for Apache::compat errors with something about line 68. =( I don't have the error infront of me but it is something like method not defined.

Couple questions (alarm(), nested loops)

2003-03-19 Thread FARRINGTON, RYAN
Title: Couple questions (alarm(), nested loops) ok does ActiveState implement something like alarm() in the win32 version? and if I have nested loops: foreach $var(@vars){ foreach $stuff (@stuffs){ } } how do I make the second loop force the first loop to go to the next

RE: [PHP-WIN] Force a user to download a text file from a link

2003-02-21 Thread FARRINGTON, RYAN
, will load said text page into the user's browser window as soon as they click on the link. If the user then wants to save it, they can use the browser's Save As function. Too easy? Jill -Original Message- From: FARRINGTON, RYAN [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 2:22 PM

RE: [PHP-WIN] Force a user to download a text file from a link

2003-02-20 Thread FARRINGTON, RYAN
you could also try this: header(Content-Type: application/octet-stream); header(Content-Type: application/force-download); header(Content-Disposition: attachment; filename=$name); header(Content-Transfer-Encoding: text); or this header( Content-type: application/octet-stream ); header(

[PHP-WIN] php defining variable defaults?

2003-02-13 Thread FARRINGTON, RYAN
ok cold fusion has the ability to do a cfparam name='' default='' this lets you specify a variable name to be defaulted to a value if it is called without being defined. I usually use this for variables specified by forms either by GET or POST. now I can't find it's equivalent in PHP.. can

RE: [PHP-WIN] php defining variable defaults?

2003-02-13 Thread FARRINGTON, RYAN
($var)) $var = 'asdf'; Or if you're using a function, you can specify default values in the parameter list: function my_func($var1 = 'default1', $var2 = 'default2') { // do stuff // do stuff } Matt |-Original Message- |From: FARRINGTON, RYAN [mailto:[EMAIL PROTECTED

Win32::OLE 5.6?

2003-01-30 Thread FARRINGTON, RYAN
Title: Win32::OLE 5.6? has anyone seen the following error when trying to connect to a database using a connect string? the connection works for something like 50 connections then dies then comes back eventually... Any ideas? OLE exception from Provider: Unspecified error

RE: Daemon example

2003-01-29 Thread FARRINGTON, RYAN
Title: RE: Daemon example win32::daemon::simple required you to be able to use win32::daemon as well... daemon has to be installed as a package =( -Original Message- From: Jenda Krynicky [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 10:25 AM To: FARRINGTON, RYAN Cc

RE: Daemon example

2003-01-29 Thread FARRINGTON, RYAN
: FARRINGTON, RYAN [EMAIL PROTECTED] win32::daemon::simple required you to be able to use win32::daemon as well... daemon has to be installed as a package =( Oh well ... I did NOT ask you to install Win32::Daemon::Simple ! What do you get if you run ppm install http://Jenda.Krynicky.cz/perl/Win32

RE: Daemon example

2003-01-29 Thread FARRINGTON, RYAN
Message- From: Jenda Krynicky [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 11:00 AM To: [EMAIL PROTECTED] Subject: RE: Daemon example From: FARRINGTON, RYAN [EMAIL PROTECTED] win32::daemon::simple required you to be able to use win32::daemon as well... daemon has to be installed

Win32::OLE

2003-01-10 Thread FARRINGTON, RYAN
Title: Win32::OLE ok I have a script that uses Win32::OLE(ADODB.Connection) to connect to a MSSQL 2K database server and I was just playing with the query analyser provided by Microsoft with the client components. When u run a query it returns (x) rows effected [or something like that] I

RE: Win32::OLE

2003-01-10 Thread FARRINGTON, RYAN
-Original Message-From: FARRINGTON, RYAN [mailto:[EMAIL PROTECTED]] Sent: Friday, January 10, 2003 3:57 PMTo: [EMAIL PROTECTED]Subject: Win32::OLE ok I have a script that uses Win32::OLE(ADODB.Connection) to connect to a MSSQL 2K database server and I was just playing

perl -w script ?

2002-11-19 Thread FARRINGTON, RYAN
Title: perl -w script ? ok, So when I run perl -w load.pl I get the following... the script runs great but I was just surfing around and I found a perl scrits should always be run with -w ex: perl -w so I tried it and now i'm a little worried about the output =-( can anyone help me out?

RE: Connection to MSSql

2002-11-18 Thread FARRINGTON, RYAN
below is the code I use to access a SQL 2K box. Make sure you are running MDAC 2.7 otherwise you will run into problems. Please forgive the un-'l33t code... I'n not a PERL guru (yet) and if you want to assist in making the code 'l33t please give it a shot =) use Win32::OLE;use

RE: Source-Code-Protection

2002-10-31 Thread FARRINGTON, RYAN
Title: RE: Source-Code-Protection Harald, Perl2exe http://www.indigostar.com is shareware but you can always use it to make executables... I use it for the same reason here at the office and I make sure I am the only person with access to the source... -Original Message- From:

RE: Can't locate Date/Format.pm

2002-10-30 Thread FARRINGTON, RYAN
. -Original Message-From: Ricci, Mark [mailto:[EMAIL PROTECTED]]Sent: Wednesday, October 30, 2002 10:09 AMTo: 'FARRINGTON, RYAN'; '[EMAIL PROTECTED]'Subject: RE: Can't locate Date/Format.pm Thanks, Ryan. I was able to download it. But what directory do you install it in. I

RE: merging two tabseparated text files.

2002-10-29 Thread FARRINGTON, RYAN
Title: RE: Terrible at my logic your data does not match with the info... =( -Original Message-From: Mohanty, Debi (MED, TCS) [mailto:[EMAIL PROTECTED]]Sent: Tuesday, October 29, 2002 12:46 PMTo: [EMAIL PROTECTED]Subject: merging two tabseparated text files. Hi,

RE: Terrible at my logic

2002-10-25 Thread FARRINGTON, RYAN
Title: RE: Terrible at my logic Hari, Joseph is hitting it on the head... *warning sloppy code ahead* the following code worked like a champ for me on all the provided inputs... @str = (250 80707 13 294 8, 332 0 286 5 428 0, 332 0 286 5 428 0, 414 9 428 0 797 , 333 0 781 2 458 9 , 414

RE: Perl IDE..

2002-10-23 Thread FARRINGTON, RYAN
Title: RE: Perl IDE.. Komodo 1.1 is free!!! =) I'll see if I can find my download of it and then I'll send out a link to where u can download it =) -Original Message- From: David Kaufman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 23, 2002 9:17 AM To: [EMAIL PROTECTED];

RE: Perl IDE..

2002-10-23 Thread FARRINGTON, RYAN
Title: RE: Perl IDE.. I also found that PrimalScript is a good Perl editor =) -Original Message- From: Joao Vieira da Cunha [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 23, 2002 9:23 AM To: [EMAIL PROTECTED] Subject: Re: Perl IDE.. I've been using the OpenPerl IDE from

RE: msvc++ and environment variables

2002-10-08 Thread FARRINGTON, RYAN
Title: RE: msvc++ and environment variables try set from a command prompt that will output every environment varible... -Original Message- From: Sisyphus [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 08, 2002 1:59 PM To: [EMAIL PROTECTED] Subject: msvc++ and environment

RE: [perl-win32-gui-users] System Administrator

2002-06-10 Thread FARRINGTON, RYAN
Here is your solution Win32::PerfLib I've used it in the past and it works great for the applications I'm using it in -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, June 09, 2002 11:32 AM To: perl-win32-gui-users@lists.sourceforge.net Subject:

[perl-win32-gui-users] Everyone's work

2002-06-04 Thread FARRINGTON, RYAN
I'm extremely interested to see what everyone has come up with... Does anyone know a site that would be suitable for uploading our working Win32::Gui applications for everyone to see... I have something simple but I think people supporting a Win32 environment would think it useful as a tool =)

[perl-win32-gui-users] eek! =)

2002-05-28 Thread FARRINGTON, RYAN
Using Win32::GUI and I'm having a problem with the program reporting to windows that it is not responding. I know that it is because of the loop I have the program in but I still want the user to work while I'm processing in the background. I found a reference to $win-DoEvents() but as far as I

RE: [perl-win32-gui-users] eek! =)

2002-05-28 Thread FARRINGTON, RYAN
. $line; } $win-reFileSelected()-Text($msg); return(1); } -Original Message- From: FARRINGTON, RYAN [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 28, 2002 8:48 AM To: 'perl-win32-gui-users@lists.sourceforge.net' Subject: [perl-win32-gui-users] eek! =) Using Win32::GUI and I'm having