[29897] in Perl-Users-Digest
Perl-Users Digest, Issue: 1140 Volume: 11
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun Dec 23 09:09:41 2007
Date: Sun, 23 Dec 2007 06:09:04 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Sun, 23 Dec 2007 Volume: 11 Number: 1140
Today's topics:
"Program Working" web page ? <wheeledBobNOSPAM@yahoo.com>
Re: "Program Working" web page ? <jurgenex@hotmail.com>
Re: "Program Working" web page ? <wheeledBobNOSPAM@yahoo.com>
Re: "Program Working" web page ? <noreply@gunnar.cc>
Re: "Program Working" web page ? <stoupa@practisoft.cz>
Re: "Program Working" web page ? (Randal L. Schwartz)
Re: "Program Working" web page ? <noreply@gunnar.cc>
Re: "Program Working" web page ? (Randal L. Schwartz)
CMD in WinXP <mikeflan@earthlink.net>
File Upload/Download Program - FTP w/password via Perl <wheeledBobNOSPAM@yahoo.com>
new CPAN modules on Sun Dec 23 2007 (Randal Schwartz)
Re: OOP considered snake oil <java.oke@gmail.com>
Re: Regex to remove non printable characters <krahnj@telus.net>
removing ASCII escape chars from output SuperGh0d@gmail.com
Re: removing ASCII escape chars from output <krahnj@telus.net>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Sat, 22 Dec 2007 20:35:49 GMT
From: still just me <wheeledBobNOSPAM@yahoo.com>
Subject: "Program Working" web page ?
Message-Id: <f0tqm3tc61gt410iq9fjl75v21rm3dlrdu@4ax.com>
What is/are the technical approach(s) used to display "program
working" web pages?
I understand the cgi cycle well... and I'm thinking that if I send a
response page to the user with "program working" that then I'm all
done - I can't send another page of output with the program results.
I have a program that sometimes takes a little bit of time to run and
unless the used watches the browser indicators, I'm concerned that
they will terminate it early (before the results are sent to them).
I can think of some ways to do this with Javascript in the client, but
are there techniques to do this with cgi headers that are server
driven?
Thanks,
------------------------------
Date: Sat, 22 Dec 2007 20:45:06 GMT
From: Jürgen Exner <jurgenex@hotmail.com>
Subject: Re: "Program Working" web page ?
Message-Id: <1ltqm31869shtae0m4vijvgrn9g1ioj3ic@4ax.com>
still just me wrote:
Hi still
>What is/are the technical approach(s) used to display "program
>working" web pages?
Exactly the same as you would use if your program were written in C,
Pascal, VB, or any other programming language.
Why don't you ask in a NG that is actually dedicated to discussing web
programming instead of in a NG that is about the Perl programming
language.
jue
------------------------------
Date: Sat, 22 Dec 2007 21:16:32 GMT
From: still just me <wheeledBobNOSPAM@yahoo.com>
Subject: Re: "Program Working" web page ?
Message-Id: <idvqm3tm7cb62uipgke8pt8pq7dtr34eob@4ax.com>
On Sat, 22 Dec 2007 20:45:06 GMT, Jürgen Exner <jurgenex@hotmail.com>
wrote:
>still just me wrote:
>
>Hi still
>
>>What is/are the technical approach(s) used to display "program
>>working" web pages?
>
>Exactly the same as you would use if your program were written in C,
>Pascal, VB, or any other programming language.
>
>Why don't you ask in a NG that is actually dedicated to discussing web
>programming instead of in a NG that is about the Perl programming
>language.
>
Well, because many of the folks here who write Perl are well versed in
using Perl for CGI applications and I know that some of them likely
have the expertise to answer the question. In addition, there are no
active groups that I know of that are dedicated to a discussion of CGI
programming at this detailed level without being bound to some
specific programming language.
------------------------------
Date: Sat, 22 Dec 2007 23:43:05 +0100
From: Gunnar Hjalmarsson <noreply@gunnar.cc>
Subject: Re: "Program Working" web page ?
Message-Id: <5t5ibtF1bmls3U1@mid.individual.net>
still just me wrote:
> On Sat, 22 Dec 2007 20:45:06 GMT, Jürgen Exner wrote:
>> still just me wrote:
>>> What is/are the technical approach(s) used to display "program
>>> working" web pages?
You may want to check out this article:
http://www.stonehenge.com/merlyn/LinuxMag/col39.html
>> Exactly the same as you would use if your program were written in
>> C, Pascal, VB, or any other programming language.
Jürgen, your fanatic resistance to anything CGI is tiresome!
> there are no active groups that I know of that are dedicated to a
> discussion of CGI programming at this detailed level without being
> bound to some specific programming language.
But this list might be worth trying:
http://lists.cpan.org/showlist.cgi?name=beginners-cgi
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
------------------------------
Date: Sun, 23 Dec 2007 01:25:02 +0100
From: "Petr Vileta" <stoupa@practisoft.cz>
Subject: Re: "Program Working" web page ?
Message-Id: <fkka31$26q4$1@ns.felk.cvut.cz>
still just me wrote:
> What is/are the technical approach(s) used to display "program
> working" web pages?
>
[...]
>
> I have a program that sometimes takes a little bit of time to run and
> unless the used watches the browser indicators, I'm concerned that
> they will terminate it early (before the results are sent to them).
> I can think of some ways to do this with Javascript in the client, but
> are there techniques to do this with cgi headers that are server
> driven?
>
My solution is to send some characters to visitor's browser and some
"needless" spaces to overfill browser's buffer.
print "program working, please wait ";
foreach my $cycle (1..10)
{
print ".", ' 'x512;
sleep 2;
}
print "<br>Done";
Maybe this help you.
--
Petr Vileta, Czech republic
(My server rejects all messages from Yahoo and Hotmail. Send me your
mail from another non-spammer site please.)
Please reply to <petr AT practisoft DOT cz>
------------------------------
Date: Sat, 22 Dec 2007 19:32:20 -0800
From: merlyn@stonehenge.com (Randal L. Schwartz)
Subject: Re: "Program Working" web page ?
Message-Id: <86odcixf0b.fsf@blue.stonehenge.com>
>>>>> "still" == still just me <wheeledBobNOSPAM@yahoo.com> writes:
still> Well, because many of the folks here who write Perl are well versed in
still> using Perl for CGI applications
I can accept "some", but "many" is a bit strong. I know *many* people who
have *never* written a CGI app in Perl, and yet are quite versed in Perl.
Heck, I was even in that camp for the first half dozen years of my Perl
experience.
still> and I know that some of them likely
still> have the expertise to answer the question. In addition, there are no
still> active groups that I know of that are dedicated to a discussion of CGI
still> programming at this detailed level without being bound to some
still> specific programming language.
This is also incorrect. CIWAC (comp.infosystems.www.authoring.cgi) certainly
covers this. I haven't poked my head in there lately, but it's definitely a
CGI group that is language agnostic.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
------------------------------
Date: Sun, 23 Dec 2007 05:45:03 +0100
From: Gunnar Hjalmarsson <noreply@gunnar.cc>
Subject: Re: "Program Working" web page ?
Message-Id: <5t67ijF1chdklU1@mid.individual.net>
Randal L. Schwartz wrote:
> still> there are no
> still> active groups that I know of that are dedicated to a discussion of CGI
> still> programming at this detailed level without being bound to some
> still> specific programming language.
>
> This is also incorrect. CIWAC (comp.infosystems.www.authoring.cgi) certainly
> covers this.
s/covers/covered/
That group has been defunct for 15 months, so your mentioning of ciwac
won't likely make a difference.
I thought you were aware of it, btw.
http://groups.google.com/group/comp.lang.perl.misc/msg/b89d5979881bffef
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
------------------------------
Date: Sun, 23 Dec 2007 00:09:02 -0800
From: merlyn@stonehenge.com (Randal L. Schwartz)
Subject: Re: "Program Working" web page ?
Message-Id: <86ir2pygrl.fsf@blue.stonehenge.com>
>>>>> "Gunnar" == Gunnar Hjalmarsson <noreply@gunnar.cc> writes:
Gunnar> I thought you were aware of it, btw.
Gunnar> http://groups.google.com/group/comp.lang.perl.misc/msg/b89d5979881bffef
Ahh, oh, yeah, ok. Hmm. I thought that it had started up again. Darn.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
------------------------------
Date: Sat, 22 Dec 2007 20:54:38 -0600
From: Mike Flannigan <mikeflan@earthlink.net>
Subject: CMD in WinXP
Message-Id: <476DCDEE.1FBEE5A6@earthlink.net>
I just loaded WinXP on my wife's computer. I hate that OS.
I just noticed that the command prompt window scrolls
real slow. I did some searching and don't see an easy way
to correct this. Does anybody have a recommendation
on how to fix it?
Obviously, I could just output my Perl output to a test file,
but I'd like an way to fix the cmd window so I wouldn't
need a separate list of perl scripts to run on the WinXP
computer.
Mike Flannigan
------------------------------
Date: Sat, 22 Dec 2007 20:27:49 GMT
From: still just me <wheeledBobNOSPAM@yahoo.com>
Subject: File Upload/Download Program - FTP w/password via Perl cgi?
Message-Id: <a4rqm3di5clu6duonloh4ibfnn02gufim0@4ax.com>
I'm looking for some general advice on an approach to providing file
upload/download abilities using Perl through FTP to/from a web host.
I'm trying to build a web based interface that will allow novice users
to upload and download files. I need some sort of security so that one
user does not have access to another user's data. I am hoping to
utilize the servers FTP user/pass security to control access so that I
don't have to build that via a more complex d/b application. So, the
program would do a "login" of sorts to verify access and then upload
the files, or provide download of the files, as needed.
Is this a reasonable idea? Or should I just dash the idea and create
some sort of application based user/pass system?
If it makes sense, I could use some pointers to examples, etc, that
will help me on my way. I'm light on Perl skills, so be gentle :-)
Thanks,
------------------------------
Date: Sun, 23 Dec 2007 05:42:15 GMT
From: merlyn@stonehenge.com (Randal Schwartz)
Subject: new CPAN modules on Sun Dec 23 2007
Message-Id: <JtHMIF.1zD6@zorch.sf-bay.org>
The following modules have recently been added to or updated in the
Comprehensive Perl Archive Network (CPAN). You can install them using the
instructions in the 'perlmodinstall' page included with your Perl
distribution.
Acme-MetaSyntactic-daleks-1.01
http://search.cpan.org/~saper/Acme-MetaSyntactic-daleks-1.01/
EXTERMINATE! EXTERMINATE! EXTERMINATE!
----
Activator-0.10
http://search.cpan.org/~knassar/Activator-0.10/
Development Framework - Object Oriented framework to ease creation of mulit-developer distributed mixed environment perl based software projects, especially Catalyst based websites.
----
App-Module-Lister-0.11
http://search.cpan.org/~bdfoy/App-Module-Lister-0.11/
----
BDB-1.41
http://search.cpan.org/~mlehmann/BDB-1.41/
Asynchronous Berkeley DB access
----
Chess-ChessKit-ChessKit-0.04
http://search.cpan.org/~chesskit/Chess-ChessKit-ChessKit-0.04/
The great new Chess::ChessKit::ChessKit!
----
ClarionUnlock-1.0
http://search.cpan.org/~ajdixon/ClarionUnlock-1.0/
Perl extension for generating unlock codes for many models of Clarion car stereos
----
Coro-4.34
http://search.cpan.org/~mlehmann/Coro-4.34/
coroutine process abstraction
----
Device-CableModem-SURFboard-0.03
http://search.cpan.org/~ruzam/Device-CableModem-SURFboard-0.03/
----
Device-CableModem-SURFboard-0.04
http://search.cpan.org/~ruzam/Device-CableModem-SURFboard-0.04/
Get info from a Motorola 'SURFboard'
----
EV-2.0
http://search.cpan.org/~mlehmann/EV-2.0/
perl interface to libev, a high performance full-featured event loop
----
EV-ADNS-2.0
http://search.cpan.org/~mlehmann/EV-ADNS-2.0/
lightweight asynchronous dns queries using EV and libadns
----
EV-Glib-2.0
http://search.cpan.org/~mlehmann/EV-Glib-2.0/
Embed the glib main loop into EV
----
Geo-Ov2-Grabber-0.01_02
http://search.cpan.org/~hpa/Geo-Ov2-Grabber-0.01_02/
The great new Geo::Ov2::Grabber!
----
Glib-EV-2.0
http://search.cpan.org/~mlehmann/Glib-EV-2.0/
Coerce Glib into using the EV module as event loop.
----
Locale-Maketext-Lexicon-0.65
http://search.cpan.org/~audreyt/Locale-Maketext-Lexicon-0.65/
Use other catalog formats in Maketext
----
Parse-Marpa-0.001_061
http://search.cpan.org/~jkegl/Parse-Marpa-0.001_061/
(pre-Alpha) Jay Earley's general parsing algorithm, with LR(0) precomputation
----
Perl6-Bible-0.31
http://search.cpan.org/~lichtkind/Perl6-Bible-0.31/
Perl 6 Design Documentations
----
QWizard-3.13
http://search.cpan.org/~hardaker/QWizard-3.13/
Display a series of questions, get the answers, and act on the answers.
----
Win32-Outlook-IAF-0.96
http://search.cpan.org/~pczerkas/Win32-Outlook-IAF-0.96/
Internet Account File (*.iaf) management for Outlook Express/2000.
----
txt2html-2.50
http://search.cpan.org/~rubykat/txt2html-2.50/
convert plain text file to HTML.
If you're an author of one of these modules, please submit a detailed
announcement to comp.lang.perl.announce, and we'll pass it along.
This message was generated by a Perl program described in my Linux
Magazine column, which can be found on-line (along with more than
200 other freely available past column articles) at
http://www.stonehenge.com/merlyn/LinuxMag/col82.html
print "Just another Perl hacker," # the original
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
------------------------------
Date: Sat, 22 Dec 2007 13:13:00 -0800 (PST)
From: "j.oke" <java.oke@gmail.com>
Subject: Re: OOP considered snake oil
Message-Id: <88e94b5c-c462-47b5-9cf7-d79312ea83a4@p69g2000hsa.googlegroups.com>
On 22 Dic, 17:45, A New American-Chinese Super Power Man wrote:
[...]
As olwaiz, you're right and left.
Meri krismess!!
------------------------------
Date: Sun, 23 Dec 2007 08:23:07 GMT
From: "John W. Krahn" <krahnj@telus.net>
Subject: Re: Regex to remove non printable characters
Message-Id: <20071223002307.fb4a6f00.krahnj@telus.net>
On Sat, 22 Dec 2007 05:53:18 +0100
Larry <dontmewithme@got.it> wrote:
> In article <fe0bj.9527$wy2.5863@edtnps90>,
> "John W. Krahn" <dummy@example.com> wrote:
>
> > $input =~ s/[^[:ascii:]]+//g;
> >
> >
> > >...that's to say i'd like to remove non printable chars...
> >
> > $input =~ s/[^[:print:]]+//g;
>
> is this fine?
>
> $input =~ tr/\x80-\xFF//d;
Your subject line says you want a regex. The tr/// operator doesn't use regular expressions.
John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order. -- Larry Wall
------------------------------
Date: Sat, 22 Dec 2007 14:40:40 -0800 (PST)
From: SuperGh0d@gmail.com
Subject: removing ASCII escape chars from output
Message-Id: <404dc5f7-2583-46bf-84e5-26f88b4c1b70@e10g2000prf.googlegroups.com>
Hello all,
I have some output that looks like this
$B"+(B[21;32H1700$B"+(B[21;44HTC HUMATHROPE
and I am trying to extract the 1700 and HTC HUMATHROPE. Can someone
point me in the right direction?
thanks!
------------------------------
Date: Sun, 23 Dec 2007 08:39:37 GMT
From: "John W. Krahn" <krahnj@telus.net>
Subject: Re: removing ASCII escape chars from output
Message-Id: <20071223003937.ba40ec60.krahnj@telus.net>
On Sat, 22 Dec 2007 14:40:40 -0800 (PST)
SuperGh0d@gmail.com wrote:
> Subject: removing ASCII escape chars from output
>
> I have some output that looks like this
>
> â†[21;32H1700â†[21;44HTC HUMATHROPE
There is only one ASCII escape character in there, *the* ASCII escape character. The other characters '[', '2', '1', ';', '3', '2', 'H', etc. are just normal ASCII characters.
> and I am trying to extract the 1700 and HTC HUMATHROPE. Can someone
> point me in the right direction?
You need to remove the ANSI escape sequences:
http://isthe.com/chongo/tech/comp/ansi_escapes.html
John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order. -- Larry Wall
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>
Administrivia:
#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc. For subscription or unsubscription requests, send
#the single line:
#
# subscribe perl-users
#or:
# unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.
NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.
#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V11 Issue 1140
***************************************