[11756] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 5356 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Apr 12 01:07:21 1999

Date: Sun, 11 Apr 99 22:00:16 -0700
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, 11 Apr 1999     Volume: 8 Number: 5356

Today's topics:
    Re: Active State 5.09 Perl processes hanging under NT 4 gkeene@[DELETE_THIS]
    Re: Backslash escapes w/in *single* quotes? <jdf@pobox.com>
    Re: converting byte to Numeric jhenzel@gci-net.com
    Re: converting byte to Numeric (Sam Holden)
    Re: Hash symbol '%' a stylized what? (Damian Conway)
    Re: Hash symbol '%' a stylized what? <mpersico@erols.com>
    Re: Hash symbol '%' a stylized what? <rra@stanford.edu>
    Re: Hash symbol '%' a stylized what? (Damian Conway)
    Re: Hash symbol '%' a stylized what? (Damian Conway)
    Re: Help! Help! Simple question! <rick.delaney@home.com>
        HELP!!  HOW TO RANDOMIZE MY ARRAY lufan@hotmail.com
    Re: HELP!!  HOW TO RANDOMIZE MY ARRAY (Sam Holden)
    Re: HELP!!  HOW TO RANDOMIZE MY ARRAY (Larry Rosler)
    Re: how to print random words from array on one line <rick.delaney@home.com>
    Re: implement useradd in perl <rick.delaney@home.com>
    Re: newbie to Perl <cyberjeff@sprintmail.com>
    Re: newbie to Perl <cyberjeff@sprintmail.com>
    Re: passing variables from PERL to JavaScript <cyberjeff@sprintmail.com>
    Re: Privacy for ...A followup question <a_branson_1998@yahoo.com>
    Re: Privacy for ...A followup question (LAN Boy)
    Re: Privacy for slaves forced to use a proxy/firewall t <skydoc@email.com>
        Q about Server Side Includes, Perl , and  CPU utilizati <a_branson_1998@yahoo.com>
        Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Mon, 12 Apr 1999 02:24:15 GMT
From: gkeene@[DELETE_THIS]
Subject: Re: Active State 5.09 Perl processes hanging under NT 4.0
Message-Id: <3712590a.116480770@enews.newsguy.com>

Where does one get 3.6.1? I have 3.6 from the distributed Netscape CD (part
of the software update service), however I don't know where I can get 3.6.1
(not at http://help.netscape.com/business/filelib.html). Any help? (please
CC: me via e-mail if you post).

Thanks!

Greg Keene

Raven513 <Ravens@Go-Baltimore.com> wrote:

>Bill Morgan wrote:
>> 
>> I just installed Active State Perl 5.09 under NT 4.0.  We are running lots of
>> Perl CGI scripts from our web server, which is Netscape Enterprise v3.6.  It
>> looks like some of the processes are hanging around after the scripts finish,
>> because every day when I look at the NT task manager, there are 20 or 30
>> Perl.exe processes in there that don't go away and are soaking up resources.
>> All of our Perl scripts have explicit "exit" statements in them when they
>> finish, so I'm not sure what is causing this.  Has anyone else experienced
>> this problem?  Please email any replies as well as posting to this group.
>> Thanks!
>> 
>> ---------------------------------------------------------------------------
>> William E. Morgan       NAVAL SURFACE WARFARE CENTER
>> Code N84                     email: wmorgan@nswc.navy.mil
>> 17320 Dahlgren Rd.     phone: (540)653-6088
>> Dahlgren, VA  22448   fax: (540)653-1810
>
>
>Get the Service Pack for Netscape Enterprise Server (v3.6.1).  Seems
>that the folks at Netscape had a problem with CGI processes hanging on
>NT when the browser was closed before the process completed.
>
>Raven513



------------------------------

Date: 11 Apr 1999 23:07:28 -0400
From: Jonathan Feinberg <jdf@pobox.com>
To: John Callender <jbc@shell2.la.best.com>
Subject: Re: Backslash escapes w/in *single* quotes?
Message-Id: <m3pv5apmdr.fsf@joshua.panix.com>

John Callender <jbc@shell2.la.best.com> writes:

> My question concerns '\\'. I seem to be able to successfully put a
> single backslash in a single-quoted string and have it print out,
> without resorting to a doubled backslash.

Yes, but double-backslash *is* interpolated in a single-quoted
string.  The camel book, which you quote, is not to be taken as
up-to-date documentation for the Perl language.  See the perlop that
accompanies your distribution of perl for the scoopp.  Here's what the
perlop from 5.005_03 has to say:

    A backslash represents a backslash unless followed by the
    delimiter or another backslash, in which case the delimiter or
    backslash is interpolated.

-- 
Jonathan Feinberg   jdf@pobox.com   Sunny Brooklyn, NY
http://pobox.com/~jdf


------------------------------

Date: Mon, 12 Apr 1999 01:59:48 GMT
From: jhenzel@gci-net.com
Subject: Re: converting byte to Numeric
Message-Id: <37115191.19921465@news.gci-net.com>

Larry

Thanks. I got it to work   I more question.  What I was trying to do
was random access to a file.  Does Perl let you jump to a certain
offset and read the bytes at that location or is it all sequential?

Jerry




On Sun, 11 Apr 1999 13:42:31 -0700, lr@hpl.hp.com (Larry Rosler)
wrote:

>[Posted and a courtesy copy sent.]
>
>In article <3710fa97.191850396@news.gci-net.com> on Sun, 11 Apr 1999 
>19:47:11 GMT, jhenzel@gci-net.com <jhenzel@gci-net.com >says...
>>...
>>     read(FH,$FileCode,4,0) ;
>>     read(FH,$FileLength,4,24) ;
>> 	read(FH,$Version,4,28) ;
>> 	read(FH,$ShapeType,4,32) ;
>> 	read(FH,$XMin,4,36) ;
>... 
>> The documentation states the the File Code is at Byte 0 and is a Big
>> Endian Integer with a value of 9994.  I can get this but cannot get
>> the other values.  For example, the File length is at Byte 24 (Big
>> Endian Integer), the Version at Byte 28 (Little Endian Integer) with a
>> value of 1000, etc.  I just keep getting a 0 for these other values.
>> 
>> Any suggestions on what I am doing wrong would be greatly appreciated.
>> I think it is something simple that I am missing.  I have gone
>> throught the PERL docs and nothing hits me.
>
>I assume you read the documentation for the read() function:
>
>perldoc -f read
>
>but misinterpreted the meaning of the optional fourth argument (OFFSET).  
>This specifies where in the target string to place the newly read data.  
>You seem to think it means an offset in the file being read.
>
>Just drop the fourth argument from each of your calls, and all should 
>work as you want.
>
>-- 
>(Just Another Larry) Rosler
>Hewlett-Packard Company
>http://www.hpl.hp.com/personal/Larry_Rosler/
>lr@hpl.hp.com



------------------------------

Date: 12 Apr 1999 02:23:24 GMT
From: sholden@pgrad.cs.usyd.edu.au (Sam Holden)
Subject: Re: converting byte to Numeric
Message-Id: <slrn7h2m8s.1kh.sholden@pgrad.cs.usyd.edu.au>

On Mon, 12 Apr 1999 01:59:48 GMT, jhenzel@gci-net.com wrote:
>Larry
>
>Thanks. I got it to work   I more question.  What I was trying to do
>was random access to a file.  Does Perl let you jump to a certain
>offset and read the bytes at that location or is it all sequential?

perldoc -f seek
perldoc -f sysseek

-- 
Sam

Of course, in Perl culture, almost nothing is prohibited. My feeling is
that the rest of the world already has plenty of perfectly good
prohibitions, so why invent more?  --Larry Wall


------------------------------

Date: 12 Apr 1999 02:18:51 GMT
From: damian@cs.monash.edu.au (Damian Conway)
Subject: Re: Hash symbol '%' a stylized what?
Message-Id: <7erl6b$5br$1@towncrier.cc.monash.edu.au>

>>>but I can't remember what, if anything, the hash's '%' was supposed to
>>>represent, and I haven't been able to track down the original source.

It's a stylized 'H'. For "hash".

        -----------      -----------
        |         |      |         |
        |   ooo   |      |   //////|
        | ooooooo |      | //////  |
        |ooo   ooo-------//////    |
        |ooo   ooo     //////      |
        | ooooooo    //////        |                                  
        |   ooo    //////    ooo   |
        |        //////    ooooooo |
        |      //////     ooo   ooo|                               
        |    //////-------ooo   ooo|
        |  ////// |      | ooooooo |
        |//////   |      |   ooo   |
        |         |      |         |
        -----------      -----------


BTW, terrific mnemonic for beginners. Why isn't it in the docs?

Damian                                         


------------------------------

Date: Sun, 11 Apr 1999 22:24:20 -0400
From: "Matthew O. Persico" <mpersico@erols.com>
Subject: Re: Hash symbol '%' a stylized what?
Message-Id: <37115954.2B65AE76@erols.com>

Damian Conway wrote:
> 
> >>>but I can't remember what, if anything, the hash's '%' was supposed to
> >>>represent, and I haven't been able to track down the original source.
> 
> It's a stylized 'H'. For "hash".
> 
>         -----------      -----------
>         |         |      |         |
>         |   ooo   |      |   //////|
>         | ooooooo |      | //////  |
>         |ooo   ooo-------//////    |
>         |ooo   ooo     //////      |
>         | ooooooo    //////        |
>         |   ooo    //////    ooo   |
>         |        //////    ooooooo |
>         |      //////     ooo   ooo|
>         |    //////-------ooo   ooo|
>         |  ////// |      | ooooooo |
>         |//////   |      |   ooo   |
>         |         |      |         |
>         -----------      -----------
> 
> BTW, terrific mnemonic for beginners. Why isn't it in the docs?
> 
> Damian

Hmm. If Larry was British, would our hash symbol have been # (which they call a hash)?
-- 
Matthew O. Persico
http://www.erols.com/mpersico
http://www.digistar.com/bzip2


------------------------------

Date: 11 Apr 1999 20:45:04 -0700
From: Russ Allbery <rra@stanford.edu>
Subject: Re: Hash symbol '%' a stylized what?
Message-Id: <ylpv5afqnz.fsf@windlord.stanford.edu>

Matthew O Persico <mpersico@erols.com> writes:

> Hmm. If Larry was British, would our hash symbol have been # (which they
> call a hash)?

Probably not, given the number of things that use # as a comment sign.  I
think it would have taken a lot for Larry not to use the same symbol for
comments that all shells and most system configuration files use.

-- 
#!/usr/bin/perl -- Russ Allbery, Just Another Perl Hacker
$^=q;@!>~|{>krw>yn{u<$$<[~||<Juukn{=,<S~|}<Jwx}qn{<Yn{u<Qjltn{ > 0gFzD gD,
 00Fz, 0,,( 0hF 0g)F/=, 0> "L$/GEIFewe{,$/ 0C$~> "@=,m,|,(e 0.), 01,pnn,y{
rw} >;,$0=q,$,,($_=$^)=~y,$/ C-~><@=\n\r,-~$:-u/ #y,d,s,(\$.),$1,gee,print


------------------------------

Date: 12 Apr 1999 03:50:35 GMT
From: damian@cs.monash.edu.au (Damian Conway)
Subject: Re: Hash symbol '%' a stylized what?
Message-Id: <7erqib$162$1@towncrier.cc.monash.edu.au>

"Matthew O. Persico" <mpersico@erols.com> writes:

>Hmm. If Larry was British, would our hash symbol have been # (which
>they call a hash)?

Top Ten Things that would be different if Larry was British...

        10. Correct use of subjunctive tense required in all
            comp.lang.perl.misc posts. Matthew made to write:
	    "...if Larry *were* British..."

	 9. $[ = 1 by default ("One must start an array...")

	 8. Berets deprecated at Perl Conference (too French!)

	 7. Stonehenge Consulting based on the Wiltshire downs,
	    instead of Oregon.

	 6. 'if' statement replaced with 'look_I'm_most_awfully_sorry_to_bother_you_but__if_you're_not_*terribly*_busy_just_at_the_moment_I_was_wondering_if_you_might_perhaps' request.

	 5. "Programming Perl" published by Oxford University Press,
	    in 20 fat volumes.

         4. Perl Institute known as Department of Perl Affairs. Instead
            of closing it down, its Board of Governors recommends a
	    three year Royal Commission, and the interim appointment
	    of an additional 2000 civil servants to handle the extra
	    paperwork.

	 3. 'die' renamed 'take_thet_you_barstard'

	 2. Sir Thomas Christiansen, KCPM.


And the number one thing that would be different if Larry was British...

	 1. "Pearl" would have been correctly spelt.

:-)

Damian


------------------------------

Date: 12 Apr 1999 03:54:40 GMT
From: damian@cs.monash.edu.au (Damian Conway)
Subject: Re: Hash symbol '%' a stylized what?
Message-Id: <7erqq0$ve$1@towncrier.cc.monash.edu.au>

Oops!

>        10. Correct use of subjunctive tense required in all
>            comp.lang.perl.misc posts. Matthew made to write:
>	    "...if Larry *were* British..."

That should, of course, have been:

	    "...if Lawrence *were* British..."

Damian


------------------------------

Date: Mon, 12 Apr 1999 02:59:29 GMT
From: Rick Delaney <rick.delaney@home.com>
Subject: Re: Help! Help! Simple question!
Message-Id: <3711638A.7157DE27@home.com>

[posted & mailed]

CUKSA wrote:
> 
> Hi.
> I using DB to store some information using perl CGI.
> It creats files but I can't access that DB file from other CGI script.

[snip incomplete description of actual file permissions]

> part of my code look like this:
> 
>     tie (%myDB, DB_File, "mailinglist.db", O_RDWR|O_CREAT, 0666,
> $DB_HASH)
>   || die "Can\'t open db file\n";

You might want to make that diagnostic more descriptive by including $!
so that you can be sure you have a permission problem.

What you have should create a file readable and writeable by all
(assuming you're passing the arguments in the correct order), subject to
the current umask.

perldoc -f umask
man umask

-- 
Rick Delaney
rick.delaney@home.com


------------------------------

Date: Mon, 12 Apr 1999 11:39:49 -0700
From: lufan@hotmail.com
Subject: HELP!!  HOW TO RANDOMIZE MY ARRAY
Message-Id: <37123DF5.2D75@hotmail.com>

hi,

I want to randomize my array in same order, that is to
say I have @a1, @a2, all with same length contain different
strings. but I want to them be like following,

 @a1={1,2,3,4...}     ==> @a1={2,3,1,4 ...}
 @a2={a,b,c,d...}     ==> @a2={b,c,a,d ...}


can anybody give me simple and quick code samples ?


thanks
lufan


------------------------------

Date: 12 Apr 1999 02:40:47 GMT
From: sholden@pgrad.cs.usyd.edu.au (Sam Holden)
Subject: Re: HELP!!  HOW TO RANDOMIZE MY ARRAY
Message-Id: <slrn7h2n9f.6li.sholden@pgrad.cs.usyd.edu.au>

On Mon, 12 Apr 1999 11:39:49 -0700, lufan@hotmail.com <lufan@hotmail.com> wrote:
>hi,
>
>I want to randomize my array in same order, that is to
>say I have @a1, @a2, all with same length contain different
>strings. but I want to them be like following,
>
> @a1={1,2,3,4...}     ==> @a1={2,3,1,4 ...}
> @a2={a,b,c,d...}     ==> @a2={b,c,a,d ...}

Your syntax is completely wrong...

see 'perldoc perlsyn' for details...
>
>
>can anybody give me simple and quick code samples ?

perlfaq4 : How do I shuffle an array randomly?

Something like :

# the arrays to randomise
@a1= (1,2,3,4,5);
@a2= qw(a b c d e);

# create an array of indexes into those arrays
@order = (0 ... $#a1);

# randomize the indexes
fisher_yates_shuffle( \@order ); #from the faq above...

#Now use an array slice to reorder both arrays
@a1 = @a1[@order];
@a2 = @a2[@order];

I'm sure someone will sugest a better way, after all TMTOWTDI.

-- 
Sam

testing? What's that? If it compiles, it is good, if it boots up it is
perfect.
	  Linus Torvalds


------------------------------

Date: Sun, 11 Apr 1999 19:58:16 -0700
From: lr@hpl.hp.com (Larry Rosler)
Subject: Re: HELP!!  HOW TO RANDOMIZE MY ARRAY
Message-Id: <MPG.117b01275aae3356989893@nntp.hpl.hp.com>

[Posted and a courtesy copy sent.]

In article <37123DF5.2D75@hotmail.com> on Mon, 12 Apr 1999 11:39:49 -
0700, lufan@hotmail.com <lufan@hotmail.com >says...
> I want to randomize my array in same order, that is to
> say I have @a1, @a2, all with same length contain different
> strings. but I want to them be like following,
> 
>  @a1={1,2,3,4...}     ==> @a1={2,3,1,4 ...}
>  @a2={a,b,c,d...}     ==> @a2={b,c,a,d ...}

To do this without changing your data structures (to a multi-dimensional 
array), modify the code in perlfaq4:  "How do I shuffle an array 
randomly?".  Wherever it interchanges elements in @array, change it to 
operate on both @a1 and @a2, using the same pairs of indexes.

-- 
(Just Another Larry) Rosler
Hewlett-Packard Company
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com


------------------------------

Date: Mon, 12 Apr 1999 03:05:47 GMT
From: Rick Delaney <rick.delaney@home.com>
Subject: Re: how to print random words from array on one line
Message-Id: <3711650C.CBB33E96@home.com>

[posted & mailed]

tzoko1000@my-dejanews.com wrote:
> 
> @ary = <INF>;

   chomp @ary

perldoc -f chomp

-- 
Rick Delaney
rick.delaney@home.com


------------------------------

Date: Mon, 12 Apr 1999 02:42:31 GMT
From: Rick Delaney <rick.delaney@home.com>
Subject: Re: implement useradd in perl
Message-Id: <37115F97.30BD01A4@home.com>

Sam Holden wrote:
> 
> Jonathan Ho <t0.ho@student.qut.edu.au> wrote:
> >How do i write the perl shell script to implement the "useradd " command?
> 
> The same way you would write it in c or sh.

Yes.
 
> Work out what it needs to do... 

[Snip what it needs to do.  Bleagh.]

> The you implement those things in perl. The documentation in the 
> perlfunc man page would be particularly useful for a lot of the above.

In particular, check out the entry for system.  Then you write it the
same way you would in C or sh.

-- 
Rick Delaney
rick.delaney@home.com


------------------------------

Date: Mon, 12 Apr 1999 00:12:53 -0400
From: Jeff Thies <cyberjeff@sprintmail.com>
Subject: Re: newbie to Perl
Message-Id: <371172C5.9B2A50FC@sprintmail.com>

> > > You might read up on @ARGV.
> >
> > Got a good place to do that?
>
> "man perlvar", which seemed the obvious place to look, no?

There is very little there on ARGV (that I found). Quite a bit on _$.

> And in Learning Perl, including examples that start at p227 in the
> edition I have here.  A newbie (a serious newbie, anyhow) really should
> invest in that book; the quicker they decide they've got beyond what's
> covered in the book, the more effective the book has proved its worth,
> right?  ;-)

I'll look there, thanks.

> > As near as I can tell ARGV is passed on the
> > query string and delimited by "+". Is that right?
>
> Hang on, are you confusing execution from the command line, and
> execution from the CGI environment?

Yes, I think that I am. Is ARGV then passed from the command line?

> The CGI programming interface is clearly defined (and isn't specific
> to Perl).  If you're programming a CGI, then I strongly recommend
> programming to the CGI interface specification, and not relying on
> something else that you happen to find hanging around in the
> environment.
>
> If you use CGI.pm, then it gives you a comfortable debugging environment
> from the command line too.

This seems to be where I need to go.

>  You don't need dual-path code of your own,
> in that situation.  Program it yourself, and you'll be re-inventing the
> wheel again and again.
>
> Apologies if I'm misunderstanding your point.

No, you've got it right.

I've been trying to learn perl, I never realized what a wonderful and useful
language that it is. I've seen these references to @ARGV and I wanted to
find out what it was.

My interest in perl is for cgi, would it be more appropriate to post to a
different NG?

Here in the states we have Barnes and Noble reading rooms (they call them
bookstores), I'll be back there tomorrow.

Jeff





------------------------------

Date: Mon, 12 Apr 1999 00:17:22 -0400
From: Jeff Thies <cyberjeff@sprintmail.com>
Subject: Re: newbie to Perl
Message-Id: <371173D1.1E8596BF@sprintmail.com>

> You are confused between invoking a program via the Common Gateway
> Interface and via a command-line interface.  @ARGV is the list of
> arguments supplied in the latter case.

Thanks, that turns on that light bulb for me!

Jeff




------------------------------

Date: Sun, 11 Apr 1999 23:46:54 -0400
From: Jeff Thies <cyberjeff@sprintmail.com>
Subject: Re: passing variables from PERL to JavaScript
Message-Id: <37116CAE.46299B2D@sprintmail.com>

> >   How do you pass a variable from Perl to JavaScript?
> >
> > Jeff
>
> You don't.  Perl has a built-in feature that automatically disables
> Javascript and VBScript whenever encountered.  :-)

> Does one program call the other?  If so, which is the parent process?
> Or do they run independently, and you want to open a pipe from one to
> the other?  In general, Perl is designed to play nice with other
> children, so there are a variety of ways to do this, depending on
> the circumstances.

I'm not sure yet everything I need to do. At this time I just want to pass
an array back from perl, perl would be the parent. I would imagine that
could be done with SSI virtual writing the array to the page?

I would like to know if javascript client could call perl server and perl
would return a variable? Currently the way I have the server return a value
is to write it between <script> tags in either an IFrame or a layer (4.x).
I'm new to perl, I'm using Cold Fusion and find it very limiting.

Sorry for being vague.

Jeff




------------------------------

Date: 12 Apr 1999 03:00:57 GMT
From: "Andrew Branson" <a_branson_1998@yahoo.com>
Subject: Re: Privacy for ...A followup question
Message-Id: <7ernl9$10r$0@208.231.50.202>

The company I work for (part time) is aware that I have several other
clients. I just don't want them to know about the details of my dealings
with other clients.

How about this setup, will this ensure privacy:
- A Perl script run over HTTP/SSL that handles login & authentication (i.e.
password transmission and authentication is encrypted)
- Once authenticated, access continues as before (HTTP/SSL)

Anyone sees problems with this setup? Any other better way?

Andy






Luca Filipozzi wrote in message ...
>In article <7eqtga$45f$0@208.231.50.134>, x@x.com says...
>> If I access my personal web site (which is running SSL) can the admin see
>> the content of my web site. Also, if I use basic HTTP authentication
>> (.htaccess, etc.) will the admin be able to intercept my password and log
on
>> to my SSL site?
>>
>> (I am not interested in goofing off at work; I just have to occasionally
>> check my web site to see if one of my clients had and emergency.)
>
>Your "other" clients... the ones for your personal business, right? I'm
>sure your employer would agree with that, not.
>
>BTW, don't think your sysadmin could look at the pages if you have
>connected securely. The important part is whether you sysadmin can sniff
>your username and or password as you connect. So, to get around that, you
>need a java applet that you download and send your username/password that
>way.
>
>Ask your employer if you are allowed to moonlight using their
>equipment... i'd like to hear what they say.
>
>--
>Luca Filipozzi <lucanntp@ise.bc.ca.spamsucks>




------------------------------

Date: Mon, 12 Apr 1999 04:04:48 GMT
From: lan_boy@hotmail.com (LAN Boy)
Subject: Re: Privacy for ...A followup question
Message-Id: <37116f85.23326755@news.ne.mediaone.net>

Help me out here:  Exactly what is the concern/problem with using
"basic authentication" scheme if the connection is being forced to use
SSL?  Are you concered your present employer might sniff your SSL'd
login, crack the username/pwd, and then access your website?!  Maybe
I'm missing something with respect to Basic Auth over SSL?  Is it NOT
encrypted via SSL, too?

I should think that forcing the connection attempt to use SSL would be
sufficient to prevent all but the most determined hacker (and well
funded one, at that) from sniffing your logon and deciphering the
packets to yield the logon info.  No?

-LB

On 12 Apr 1999 03:00:57 GMT, "Andrew Branson"
<a_branson_1998@yahoo.com> wrote:

>The company I work for (part time) is aware that I have several other
>clients. I just don't want them to know about the details of my dealings
>with other clients.
>
>How about this setup, will this ensure privacy:
>- A Perl script run over HTTP/SSL that handles login & authentication (i.e.
>password transmission and authentication is encrypted)
>- Once authenticated, access continues as before (HTTP/SSL)
>
>Anyone sees problems with this setup? Any other better way?
>
>Andy
>
>
>
>
>
>
>Luca Filipozzi wrote in message ...
>>In article <7eqtga$45f$0@208.231.50.134>, x@x.com says...
>>> If I access my personal web site (which is running SSL) can the admin see
>>> the content of my web site. Also, if I use basic HTTP authentication
>>> (.htaccess, etc.) will the admin be able to intercept my password and log
>on
>>> to my SSL site?
>>>
>>> (I am not interested in goofing off at work; I just have to occasionally
>>> check my web site to see if one of my clients had and emergency.)
>>
>>Your "other" clients... the ones for your personal business, right? I'm
>>sure your employer would agree with that, not.
>>
>>BTW, don't think your sysadmin could look at the pages if you have
>>connected securely. The important part is whether you sysadmin can sniff
>>your username and or password as you connect. So, to get around that, you
>>need a java applet that you download and send your username/password that
>>way.
>>
>>Ask your employer if you are allowed to moonlight using their
>>equipment... i'd like to hear what they say.
>>
>>--
>>Luca Filipozzi <lucanntp@ise.bc.ca.spamsucks>
>
>



------------------------------

Date: Mon, 12 Apr 1999 04:48:44 GMT
From: "Doc" <skydoc@email.com>
Subject: Re: Privacy for slaves forced to use a proxy/firewall to access the net?
Message-Id: <MWeQ2.1519$VC2.1354@news.rdc1.nj.home.com>

Some people don't have enough work to do.

Work systems are for work.   If your employer doesn't make you sign an
agreement to that effect, that's one problem.  If you sign it and then moan
about it - hey you signed it.

Hey - I guess it's alright to make phone calls to friends in Europe,
photocopy your tax return,  print out invitations to your party, etc. on
company equipment.

Better yet, why not go all teh way and take your system home.

Please stop stealing time and bandwidth from your employer.




Jeff Frost <jfrost@edstrom.com> wrote in message
news:67oP2.215$Oz.94866@homer.alpha.net...
> Ahh, my lad you are sadly misguided?
> So your saying that if I see a user surfing during work hours looking for
a
> new job, car, toaster, etc.  I should look the other way.  How about an
> employee looking at porn, where a fellow co-worker could walk by, see it,
> and sue the company for offensive work environment?  What about lusers
using
> active desktop to have a stock-ticker running all day sucking down the
> bandwidth on the LAN until productivity is affected...  Now you might say
to
> yourself "I'm only one person, it can't make more than a tiny ripple in
the
> network traffic."  And you would be right!  But then if everyone thought
> that way... I would have 175 employees doing the same thing, and that I
> assure you would affect speed.
> My policy:  If you are off the clock or on lunch, go wherver you want
> (except porn, hate sites, etc.).  But if it is during work hours, it
should
> be work related.  Am I a Nazi admin?  No, I am not.  I let all sorts of
> little things slip... if someone bops in once and awhile, hits a page, and
> gets right out... well, to me that's nothing in the grand scheme of
things.
> But an employee who is surfing for hours a day... now why the #%!@ should
> the company look the other way?  The employee is there to work, that's why
> it is called work.  I have a special hate for idiots like you who are too
> smart for their own good.  I wish you worked here, so I could get a hard
> copy of all the crap you must enjoy doing, and send it to the owner.  If
you
> don't enjoy being a cube slave, well then I am sure you know where the
door
> is... go into business for yourself and do whatever you want!
>
> Jeff the burned out Admin
>
>
>
> foj@nym.alias.net wrote in message <7ejqpi$ibv$1@nnrp1.dejanews.com>...
> >In article <370CFD2F.D8C81B45@tivoli.com>,
> >  john_warner@tivoli.com wrote:
> >> Not that it what he wants exists anyway...Stop and think about how IP
> works
> >and
> >> how an IP datagram is structured.  Word 4 contains the source address
and
> >word 5
> >> contains the destination address.  Without those tidbits in the IP
> header, the
> >> datagram isn't going anywhere and IP does not support encryption. (You
> can
> >> however, encrypt the data portion of an IP datagram.)
> >
> >I fully realize how an IP packet is structured, and that the encrypted
data
> >must be put in the data area. Indeed.
> >
> >Let me do some diagraming for you:
> >
> >
> ><Evil net user in company
> >or country that censors
> >net access>
> >
> >          ^
> >          |
> >          |
> >          |
> >      some sort of encrypted link -
> >      maybe SSL via a web browser
> >      or SSL via some product like
> >      SecureCRT, or maybe via
> >      SSL and a browser and some
> >      app like the GNU httptunnel (?)
> >          |
> >          |
> >          v
> ><a computer which accepts encrypted
> >http requests from the user, translates
> >them to non-encypted requests, and sends
> >them out on the network - then it receives http
> >(or whatever) packets for the user, and sends
> >them back to the user via the encrypted channel>
> >
> >One key is to not reveal the address the user is
> >actually requesting in the IP header being sent
> >to the encrypted proxy the user is using - that info
> >would need to be part of the encrypted data itself.
> >
> >So, I've been thinking, how can a perl application
> >(or some other app on a proxy or web server) do this?
> >
> >Is there already a solution?
> >
> >httptunnel is one I am checking out. It doesn't provide a secure channel
in
> >and of itself, but maybe it could be used to do so. Check out:
> >http://www.nocrew.org/software/httptunnel.html
> >
> >>
> >> In order to accomplish his mission, he needs to go through an
anonymizer
> >before
> >> hitting his corporate firewall/proxy server where his network admin is
> >> watching.  Such animals will be non-existent (no admin right mind would
> allow
> >> one to exist on his network) and be shut down promptly upon discovery
> (along
> >> with giving the original poster his pink slip).
> >>
> >
> >All the tight-assed admin will see is a link to a certain IP address or
web
> >site, and packets that look like gibberish in the data area.
> >
> >> In short, it ain't happen' dude, so you might as well go back to work
and
> stop
> >> wasting time and bandwidth surfing the web.  The computer and the
network
> to
> >> which it is connected belong to the company and as such, they have a
> right to
> >> know how and for what purposes  their equipment is being used.
> >
> >Employees have a copyright over their emails - and yet employers monitor
> >them. Employees have a right to privacy, and yet employers belittle &
break
> >those rights. Employees are not robots, and yet employers treat them as
> much.
> >Employers can monitor the work an employee does by seeing what work he
> turns
> >in to his manager, or whether customers are being served by the employee
&
> >etc. Censoring net access is completely inappropriate though. I consider
> >uncensored net access at my work to be a requirement for my presence.
> >
> >I want the same to be available to all who are locked away in little
> cubicals,
> >and all those in totalitarian countries.
> >
> >It seems there are a lot of similarities between totalitarian countries
and
> >father-knows-best tight-assed companies who censor their employees
Internet
> >activities.
> >
> >It's time for the cubical slaves to fight back! And we shall! And we will
> win
> >against the oppressors with nothing better to do than watch if we ever
> visit a
> >site that depicts all aspects of human activity, or whether we visit a
> >politically incorrect site.
> >
> >Yes it IS going to happen in my case, and I'm going to fight for the
> >availability of such technologies for others as well.
> >
> >Learn to trust your employees enough to leave them alone. Give them
> >uncensored Internet access as a perk for their being willing to submit
> >themselves to life in a cubical. The time is shortly coming when more and
> >more people will be able to work from their homes - and there you're
> >micromanaging activities will be far less effective. Don't treat the work
> >place like a prison, with spy cameras, and packet sniffers to monitor
> >employees every move. Fuck that shit!
> >
> >Learn to trust your citizens enough to leave them alone. You, as a
> >government, have no right to censor where they go on the net. A free
> society
> >of uncensorced ideas is what is best for humanity and our global society.
> >
> >And now, we return to our regularly scheduled newsgroup...
> >
> >-----------== Posted via Deja News, The Discussion Network ==----------
> >http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own
>
>




------------------------------

Date: 12 Apr 1999 03:21:56 GMT
From: "Andrew Branson" <a_branson_1998@yahoo.com>
Subject: Q about Server Side Includes, Perl , and  CPU utilization
Message-Id: <7erosk$3to$0@208.231.50.202>

I mosly program in C++/Java and this is my first large Perl project (about
4K lines). I was wondering if using several SSI (execs) to build each and
every page served takes up an excessive amount of CPU time. I just don't
want to unintentionally abuse my service provider's server. Is there any way
for me to measure this?

Details:
- I don't expect this site to have more than 50 hits per minute (peak, worst
case senario). An average of 10000 hits per day.
- Each page has 3 server side includes (typically, a total of about 200
lines of code runs per page to generate the header, footer and body of web
page).
- Server is BSDI running Apache; H/w: Pentium II 350MHz.



Thanks.

Andy





------------------------------

Date: 12 Dec 98 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Special: Digest Administrivia (Last modified: 12 Dec 98)
Message-Id: <null>


Administrivia:

Well, after 6 months, here's the answer to the quiz: what do we do about
comp.lang.perl.moderated. Answer: nothing. 

]From: Russ Allbery <rra@stanford.edu>
]Date: 21 Sep 1998 19:53:43 -0700
]Subject: comp.lang.perl.moderated available via e-mail
]
]It is possible to subscribe to comp.lang.perl.moderated as a mailing list.
]To do so, send mail to majordomo@eyrie.org with "subscribe clpm" in the
]body.  Majordomo will then send you instructions on how to confirm your
]subscription.  This is provided as a general service for those people who
]cannot receive the newsgroup for whatever reason or who just prefer to
]receive messages via e-mail.

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.  

To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.

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.

The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.

The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.

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 V8 Issue 5356
**************************************

home help back first fref pref prev next nref lref last post