Modify date table

2004-02-07 Thread Jan Eden
Hi all, I want to modify the occupation table for a holiday house. This is my (quite naive) approach: h1Belegung 2004/h1 table tr th/th th1/th th/th th/th th/th th5/th th/th th/th th/th th/th th10/th th/th th/th th/th th/th th15/th th/th th/th th/th th/th th20/th th/th th/th

Re: Modify date table

2004-02-07 Thread Jan Eden
Sorry for double posting, I found the error myself. The script does not have the permission to write to my site. Now the obvious question is: How can I change this? I will try to find out. Thanks, Jan -- There's no place like ~/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: my in the perl syntax

2004-02-07 Thread Harshal Borade
I certainly appreciate the pain you have gone through in writing that mail, but I haven't understood about perldoc -f my. I went through a book , How to Perl 5, last night. And it says that every variable declared gets into main, a default package. To avoid the namespace pollution it says that,

Re: Search Replace in multiple files

2004-02-07 Thread Rob Dixon
John W. Krahn wrote: Chetak Sasalu wrote: Hi, Hello, I have to search and replace 'foo' to 'bar' in all the files in a directory(has subdirectories). The files are about 40k in size. On the command line I would do it as, find ./mydir/ -type f -print | xargs perl -pi -e

Re: my in the perl syntax

2004-02-07 Thread Jan Eden
Harshal Borade wrote: I certainly appreciate the pain you have gone through in writing that mail, but I haven't understood about perldoc -f my. I went through a book , How to Perl 5, last night. And it says that every variable declared gets into main, a default package. To avoid the namespace

Re: How to Implement a BNF syntax in perl?

2004-02-07 Thread wolf blaum
For Quality purpouses, Balaji Thoguluva 's mail on Friday 06 February 2004 18:49 may have been monitored or recorded as: Hi, Hi I have a long BNF (Backus-naur form) for parsing a protocol message. Suppose I want to implement a BNF like this Response = Status-line

Re: Script Kiddie issues

2004-02-07 Thread Michael W . Cocke
On Fri, 6 Feb 2004 07:55:41 -0800 (PST), [EMAIL PROTECTED] (Lonewolf) wrote: Frankly I use the apache filter to check for people looking for cmd.exe or root.exe or any one of a dozen files, and instead of my log files filling with their looks they are sent an iframe html page with a virus built

Re: Script Kiddie issues

2004-02-07 Thread Michael C. Davis
What a great idea. You'll make lots of new friends in the Big House. At 04:24 PM 2/6/04 -0500, Michael W.Cocke wrote: On Fri, 6 Feb 2004 07:55:41 -0800 (PST), [EMAIL PROTECTED] (Lonewolf) wrote: Frankly I use the apache filter to check for people looking for cmd.exe or root.exe or any one of a

Re: Search Replace in multiple files

2004-02-07 Thread Rob Dixon
Jan Eden wrote: Rob Dixon wrote: John W. Krahn wrote: use File::Find; local ( $^I, @ARGV ) = ''; find( { no_chdir = 1, wanted = sub { -f and push @ARGV, $_ } }, './mydir' ); s/foo/bar/g, print while ; Thanks John. I missed the 'has subdirectories'. I did not and came up

Method invocation arrow (LPORM)

2004-02-07 Thread Jan Eden
Hi all, I just work my way through Learning Perl Objects, References Modules. Now at one point, I am stuck: Randal introduces classes and methods in Chapter 8. He gives the following example for overriding methods: { package Mouse @ISA = qw{Animal}; ... sub speak { my $class

Re: Search Replace in multiple files

2004-02-07 Thread Jan Eden
Rob Dixon wrote: Jan Eden wrote: Rob Dixon wrote: John W. Krahn wrote: use File::Find; local ( $^I, @ARGV ) = ''; find( { no_chdir = 1, wanted = sub { -f and push @ARGV, $_ } }, './mydir' ); s/foo/bar/g, print while ; Thanks John. I missed the 'has subdirectories'. I did not and came up

RE: Script Kiddie issues

2004-02-07 Thread Lone Wolf
Nah, because the only ones who receive the file are those attempting to do harm to my system. Granted I could make it go to a warning page, which after a few seconds dumps them to the other page, thereby giving them a warning before I fire the shot, just like a trespasser in my house. Do I shoot

RE: Script Kiddie issues

2004-02-07 Thread Lone Wolf
Who in their right mind would walk into a courthouse and tell the judge they were trying to break into a computer system (which in and of itself holds MANY penalties because information on a company system is invaluable per previous court cases) and say that they lost data on their system when

Re: Method invocation arrow (LPORM)

2004-02-07 Thread Jeff 'japhy' Pinyan
On Feb 7, Jan Eden said: I just work my way through Learning Perl Objects, References Modules. Now at one point, I am stuck: Randal introduces classes and methods in Chapter 8. Hopefully I'll answer before Randal. ;) { package Mouse @ISA = qw{Animal}; ... sub speak { my

Re: Method invocation arrow (LPORM)

2004-02-07 Thread Jan Eden
Jeff 'japhy' Pinyan wrote: BUT HERE, we're using $class-OtherClass::method(@_); which says explicitly to start looking for method() in OtherClass (and if it fails there, look in OtherClass's @ISA). So $class-Animal::speak(); in your case becomes Animal::speak($class); except that it

Re: Script Kiddie issues

2004-02-07 Thread Wiggins d'Anconia
Lone Wolf wrote: Nah, because the only ones who receive the file are those attempting to do harm to my system. Granted I could make it go to a warning page, which after a few seconds dumps them to the other page, thereby giving them a warning before I fire the shot, just like a trespasser in my

RE: Script Kiddie issues

2004-02-07 Thread Bill Akins
-Original Message- From: LoneWolf [mailto:[EMAIL PROTECTED] Sent: Friday, February 06, 2004 10:56 AM To: [EMAIL PROTECTED] Subject: Script Kiddie issues Frankly I use the apache filter to check for people looking for cmd.exe or root.exe or any one of a dozen files, and

[OT] Re: Script Kiddie issues

2004-02-07 Thread Daniel Staal
--As off Saturday, February 7, 2004 12:37 PM -0500, Wiggins d'Anconia is alleged to have said: What is to stop a spammer or script kiddie finding out about your ruse, possibly even listening in on the conversation, and rather than trying to hack your system starts sending out mass emails to

Re: Method invocation arrow (LPORM)

2004-02-07 Thread James Edward Gray II
On Feb 7, 2004, at 10:02 AM, Jeff 'japhy' Pinyan wrote: On Feb 7, Jan Eden said: { package Mouse @ISA = qw{Animal}; ... sub speak { my $class = shift; ... Animal::speak($class); ... } } I was about to ask why it's written this way, but upon checking the source, I

Re: [OT] Re: Script Kiddie issues

2004-02-07 Thread u235sentinel
I've been holding off on responding to this thread but now I've dealth with security for some time on Unix/Linux systems. Some of my favorite products certainly have the ability to perform a counter attack however the author of those products always warn the user NOT to taunt happy fun

Re: Script Kiddie issues

2004-02-07 Thread James Edward Gray II
On Feb 7, 2004, at 11:37 AM, Wiggins d'Anconia wrote: Securing your system from someone is different than firing back. And your house analogy is really dumb, it has predefined borders that are very distinct. Your webserver is open and you are inviting someone to look at anything on it, for

get_uid sub critic

2004-02-07 Thread Kenton Brede
I've written the following subroutine to snag the next available UID in the 700 range from /etc/passwd. I then use the return value with useradd to add a new user. The subroutine works fine. If no UID 700 is found it returns 700. It then returns the next available UID or adds 1 to the last UID

Re: get_uid sub critic

2004-02-07 Thread Paul Johnson
On Sat, Feb 07, 2004 at 12:57:45PM -0600, Kenton Brede wrote: I've written the following subroutine to snag the next available UID in the 700 range from /etc/passwd. I then use the return value with useradd to add a new user. The subroutine works fine. If no UID 700 is found it returns

Re: get_uid sub critic

2004-02-07 Thread Rob Dixon
Kenton Brede wrote: I've written the following subroutine to snag the next available UID in the 700 range from /etc/passwd. I then use the return value with useradd to add a new user. The subroutine works fine. If no UID 700 is found it returns 700. It then returns the next available UID

Re: Method invocation arrow (LPORM)

2004-02-07 Thread Jan Eden
James Edward Gray II wrote: On Feb 7, 2004, at 10:02 AM, Jeff 'japhy' Pinyan wrote: On Feb 7, Jan Eden said: { package Mouse @ISA = qw{Animal}; ... sub speak { my $class = shift; ... Animal::speak($class); ... } } I was about to ask why it's written

Re: Method invocation arrow (LPORM)

2004-02-07 Thread Jan Eden
James Edward Gray II wrote: On Feb 7, 2004, at 10:02 AM, Jeff 'japhy' Pinyan wrote: On Feb 7, Jan Eden said: { package Mouse @ISA = qw{Animal}; ... sub speak { my $class = shift; ... Animal::speak($class); ... } } I was about to ask why it's written

Re: Method invocation arrow (LPORM)

2004-02-07 Thread James Edward Gray II
On Feb 7, 2004, at 2:20 PM, Jan Eden wrote: Yes, SUPER:: is introduced just two paragraphs later. I read on, but the uncertainty about $class-Animal::speak kept bugging me. ;) Excellent. I figured that was the case, but I was just making sure. James -- To unsubscribe, e-mail: [EMAIL

Re: get_uid sub critic

2004-02-07 Thread John W. Krahn
Kenton Brede wrote: I've written the following subroutine to snag the next available UID in the 700 range from /etc/passwd. I then use the return value with useradd to add a new user. The subroutine works fine. If no UID 700 is found it returns 700. It then returns the next available

Re: my in the perl syntax

2004-02-07 Thread R. Joseph Newton
Harshal Borade wrote: I certainly appreciate the pain you have gone through in writing that mail, but I haven't understood about perldoc -f my. It is meant to be entered exactly as written on the command-line. It is the same way we call Perl programs: perldoc -f my is a call to the perldoc

Re: get_uid sub critic

2004-02-07 Thread Kenton Brede
On Sat, Feb 07, 2004 at 07:42:30PM -, Rob Dixon ([EMAIL PROTECTED]) wrote: Kenton Brede wrote: snip Hi Kenton. Hi, thanks for the great code. How does this look? Well ... complex :) Let me see if I can put this in English. sub get_uid { my %list; @list{map {(split

Re: get_uid sub critic

2004-02-07 Thread Kenton Brede
On Sat, Feb 07, 2004 at 02:08:26PM -0800, John W. Krahn ([EMAIL PROTECTED]) wrote: Kenton Brede wrote: I've written the following subroutine to snag the next available UID in the 700 range from /etc/passwd. I then use the return value with useradd to add a new user. The subroutine