From rbowen at rcbowen.com Thu Jun 1 09:10:57 2000 From: rbowen at rcbowen.com (Rich Bowen) Date: Thu Aug 5 00:05:48 2004 Subject: LPM: email change References: Message-ID: <39366EF1.67B6A390@rcbowen.com> repett0@sac.uky.edu wrote: > > how does one go about chaning there email on these lists since good ol sac > is being removed from campus... For the PM list: The right way - uns*bscribe from the old address. Res*bscribe with the new address. Instructions at lexington.pm.org The easy way - Send me the old address and the new address, and I can modify it directly. The difficulty there is that I am rather busy, and may not get to it for a day or son. It depends when you catch me. Rich -- Director of Web Application Development - The Creative Group http://www.cre8tivegroup.com/ Author - Apache Server Unleashed - http://apacheunleashed.com/ From ken.rietz at asbury.edu Thu Jun 1 11:45:59 2000 From: ken.rietz at asbury.edu (ken.rietz@asbury.edu) Date: Thu Aug 5 00:05:48 2004 Subject: LPM: RE: variable comparison not working Message-ID: Hi, Tom. I don't get into the office much now, so it takes a longer to respond. > Ok, I'm trying to do some simple input data checking on a script I'm > writing. $book is a string entered from the keyboard. > @books is a list of > available books. Both are chomped, so no new lines should be > present. I'm > doing something like this: > > $valid = 0; > foreach (@books) { > if ($_ eq $book) { > $valid = 1; > last; > } > } > > This never matches, even when $book is a value in @books. I'd say that $book is not in @books, but I can't say why. What I would do is do effectively an ASCII dump of @books and $book: print join("#", split(//, $book)); and the same in a loop for @books. You will probably find the problem there. > In > trying to > figure out why, I added a print statement to it as shown: > > $valid = 0; > foreach (@books) { > if ($_ eq $book) { > $valid = 1; > last; > } > print "$valid-$book-$_-\n"; > } > > I get output like the following (I used dashes since none of > the variables > should have them): > > --galatians-galatians > --galatians-ephesians > --galatians-philippians > ... > 0-galatians-philemon- There are problems counting dashes here. 1) If there are two dashes at the beginning of most lines, then both $valid and $book are undef. That doesn't fit your code at all. 2) The last line ought to end with a dash, since $_ will be undef at the end of the @books loop. But then $valid and $books now have values, somehow. Try cutting and pasting your code. I have a feeling that you types this in from memory after numerous different variations, and got things a bit scrambled. That, of course, assumes you haven't figured it out yet. > > As if this is not interesting enough, I tried it on my Windows 95 box > (running ActivePerl 5.6) and it worked fine (I'm writing and > was testing it > on Linux). However, my linux box gives the same results from > both Perl > 5.005 and Perl 5.6. My only thought is that Linux and Win might treat \n differently. That does seem to be part of the problem. Were the files created under the same system they are being used, or did you create them on one and copy them to the other? -- Ken Rietz From maslom00 at sheffield.cslab.uky.edu Thu Jun 1 12:43:16 2000 From: maslom00 at sheffield.cslab.uky.edu (Michael A Slominsky) Date: Thu Aug 5 00:05:48 2004 Subject: LPM: Re: [UKLUG] email change In-Reply-To: Message-ID: Where are they taking our glorious sac? What are they going to do with it? Are they getting rid of it. What about sacII? What in the hell is going on?! mike S. On Wed, 31 May 2000 repett0@sac.uky.edu wrote: > > how does one go about chaning there email on these lists since good ol sac > is being removed from campus... > > ron > > > > > _______________________________________________ > UKLUG website: http://www.uky.edu/StudentOrgs/UKLUG > UKLUG mailing list addr: Llug@slug.louisville.edu > mailing list info: http://slug.louisville.edu/cgi-bin/mailman/listinfo/llug > From tom at ichthus.org Thu Jun 1 23:20:55 2000 From: tom at ichthus.org (Tom Braun) Date: Thu Aug 5 00:05:48 2004 Subject: LPM: RE: RE: variable comparison not working In-Reply-To: Message-ID: <001201bfcc4a$abb3d980$080614ac@student.asbury.edu> In case anyone is curious, Dr. Rietz nailed this problem on the head with his final suggestion. I was reading the list of correct books from a text file which must have been written in Windows. One file rewrite later (in Linux this time), and it works. Funny, I assumed the extra line-feed sequence would have showed up in Emacs... Guess I learned the hard way (and the long one) :) Thanks everyone for the help. Tom -----Original Message----- From: owner-lexington-pm-list@pm.org [mailto:owner-lexington-pm-list@pm.org] On Behalf Of ken.rietz@asbury.edu Sent: Thursday, June 01, 2000 10:46 AM To: lexington-pm-list@happyfunball.pm.org Subject: LPM: RE: variable comparison not working > As if this is not interesting enough, I tried it on my Windows 95 box > (running ActivePerl 5.6) and it worked fine (I'm writing and > was testing it > on Linux). However, my linux box gives the same results from > both Perl > 5.005 and Perl 5.6. My only thought is that Linux and Win might treat \n differently. That does seem to be part of the problem. Were the files created under the same system they are being used, or did you create them on one and copy them to the other? -- Ken Rietz From oneiros at dcr.net Fri Jun 2 06:33:33 2000 From: oneiros at dcr.net (Joe Hourcle) Date: Thu Aug 5 00:05:48 2004 Subject: LPM: RE: RE: variable comparison not working In-Reply-To: <001201bfcc4a$abb3d980$080614ac@student.asbury.edu> Message-ID: On Thu, 1 Jun 2000, Tom Braun wrote: > In case anyone is curious, Dr. Rietz nailed this problem on the head with > his final suggestion. I was reading the list of correct books from a text > file which must have been written in Windows. One file rewrite later (in > Linux this time), and it works. Funny, I assumed the extra line-feed > sequence would have showed up in Emacs... Guess I learned the hard way > (and the long one) :) This is what 'ascii' mode in FTP is for -- The uploading system translates line endings to an agreed upon standard (I think it's \r\c or something like that), and the receiving system translates that pattern to what it considers to be valid line endings. You also tend to see it a lot when people upload perl scripts to a unix box, and they keep getting 'file not found' messages when they run it. You open the file in vi, and see the first line is: #!/usr/local/bin/perl^M ----- Joe Hourcle From matt at cre8tivegroup.com Fri Jun 2 07:45:32 2000 From: matt at cre8tivegroup.com (Matt Cashner) Date: Thu Aug 5 00:05:48 2004 Subject: LPM: RE: RE: variable comparison not working In-Reply-To: Message-ID: there's also a little *nix prog called dos2unix which will convert those line endings for you. -------- Matt Cashner Web Applications Developer Creative Group (http://www.cre8tivegroup.com) matt@cre8tivegroup.com | Codito, ergo sum From rbowen at rcbowen.com Tue Jun 6 10:43:28 2000 From: rbowen at rcbowen.com (Rich Bowen) Date: Thu Aug 5 00:05:48 2004 Subject: LPM: Next week's meeting Message-ID: <393D1C20.605F75E5@rcbowen.com> WE're supposed to have an LPM meeting next week. Anyone want to talk? I've been unable to update the web site, for some undertermined reason. I'll try again today. Rich -- Director of Web Application Development - The Creative Group http://www.cre8tivegroup.com/ Author - Apache Server Unleashed - http://apacheunleashed.com/ From dpitts at mk.net Tue Jun 6 10:48:29 2000 From: dpitts at mk.net (David Pitts) Date: Thu Aug 5 00:05:48 2004 Subject: LPM: Re: Next week's meeting References: <393D1C20.605F75E5@rcbowen.com> Message-ID: <000901bfcfce$a94be840$7801a8c0@adverb.com> Maybe we could have a session where each of us talks about what we are doing with Perl... maybe go around the room and have everyone share?? Thanks, David David Pitts President, Pitts Technical Resources, Inc (859) 552-3262 www.dpitts.com dpitts@mk.net ----- Original Message ----- From: "Rich Bowen" To: "Perl Mongers" Sent: Tuesday, June 06, 2000 11:43 AM Subject: LPM: Next week's meeting > WE're supposed to have an LPM meeting next week. Anyone want to talk? > > I've been unable to update the web site, for some undertermined reason. > I'll try again today. > > Rich > -- > Director of Web Application Development - The Creative Group > http://www.cre8tivegroup.com/ > Author - Apache Server Unleashed - http://apacheunleashed.com/ > From gcasillo at ket.org Tue Jun 6 10:57:22 2000 From: gcasillo at ket.org (Gregg Casillo) Date: Thu Aug 5 00:05:48 2004 Subject: LPM: Re: Next week's meeting References: <393D1C20.605F75E5@rcbowen.com> <000901bfcfce$a94be840$7801a8c0@adverb.com> Message-ID: <393D1F62.A4671D0E@ket.org> David's idea sounds good to me. If time allows, I wouldn't mind a quick benchmarking demonstration. I've been working on some scripts that I think could use some optimizations, and I would like to measure the results of any changes I make. Gregg David Pitts wrote: > Maybe we could have a session where each of us talks about what we are doing > with Perl... maybe go around the room and have everyone share?? > > Thanks, > > David > David Pitts > President, Pitts Technical Resources, Inc > (859) 552-3262 > www.dpitts.com > dpitts@mk.net > ----- Original Message ----- > From: "Rich Bowen" > To: "Perl Mongers" > Sent: Tuesday, June 06, 2000 11:43 AM > Subject: LPM: Next week's meeting > > > WE're supposed to have an LPM meeting next week. Anyone want to talk? > > > > I've been unable to update the web site, for some undertermined reason. > > I'll try again today. > > > > Rich > > -- > > Director of Web Application Development - The Creative Group > > http://www.cre8tivegroup.com/ > > Author - Apache Server Unleashed - http://apacheunleashed.com/ > > From janine at emazing.com Tue Jun 6 10:58:19 2000 From: janine at emazing.com (Janine) Date: Thu Aug 5 00:05:48 2004 Subject: LPM: RE: Next week's meeting In-Reply-To: <393D1C20.605F75E5@rcbowen.com> Message-ID: HFB was hacked recently, so all accounts were disabled. They are being reactivated one-by-one on a need-to-do-it basis. I got an email regarding the hack this morning, which I can forward to you if you haven't already received it. It has the name and email address of the new administrator (whom you need to contact for reactivation). Janine > -----Original Message----- > From: owner-lexington-pm-list@pm.org > [mailto:owner-lexington-pm-list@pm.org]On Behalf Of Rich Bowen > Sent: Tuesday, June 06, 2000 11:43 AM > To: Perl Mongers > Subject: LPM: Next week's meeting > > > WE're supposed to have an LPM meeting next week. Anyone want to talk? > > I've been unable to update the web site, for some undertermined reason. > I'll try again today. > > Rich > -- > Director of Web Application Development - The Creative Group > http://www.cre8tivegroup.com/ > Author - Apache Server Unleashed - http://apacheunleashed.com/ > > From fireston at lexmark.com Tue Jun 6 10:56:46 2000 From: fireston at lexmark.com (Mik Firestone) Date: Thu Aug 5 00:05:48 2004 Subject: LPM: Re: Next week's meeting In-Reply-To: <393D1F62.A4671D0E@ket.org> Message-ID: <200006061556.LAA01863@interlock2.lexmark.com> Take all benchmarks with a grain ( a very large grain ) of salt. If you are trying to optimize, I would strongly suggest either using ( if you have perl 5.6 ) or getting ( for any previous version ) the Devel::Dprof module, which will profile your perl code. I have found this 10 times more useful in optimizing than Benchmark. Mik >On Tue, 6 Jun 2000, Gregg Casillo is rumored to have said: > >David's idea sounds good to me. If time allows, I wouldn't mind a quick >benchmarking demonstration. I've been working on some scripts that I think could >use some optimizations, and I would like to measure the results of any changes I >make. > >Gregg > >David Pitts wrote: > >> Maybe we could have a session where each of us talks about what we are doing >> with Perl... maybe go around the room and have everyone share?? >> >> Thanks, >> >> David >> David Pitts >> President, Pitts Technical Resources, Inc >> (859) 552-3262 >> www.dpitts.com >> dpitts@mk.net >> ----- Original Message ----- >> From: "Rich Bowen" >> To: "Perl Mongers" >> Sent: Tuesday, June 06, 2000 11:43 AM >> Subject: LPM: Next week's meeting >> >> > WE're supposed to have an LPM meeting next week. Anyone want to talk? >> > >> > I've been unable to update the web site, for some undertermined reason. >> > I'll try again today. >> > >> > Rich >> > -- >> > Director of Web Application Development - The Creative Group >> > http://www.cre8tivegroup.com/ >> > Author - Apache Server Unleashed - http://apacheunleashed.com/ >> > -- Mik Firestone fireston@lexmark.com When I become an Evil Overlord: I will maintain a realistic assessment of my strengths and weaknesses. Even though this takes some of the fun out of the job, at least I will never utter the line ``No, this cannot be! I AM INVINCIBLE!!!xx (After that, death is usually instantaneous.) From rbowen at rcbowen.com Tue Jun 6 11:07:56 2000 From: rbowen at rcbowen.com (Rich Bowen) Date: Thu Aug 5 00:05:48 2004 Subject: LPM: Re: Next week's meeting References: <393D1C20.605F75E5@rcbowen.com> <000901bfcfce$a94be840$7801a8c0@adverb.com> Message-ID: <393D21DC.DEBE0024@rcbowen.com> David Pitts wrote: > > Maybe we could have a session where each of us talks about what we are doing > with Perl... maybe go around the room and have everyone share?? > Then, we can sing Kum By Yah! ;-) Just kidding. This sounds like a pretty good idea. Second the motion. Rich -- Director of Web Application Development - The Creative Group http://www.cre8tivegroup.com/ Author - Apache Server Unleashed - http://apacheunleashed.com/ From dpitts at mk.net Thu Jun 8 10:40:52 2000 From: dpitts at mk.net (David Pitts) Date: Thu Aug 5 00:05:48 2004 Subject: LPM: Assembler and Linux Message-ID: <001501bfd15f$edce93e0$7801a8c0@adverb.com> I know that this is neither an assembler nor a linux mailing list, but it is a bunch of smart people who do computer geek type stuff (meant as a compliment!), and thought you might know where to go with this one. Attached is an e-mail from an assember programmer in India who is havin problems with some of the new syntaxes for Linux.... anyone know what they are or where to get information about them? Anyone even know assembler?? Thanks, David David Pitts President, Pitts Technical Resources, Inc (859) 552-3262 www.dpitts.com dpitts@mk.net ----- Original Message ----- From: "Ritesh Kumar" To: Cc: Sent: Thursday, June 08, 2000 11:33 AM Subject: query > Dear sir, > I am a software engg. dealing with assembly lang. > prog. > for last few yrs in a reputed software firm in India. > Recently I had your Red hat linux installed in my > system. > The i-486 progg. under linux contains many syntaxes > which are > new and not in accordance with the assembly progg. > as supported by MASM assembler. > > This is posing a great difficulty to me as no book > is available to deal with these.So,I request you to > kindly explain > these new syntaxes in detail.I am sending an example > code with > such new syntaxes.It is from file > segment.h(./usr/include/linux/asm) > I will be very thankful to you for your kind help. > thanking you, > Ritesh kumar > (riteshbit@yahoo.com) > code are as follows: > ====================================================== > > > Static inline void __generic_memcpy_tofs(void > *to,void *from,unsigned long n) > { > __asm__volatile > (" cld > push %%es > push %%fs > cmpl $3,%0 > pop %%es > jbe 1f > movl %%edi,%%ecx > negl %%ecx > andl $3,%%ecx > subl %%ecx,%0 > rep; movsb > movl %0,%%ecx > shrl $2,%%ecx > rep; movsl > andl $3,%0 > 1: movl %0,%%ecx > rep; movsb > pop %%es " > :"abd" (n) > :"0"(n),"D"((long)to),"S" ((long)from) > :"cx","di"."si"); > ======================================================= > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Photos -- now, 100 FREE prints! > http://photos.yahoo.com > From dpitts at mk.net Thu Jun 8 15:01:40 2000 From: dpitts at mk.net (David Pitts) Date: Thu Aug 5 00:05:48 2004 Subject: LPM: Linux Certification sample test. Message-ID: <005d01bfd184$5c7ac060$7801a8c0@adverb.com> Skipped content of type multipart/alternative-------------- next part -------------- Test 1 OBJECTIVE: 1.3.1 TYPE: mc If you wanted to turn off mail notification, what command would you use? biff n mesg n mesg off notify off set notify=off -------------------------------------------------------------------------------- OBJECTIVE: 1.3.1 TYPE: mcma Which of these commands could you use to show one page of output at a time? more less sed pause grep -------------------------------------------------------------------------------- OBJECTIVE: 1.3.3 TYPE: mcma Which commands will give you information about how much disk space each file in the current directory uses? ls -l ls -la du . ls -a ls -------------------------------------------------------------------------------- OBJECTIVE: 1.3.4 TYPE: mc What command would send the output of cmd1 to the input of cmd2? cmd1 | cmd2 cmd1 || cmd2 cmd1 && cmd2 cmd1 ; cmd2 cmd1 cmd2 -------------------------------------------------------------------------------- OBJECTIVE: 1.3.5 TYPE: mc Under the bash shell, when a command is running, pressing control-Z will usually suspend the foreground task. adds an EOF to the file. kill the command running in the foreground move the foreground task into the background log the user off -------------------------------------------------------------------------------- OBJECTIVE: 1.8.1 TYPE: mc What is the 'man' command used for? to display information about the syntax for a command it is the replacement for the 'boy' command it is a standard alias to 'ls -la | more' it is used to display formatted html pages -------------------------------------------------------------------------------- OBJECTIVE: 2.11.1 TYPE: fitb In which file might you find the following entry: root:x:0:0::/root:/bin/bash /etc/passwd -------------------------------------------------------------------------------- OBJECTIVE: 2.11.1 TYPE: fitb As root, what command would you type to initiate a password change for user larry? passwd larry -------------------------------------------------------------------------------- OBJECTIVE: 2.11.2 TYPE: mc Under the bash shell which is the most appropriate place to set environment variables that apply to all users? /etc/profile rc.local rc.sysinit /etc/skel /etc/bashrc -------------------------------------------------------------------------------- OBJECTIVE: 2.11.4 TYPE: mc Which statement describes the cron daemon? Manages scheduling of routine system tasks Manages all incoming connections and spawns off child processes Is responsible for file sharing across a network Manages the printing subsystem Keeps track of system messages and errors -------------------------------------------------------------------------------- OBJECTIVE: 2.4.1 TYPE: mcma Which of the following are valid block devices on most default linux distributions? hard disks loopback devices serial ports virtual terminals tape devices -------------------------------------------------------------------------------- OBJECTIVE: 2.4.2 TYPE: mc How can you best see how much free space you have in your current directory? Use df . Use df Use du / Use du . Use df / -------------------------------------------------------------------------------- OBJECTIVE: 2.4.5 TYPE: fitb Which command would you use to alter the permissions of a file (do not give any parameters) chmod -------------------------------------------------------------------------------- OBJECTIVE: 2.4.8 TYPE: mc Which command will update the slocate database as a background process? updatedb & slocate --updatedb & slocatedb slocate --start & slocate --update & -------------------------------------------------------------------------------- OBJECTIVE: 2.6.2 TYPE: mc Having booted into run level 3, how would you change to run level 5 without rebooting? telinit 5 startx run 5 ALT-F7-5 setinit 5 Test 2: -------------------------------------------------------------------------------- OBJECTIVE: 1.1.1 TYPE: mc which command is used to change settings on IDE hard disk drives? hdparm hddparm diskparm hdparam ideconfig -------------------------------------------------------------------------------- OBJECTIVE: 1.12.1 TYPE: mc Your logfile shows repeated connections to TCP port 143. Which named service is being accessed? imap smbd nmbd pop2 smtp -------------------------------------------------------------------------------- OBJECTIVE: 1.12.1 TYPE: fitb What type of packet does an IP ping use (provide acronym)? ICMP -------------------------------------------------------------------------------- OBJECTIVE: 1.12.2 TYPE: mc To learn more about the management of an internet site the best utility to use would be: whois traceroute ping telnet rpcdump -------------------------------------------------------------------------------- OBJECTIVE: 1.12.3 TYPE: mc If you had a Linux system routing 3 different Networks through 3 NICs and you were having trouble with your IP-Forwarding. Where would you look to ensure that IP-Forwarding is actually enabled? cat /proc/sys/net/ipv4/ip_forward netstat cat /proc/net/tcp iptraf -d eth0 tail -f /var/log/messages -------------------------------------------------------------------------------- OBJECTIVE: 1.13.1 TYPE: mc What file is used for associating port numbers to port names. /etc/services /etc/hosts /etc/inetd.conf /etc/securetty /etc/ports -------------------------------------------------------------------------------- OBJECTIVE: 1.13.4 TYPE: mc You want to make the directory /local available via NFS. All users on your local network should be allowed to read and write files. Which of the following is correct, assuming that your local network is 192.168.1.0, and your machine is part of the DNS domain foobar.com? /local 192.168.1.0/255.255.255.0(rw) /local *.com(rw) 192.168.1.0 /local /local 192.168.1.0(rw) -------------------------------------------------------------------------------- OBJECTIVE: 1.14.1 TYPE: fitb Which file can you create to prevent non-root users from logging into the system? (specify path and filename) /etc/nologin -------------------------------------------------------------------------------- OBJECTIVE: 1.14.2 TYPE: fitb What command can be used to display a formatted output of the wtmp file? (no arguments) last -------------------------------------------------------------------------------- OBJECTIVE: 1.14.3 TYPE: fitb Which command can be executed by a user who is already logged into the system, in order to change to the root user? (type the command without any parameters) su -------------------------------------------------------------------------------- OBJECTIVE: 1.7.2 TYPE: mc To cause a particular print job to be printed next, regardless of its current position in the queue, what command would be used? lpc topq lpc -t lpq -t lpq --next lpc move -------------------------------------------------------------------------------- OBJECTIVE: 1.7.2 TYPE: mc Which statement describes the LPD daemon? Manages the printing subsystem Manages all incoming connections and spawns off child processes Is responsible for file sharing across a network Manages scheduling of routine system tasks Keeps track of system messages and errors -------------------------------------------------------------------------------- OBJECTIVE: 2.10.4 TYPE: mc When configuring a terminal for X what does the -fn switch do? It sets the font size and or type for the terminal. It sets the terminal's default function. It places the terminal in the foreground on your screen. It sets the terminal's initial value to false. It sets the terminal's initial display to reverse video. -------------------------------------------------------------------------------- OBJECTIVE: 2.2.1 TYPE: mc What command(s) do you use to create swap space? mkswap activeswap swapon initswap mkfs -t swap -------------------------------------------------------------------------------- OBJECTIVE: 2.2.3 TYPE: fitb Type the full command you could use to decompress the file "foo.gz" gzip -d foo.gz gunzip -d foo.gz gunzip foo.gz unzip foo.gz decompress foo.gz -------------------------------------------------------------------------------- OBJECTIVE: 2.2.5 TYPE: mc How can you add package information from a file Packages to the database of available Debian packages? dpkg --merge-avail Packages dpkg --update-avail Packages dpkg --record-avail Packages dpkg -U Packages -------------------------------------------------------------------------------- OBJECTIVE: 2.2.6 TYPE: mc You need to find out which package owns a file called /etc/paper.config. Which command will answer this question? rpm -qf /etc/paper.config rpm -qa|grep /etc/paper.config rpm -Fq /etc/paper.config rpm -q /etc/paper.config rpm --requires /etc/paper.config From repett0 at sac.uky.edu Thu Jun 8 16:01:12 2000 From: repett0 at sac.uky.edu (repett0@sac.uky.edu) Date: Thu Aug 5 00:05:48 2004 Subject: LPM: newbie help Message-ID: Ok I know the basics of perl and I can program..(there I said it).. here is the ? Im redoing some UK sites and one thing the sysadm wants me to do is get stats on all the machines in the lab like (#of users, load average, etc) and then show that on the web so people can make the informed choice to log in... does anyone have a script that does this, I not sure how about to get sys info on a network... Thanks Ron From oneiros at dcr.net Thu Jun 8 17:30:19 2000 From: oneiros at dcr.net (Joe Hourcle) Date: Thu Aug 5 00:05:48 2004 Subject: LPM: newbie help In-Reply-To: Message-ID: On Thu, 8 Jun 2000 repett0@sac.uky.edu wrote: > > Ok I know the basics of perl and I can program..(there I said it).. here > is the ? > > Im redoing some UK sites and one thing the sysadm wants me to do is get > stats on all the machines in the lab like (#of users, load average, etc) > and then show that on the web so people can make the informed choice to > log in... does anyone have a script that does this, I not sure how about > to get sys info on a network... Well, when you're dealing with 'all of the machine' and the like, it might be best to stick with an already existing program, especially if they're different types of systems. The one that comes to mind right away is MRTG, which can graph just about anything-- http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html Although it's intended for network traffic, I know Mike Andrews decided to start graphing disk usage, temperature, and whatever else he felt like. ----- Joe Hourcle From rbowen at rcbowen.com Sat Jun 10 12:54:20 2000 From: rbowen at rcbowen.com (Rich Bowen) Date: Thu Aug 5 00:05:48 2004 Subject: LPM: JOB POSTING Message-ID: <394280CC.99CFC0EB@rcbowen.com> Here's another job posting that came to my Perl Mongers email address. -------- Original Message -------- Subject: PERL Positions Date: Fri, 9 Jun 2000 20:58:16 -0400 From: "Jeff" To: Richard, Hi .. my name is Jeff ... I own a .COM company here in Columbus, OH. One of our clients is looking for a FULL-TIME PERL-UNIX-SQL Developer. The position would include growth opportunities, a chance to work on the latest technologies, and a Generous STOCK-OPTION / Salary package. If you are currently available .. or have anybody in your network of contacts who would be interested in this FULL-TIME position .. please either contact me on email or give me a call. Thank you, Jeff Inveniam.Com Phone: 614-210-0129 Email: jeff@inveniam.com From repett0 at sac.uky.edu Tue Jun 13 20:35:03 2000 From: repett0 at sac.uky.edu (repett0@sac.uky.edu) Date: Thu Aug 5 00:05:48 2004 Subject: LPM: [UKLUG] Linux Assembly Programming (fwd) Message-ID: This is for the person who sent the assembly ? a while ago.. Ron ---------- Forwarded message ---------- Date: Tue, 13 Jun 2000 18:57:07 -0400 From: Jason Stephenson Reply-To: llug@ox.slug.louisville.edu To: UKLUG Mailing List Subject: [UKLUG] Linux Assembly Programming I seem to recall someone asking about assembly programming on Linux a few days back. I don't know if the site below was mentioned as a place to go for information, so I'll mention it now just because I stumbled across it today and figure it would be useful. http://www.linuxassembly.org/ _______________________________________________ UKLUG website: http://www.uky.edu/StudentOrgs/UKLUG UKLUG mailing list addr: Llug@slug.louisville.edu mailing list info: http://slug.louisville.edu/cgi-bin/mailman/listinfo/llug From rbowen at rcbowen.com Tue Jun 13 22:10:59 2000 From: rbowen at rcbowen.com (Rich Bowen) Date: Thu Aug 5 00:05:48 2004 Subject: LPM: RE: Next week's meeting References: Message-ID: <3946F7C3.7AEC4B11@rcbowen.com> Janine wrote: > > HFB was hacked recently, so all accounts were disabled. They are being > reactivated one-by-one on a need-to-do-it basis. I got an email regarding > the hack this morning, which I can forward to you if you haven't already > received it. It has the name and email address of the new administrator > (whom you need to contact for reactivation). Well, I never received such a note. Could you please forward? Thanks. Rich -- Director of Web Application Development - The Creative Group http://www.cre8tivegroup.com/ Author - Apache Server Unleashed - http://apacheunleashed.com/ From repett0 at sac.uky.edu Tue Jun 20 11:58:58 2000 From: repett0 at sac.uky.edu (repett0@sac.uky.edu) Date: Thu Aug 5 00:05:48 2004 Subject: LPM: php Message-ID: I know neither of these are php, but the php lists aren't helping.... Has anyone used templates before, or fast templates...I have some ?'s Thanks Ron From dpitts at mk.net Wed Jun 21 20:23:39 2000 From: dpitts at mk.net (David Pitts) Date: Thu Aug 5 00:05:48 2004 Subject: LPM: Problems with text::template Message-ID: <007b01bfdbe8$7ebd6420$7801a8c0@adverb.com> Okay, I am playing with text::template for the first time - thanks to Rich's discussion on it. I have a template that includes some perl... something like this: Corporate News from PTRi...
Get news here: {&getnews;''} The {$variable} does fine. The problem is with the lines like: Get news here: {&getnews;''} What it is doing is it is taking any subroutine results and displaying them (returning them) first, and then is giving my template.... Assuming the previous code were the entire template (for sake of clarity and example), then my results would be: [text that goes with getnews] Corporate News from PTRi...
Get news here: Anybody got any thoughts?? Anybody even understand this?? Thanks, David David Pitts President, Pitts Technical Resources, Inc (859) 552-3262 www.dpitts.com dpitts@mk.net -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/lexington-pm/attachments/20000621/ba3c54f5/attachment.htm From hempy at ket.org Wed Jun 21 20:41:33 2000 From: hempy at ket.org (David Hempy) Date: Thu Aug 5 00:05:48 2004 Subject: LPM: Problems with text::template In-Reply-To: <007b01bfdbe8$7ebd6420$7801a8c0@adverb.com> Message-ID: <4.3.2.7.2.20000621214021.024043d8@mail.ket.org> At 09:23 PM 6/21/2000 -0400, you wrote: >Okay, I am playing with text::template for the first time - thanks to >Rich's discussion on it. I have a template that includes some perl... >something like this: > > >Get news here: {&getnews;''} > > >The {$variable} does fine. The problem is with the lines like: > >Get news here: {&getnews;''} >What it is doing is it is taking any subroutine results and displaying >them (returning them) first, and then is giving my template.... > Your subroutine should return the text, not print it. -dave -- David Hempy Internet Database Administrator Kentucky Educational Television -- (606)258-7164 -- (800)333-9764 From dpitts at mk.net Wed Jun 21 20:50:55 2000 From: dpitts at mk.net (David Pitts) Date: Thu Aug 5 00:05:48 2004 Subject: LPM: Problems with text::template References: <4.3.2.7.2.20000621214021.024043d8@mail.ket.org> Message-ID: <008401bfdbec$4e3c4240$7801a8c0@adverb.com> So are you suggesting that my template should look more like this: Get news here: {$news=&getnews;print $news;''} Thanks, David David Pitts President, Pitts Technical Resources, Inc (859) 552-3262 www.dpitts.com dpitts@mk.net ----- Original Message ----- From: "David Hempy" To: Sent: Wednesday, June 21, 2000 9:41 PM Subject: Re: LPM: Problems with text::template > At 09:23 PM 6/21/2000 -0400, you wrote: > >Okay, I am playing with text::template for the first time - thanks to > >Rich's discussion on it. I have a template that includes some perl... > >something like this: > > > > > >Get news here: {&getnews;''} > > > > > >The {$variable} does fine. The problem is with the lines like: > > > >Get news here: {&getnews;''} > >What it is doing is it is taking any subroutine results and displaying > >them (returning them) first, and then is giving my template.... > > > > > Your subroutine should return the text, not print it. > > -dave > > > > -- > David Hempy > Internet Database Administrator > Kentucky Educational Television > -- (606)258-7164 -- (800)333-9764 > > > From dpitts at mk.net Wed Jun 21 20:59:33 2000 From: dpitts at mk.net (David Pitts) Date: Thu Aug 5 00:05:48 2004 Subject: LPM: Problems with text::template References: <4.3.2.7.2.20000621214021.024043d8@mail.ket.org> <008401bfdbec$4e3c4240$7801a8c0@adverb.com> Message-ID: <009701bfdbed$8316b9e0$7801a8c0@adverb.com> Never mind... I just need to remove the '' so that the return value is displayed.... uhhh duhhh.... Thanks for your help Dave! Get news here: {&getnews} Thanks, David David Pitts President, Pitts Technical Resources, Inc (859) 552-3262 www.dpitts.com dpitts@mk.net ----- Original Message ----- From: "David Pitts" To: Sent: Wednesday, June 21, 2000 9:50 PM Subject: Re: LPM: Problems with text::template > So are you suggesting that my template should look more like this: > > > Get news here: {$news=&getnews;print $news;''} > > > > Thanks, > > David > David Pitts > President, Pitts Technical Resources, Inc > (859) 552-3262 > www.dpitts.com > dpitts@mk.net > ----- Original Message ----- > From: "David Hempy" > To: > Sent: Wednesday, June 21, 2000 9:41 PM > Subject: Re: LPM: Problems with text::template > > > > At 09:23 PM 6/21/2000 -0400, you wrote: > > >Okay, I am playing with text::template for the first time - thanks to > > >Rich's discussion on it. I have a template that includes some perl... > > >something like this: > > > > > > > > >Get news here: {&getnews;''} > > > > > > > > >The {$variable} does fine. The problem is with the lines like: > > > > > >Get news here: {&getnews;''} > > >What it is doing is it is taking any subroutine results and displaying > > >them (returning them) first, and then is giving my template.... > > > > > > > > > Your subroutine should return the text, not print it. > > > > -dave > > > > > > > > -- > > David Hempy > > Internet Database Administrator > > Kentucky Educational Television > > -- (606)258-7164 -- (800)333-9764 > > > > > > > > From hempy at ket.org Wed Jun 21 21:12:29 2000 From: hempy at ket.org (David Hempy) Date: Thu Aug 5 00:05:48 2004 Subject: LPM: Problems with text::template In-Reply-To: <008401bfdbec$4e3c4240$7801a8c0@adverb.com> References: <4.3.2.7.2.20000621214021.024043d8@mail.ket.org> Message-ID: <4.3.2.7.2.20000621215430.023a3998@mail.ket.org> At 09:50 PM 6/21/2000 -0400, you wrote: >So are you suggesting that my template should look more like this: > > >Get news here: {$news=&getnews;print $news;''} > > No...you had the template just right: Get news here: {&getnews;} I'm guessing your sub currently looks something like this: sub getnews { my ($news) = "Just another perl hacker"; print $news; } It should look more like this: sub getnews { my ($news) = "Just another perl hacker"; return $news; } When Text::Template evaluates the contents of {...}, it (usually*) takes the result of that expression and substitutes it in the final output. After it is done processing the whole template, including all embedded expressions, it returns the grand product back to you for you to print or save or otherwise admire (unless you told it to send it somewhere else, like STDOUT). So, if you go print stuff in your subroutine before Text::Template completes its thing, your subroutine's output will be printed long before the template's output is even ready to be printed. Hope this helps, -dave ----- * The expression's return value is discarded by Text::Template if you use the variable $OUT in the expression. If $OUT has a value, it is included in the output instead of the return value. This lets you be lazy and say: { foreach $gift (sort keys %gifts) { $OUT .= "Thanks for the $gift.
"; } } ...instead of: { my $thanks; foreach $gift (sort keys %gifts) { $thanks .= "Thanks for the $gift.
"; } return $thanks; } This alleviates you from having to say "my $thanks" and leave the "return $thanks;". This comes up often enough when you have a loop in your code that it is really handy. -- David Hempy Internet Database Administrator Kentucky Educational Television -- (606)258-7164 -- (800)333-9764 From dpitts at mk.net Wed Jun 21 21:20:59 2000 From: dpitts at mk.net (David Pitts) Date: Thu Aug 5 00:05:48 2004 Subject: LPM: Problems with text::template References: <4.3.2.7.2.20000621214021.024043d8@mail.ket.org> <4.3.2.7.2.20000621215430.023a3998@mail.ket.org> Message-ID: <009f01bfdbf0$819f54c0$7801a8c0@adverb.com> You are exactly correct.... Thanks, David David Pitts President, Pitts Technical Resources, Inc (859) 552-3262 www.dpitts.com dpitts@mk.net ----- Original Message ----- From: "David Hempy" To: Sent: Wednesday, June 21, 2000 10:12 PM Subject: Re: LPM: Problems with text::template > At 09:50 PM 6/21/2000 -0400, you wrote: > >So are you suggesting that my template should look more like this: > > > > > >Get news here: {$news=&getnews;print $news;''} > > > > > > > No...you had the template just right: > > > > Get news here: {&getnews;} > > > > > > I'm guessing your sub currently looks something like this: > > sub getnews { > my ($news) = "Just another perl hacker"; > print $news; > } > > It should look more like this: > > sub getnews { > my ($news) = "Just another perl hacker"; > return $news; > } > > > > When Text::Template evaluates the contents of {...}, it (usually*) takes > the result of that expression and substitutes it in the final > output. After it is done processing the whole template, including all > embedded expressions, it returns the grand product back to you for you to > print or save or otherwise admire (unless you told it to send it somewhere > else, like STDOUT). > > So, if you go print stuff in your subroutine before Text::Template > completes its thing, your subroutine's output will be printed long before > the template's output is even ready to be printed. > > > Hope this helps, > -dave > > ----- > > * The expression's return value is discarded by Text::Template if you use > the variable $OUT in the expression. If $OUT has a value, it is included > in the output instead of the return value. This lets you be lazy and say: > > { > foreach $gift (sort keys %gifts) { > $OUT .= "Thanks for the $gift.
"; > } > } > > ...instead of: > > { > my $thanks; > > foreach $gift (sort keys %gifts) { > $thanks .= "Thanks for the $gift.
"; > } > > return $thanks; > } > > This alleviates you from having to say "my $thanks" and leave the "return > $thanks;". This comes up often enough when you have a loop in your code > that it is really handy. > > > > > > -- > David Hempy > Internet Database Administrator > Kentucky Educational Television > -- (606)258-7164 -- (800)333-9764 > > From rbowen at rcbowen.com Thu Jun 22 07:35:56 2000 From: rbowen at rcbowen.com (Rich Bowen) Date: Thu Aug 5 00:05:48 2004 Subject: LPM: YAPC Message-ID: <3952082C.58C8361D@rcbowen.com> http://buglet.rcbowen.com/LPM_YAPC.jpg -- Rich Bowen - Rich@cre8tivegroup.com Director of Web Application Development - The Creative Group http://www.cre8tivegroup.com/ Author - Apache Server Unleashed - http://apacheunleashed.com/ From rbowen at rcbowen.com Thu Jun 22 14:08:06 2000 From: rbowen at rcbowen.com (Rich Bowen) Date: Thu Aug 5 00:05:48 2004 Subject: LPM: JOB: Current Job at Kraft Message-ID: <39526416.64C7A5A7@rcbowen.com> FYI. This came to my LPM mailing address. -------- Original Message -------- Subject: Current Job at Kraft Date: Thu, 22 Jun 2000 12:11:17 -0500 From: "Geehan, Colleen" To: "'rcbowen@rcbowen.com'" Hi, Kraft has an opening in the Chicago area (Northfield, IL) for an E-Business Architect to create the systems management e-business architecture. This is an exciting opportunity for someone with skills in Perl, systems monitoring, performance reporting and content management. You will research systems managment vendors and tools(Kraft is considering Interwoven and Vignette), select a systems managment tool and vendor, prototype systems management tools on the e-business platforms and applications, implement the systems management tools, and document procedures for the Command Center personnel on reporting and problem resolution using the systems management tools. Systems management includes content management, change control, performance reporting, capacity planning, and problem management. Bachelor of Science Degree in CS or related field and 3 years of IS experince that includes Perl and systems management. Project management is desired. Salary range: $50-75,000 plus annual bonus. Benefits include medical, dental, 401k, pension plan, vision, prescription, company store, fitness center, casual work environment, 37.5 hour work week, flexible hours, 10 vacation/sick/holidays, and 2 personal holidays. Please contact Colleen Geehan at 847-646-6234 if interested or email resume to cgeehan@kraft.com. US citizens or permanent residents only. From rbowen at rcbowen.com Thu Jun 22 21:38:13 2000 From: rbowen at rcbowen.com (Rich Bowen) Date: Thu Aug 5 00:05:48 2004 Subject: LPM: Problems with text::template References: <007b01bfdbe8$7ebd6420$7801a8c0@adverb.com> Message-ID: <3952CD95.C931C472@rcbowen.com> > David Pitts wrote: > > Okay, I am playing with text::template for the first time - thanks to > Rich's discussion on it. I have a template that includes some perl... > something like this: > > > ... Just a few comments: You're using { } in your template as your code delimiter. Don't. You'll thank me later. There are two main reasons for this. First, { } will mean other things in your template. Guaranteed. Second, using something other than { } is actually a lot faster, for reasons explained in the docs. If you're doing this in HTML (which you appear to be) use <% %> or similar delimiters that are unambiguous. In your templates, you probably want to append output to the $OUT variable, rather than printing it. That's the recommended (by the author) way to use the module. $OUT is guaranteed to make it into your output in the expected place. print might not. Rich -- Rich Bowen - Rich@cre8tivegroup.com Director of Web Application Development - The Creative Group http://www.cre8tivegroup.com/ Author - Apache Server Unleashed - http://apacheunleashed.com/ From rbowen at rcbowen.com Sun Jun 25 14:58:51 2000 From: rbowen at rcbowen.com (Rich Bowen) Date: Thu Aug 5 00:05:48 2004 Subject: LPM: Palm Perl modules Message-ID: <3956647B.CEF6D878@rcbowen.com> I just found these on CPAN, rather by accident. There is no Palm directory on CPAN, at least that I can find. I found these when I was searching for Date-related modules, and came across Palm::Datebook. I know that some of you might be interested in Palm-OS related Perl modules. I certainly am! http://buglet.rcbowen.com/perldocs/Palm/ -- Rich Bowen - Rich@cre8tivegroup.com Director of Web Application Development - The Creative Group http://www.cre8tivegroup.com/ Author - Apache Server Unleashed - http://apacheunleashed.com/