From nico at itfirms.co.za Sat May 3 04:15:59 2003 From: nico at itfirms.co.za (Nico Coetzee) Date: Mon Aug 2 21:39:56 2004 Subject: [Za-pm] FreeTDS On Windows ? Message-ID: <200305031115.59182.nico@itfirms.co.za> Has anyone compiled FreeTDS on windows? Do you know it it will work with Cygwin? Reason I'm asking is that I have to port some of my Perl apps to Windows - for a MS SQL Project. Any comments most welcome! Cheers -- Nico Coetzee http://www.itfirms.co.za/ http://za.pm.org/ http://forums.databasejournal.com/ To the systems programmer, users and applications serve only to provide a test load. From nico at itfirms.co.za Sun May 11 05:55:02 2003 From: nico at itfirms.co.za (Nico Coetzee) Date: Mon Aug 2 21:39:56 2004 Subject: [Za-pm] ADMIN : Promoting za.pm.org Message-ID: <200305111255.02839.nico@itfirms.co.za> Hi all I have started some foot work for promoting za.pm.org, but I need your help as well. I have posted to the following mailing lists: GLUG - Gauteng Linux User Group 2600 - The local underground You you have any other suggestions, please let me know. In the mean time I will try to ID other *nix user groups in SA, and post to them as well. BTW: I know long signatures is not advisable, but if you feel one extra line can't hurt, please add the URL to za.pm.org in your sigs. that will be all. Cheers -- Nico Coetzee http://www.itfirms.co.za/ http://za.pm.org/ http://forums.databasejournal.com/ To the systems programmer, users and applications serve only to provide a test load. From al at quirk.co.za Mon May 12 15:04:45 2003 From: al at quirk.co.za (Alastair Stuart) Date: Mon Aug 2 21:39:56 2004 Subject: [Za-pm] perl & XML Message-ID: <200305122204.45726@ellen.al.quirk> Hi Perl People Anybody done any serious tinkering with XML ? I am having problems deciding on a good XML Writer - XML::Writer seems OK and works well with SAX, but it is quite clumsy & inelegant. I have now switched to using Mason as an XML templating engine, which is nice, especially if you like Mason - but still feels like building XML in an HTML way. XML::XPath is nice for creating small chunks of XML, but like XML::DOM, is very BAD and not possible for generating large XML docs, and i sure we all know why .. Oreilly's XML & Perl is seriously outdated already, has not even entered the XML::SAX::Machines paradigm for XML processing. How are you all doing your XML - anticipating some good feedback Ta Al -- Alastair Stuart t: +27 21 4627353 f: +27 21 462 7354 e: al@quirk.co.za From al at quirk.co.za Mon May 12 15:35:22 2003 From: al at quirk.co.za (Alastair Stuart) Date: Mon Aug 2 21:39:56 2004 Subject: [Za-pm] perl & XML In-Reply-To: <20030512111416.GE17478@qualica.com> References: <200305122204.45726@ellen.al.quirk> <20030512111416.GE17478@qualica.com> Message-ID: <200305122235.22027@ellen.al.quirk> I guess there aren't too many of us :) ... so we'll have to make a lot of noise .. On Monday 12 May 2003 13:14, you wrote: > Hi Al > > > Anybody done any serious tinkering with XML ? > > Not hugely; I've only fiddled with XML::Writer. It does > seem a little clumsy, but I really wasn't doing a large project. > > Sorry - not a huge amount to add here, but it irritates me when > I mail a list and everyone just sits there silently ;) > > Oskar -- Alastair Stuart t: +27 21 4627353 f: +27 21 462 7354 e: al@quirk.co.za From al at quirk.co.za Mon May 12 15:39:05 2003 From: al at quirk.co.za (Alastair Stuart) Date: Mon Aug 2 21:39:56 2004 Subject: [Za-pm] berkdb xml Message-ID: <200305122239.05300@ellen.al.quirk> Hi All, found this on xml.xcom http://www.xml.com/pub/a/2003/05/07/bdb.html .. nice XMLDB I was a bit worried about using apache.org's XINIDICE - Java based XML db that can only be accessed via XML-RPC ( performance, not anti-java motivations (?) !) P.S i always thought that the berkdb would be great for XML persisitence Just to say Al -- Alastair Stuart t: +27 21 4627353 f: +27 21 462 7354 e: al@quirk.co.za From nico at itfirms.co.za Mon May 12 12:30:33 2003 From: nico at itfirms.co.za (Nico Coetzee) Date: Mon Aug 2 21:39:56 2004 Subject: [Za-pm] perl & XML In-Reply-To: <200305122235.22027@ellen.al.quirk> References: <200305122204.45726@ellen.al.quirk> <20030512111416.GE17478@qualica.com> <200305122235.22027@ellen.al.quirk> Message-ID: <200305121930.33155.nico@itfirms.co.za> Doesn't look my previous mail wen through :( Trying to use a webmail thingy. Anyway, not to many people in here yet, so everyone keep your pants up :) About the XML - it supposedly is the future, but I haven't played with it to much yet. Cheers On Monday 12 May 2003 22:35, Alastair Stuart wrote: > I guess there aren't too many of us :) ... > > so we'll have to make a lot of noise .. > > On Monday 12 May 2003 13:14, you wrote: > > Hi Al > > > > > Anybody done any serious tinkering with XML ? > > > > Not hugely; I've only fiddled with XML::Writer. It does > > seem a little clumsy, but I really wasn't doing a large project. > > > > Sorry - not a huge amount to add here, but it irritates me when > > I mail a list and everyone just sits there silently ;) > > > > Oskar -- Nico Coetzee http://www.itfirms.co.za/ http://za.pm.org/ http://forums.databasejournal.com/ To the systems programmer, users and applications serve only to provide a test load. From nico at itfirms.co.za Mon May 12 13:52:05 2003 From: nico at itfirms.co.za (Nico Coetzee) Date: Mon Aug 2 21:39:56 2004 Subject: [Za-pm] Membership Update Message-ID: <200305122052.05330.nico@itfirms.co.za> Good news ( I thinks ) - we have more then doubled our membership today! We now stand at 15 members. Does anybody of you have contact with members from other LUG's in SA? I just need to get some web sites or contact e-mails - I already have found the following: http://www.linux.org/groups/southafrica.html Thanks -- Nico Coetzee http://www.itfirms.co.za/ http://za.pm.org/ http://forums.databasejournal.com/ To the systems programmer, users and applications serve only to provide a test load. From steve at dig.co.za Mon May 12 14:19:22 2003 From: steve at dig.co.za (Steve Cox -dig) Date: Mon Aug 2 21:39:56 2004 Subject: [Za-pm] Using perl to call a bash script Message-ID: <200305122119.22883.steve@dig.co.za> Two fold message, Howdie all, just testing is this works, Secondly, I use some php, but I am interested, can you call a bash script from perl (probably). If so, as a user/or from a webpage can I also call raw bash comands like if the perl script is in the cgi-bin how could I include a raw bash command (as root if possible) to pull the following to a file: steve@steve]# grep pppd /var/log/syslog > anewfile I cant get a root cronjob working and from a user I cant pull records from the /var/log/syslog A simple example of typical output at www.dig.co.za go to "my home pc" then "statistics" this at the moment is run manualy every so often. My script works when I run it in bash manually, just as root its a no go. Anyways, nice to have a perl list, and I know for fact it will help me plenty. I dig php but prefer perl for some stuff, so an integration of both is cool. For what its worth, I run a small lan at home off a ADSl conection, 4 Mandrake 9.1 machines, one is a gateway samba server (P1 100mhz 32meg ram) and one other P4 1.7 dual boots off seperate hdd to win98 for the time being. Others plain Mandrake. Oh b4 we have any flamewars - the best distro: LINUX ! Regards Steve Cox From mollerw at cmerce.com Mon May 12 14:30:05 2003 From: mollerw at cmerce.com (=?us-ascii?Q?Werner_Moller?=) Date: Mon Aug 2 21:39:56 2004 Subject: [Za-pm] Using perl to call a bash script In-Reply-To: <200305122119.22883.steve@dig.co.za> Message-ID: Like so: #!/usr/bin/perl system("grep pppd /var/log/syslog > anewfile"); OR $thecmd = `grep pppd /var/log/syslog > anewfile`; # Using the backtics ya see BUT This is very nasty security practice, if you can do this your web server can be wiped from anywhere by anyone with a bit of Unix sivvy(I can tell you how...:?), rather do something like this: #!/usr/bin/perl -w # See above use strict with -w AND use tainted mode if possible, but let's # not go into security here... open FILE, ") { REST OF CODE GOES HERE ie. --> open NEWFILE, ">anewfile" or bla bla .... and so on } close FILE; Let me know if you need more details though. Hope this helps. Cheers, Werner Moller wernerm@ifusion.co.za PS: I did this on the fly so don't shoot me if the code don't run :) -----Original Message----- From: za-pm-admin@mail.pm.org [mailto:za-pm-admin@mail.pm.org]On Behalf Of Steve Cox -dig Sent: 12 May 2003 09:19 PM To: za-pm@mail.pm.org Subject: [Za-pm] Using perl to call a bash script Two fold message, Howdie all, just testing is this works, Secondly, I use some php, but I am interested, can you call a bash script from perl (probably). If so, as a user/or from a webpage can I also call raw bash comands like if the perl script is in the cgi-bin how could I include a raw bash command (as root if possible) to pull the following to a file: steve@steve]# grep pppd /var/log/syslog > anewfile I cant get a root cronjob working and from a user I cant pull records from the /var/log/syslog A simple example of typical output at www.dig.co.za go to "my home pc" then "statistics" this at the moment is run manualy every so often. My script works when I run it in bash manually, just as root its a no go. Anyways, nice to have a perl list, and I know for fact it will help me plenty. I dig php but prefer perl for some stuff, so an integration of both is cool. For what its worth, I run a small lan at home off a ADSl conection, 4 Mandrake 9.1 machines, one is a gateway samba server (P1 100mhz 32meg ram) and one other P4 1.7 dual boots off seperate hdd to win98 for the time being. Others plain Mandrake. Oh b4 we have any flamewars - the best distro: LINUX ! Regards Steve Cox _______________________________________________ Za-pm mailing list Za-pm@mail.pm.org http://mail.pm.org/mailman/listinfo/za-pm From steve at dig.co.za Mon May 12 14:48:18 2003 From: steve at dig.co.za (Steve Cox -dig) Date: Mon Aug 2 21:39:56 2004 Subject: [Za-pm] Using perl to call a bash script In-Reply-To: References: Message-ID: <200305122148.18126.steve@dig.co.za> Okay will try that, no time tonite though. The backtic php thing never worked for me gave me an error, I tried rectifing it in php but never got it right. I can see where you are going and will give it a bash in the morning, can I call root stuff like this though, like /var/log/syslog has root permissions. Doesnt matter if you change it soon as the system writes to it it gets root perms again. Can your way pull from a root group user syslog file? Nonetheless, I'll experiment. Regards Steve Cox. On Monday, 12 May 2003 21:30, Werner Moller wrote: > Like so: > > #!/usr/bin/perl > > system("grep pppd /var/log/syslog > anewfile"); > > OR > > $thecmd = `grep pppd /var/log/syslog > anewfile`; # Using the backtics ya > see > > BUT > > This is very nasty security practice, if you can do this your web server > can be wiped from anywhere by anyone with a bit of Unix sivvy(I can tell > you how...:?), rather do something like this: > > #!/usr/bin/perl -w > # See above use strict with -w AND use tainted mode if possible, but let's > # not go into security here... > > open FILE, " while () { > > REST OF CODE GOES HERE > ie. --> open NEWFILE, ">anewfile" or bla bla .... and so on > > } > close FILE; > > Let me know if you need more details though. > > Hope this helps. > > Cheers, > Werner Moller > wernerm@ifusion.co.za > > PS: I did this on the fly so don't shoot me if the code don't run :) > -----Original Message----- > From: za-pm-admin@mail.pm.org [mailto:za-pm-admin@mail.pm.org]On Behalf > Of Steve Cox -dig > Sent: 12 May 2003 09:19 PM > To: za-pm@mail.pm.org > Subject: [Za-pm] Using perl to call a bash script > > > Two fold message, > > Howdie all, just testing is this works, > > Secondly, I use some php, but I am interested, can you call a bash script > from > perl (probably). If so, as a user/or from a webpage can I also call raw > bash comands like if the perl script is in the cgi-bin how could I include > a raw bash command (as root if possible) to pull the following to a file: > > steve@steve]# grep pppd /var/log/syslog > anewfile > > I cant get a root cronjob working and from a user I cant pull records from > the > /var/log/syslog > > A simple example of typical output at www.dig.co.za go to "my home pc" then > "statistics" this at the moment is run manualy every so often. My script > works when I run it in bash manually, just as root its a no go. > > Anyways, nice to have a perl list, and I know for fact it will help me > plenty. > I dig php but prefer perl for some stuff, so an integration of both is > cool. > > For what its worth, I run a small lan at home off a ADSl conection, 4 > Mandrake > 9.1 machines, one is a gateway samba server (P1 100mhz 32meg ram) and one > other P4 1.7 dual boots off seperate hdd to win98 for the time being. > Others plain Mandrake. > > Oh b4 we have any flamewars - the best distro: > LINUX ! > > Regards > Steve Cox > _______________________________________________ > Za-pm mailing list > Za-pm@mail.pm.org > http://mail.pm.org/mailman/listinfo/za-pm From nico at itfirms.co.za Mon May 12 15:11:05 2003 From: nico at itfirms.co.za (Nico Coetzee) Date: Mon Aug 2 21:39:56 2004 Subject: [Za-pm] Using perl to call a bash script In-Reply-To: <200305122119.22883.steve@dig.co.za> References: <200305122119.22883.steve@dig.co.za> Message-ID: <200305122211.05500.nico@itfirms.co.za> To add a root cronjob, log in as root and then do: # crontab -e You can then add: */5 * * * * /bin/grep pppd /var/log/syslog > /var/www/html/file ; /bin/chmod 644 /var/www/html/file ; /bin/chown apache.apache /var/www/html/file NOTE: The above is all in one line. You can then include the /var/www/html/file as usual in PHP. The above cron will execute at exactly 5 minute intervals. Regarding the Perl stuff: There are two ways: First: $ perl -e '$res=`echo "This is a test shell command"`; print "$res";' This is the easiest way, and is also known as the back-tick method. Interesting to note is that the return result stored in $res will include the newline ( \n ) character. To get rid of it - use: chomp( $res ); If you want to capture multiple lines, and process one line at a time: @lines = `/bin/df -B 1024`; shift( @lines ); # get rid of the header line foreach $line ( @lines ) { chomp( $line ); # remove newlines ( $dev, $size, $used, $avail, $usep, $mountpoint ) = split( /\s+/, $line ); if ( int( $avail ) > 1000000 ) { print "Still plenty of space left on $dev ( $mountpoint )\n"; } The above commands will store each line returned as a row in the array @lines. We then get rid of the first line ( header line ) with the shift command, and start to loop through each row - one at a time. With each loop, we first get rid of the newline, and then we split the row up in elements ( space seperated ) with the split command. Each element is stored in a var, and we can use that var as in the example where we printed a info message. You can use this same technique to "pretty-fy" your output on your web page, if you use Perl instead of PHP, although I belief PHP has similar capabilities. The scond, more secure way, of calling commands is with the system command. See 'perldoc -f system' for the complete documentation. ADSL? I wish that was available in my area! Cheers On Monday 12 May 2003 21:19, Steve Cox -dig wrote: > Two fold message, > > Howdie all, just testing is this works, > > Secondly, I use some php, but I am interested, can you call a bash script > from perl (probably). If so, as a user/or from a webpage can I also call > raw bash comands like if the perl script is in the cgi-bin how could I > include a raw bash command (as root if possible) to pull the following to a > file: > > steve@steve]# grep pppd /var/log/syslog > anewfile > > I cant get a root cronjob working and from a user I cant pull records from > the /var/log/syslog > > A simple example of typical output at www.dig.co.za go to "my home pc" then > "statistics" this at the moment is run manualy every so often. My script > works when I run it in bash manually, just as root its a no go. > > Anyways, nice to have a perl list, and I know for fact it will help me > plenty. I dig php but prefer perl for some stuff, so an integration of both > is cool. > > For what its worth, I run a small lan at home off a ADSl conection, 4 > Mandrake 9.1 machines, one is a gateway samba server (P1 100mhz 32meg ram) > and one other P4 1.7 dual boots off seperate hdd to win98 for the time > being. Others plain Mandrake. > > Oh b4 we have any flamewars - the best distro: > LINUX ! > > Regards > Steve Cox > _______________________________________________ > Za-pm mailing list > Za-pm@mail.pm.org > http://mail.pm.org/mailman/listinfo/za-pm -- Nico Coetzee http://www.itfirms.co.za/ http://za.pm.org/ http://forums.databasejournal.com/ To the systems programmer, users and applications serve only to provide a test load. From scarte at pan.uzulu.ac.za Tue May 13 00:47:09 2003 From: scarte at pan.uzulu.ac.za (Sean Carte) Date: Mon Aug 2 21:39:56 2004 Subject: [Za-pm] Membership Update In-Reply-To: <200305122052.05330.nico@itfirms.co.za> References: <200305122052.05330.nico@itfirms.co.za> Message-ID: <1052804830.2541.20.camel@seanc.uznet.uz> On Mon, 2003-05-12 at 20:52, Nico Coetzee wrote: > Does anybody of you have contact with members from other LUG's in SA? Is there a reason for specifically targetting Linux users? What about Mac users? Shall I inform the MacSupport list (run by Jon Ostrowick at Wits)? -- Regards Sean Carte University of Zululand Network Services Unit Phone: 035 902 6081 Fax: 035 902 6028 "You know, there are many people in the country today who, through no fault of their own, are sane. Some of them were born sane. Some of them became sane later in their lives. It is up to people like you and me who are out of our tiny little minds to try and help these people overcome their sanity. You can start in small ways with ping-pong ball eyes and a funny voice and then you can paint half of your body red and the other half green and then you can jump up and down in a bowl of treacle going "squawk, squawk, squawk..." And then you can go "Neurhhh! Neurhhh!" and then you can roll around on the floor going "pting pting pting"..." -- Reverend Belling From oskar at qualica.com Tue May 13 02:22:23 2003 From: oskar at qualica.com (Oskar Pearson) Date: Mon Aug 2 21:39:56 2004 Subject: [Za-pm] Using perl to call a bash script In-Reply-To: <200305122148.18126.steve@dig.co.za> References: <200305122148.18126.steve@dig.co.za> Message-ID: <20030513072222.GG29025@qualica.com> Hi > Okay will try that, no time tonite though. The backtic php thing never worked > for me gave me an error, I tried rectifing it in php but never got it right. > I can see where you are going and will give it a bash in the morning, can I > call root stuff like this though, like /var/log/syslog has root permissions. > Doesnt matter if you change it soon as the system writes to it it gets root > perms again. Can your way pull from a root group user syslog file? > Nonetheless, I'll experiment. When you run a cgi, it runs as the user that the web server is running as. If you run apache, the 'User' and 'Group' options tell the server who to run as. oskar@core1:~/Mail/p$ grep -i '^User' /etc/apache/httpd.conf User www-data oskar@core1:~/Mail/p$ grep -i '^Group' /etc/apache/httpd.conf Group www-data oskar@core1:~/Mail/p$ What's probably happening is that the command is not able to access the /var/log/syslog files as this user. There are a couple options here: 1) Create a "setuid script". 2) Change the user and group that the webserver runs as. 3) Change the readability of the log file so that anyone can read it. Covered in turn: 1) If you're interested, you can figure out setuid stuff in perl. Some possible links (not read any of them - just did a quick google) are at http://heap.nologin.net/programming.html You'll need to read "man perlsec" too, and put something like the following at the top of the script #!/usr/bin/perl -wT $< = $>; $( = $); $ENV{PATH} = "/usr/bin:/bin"; Check "man perlsec" for more info. 2) I'd not suggest this. Exploits occasionally come out for things like apache that allow users to get "www-data" access. If you change this to root, then hackers have root access if they can exploit your box. 3) Change the log permissions. Depending on your system, things like "logrotate" may change the permissions back. You'll possibly need to configure things so that the mode etc are correct. man logrotate says create mode owner group Immediately after rotation (before the postrotate script is run) the log file is created (with the same name as the log file just rotated). mode specifies the mode for the log file in octal (the same as chmod(2)), owner specifies the user name who will own the log file, and group specifies the group the log file will belong to. Any of the log file attributes may be omitted, in which case those attributes for the new file will use the same values as the original log file for the omitted attributes. This option can be disabled using the nocreate option. Hope this helps! Oskar From wernerm at ifusion.co.za Tue May 13 05:04:55 2003 From: wernerm at ifusion.co.za (Werner Moller) Date: Mon Aug 2 21:39:56 2004 Subject: [Za-pm] perl & XML Message-ID: <2E3F96E0A649D4118AFD00105AD507BF03E4169F@mail.ifusion.co.za> Have anyone looked at WBEM(Web Based Enterprise Management) from a Perl perspective? -----Original Message----- From: za-pm-admin@mail.pm.org [mailto:za-pm-admin@mail.pm.org]On Behalf Of Nico Coetzee Sent: 12 May 2003 19:31 To: za.pm.org Subject: Re: [Za-pm] perl & XML Doesn't look my previous mail wen through :( Trying to use a webmail thingy. Anyway, not to many people in here yet, so everyone keep your pants up :) About the XML - it supposedly is the future, but I haven't played with it to much yet. Cheers On Monday 12 May 2003 22:35, Alastair Stuart wrote: > I guess there aren't too many of us :) ... > > so we'll have to make a lot of noise .. > > On Monday 12 May 2003 13:14, you wrote: > > Hi Al > > > > > Anybody done any serious tinkering with XML ? > > > > Not hugely; I've only fiddled with XML::Writer. It does > > seem a little clumsy, but I really wasn't doing a large project. > > > > Sorry - not a huge amount to add here, but it irritates me when > > I mail a list and everyone just sits there silently ;) > > > > Oskar -- Nico Coetzee http://www.itfirms.co.za/ http://za.pm.org/ http://forums.databasejournal.com/ To the systems programmer, users and applications serve only to provide a test load. _______________________________________________ Za-pm mailing list Za-pm@mail.pm.org http://mail.pm.org/mailman/listinfo/za-pm From nico at itfirms.co.za Tue May 13 13:53:38 2003 From: nico at itfirms.co.za (Nico Coetzee) Date: Mon Aug 2 21:39:56 2004 Subject: [Za-pm] Membership Update In-Reply-To: <1052804830.2541.20.camel@seanc.uznet.uz> References: <200305122052.05330.nico@itfirms.co.za> <1052804830.2541.20.camel@seanc.uznet.uz> Message-ID: <200305132053.38788.nico@itfirms.co.za> Good point - I just started at the obvious ( for me ) starting point. If you have some contacts in Mac world - please feel free to invite them as well. Cheers On Tuesday 13 May 2003 07:47, Sean Carte wrote: > On Mon, 2003-05-12 at 20:52, Nico Coetzee wrote: > > Does anybody of you have contact with members from other LUG's in SA? > > Is there a reason for specifically targetting Linux users? What about > Mac users? > > Shall I inform the MacSupport list > (run by Jon > Ostrowick at Wits)? -- Nico Coetzee http://www.itfirms.co.za/ http://za.pm.org/ http://forums.databasejournal.com/ To the systems programmer, users and applications serve only to provide a test load. From nico at itfirms.co.za Tue May 13 14:34:48 2003 From: nico at itfirms.co.za (Nico Coetzee) Date: Mon Aug 2 21:39:56 2004 Subject: [Za-pm] perl & XML In-Reply-To: <2E3F96E0A649D4118AFD00105AD507BF03E4169F@mail.ifusion.co.za> References: <2E3F96E0A649D4118AFD00105AD507BF03E4169F@mail.ifusion.co.za> Message-ID: <200305132134.48836.nico@itfirms.co.za> I have a project like that going on Sourceforge - but I battle to find the time to spend on it. You can have a look here: http://lsmi.sourceforge.net/ Cheers On Tuesday 13 May 2003 12:04, Werner Moller wrote: > Have anyone looked at WBEM(Web Based Enterprise Management) from a Perl > perspective? > > -----Original Message----- > From: za-pm-admin@mail.pm.org [mailto:za-pm-admin@mail.pm.org]On Behalf > Of Nico Coetzee > Sent: 12 May 2003 19:31 > To: za.pm.org > Subject: Re: [Za-pm] perl & XML > > > Doesn't look my previous mail wen through :( Trying to use a webmail > thingy. > > Anyway, not to many people in here yet, so everyone keep your pants up :) > > About the XML - it supposedly is the future, but I haven't played with it > to > > much yet. > > Cheers > > On Monday 12 May 2003 22:35, Alastair Stuart wrote: > > I guess there aren't too many of us :) ... > > > > so we'll have to make a lot of noise .. > > > > On Monday 12 May 2003 13:14, you wrote: > > > Hi Al > > > > > > > Anybody done any serious tinkering with XML ? > > > > > > Not hugely; I've only fiddled with XML::Writer. It does > > > seem a little clumsy, but I really wasn't doing a large project. > > > > > > Sorry - not a huge amount to add here, but it irritates me when > > > I mail a list and everyone just sits there silently ;) > > > > > > Oskar -- Nico Coetzee http://www.itfirms.co.za/ http://za.pm.org/ http://forums.databasejournal.com/ To the systems programmer, users and applications serve only to provide a test load. From nico at itfirms.co.za Thu May 15 12:35:29 2003 From: nico at itfirms.co.za (Nico Coetzee) Date: Mon Aug 2 21:39:56 2004 Subject: [Za-pm] ZA.PM Updates Message-ID: <200305151935.29579.nico@itfirms.co.za> Hi all We have just reached 30 members :) Thanks to everybody that helped in this effort. Just a quick update - I will be in Helsinki next week to present an African FLOSS report to the Finish Government. I will try to access my mail everyday, but in the event that I do not - PLEASE don't break anything in here :) In the mean time, how about some introductions? I would like to know where you all are ( physical city ) and what you do full time. This purely optional, but might proof interesting none the less. It would also help me plan a meeting later on - deciding on the city etc. I would also like to hear some suggestions as to what you think about a general annual meeting. If our numbers permit, I can also spread the za.pm workload in areas such as mailing list admin, web site maintainer(s) etc - please give me your thoughts on these issues. To practice what I preach - here goes: I an in Johannesburg and full time employee of First National Bank as a Perl programmer in the Linux Team. The rest of the time I stay out of trouble by working on various unfinished projects - and even try to spend some quality time with my wife. Cheers -- Nico Coetzee http://www.itfirms.co.za/ http://za.pm.org/ http://forums.databasejournal.com/ To the systems programmer, users and applications serve only to provide a test load. From steve at dig.co.za Thu May 15 13:10:25 2003 From: steve at dig.co.za (Steve Cox -dig) Date: Mon Aug 2 21:39:56 2004 Subject: [Za-pm] Intro's In-Reply-To: <200305151935.29579.nico@itfirms.co.za> References: <200305151935.29579.nico@itfirms.co.za> Message-ID: <200305152010.25561.steve@dig.co.za> On Thursday, 15 May 2003 19:35, Nico Coetzee wrote: > In the mean time, how about some introductions? I would like to know where > you all are ( physical city ) and what you do full time. This purely > optional, but might proof interesting none the less. It would also help me > plan a meeting later on - deciding on the city etc. I would also like to > hear some suggestions as to what you think about a general annual meeting. > If our numbers permit, I can also spread the za.pm workload in areas such > as mailing list admin, web site maintainer(s) etc - please give me your > thoughts on these issues. > > To practice what I preach - here goes: > > I an in Johannesburg and full time employee of First National Bank as a > Perl programmer in the Linux Team. The rest of the time I stay out of > trouble by working on various unfinished projects - and even try to spend > some quality time with my wife. > > Cheers I am in Edenvale, Joburg, Manager Power Semiconductor Division, Advanced Product Technology, we sell Power Semiconductors, imagine electronics like transistors diodes etc x 100 in power. Like the smallest thing we sell starts at about 25amp 1200Vrrm kinda, up to around 4000 amp in a single device. If you wanna look check www.aptsa.co.za I run Linux at home, Mandrake9.1 cooker on a small lan (4 boxes) connected with adsl. So far I have managed to get one linux machine in at work, a rh6.2 box as firewall for adsl. I write and try to improve my knowledge on webpage design (on Linux only), I use php a lot lately, but like to use perl as well for cgi stuff. I am integrating bash as well lately, and the whole mix is really exciting running off Linux OS. Regards Steve Cox. From hultq at iafrica.com Thu May 15 15:15:10 2003 From: hultq at iafrica.com (Marc Hultquist) Date: Mon Aug 2 21:39:56 2004 Subject: [Za-pm] ZA.PM Updates References: <200305151935.29579.nico@itfirms.co.za> Message-ID: <001401c31b1e$b04d7160$acdf1ec4@batty> Hello all I am currently a Part time Student / Full Time Web Developer. Currently I live in Johannesburg and I work in JHB as well :P Logical ey :-) I code in Perl / PHP / ASP and C++ with MySQL and PosteGRE SQL knowledge. UM. What else, if you aint noticed my name is Marc :P From WKruse at multichoice.co.za Thu May 15 23:32:56 2003 From: WKruse at multichoice.co.za (Walter Kruse) Date: Mon Aug 2 21:39:56 2004 Subject: [Za-pm] Intros Message-ID: <79A1791707CB084A8F5B8C5C2F8B06DE833CF4@rnbm-msg02.mck.co.za> Hi all Walter Kruse - software tester by day - Linux enthusiast by night. I live in Centurion and work for a software testing company http://www.testdata.co.za At the moment (for the last two years) I am testing at a client site in Randburg: Multichoice. If you want to know more than this, I have a page at www.ou-ryperd.net Kind Regards Walter Kruse MultiChoice Information Technology Software test analyst - Application Delivery and Support Team Tel: +27 (0) 11 289-4552 Cell: +27 (0) 82 660 7288 Email: walterk@multichoice.co.za Personal web page: http://www.ou-ryperd.net ************************************************************************************************************************** Everything in this e-mail and attachments relating to the official business of MultiChoice South Africa is proprietary to the company. Any view or opinion expressed in this message may be the view of the individual and should not automatically be ascribed to the company. If you are not the intended recipient, you may not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify the sender immediately by email, facsimile or telephone and destroy the original message. ************************************************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/za-pm/attachments/20030516/57caf6ab/attachment.htm From theunis at ixpress.co.za Fri May 16 01:17:49 2003 From: theunis at ixpress.co.za (Theunis De Klerk) Date: Mon Aug 2 21:39:56 2004 Subject: [Za-pm] ZA.PM Updates In-Reply-To: <200305151935.29579.nico@itfirms.co.za> References: <200305151935.29579.nico@itfirms.co.za> Message-ID: <1053065874.5165.104.camel@ixp-theunis> Hey Everybody, I am in sandton, johannesburg, Iam a junior database administrator and junior web developer (www.nadaodocheck.co.za , www.vericar.co.za). Hence the word junior so please be patient with my newbie questions. Studying part time doing my Bsc Computer Science. Cheers Theunis From bartho at cae.co.za Fri May 16 01:30:51 2003 From: bartho at cae.co.za (Bartho Saaiman) Date: Mon Aug 2 21:39:56 2004 Subject: [Za-pm] Intros In-Reply-To: <79A1791707CB084A8F5B8C5C2F8B06DE833CF4@rnbm-msg02.mck.co.za> References: <79A1791707CB084A8F5B8C5C2F8B06DE833CF4@rnbm-msg02.mck.co.za> Message-ID: <3EC4859B.5000102@cae.co.za> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi All I am a full time sysadmin working in Stellenbosch. I have working experience on Windows, Novell, Linux, FreeBSD and Solaris. I am currently trying to learn Perl to make my life simpler. SO regarding Perl I am still a newbie. Walter Kruse wrote: | Hi all - -- # Bartho Saaiman # Stellenbosch Automotive Engineering # Tel :: 27 21 882 8820 x 215 # Cell :: 27 82 551 2703 # Email :: bartho @ cae.co.za # GnuPG Key is available at http://www.cae.co.za/people/bartho -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE+xIWZKj7/xrj3VCoRAqHqAJwNPpEh1nXPhm2xV4jNUvSCO7fQ5ACfVWXu n4EKeC0Uh2VlzjWjkWzMHIo= =oVVT -----END PGP SIGNATURE----- From dirkvanderwalt at webmail.co.za Fri May 16 02:56:48 2003 From: dirkvanderwalt at webmail.co.za (DIRK KONRAD) Date: Mon Aug 2 21:39:56 2004 Subject: [Za-pm] Intro - Dirk Message-ID: <200305160756.h4G7uoN18249@mailgate.mailbox.co.za> Hi All, Dirk writing, From Emmanuel.Asante at bhpbilliton.com Fri May 16 03:04:30 2003 From: Emmanuel.Asante at bhpbilliton.com (Asante, Emmanuel [ING WBK]) Date: Mon Aug 2 21:39:56 2004 Subject: [Za-pm] ZA.PM Updates Message-ID: Hi all, I am a Mining Engineer by training but I have moved into SAP BW in the last eight months. I work for Ingwe Coal Corporation as the BW Technical administrator. I am based in Middelburg in Mpumalanga but I work in Witbank. I work exclusively on Windows at work; at home I run both Windows and Linux(Redhat 7.0 and 8.0). During my spare time I do VB6, Java and PHP programming as a hobby and I am currently learning Perl. Cheers Emmanuel Asante -----Original Message----- From: Nico Coetzee [mailto:nico@itfirms.co.za] Sent: 15 May 2003 07:35 To: za.pm.org Subject: [Za-pm] ZA.PM Updates Hi all We have just reached 30 members :) Thanks to everybody that helped in this effort. Just a quick update - I will be in Helsinki next week to present an African FLOSS report to the Finish Government. I will try to access my mail everyday, but in the event that I do not - PLEASE don't break anything in here :) In the mean time, how about some introductions? I would like to know where you all are ( physical city ) and what you do full time. This purely optional, but might proof interesting none the less. It would also help me plan a meeting later on - deciding on the city etc. I would also like to hear some suggestions as to what you think about a general annual meeting. If our numbers permit, I can also spread the za.pm workload in areas such as mailing list admin, web site maintainer(s) etc - please give me your thoughts on these issues. To practice what I preach - here goes: I an in Johannesburg and full time employee of First National Bank as a Perl programmer in the Linux Team. The rest of the time I stay out of trouble by working on various unfinished projects - and even try to spend some quality time with my wife. Cheers -- Nico Coetzee http://www.itfirms.co.za/ http://za.pm.org/ http://forums.databasejournal.com/ To the systems programmer, users and applications serve only to provide a test load. _______________________________________________ Za-pm mailing list Za-pm@mail.pm.org http://mail.pm.org/mailman/listinfo/za-pm -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/za-pm/attachments/20030516/a141cf45/attachment.htm From scarte at pan.uzulu.ac.za Fri May 16 03:33:04 2003 From: scarte at pan.uzulu.ac.za (Sean Carte) Date: Mon Aug 2 21:39:56 2004 Subject: [Za-pm] Intro's In-Reply-To: <200305152010.25561.steve@dig.co.za> References: <200305151935.29579.nico@itfirms.co.za> <200305152010.25561.steve@dig.co.za> Message-ID: <1053073985.3300.439.camel@seanc.uznet.uz> If you look really carefully, you can usually find me at Kwa-Dlangezwa (in KZN) at the University of Zululand, where I'm kept busy administering the Linux Web, mail, and application servers and writing perl or PHP to populate and suck data out of our MySQL and Postgres databases. At home, I tend to occupy myself with my wife's iMac: I'm currently on a mission to source a USB modem to replace the internal one, which got fried by lightning. And yes, perl runs well on the Mac OS: that's where I started learning it ... -- Regards Sean Carte University of Zululand Network Services Unit Phone: 035 902 6081 Fax: 035 902 6028 "I think that all good, right thinking people in this country are sick and tired of being told that all good, right thinking people in this country are fed up with being told that all good, right thinking people in this country are fed up with being sick and tired. I'm certainly not, and I'm sick and tired of being told that I am." From perl at linux.za.net Fri May 16 04:49:23 2003 From: perl at linux.za.net (Allen Baranov) Date: Mon Aug 2 21:39:56 2004 Subject: [Za-pm] Me Message-ID: <200305161149.23410.perl@linux.za.net> Hi, I am a Security Engineer (firewalls,IDS,etc - not torch and guard dog). I specialise in Check Point Firewall-1 which runs best on Unix/Linux. I am also a Linux enthusiast. Basically Security is my job and I'm damn good at it but Linux is my passion. Perl is just fun to use. I don't get much chance to use perl which is unfortunate because it is the only programming language I have ever _really_ understood. I try to use it in the most obscure places though. My biggest project was a small IRC server/client. I really enjoy playing with regular expressions. They are slippery as soap. I'm married, two kids. Both will use Linux. ("As long as you live under my roof, you will use my operating system!" "But da-ad...") I work in Randburg ... across the road from Multichoice. ;) Allen Baranov From fuzzylogik at webmail.co.za Fri May 16 04:53:45 2003 From: fuzzylogik at webmail.co.za (Dallas G) Date: Mon Aug 2 21:39:56 2004 Subject: [Za-pm] Intro - Dallas References: <200305160756.h4G7uoN18249@mailgate.mailbox.co.za> Message-ID: <008d01c31b91$0d5a3790$a802000a@realm.co.za> Hi All, Dallas here, I am 25 Software developer living in Jhb Sandton area, I am new to perl, but have 4 years experience developing systems in Delphi,c/c++ and PHP using Oracle,Postgres and mySQL. I specialise in Content and Media delivery systems and plan to optimise and enchance my products using perl I am a Mandrake fan and its my distro of choice. Although I develop on Win32 and Linux, I am using perl on both. Regards Dallas Goldswain From perl at linux.za.net Fri May 16 05:12:44 2003 From: perl at linux.za.net (Allen Baranov) Date: Mon Aug 2 21:39:56 2004 Subject: [Za-pm] Intro - Dirk In-Reply-To: <200305160756.h4G7uoN18249@mailgate.mailbox.co.za> References: <200305160756.h4G7uoN18249@mailgate.mailbox.co.za> Message-ID: <200305161212.44350.perl@linux.za.net> Hi Dirk, > I'm still very new to programming / Perl so you may have to tolerate > my stupidity. I use ?The Camel? but usually stay only in Chapter 1. > (Just to show how new I am @ this). The amazing thing about perl is after just reading chapter one you can pretty much program anything. Not very neatly or tightly but TIMTOWTDI :) You are missing out on the richness of perl though if you don't venture on a bit. Allen Baranov From dirkvanderwalt at webmail.co.za Fri May 16 05:42:15 2003 From: dirkvanderwalt at webmail.co.za (DIRK KONRAD) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] Perl/Tk As Root Message-ID: <200305161042.h4GAgGN27188@mailgate.mailbox.co.za> OK, So here's my FIRST stupid Question. I've got this Perl/Tk script/app that does all sorts of magick. But I first have to su to root and then run it as root from a shell.(It manipulates some config files) How can I go about doing it the way Mandrake does it, where if the user clicks on the icon, it will pop-up a “root password” screen with a message, and then, if successful, will run that script as root, but still staying away from SUID. If this app is to have mass appeal, this, for me is a must! I Dont want to pop up a message telling the user “ Please open a shell, SU to root and then type in “/opt/foo/bar.pl” Much easier to tell them “password Please” and off you go. Dirk _______________________________________________________________________ Cool Connection, Cool Price, Internet Access for R59 monthly @ WebMail http://www.webmail.co.za/dialup/ From adrians at turnkey.web.za Fri May 16 05:52:35 2003 From: adrians at turnkey.web.za (Adrian Snyman) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] Intro - Adrian In-Reply-To: <008d01c31b91$0d5a3790$a802000a@realm.co.za> References: <200305160756.h4G7uoN18249@mailgate.mailbox.co.za> <008d01c31b91$0d5a3790$a802000a@realm.co.za> Message-ID: <200305161252.35750.adrians@turnkey.web.za> Sorry .. posted with wrong Identity .. Adrian here .. An East Rander .. (Benoni) Here behind the boerewors curtain we use perl mainly for manipulating data before populating a Database (Cache). Been Using Unix/Linux since '91 .. Currently run Mandrake on a laptop .. RH on servers and BSD on the side .. Married Wife+3 spawns .. -- /* Beat Me, Whip Me, Make me use Windows */ From contrafa at biology.und.ac.za Fri May 16 07:09:47 2003 From: contrafa at biology.und.ac.za (Dr Giancarlo Contrafatto) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] Intros (Giancarlo Contrafatto) Message-ID: <1053086987.1199.54.camel@contra.biology.und.ac.za> Greetings to everyone; I'm in Durban and waste my full-time, lecturing immunology, microbiology and systematics at the University of Natal. Running my Apache web server (as you see from the signature) under RH 8.0, running Red Hat at home too and have been using Linux since the Red Hat 6.2 distro hit the market. Also ran my server under Corel Linux for about a year. Of course, I am not an experienced programmer at all but, as one might expect, a self-taught perl beginner. In other words, I tend to write the CGIs deployed on my server and other personal applications on my home PC. I'm busy developing a web-based perl CGI/programme (for a half-baked research group in my department) to store, search and retrieve scientific journal references. I say busy developing, because I have abandoned the effort, so long, due lack of interest on the part of my colleagues (and lack of time), but I still have full intentions of finishing the job. Suggestions regarding meetings and AGM. Well, I'm not sure: it may work up on the Reef, since I see that most subscribers, so far, are from there. It may be difficult to get outlying members to travel, though. Not much else to say, for now. ciao P.S.: Oh yes ... there is a disclaimer somewhere or other on the UND web site, for those who have nothing better to do. -- advertising may be described as the science of arresting the human intelligence long enough to get money from it. Stephen Leacock \|/ (o o) --------------ooO0-(_)-0Ooo---------------------------------------------- Dr. G. Contrafatto - School of Life and Environmental Science University of Natal Durban - Ph. +270312603336 ########################################################################## Visit Darwin at http://contra.biology.und.ac.za From oskar at linux.org.za Fri May 16 07:19:57 2003 From: oskar at linux.org.za (oskar@linux.org.za) Date: Mon Aug 2 21:39:57 2004 Subject: [oskar: Re: [Za-pm] ZA.PM Updates] Message-ID: <20030516121957.GA16920@qualica.com> Resend - sent from the wrong address previously. ----- Forwarded message from oskar ----- > To: Nico Coetzee > Cc: "za.pm.org" > Subject: Re: [Za-pm] ZA.PM Updates > > Hi Nico > > > Just a quick update - I will be in Helsinki next week to present an African > > FLOSS report to the Finish Government. I will try to access my mail everyday, > > but in the event that I do not - PLEASE don't break anything in here :) > > Good stuff. Hope the report goes well. > > > In the mean time, how about some introductions? I would like to know where you > > all are ( physical city ) and what you do full time. This purely optional, > > but might proof interesting none the less. It would also help me plan a > > meeting later on - deciding on the city etc. I would also like to hear some > > suggestions as to what you think about a general annual meeting. If our > > numbers permit, I can also spread the za.pm workload in areas such as mailing > > list admin, web site maintainer(s) etc - please give me your thoughts on > > these issues. > > International Perl meetup day is at http://perl.meetup.com/ - There are loads > of other things there, though. It's on the third Thursday of every month. The > site lets you organise where the event is - it's then coordinated with every > other town in every country. Quite cool :) > > I've added myself as a host. If it doesn't work out to be the way we do > things, it doesn't work out - no biggie :) > > > I an in Johannesburg and full time employee of First National Bank as a Perl > > programmer in the Linux Team. The rest of the time I stay out of trouble by > > working on various unfinished projects - and even try to spend some quality > > time with my wife. > > I am one of the founders and shareholders of Qualica Technologies (Pty) > Ltd, a JHB based company of 13 people. The company specialises in Internet > performance analysis, Unix/Linux server infrastructure support, and software > development, especially in the Internet and accounting (money, not > traffic) spheres. I've been interested in Linux since the early days of > slackware on stiffy disk and run the linux.org.za domain, including the > technical stuff behind the glug list. > > Some of my personal interests are: > o photography (and B&W developing), > o writing (squid-docs.sourceforge.net is one of my older, incomplete, > projects), > o internet caching (an older interest), > o occasional free software code hacks, > o cryptography > o network security > o programming patterns (new interest), > o "the design of everyday things" - useability and the human > conciousness, > o the software development process, > o social aspects of both personality and self, > o Yoga, > o Weights, > o NLP and other technologies of mind, > o social activisim is another of my new interests (EFF-type, > e-government, etc), > o I throw in some maintenance of ftp.is.co.za when I get a chance, > o Science fiction (short stories - Robert Silverberg rocks), > o Reading mail (but seldom replying to it). > o Philosophising in general > o Currently learning java > o Peer to peer networks, and the change in culture that it's > bringing about. I've been involved in p-grid.org to a very > small extent, which is a yet-to-be-released peer2peer system > developed by academics in an attempt to be incredibly efficient. > > Perl is one of my favorite languages. > > When I'm not doing these things, I'll generally be at Seattle coffee > shop or at Exclusive books, meeting friends. > > Oskar > -- > Oskar Pearson > Qualica Technologies (Pty) Ltd > web: http://www.qualica.com/ ----- End forwarded message ----- -- Oskar Pearson Qualica Technologies (Pty) Ltd web: http://www.qualica.com/ From fouri_s at mtn.co.za Fri May 16 07:24:21 2003 From: fouri_s at mtn.co.za (Samuel Fourie [ MTN - Sandhurst ]) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] Intros (Giancarlo Contrafatto) Message-ID: <6D9893466466AB4587F7C60C43F7B9F902B4A029@SDHMAIL.mtn.co.za> hi me working at mtn. we are using perl for monitoring systems. its also been use for manipulating text files for input into dbs. myself entry level perl user but here at mtn the there are some years experience with perl. spee -----Original Message----- From: Dr Giancarlo Contrafatto [mailto:contrafa@biology.und.ac.za] Sent: Friday, 16 May 2003 2:10 PM To: za.pm.org Subject: [Za-pm] Intros (Giancarlo Contrafatto) Greetings to everyone; I'm in Durban and waste my full-time, lecturing immunology, microbiology and systematics at the University of Natal. Running my Apache web server (as you see from the signature) under RH 8.0, running Red Hat at home too and have been using Linux since the Red Hat 6.2 distro hit the market. Also ran my server under Corel Linux for about a year. Of course, I am not an experienced programmer at all but, as one might expect, a self-taught perl beginner. In other words, I tend to write the CGIs deployed on my server and other personal applications on my home PC. I'm busy developing a web-based perl CGI/programme (for a half-baked research group in my department) to store, search and retrieve scientific journal references. I say busy developing, because I have abandoned the effort, so long, due lack of interest on the part of my colleagues (and lack of time), but I still have full intentions of finishing the job. Suggestions regarding meetings and AGM. Well, I'm not sure: it may work up on the Reef, since I see that most subscribers, so far, are from there. It may be difficult to get outlying members to travel, though. Not much else to say, for now. ciao P.S.: Oh yes ... there is a disclaimer somewhere or other on the UND web site, for those who have nothing better to do. -- advertising may be described as the science of arresting the human intelligence long enough to get money from it. Stephen Leacock \|/ (o o) --------------ooO0-(_)-0Ooo--------------------------------------------- - Dr. G. Contrafatto - School of Life and Environmental Science University of Natal Durban - Ph. +270312603336 ######################################################################## ## Visit Darwin at http://contra.biology.und.ac.za _______________________________________________ Za-pm mailing list Za-pm@mail.pm.org http://mail.pm.org/mailman/listinfo/za-pm From al at quirk.co.za Fri May 16 16:55:47 2003 From: al at quirk.co.za (Alastair Stuart) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] woodworkers Message-ID: <200305162355.47645@ellen.al.quirk> Hi All Great to see some the birth of an african pm list. I read something on the net comparing PM activity globally and the were some comments launched at the cape-town (now defunct) PM list as the site was pointing to a "fruit market". I am a Cape Town based perl developer. I have been developing in Perl since 1999, and have not and probably will not ever use anything else. Other than Perl, i run Gentoo linux 1.4rc4 - xfs-kernel-patch, on my servers, mysql as my database, postfix etc. Am currently tieing up a a project that we've been working on for the last two years. It has been a huge learning curve, requiring monstrous amounts of coding and refactoring, but I feel we're almost there. It has been quite really fun working in a quasi-XP (Extreme Programming) environment - the system is based on the classic client/server axis, with a Java (IBM's Eclipse Platform) client speaking to a mod_perl server in a little XML language that we have developed called RMX. (Remote Mail Extensions). Things i like about Perl: * Mason: not just good for HTML but also text, xml, and code templating .. ;) * Parse::RecDescent : some mind bending stuff .. ( damian can bend it more than beckham) * XML::SAX::Machines * all the other great modules ... Great to finally learn that Perl is not completely extinct .. Ciao Al -- Alastair Stuart t: +27 21 4627353 f: +27 21 462 7354 e: al@quirk.co.za From nick at cleaton.net Fri May 16 08:47:48 2003 From: nick at cleaton.net (Nick Cleaton) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] Perl/Tk As Root In-Reply-To: <200305161042.h4GAgGN27188@mailgate.mailbox.co.za> References: <200305161042.h4GAgGN27188@mailgate.mailbox.co.za> Message-ID: <20030516134748.GA13220@lt1.cleaton.net> On Fri, May 16, 2003 at 12:42:15PM +0200, DIRK KONRAD wrote: > > I've got this Perl/Tk script/app that does all sorts of magick. But I > first have to su to root and then run it as root from a shell.(It > manipulates some config files) > > How can I go about doing it the way Mandrake does it, where if the > user clicks on the icon, it will pop-up a ?root password? screen with > a message, and then, if successful, will run that script as root, but > still staying away from SUID. > > If this app is to have mass appeal, this, for me is a must! > > I Dont want to pop up a message telling the user ? Please open a > shell, SU to root and then type in ?/opt/foo/bar.pl? > > Much easier to tell them ?password Please? and off you go. The only way I can see is to have two scripts: one to get the root password from the user and invoke the 'su' command to run the other script as root. You can use the 'Expect' perl module to interact with the 'su' command, so the first script might look something like this: ---- cut here ---- #!/usr/local/bin/perl -w use strict; use Tk; use Expect; $Expect::Log_Stdout = 0; my $main = MainWindow->new; $main->Label(-text => 'root password')->pack; my $pw = $main->Entry(-show => '*'); $pw->pack; $main->Button(-text => 'OK', -command => \&ok, )->pack; MainLoop; sub ok { run_as_root($pw->get, '/opt/foo/bar.pl'); $main->destroy; } sub run_as_root { my ($rootpw, $command) = @_; my $exp = Expect->spawn('su', '-m', 'root', '-c', $command) or die "spawn $command: $!"; $exp->expect(5, 'word:') or die 'no password prompt'; $exp->send("$rootpw\r"); $exp->soft_close and die 'su failed'; } ---- cut here ---- -- Nick Cleaton nick@cleaton.net From nick at cleaton.net Fri May 16 09:49:23 2003 From: nick at cleaton.net (Nick Cleaton) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] Intros (Nick Cleaton) Message-ID: <20030516144923.GB13220@lt1.cleaton.net> I'm 33, I live in Durban with my wife, daughter, two dogs and three cats, except that I'm stuck in London in the rain for the next six weeks :( I work for an ISP as a sysadmin/developer, and I've been using Perl for about 6 years, mainly on FreeBSD and Solaris. -- Nick Cleaton nick@cleaton.net From wernerm at ifusion.co.za Fri May 16 02:09:18 2003 From: wernerm at ifusion.co.za (Werner Moller) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] ZA.PM Updates Message-ID: <2E3F96E0A649D4118AFD00105AD507BF03E41901@mail.ifusion.co.za> I'm in Midrand, Allandale, working full time as a Network Managemet System Specialist for I-Fusion, I spend 90% of my time on Perl development and enhancements and also maintain a number of Sun and Linux boxes, interacting with Cisco routers. I also do this in my free time most of the time as well as development of new projects on all flavoured Unix platforms. Nice to meet you all, Werner Moller -----Original Message----- From: za-pm-admin@mail.pm.org [mailto:za-pm-admin@mail.pm.org]On Behalf Of Nico Coetzee Sent: 15 May 2003 19:35 To: za.pm.org Subject: [Za-pm] ZA.PM Updates Hi all We have just reached 30 members :) Thanks to everybody that helped in this effort. Just a quick update - I will be in Helsinki next week to present an African FLOSS report to the Finish Government. I will try to access my mail everyday, but in the event that I do not - PLEASE don't break anything in here :) In the mean time, how about some introductions? I would like to know where you all are ( physical city ) and what you do full time. This purely optional, but might proof interesting none the less. It would also help me plan a meeting later on - deciding on the city etc. I would also like to hear some suggestions as to what you think about a general annual meeting. If our numbers permit, I can also spread the za.pm workload in areas such as mailing list admin, web site maintainer(s) etc - please give me your thoughts on these issues. To practice what I preach - here goes: I an in Johannesburg and full time employee of First National Bank as a Perl programmer in the Linux Team. The rest of the time I stay out of trouble by working on various unfinished projects - and even try to spend some quality time with my wife. Cheers -- Nico Coetzee http://www.itfirms.co.za/ http://za.pm.org/ http://forums.databasejournal.com/ To the systems programmer, users and applications serve only to provide a test load. _______________________________________________ Za-pm mailing list Za-pm@mail.pm.org http://mail.pm.org/mailman/listinfo/za-pm From oskar at qualica.com Fri May 16 03:26:30 2003 From: oskar at qualica.com (Oskar Pearson) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] ZA.PM Updates In-Reply-To: <200305151935.29579.nico@itfirms.co.za> References: <200305151935.29579.nico@itfirms.co.za> Message-ID: <20030516082629.GB2328@qualica.com> Hi Nico > Just a quick update - I will be in Helsinki next week to present an African > FLOSS report to the Finish Government. I will try to access my mail everyday, > but in the event that I do not - PLEASE don't break anything in here :) Good stuff. Hope the report goes well. > In the mean time, how about some introductions? I would like to know where you > all are ( physical city ) and what you do full time. This purely optional, > but might proof interesting none the less. It would also help me plan a > meeting later on - deciding on the city etc. I would also like to hear some > suggestions as to what you think about a general annual meeting. If our > numbers permit, I can also spread the za.pm workload in areas such as mailing > list admin, web site maintainer(s) etc - please give me your thoughts on > these issues. International Perl meetup day is at http://perl.meetup.com/ - There are loads of other things there, though. It's on the third Thursday of every month. The site lets you organise where the event is - it's then coordinated with every other town in every country. Quite cool :) I've added myself as a host. If it doesn't work out to be the way we do things, it doesn't work out - no biggie :) > I an in Johannesburg and full time employee of First National Bank as a Perl > programmer in the Linux Team. The rest of the time I stay out of trouble by > working on various unfinished projects - and even try to spend some quality > time with my wife. I am one of the founders and shareholders of Qualica Technologies (Pty) Ltd, a JHB based company of 13 people. The company specialises in Internet performance analysis, Unix/Linux server infrastructure support, and software development, especially in the Internet and accounting (money, not traffic) spheres. I've been interested in Linux since the early days of slackware on stiffy disk and run the linux.org.za domain, including the technical stuff behind the glug list. Some of my personal interests are: o photography (and B&W developing), o writing (squid-docs.sourceforge.net is one of my older, incomplete, projects), o internet caching (an older interest), o occasional free software code hacks, o cryptography o network security o programming patterns (new interest), o "the design of everyday things" - useability and the human conciousness, o the software development process, o social aspects of both personality and self, o Yoga, o Weights, o NLP and other technologies of mind, o social activisim is another of my new interests (EFF-type, e-government, etc), o I throw in some maintenance of ftp.is.co.za when I get a chance, o Science fiction (short stories - Robert Silverberg rocks), o Reading mail (but seldom replying to it). o Philosophising in general o Currently learning java o Peer to peer networks, and the change in culture that it's bringing about. I've been involved in p-grid.org to a very small extent, which is a yet-to-be-released peer2peer system developed by academics in an attempt to be incredibly efficient. Perl is one of my favorite languages. When I'm not doing these things, I'll generally be at Seattle coffee shop or at Exclusive books, meeting friends. Oskar -- Oskar Pearson Qualica Technologies (Pty) Ltd web: http://www.qualica.com/ From rory at mighty.co.za Fri May 16 03:43:45 2003 From: rory at mighty.co.za (r a) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] Intro's In-Reply-To: <200305152010.25561.steve@dig.co.za> Message-ID: Hi I'm Rory Austin. I joined this list when there were about 3 people and didn't have much hope for it. Now there's 30 people and I'm impressed. I'm in Cape Town, a full-time first year computer science student at UCT. I learn't perl in the beginning only for CGI programming. I've been freelancing doing custom CGI/Perl programming for about 4 years. That's also how I got my intro to linux (among other things). Then I started using perl for other tasks as well. I love the language. As for linux I used to dual-boot Win98 and Suse 6.something. I'm currently only running XP on my home machine but as soon as I get a new HDD I will install Mandrake 9.1. Rory Austin == Download ringtones, logos and picture messages at Ananzi Mobile Fun. http://www.ananzi.co.za/cgi-bin/goto.pl?mobile From rory at mighty.co.za Fri May 16 03:50:12 2003 From: rory at mighty.co.za (r a) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] Intro - Dirk In-Reply-To: <200305160756.h4G7uoN18249@mailgate.mailbox.co.za> Message-ID: When you have finished with The Camel Book I can recommend the book Effective Perl Programming by Joseph Hall and Randal Schwartz. It's great for teaching you how to *really* use perl. Mine is practically worn out :-P Rory > I'm still very new to programming / Perl so you may have > to tolerate > my stupidity. I use ?The Camel? but usually stay only in > Chapter 1. > (Just to show how new I am @ this). For the Perl/Tk I use > ?Mastering > Perl/TK? great book for starters and advanced > programming. == Download ringtones, logos and picture messages at Ananzi Mobile Fun. http://www.ananzi.co.za/cgi-bin/goto.pl?mobile From allen at isa.co.za Fri May 16 04:53:07 2003 From: allen at isa.co.za (Allen Baranov) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] Intro - Dirk In-Reply-To: <200305160756.h4G7uoN18249@mailgate.mailbox.co.za> References: <200305160756.h4G7uoN18249@mailgate.mailbox.co.za> Message-ID: <200305161153.07269.allen@isa.co.za> Hi Dirk, > I'm still very new to programming / Perl so you may have to tolerate > my stupidity. I use ?The Camel? but usually stay only in Chapter 1. > (Just to show how new I am @ this). The amazing thing about perl is after just reading chapter one you can pretty much program anything. Not very neatly or tightly but TIMTOWTDI :) You are missing out on the richness of perl though if you don't venture on a bit. Allen Baranov From adrians at supply-chain.co.za Fri May 16 05:45:10 2003 From: adrians at supply-chain.co.za (Adrian Snyman) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] Intro - Adrian In-Reply-To: <008d01c31b91$0d5a3790$a802000a@realm.co.za> References: <200305160756.h4G7uoN18249@mailgate.mailbox.co.za> <008d01c31b91$0d5a3790$a802000a@realm.co.za> Message-ID: <200305161245.10883.adrians@supply-chain.co.za> Adrian here .. An East Rander .. (Benoni) Here behind the boerewors curtain we use perl mainly for manipulating data before populating a Database (Cache). Been Using Unix/Linux since '91 .. Currently run Mandrake on a laptop .. RH on servers and BSD on the side .. Married Wife+3 spawns .. -- Regards, Adrian Snyman (W) 011-397-1640 (C) 082-600-1211 mailto:adrians@supply-chain.co.za /* Beat Me, Whip Me, Make me use Windows */ ================== The views expressed in this email are, unless otherwise stated, those of the author and not those of Supply Chain Services or its management. The information in this e-mail is confidential and is intended solely for the addressee. Access to this e-mail by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted in reliance on this, is prohibited and may be unlawful. Whilst all reasonable steps are taken to ensure the accuracy and integrity of information and data transmitted electronically and to preserve the confidentiality thereof, no liability or responsibility whatsoever is accepted if information or data is, for whatever reason, corrupted or does not reach its intended destination. From steve at dig.co.za Fri May 16 13:44:17 2003 From: steve at dig.co.za (Steve Cox -dig) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] Intro's In-Reply-To: References: Message-ID: <200305162044.18029.steve@dig.co.za> On Friday, 16 May 2003 10:43, r a wrote: > Hi > As for linux I used to dual-boot Win98 and Suse > 6.something. I'm currently only running XP on my home > machine but as soon as I get a new HDD I will install > Mandrake 9.1. > > Rory Austin I thought Mandrake was the only Linux disro ? teehee, just kidding, but a refreshing smile from all the SCO stuff. Linux is the best diribution I maintain at the end of the day. Regards Steve Cox From nico at itfirms.co.za Fri May 16 15:05:01 2003 From: nico at itfirms.co.za (Nico Coetzee) Date: Mon Aug 2 21:39:57 2004 Subject: Perl, SMS and MTN (was: Re: [Za-pm] Intros (Giancarlo Contrafatto) ) In-Reply-To: <6D9893466466AB4587F7C60C43F7B9F902B4A029@SDHMAIL.mtn.co.za> References: <6D9893466466AB4587F7C60C43F7B9F902B4A029@SDHMAIL.mtn.co.za> Message-ID: <200305162205.01280.nico@itfirms.co.za> Mmmm... Can you please tell me how compliant our ISP's are with/in terms of: * SMPP ( http://search.cpan.org/author/SAMPO/Net-SMPP-1.03/SMPP.pm ) * GSM::SMS ( http://search.cpan.org/author/JOHANVDB/GSM-SMS-0.161/docs/README.pod ) I would prefer to use SMPP, as it's the industry standard protocol - but one never knows... I require to sustain a SMS sending que of 20 messages per second, which basically illiminates the use of GSM modems. GENERAL SUGGESTION: If we create a project, we could code a SMS Solution that anybody can use :) PS: I don't want to use LEAF Cheers On Friday 16 May 2003 14:24, Samuel Fourie [ MTN - Sandhurst ] wrote: > hi > > me working at mtn. we are using perl for monitoring systems. its also > been use for manipulating text files for input into dbs. > > myself entry level perl user but here at mtn the there are some years > experience with perl. > > spee > > > -----Original Message----- > From: Dr Giancarlo Contrafatto [mailto:contrafa@biology.und.ac.za] > Sent: Friday, 16 May 2003 2:10 PM > To: za.pm.org > Subject: [Za-pm] Intros (Giancarlo Contrafatto) > > Greetings to everyone; > > I'm in Durban and waste my full-time, lecturing immunology, microbiology > and systematics at the University of Natal. Running my Apache web server > (as you see from the signature) under RH 8.0, running Red Hat at home > too and have been using Linux since the Red Hat 6.2 distro hit the > market. Also ran my server under Corel Linux for about a year. > > Of course, I am not an experienced programmer at all but, as one might > expect, a self-taught perl beginner. In other words, I tend to write the > CGIs deployed on my server and other personal applications on my home > PC. I'm busy developing a web-based perl CGI/programme (for a half-baked > research group in my department) to store, search and retrieve > scientific journal references. I say busy developing, because I have > abandoned the effort, so long, due lack of interest on the part of my > colleagues (and lack of time), but I still have full intentions of > finishing the job. > > Suggestions regarding meetings and AGM. Well, I'm not sure: it may work > up on the Reef, since I see that most subscribers, so far, are from > there. It may be difficult to get outlying members to travel, though. > > Not much else to say, for now. > > ciao > > P.S.: Oh yes ... there is a disclaimer somewhere or other on the UND web > site, for those who have nothing better to do. -- Nico Coetzee http://www.itfirms.co.za/ http://za.pm.org/ http://forums.databasejournal.com/ To the systems programmer, users and applications serve only to provide a test load. From nico at itfirms.co.za Fri May 16 15:19:47 2003 From: nico at itfirms.co.za (Nico Coetzee) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] Intro's In-Reply-To: <200305162044.18029.steve@dig.co.za> References: <200305162044.18029.steve@dig.co.za> Message-ID: <200305162219.47996.nico@itfirms.co.za> I had the pleasure of running the GIMP on KDE on the os/390 IBM Mainframe - not a hell of a lot of operating systems that can do the same :) BTW: Perl now runs natively on z/OS - that is the z800 and z900/z990 mainframes. I will start to play with z/OS on s390 sometime in June. IBM has ported several Unix utitlities to z/OS, so I guess it's only a matter of time before we start to see more Unix types operating in z-land as well. The list of ported apps include - among others: * Bash * Apache * PHP * Perl * Python * OpenSSL * OpenSSH ( some issues with sftp remain ) Although MySQL and PostgreSQL does not run natively, DB2 does, and there are Perl modules for that. Damn Cool ! I have the following on my whichlist: 1) IBM must put a AGP slot on their mainframes 2) Given 1) above - I want one to play C&C Generals on it ! I recon that must be the ultimate rush... Then again, it's only a dream :( Cheers On Friday 16 May 2003 20:44, Steve Cox -dig wrote: > On Friday, 16 May 2003 10:43, r a wrote: > > Hi > > As for linux I used to dual-boot Win98 and Suse > > 6.something. I'm currently only running XP on my home > > machine but as soon as I get a new HDD I will install > > Mandrake 9.1. > > > > Rory Austin > > I thought Mandrake was the only Linux disro ? > > teehee, just kidding, but a refreshing smile from all the SCO stuff. > > Linux is the best diribution I maintain at the end of the day. > > Regards > Steve Cox > > _______________________________________________ > Za-pm mailing list > Za-pm@mail.pm.org > http://mail.pm.org/mailman/listinfo/za-pm -- Nico Coetzee http://www.itfirms.co.za/ http://za.pm.org/ http://forums.databasejournal.com/ To the systems programmer, users and applications serve only to provide a test load. From nico at itfirms.co.za Fri May 16 16:09:29 2003 From: nico at itfirms.co.za (Nico Coetzee) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] ZA.PM Updates In-Reply-To: <20030516082629.GB2328@qualica.com> References: <200305151935.29579.nico@itfirms.co.za> <20030516082629.GB2328@qualica.com> Message-ID: <200305162309.29532.nico@itfirms.co.za> On Friday 16 May 2003 10:26, Oskar Pearson wrote: > Hi Nico > --- snip --- > > International Perl meetup day is at http://perl.meetup.com/ - There are > loads of other things there, though. It's on the third Thursday of every > month. The site lets you organise where the event is - it's then > coordinated with every other town in every country. Quite cool :) > > I've added myself as a host. If it doesn't work out to be the way we do > things, it doesn't work out - no biggie :) Interesting concept. I'll keep this in ind for the future. I think at this stage, we should concentrate on getting this list going, then arrange a 'general' meeting/fun day - where I hope to also see/meet the mountain people ( a.k.a. Capetonians ). > --- snip --- > > Some of my personal interests are: > o photography (and B&W developing), > o writing (squid-docs.sourceforge.net is one of my older, incomplete, > projects), > o internet caching (an older interest), > o occasional free software code hacks, > o cryptography > o network security > o programming patterns (new interest), > o "the design of everyday things" - useability and the human > conciousness, > o the software development process, > o social aspects of both personality and self, > o Yoga, > o Weights, > o NLP and other technologies of mind, > o social activisim is another of my new interests (EFF-type, > e-government, etc), > o I throw in some maintenance of ftp.is.co.za when I get a chance, > o Science fiction (short stories - Robert Silverberg rocks), > o Reading mail (but seldom replying to it). > o Philosophising in general > o Currently learning java > o Peer to peer networks, and the change in culture that it's > bringing about. I've been involved in p-grid.org to a very > small extent, which is a yet-to-be-released peer2peer system > developed by academics in an attempt to be incredibly efficient. > I love squid. It works really well, except the Open Source redirectors available ( SquidGuard and DansGardian ) really suck - from an administration and practical point of view. We are evaluating several commercial alternatives at this stage - but the prices are beyond madness. Forget implimenting Internet Content Filtering in SA for under a R1 million. > Perl is one of my favorite languages. :) > > When I'm not doing these things, I'll generally be at Seattle coffee > shop or at Exclusive books, meeting friends. > Would that be at Cresta? That's the only Exclusive books I know of in that area. Maybe I haven't mentioned this, but I'm only about 1.5 years now in Gauteng. Used to live in Bloem - and I really mis Bloem :( > Oskar > -- > Oskar Pearson > Qualica Technologies (Pty) Ltd > web: http://www.qualica.com/ -- Nico Coetzee http://www.itfirms.co.za/ http://za.pm.org/ http://forums.databasejournal.com/ To the systems programmer, users and applications serve only to provide a test load. From oskar at linux.org.za Fri May 16 21:36:57 2003 From: oskar at linux.org.za (oskar@linux.org.za) Date: Mon Aug 2 21:39:57 2004 Subject: [oskar: Re: [Za-pm] ZA.PM Updates] Message-ID: <20030517023657.GA24266@qualica.com> Hi Once again mailed from the wrong address :) ----- Forwarded message from oskar ----- > To: Nico Coetzee > Cc: "za.pm.org" > Subject: Re: [Za-pm] ZA.PM Updates > > Hi Nico > > > I love squid. It works really well, except the Open Source redirectors > > available ( SquidGuard and DansGardian ) really suck - from an administration > > and practical point of view. We are evaluating several commercial > > alternatives at this stage - but the prices are beyond madness. Forget > > implimenting Internet Content Filtering in SA for under a R1 million. > > Crazy stuff. I once had contact with someone at n2h2.com about 4 > years ago, btw, and I thought that the person was extremely competent. > They were, at that stage, using a modified squid to do their stuff. I > don't know if they are still around, or what... I can't remember why > he contacted me now :) > > > > When I'm not doing these things, I'll generally be at Seattle coffee > > > shop or at Exclusive books, meeting friends. > > > > > > > Would that be at Cresta? That's the only Exclusive books I know of in that > > area. Maybe I haven't mentioned this, but I'm only about 1.5 years now in > > Gauteng. Used to live in Bloem - and I really mis Bloem :( > > There are a few now. Mostly Sandton - friend of mine used to work > there, but he's just moved to England. He's one of the funniest people > I know - used to want to throw money in a hat or something whenever > I went to see him ;) > > That's the upstairs Sandton bookshop. There are 2 :) > > Hm. How to keep this on topic. Oh well - It's after 4am, so I > can't think of anything really. :) > > (Busy moving things around on ftp.is.co.za - there's a disk > upgrade tomorrow to add a few hundred gigs of space, so > I need to ensure that it'll go smoothly.) > > -- > Oskar Pearson > Qualica Technologies (Pty) Ltd > web: http://www.qualica.com/ ----- End forwarded message ----- -- Oskar Pearson Qualica Technologies (Pty) Ltd web: http://www.qualica.com/ From Pritesh at aptronics.co.za Wed May 21 01:30:12 2003 From: Pritesh at aptronics.co.za (Pritesh Jewan) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] Intro - Pritesh Message-ID: Hi people, I'm 28 years old and live in Mayfair, JHB. Just started at new job with a company called Aptronics Network Solutions...previously employed at Nedcor Bank. I work with Network and Systems Management software from Tivoli (which is an IBM owned company). My job is to architect and deploy Tivoli solutions. A lot of the "behind the scene" policies and scripts that Tivoli uses are written in Perl. I mainly use Perl for text manipulation and write all my Tivoli policies and scripts in Perl. I have been using Linux on and off at home for about a year. IBM are pushing Linux big time and all Tivoli software now runs on and is supported on Suse and RedHat Linux - which is good news for those customer who find it hard justifying new hardware and OS license costs to implement management tools! Regards Pritesh -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/za-pm/attachments/20030521/39858a5d/attachment.htm From lists at lsd.za.com Thu May 22 06:32:28 2003 From: lists at lsd.za.com (Stefan Lesicnik) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] Intro In-Reply-To: References: Message-ID: <1053603147.10711.13.camel@odie.lsd.za.com> Hi, my names Stefan an im an alcoholic. (wait, this is the aa right?) No, im kidding, actually im a drunk, cause an alcoholic admits he has a problem. I've been using linux for about 6 years now, started with redhat 3.0.3. Picasso. I remember it well. Anyways, my perl is almost non existant. Makes me wonder what i've been doing for 6 years. I employ myself, (ie. im broke), running a linux consulting company. Also alot of intrest in the security side of linux. I guess im on this list to learn a bit of perl. Anyways, Thanks Stefan From nico at itfirms.co.za Sun May 25 11:14:42 2003 From: nico at itfirms.co.za (Nico Coetzee) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] Intro Message-ID: <200305251614.h4PGEgu11849@itfirms.co.za> hehe - this is going to be interesting. Anyways - I am writing from Helsinki at the moment - just checking my mail etc. Just a reminder - if you have any Perl related question or suggestions regarding what we do in this forum - please speak up. Cheers everybody :) > > Hi, my names Stefan an im an alcoholic. (wait, this is the aa right?) > No, im kidding, actually im a drunk, cause an alcoholic admits he has a > problem. > > I've been using linux for about 6 years now, started with redhat 3.0.3. > Picasso. I remember it well. Anyways, my perl is almost non existant. > Makes me wonder what i've been doing for 6 years. I employ myself, (ie. > im broke), running a linux consulting company. Also alot of intrest in > the security side of linux. > > I guess im on this list to learn a bit of perl. > Anyways, > > Thanks > Stefan > > > > _______________________________________________ > Za-pm mailing list > Za-pm@mail.pm.org > http://mail.pm.org/mailman/listinfo/za-pm > > From contrafa at biology.und.ac.za Mon May 26 02:49:45 2003 From: contrafa at biology.und.ac.za (Dr Giancarlo Contrafatto) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] Re: Za-pm digest, Vol 1 #15 - 1 msg In-Reply-To: <200305251701.h4PH1Nd16773@mail.pm.org> References: <200305251701.h4PH1Nd16773@mail.pm.org> Message-ID: <1053935386.13695.19.camel@contra.biology.und.ac.za> On Sun, 2003-05-25 at 19:00, za-pm-request@mail.pm.org wrote: > Send Za-pm mailing list submissions to > za-pm@mail.pm.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.pm.org/mailman/listinfo/za-pm > or, via email, send a message with subject or body 'help' to > za-pm-request@mail.pm.org > > You can reach the person managing the list at > za-pm-admin@mail.pm.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Za-pm digest..." > > ---- > > Today's Topics: > > 1. Re: Re: [Za-pm] Intro (Nico Coetzee) > ---- > > From: Nico Coetzee > To: za-pm@mail.pm.org > Subject: Re: Re: [Za-pm] Intro > Date: 25 May 2003 12:14:42 -0400 > > hehe - this is going to be interesting. > > Anyways - I am writing from Helsinki at the moment - just checking my mail etc. > > Just a reminder - if you have any Perl related question or suggestions regarding what we do in this forum - please speak up. > > Cheers everybody : Yah, well ... No, fine! Beginnings are always somewhat slow. There's something that's been going through my mind, though: perl vs PHP. Being a permanent "perl beginner", I haven't had much time to penetrate the language very deeply, never mind investigating PHP and its usefulness. What I gather is that PHP is some kind of html scripting (presumably much like JavaScript). On the other hand, there must be a few people in this group, who have had experience with both scripting languages (perl and PHP) to be able to provide a bit of a comparison. i.e. when is it useful to use PHP, why not integrating both scripts (which I'm sure many people do), is there anything you do with PHP that cannot be done with PERL, etc. Apology in advance for the naive suggestion, since I suspect that most of the subscribers to this group have subscribed because they hate PHP or they feel that, in most situations, PERL beats PHP hands down. ciao -- the only statistics you can trust are those you falsified yourself. Winston Churchill \|/ (o o) --------------ooO0-(_)-0Ooo---------------------------------------------- G. Contrafatto - School of Life and Environmental Science University of Natal Durban - Ph. +270312603336 ########################################################################## Visit Darwin at http://contra.biology.und.ac.za From bartho at cae.co.za Mon May 26 07:12:18 2003 From: bartho at cae.co.za (Bartho Saaiman) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] Recommended Perl Books Message-ID: <3ED204A2.4050000@cae.co.za> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi All I have found a lot of info with regards to books, but would like to know ~ what *your* suggestions would be to someone that is completly new to Perl. Have seen suggestions of the "Camel Book" - -- # Bartho Saaiman # Stellenbosch Automotive Engineering # Tel :: 27 21 882 8820 x 215 # Cell :: 27 82 551 2703 # Email :: bartho @ cae.co.za # GnuPG Key is available at http://www.cae.co.za/people/bartho -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE+0gSgKj7/xrj3VCoRArbDAJ9CEoldwCNeMEterAeKoCHCazS37wCfTk/c xAn75YYKSwn8Ln0Dv5UA6KY= =fEiF -----END PGP SIGNATURE----- From oskar at qualica.com Mon May 26 04:21:56 2003 From: oskar at qualica.com (Oskar Pearson) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] Re: Za-pm digest, Vol 1 #15 - 1 msg In-Reply-To: <1053935386.13695.19.camel@contra.biology.und.ac.za> References: <200305251701.h4PH1Nd16773@mail.pm.org> <1053935386.13695.19.camel@contra.biology.und.ac.za> Message-ID: <20030526092156.GA12300@qualica.com> Hi > Yah, well ... No, fine! > Beginnings are always somewhat slow. There's something that's been going > through my mind, though: perl vs PHP. > > Being a permanent "perl beginner", I haven't had much time to penetrate > the language very deeply, never mind investigating PHP and its > usefulness. What I gather is that PHP is some kind of html scripting > (presumably much like JavaScript). On the other hand, there must be a > few people in this group, who have had experience with both scripting > languages (perl and PHP) to be able to provide a bit of a comparison. > i.e. when is it useful to use PHP, why not integrating both scripts > (which I'm sure many people do), is there anything you do with PHP that > cannot be done with PERL, etc. > > Apology in advance for the naive suggestion, since I suspect that most > of the subscribers to this group have subscribed because they hate PHP > or they feel that, in most situations, PERL beats PHP hands down. PHP is not really like javascript. Javascript runs in the browser itself: web pages with embedded source are served to the browser, which then runs the code in the pages. PHP runs in the server. It determines what is in the web pages it serves before it even gets sent to the client. It can, of course, serve javascript to the client, which can then run it. It's akin to CGIs (not sure of your level..) - it's just faster than running a program from the ground up - the interpreter is always in ram. PHP is akin to mod_perl in this way: it's in the server, and serves the data without having to load the interpreter each time. I've done programming in both perl and php (the latter years ago). I like perl over php because: 1) libraries I write in perl can be used from the command line easily: I can write a library and use it in a cron job and in a web page. 2) php programmers generally have a poor idea of the seperation between code and interface. They put db queries straight into their table layout code and other such things. I'd much rather have a clear template library that does simple variable substitution, and keep all the logic in the cgi equivalent. Just my view, of course. If you write php code with reasonable seperation (we do) then the latter is not such an issue. Technically, I think most programming languages are getting to be very close in terms of speed, memory usage, efficiency, and other such things... so there are less and less technical reasons to worry about one over the other. Oskar -- Oskar Pearson Qualica Technologies (Pty) Ltd web: http://www.qualica.com/ From oskar at qualica.com Mon May 26 07:23:50 2003 From: oskar at qualica.com (Oskar Pearson) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] Recommended Perl Books In-Reply-To: <3ED204A2.4050000@cae.co.za> References: <3ED204A2.4050000@cae.co.za> Message-ID: <20030526122350.GV12300@qualica.com> Hi > I have found a lot of info with regards to books, but would like to know > ~ what *your* suggestions would be to someone that is completly new to > Perl. Have seen suggestions of the "Camel Book" Object Oriented Perl by Daniel Conway. If you use OO perl, of course. Oskar From oskar at linux.org.za Mon May 26 07:27:54 2003 From: oskar at linux.org.za (oskar@linux.org.za) Date: Mon Aug 2 21:39:57 2004 Subject: [oskar: Re: [Za-pm] Recommended Perl Books] Message-ID: <20030526122754.GA15984@qualica.com> I sent this from the wrong address. Currently sorting that out so that it won't happen again. Oskar ----- Forwarded message from oskar ----- > To: Bartho Saaiman > Cc: za-pm@mail.pm.org > Subject: Re: [Za-pm] Recommended Perl Books > > Hi > > > I have found a lot of info with regards to books, but would like to know > > ~ what *your* suggestions would be to someone that is completly new to > > Perl. Have seen suggestions of the "Camel Book" > > Object Oriented Perl by Daniel Conway. If you use OO perl, of course. > > Oskar ----- End forwarded message ----- -- Oskar Pearson Qualica Technologies (Pty) Ltd web: http://www.qualica.com/ From nico at itfirms.co.za Mon May 26 11:33:41 2003 From: nico at itfirms.co.za (Nico Coetzee) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] Recommended Perl Books Message-ID: <200305261633.h4QGXfl25082@itfirms.co.za> I consider the Perl Cookbook as a must have. I do however have several Perl books in HTML, including the cookbook. I am willing to make available, but I would need you to send me at least enough money to cover the burning and posting of a CD. Let me know if any of you are interested. Cheers Nico > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi All > > I have found a lot of info with regards to books, but would like to know > ~ what *your* suggestions would be to someone that is completly new to > Perl. Have seen suggestions of the "Camel Book" > > - -- > # Bartho Saaiman > # Stellenbosch Automotive Engineering > # Tel :: 27 21 882 8820 x 215 > # Cell :: 27 82 551 2703 > # Email :: bartho @ cae.co.za > # GnuPG Key is available at http://www.cae.co.za/people/bartho > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.1 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQE+0gSgKj7/xrj3VCoRArbDAJ9CEoldwCNeMEterAeKoCHCazS37wCfTk/c > xAn75YYKSwn8Ln0Dv5UA6KY= > =fEiF > -----END PGP SIGNATURE----- > > _______________________________________________ > Za-pm mailing list > Za-pm@mail.pm.org > http://mail.pm.org/mailman/listinfo/za-pm > > From fuzzylogik at webmail.co.za Mon May 26 09:56:01 2003 From: fuzzylogik at webmail.co.za (Dallas G) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] Re: Za-pm digest, Vol 1 #15 - 1 msg References: <200305251701.h4PH1Nd16773@mail.pm.org> <1053935386.13695.19.camel@contra.biology.und.ac.za> <20030526092156.GA12300@qualica.com> Message-ID: <00f301c32396$f002ae80$a802000a@realm.co.za> Hi, as with most languages, its what suites the problem >1) libraries I write in perl can be used from the command line easily: >I can write a library and use it in a cron job and in a web page. so can php, i run several cron jobs every hour, all php, with no performance loss >2) php programmers generally have a poor idea of the seperation between >code and interface. They put db queries straight into their table >layout code and other such things. i have seen many programmers do this, even perl programmers >I'd much rather have a clear template >library that does simple variable substitution, and keep all the logic >in the cgi equivalent. one can the do the same with php, it all depends on the programmers skill and experience so PHP vs PERL its a matter of choice, what do you feel more comfortable with, or forced to use Dallas From oskar at qualica.com Mon May 26 10:05:39 2003 From: oskar at qualica.com (Oskar Pearson) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] Re: Za-pm digest, Vol 1 #15 - 1 msg In-Reply-To: <00f301c32396$f002ae80$a802000a@realm.co.za> References: <200305251701.h4PH1Nd16773@mail.pm.org> <1053935386.13695.19.camel@contra.biology.und.ac.za> <20030526092156.GA12300@qualica.com> <00f301c32396$f002ae80$a802000a@realm.co.za> Message-ID: <20030526150539.GE18003@qualica.com> Hi Dallas > >1) libraries I write in perl can be used from the command line easily: > >I can write a library and use it in a cron job and in a web page. > so can php, i run several cron jobs every hour, all php, with no performance > loss Cool - I remember seeing some way of running programs with a command-line version (this was years back, when I last used it), but it seemed more suited for debugging than for cron-type-stuff. > >2) php programmers generally have a poor idea of the seperation between > >code and interface. They put db queries straight into their table > >layout code and other such things. > i have seen many programmers do this, even perl programmers Oh absolutely - I agree with that. The difference is, however, that almost all the reference material I've seen and read for php seems to have examples like this: print "\n"; while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { print "\t\n"; foreach ($line as $col_value) { print "\t\t\n"; } print "\t\n"; } (that's from the php manual at http://www.php.net/manual/en/ref.mysql.php) I think that this leads to a whole bunch of people that program in the same way, which leads to code that (in general) looks uglier. Of course, perl easily ends up looking like line noise too, but in general it's not line-noise-mixed-with-html-code, imho. These are vast generalisations - perhaps I just like perl too much :) Oskar -- Oskar Pearson Qualica Technologies (Pty) Ltd web: http://www.qualica.com/ From fuzzylogik at webmail.co.za Mon May 26 10:08:35 2003 From: fuzzylogik at webmail.co.za (Dallas G) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] Re: Za-pm digest, Vol 1 #15 - 1 msg References: <200305251701.h4PH1Nd16773@mail.pm.org> <1053935386.13695.19.camel@contra.biology.und.ac.za> <20030526092156.GA12300@qualica.com> <00f301c32396$f002ae80$a802000a@realm.co.za> <20030526150539.GE18003@qualica.com> Message-ID: <00fd01c32398$af4f0b20$a802000a@realm.co.za> Hi, Its one of those subjects that could go on forever. Well thats why i am here to learn perl from people who use it in production systems as i currently use php mostly. Also i am working on a web engine that allows one to use any scripting lang in perl, well i am trying to Dallas ----- Original Message ----- From: "Oskar Pearson" To: "Dallas G" Cc: "Dr Giancarlo Contrafatto" ; Sent: Monday, May 26, 2003 5:05 PM Subject: Re: [Za-pm] Re: Za-pm digest, Vol 1 #15 - 1 msg Hi Dallas > >1) libraries I write in perl can be used from the command line easily: > >I can write a library and use it in a cron job and in a web page. > so can php, i run several cron jobs every hour, all php, with no performance > loss Cool - I remember seeing some way of running programs with a command-line version (this was years back, when I last used it), but it seemed more suited for debugging than for cron-type-stuff. > >2) php programmers generally have a poor idea of the seperation between > >code and interface. They put db queries straight into their table > >layout code and other such things. > i have seen many programmers do this, even perl programmers Oh absolutely - I agree with that. The difference is, however, that almost all the reference material I've seen and read for php seems to have examples like this: print "
$col_value
\n"; while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { print "\t\n"; foreach ($line as $col_value) { print "\t\t\n"; } print "\t\n"; } (that's from the php manual at http://www.php.net/manual/en/ref.mysql.php) I think that this leads to a whole bunch of people that program in the same way, which leads to code that (in general) looks uglier. Of course, perl easily ends up looking like line noise too, but in general it's not line-noise-mixed-with-html-code, imho. These are vast generalisations - perhaps I just like perl too much :) Oskar -- Oskar Pearson Qualica Technologies (Pty) Ltd web: http://www.qualica.com/ From nico at itfirms.co.za Mon May 26 12:16:36 2003 From: nico at itfirms.co.za (Nico Coetzee) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] Re: Za-pm digest, Vol 1 #15 - 1 msg Message-ID: <200305261716.h4QHGaA27884@itfirms.co.za> > ---snip--- > Yah, well ... No, fine! > Beginnings are always somewhat slow. There's something that's been going > through my mind, though: perl vs PHP. > > Being a permanent "perl beginner", I haven't had much time to penetrate > the language very deeply, never mind investigating PHP and its > usefulness. What I gather is that PHP is some kind of html scripting > (presumably much like JavaScript). On the other hand, there must be a > few people in this group, who have had experience with both scripting > languages (perl and PHP) to be able to provide a bit of a comparison. > i.e. when is it useful to use PHP, why not integrating both scripts > (which I'm sure many people do), is there anything you do with PHP that > cannot be done with PERL, etc. > > Apology in advance for the naive suggestion, since I suspect that most > of the subscribers to this group have subscribed because they hate PHP > or they feel that, in most situations, PERL beats PHP hands down. > > ciao > One of my Brazilian friends made a interesting comment a day or so ago: He said that it seems that PHP programmers ussually find it difficult to use Perl on a "pro" level and vice versa, which seems to suggest that although the two languages appear to be very similar, they are just different enough to be very confusing - if that makes any sense. With that said, I can speak with some personal experience - I can debug most PHP scripted applications ( think phpMyAdmin etc. ) but I don't see myself writing a PHP application any time soon - simply because I know how to do it in Perl. With regards to your statement regarding PHP as a scripting language - I would say it's more like ASP then JavaScript. It relies on Server Side execution rather then client side. Cheers > > -- > the only statistics you can trust are those you falsified yourself. > Winston Churchill > |/ > (o o) > --------------ooO0-(_)-0Ooo---------------------------------------------- > G. Contrafatto - School of Life and Environmental Science > University of Natal Durban - Ph. +270312603336 > ########################################################################## > Visit Darwin at http://contra.biology.und.ac.za > > _______________________________________________ > Za-pm mailing list > Za-pm@mail.pm.org > http://mail.pm.org/mailman/listinfo/za-pm > > From scarte at pan.uzulu.ac.za Tue May 27 01:42:47 2003 From: scarte at pan.uzulu.ac.za (Sean Carte) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] Recommended Perl Books In-Reply-To: <3ED204A2.4050000@cae.co.za> References: <3ED204A2.4050000@cae.co.za> Message-ID: <1054017767.16990.4095.camel@seanc.uznet.uz> On Mon, 2003-05-26 at 14:12, Bartho Saaiman wrote: > I have found a lot of info with regards to books, but would like to know > ~ what *your* suggestions would be to someone that is completly new to > Perl. Have seen suggestions of the "Camel Book" _Effective Perl Programming_ by Hall with Schwartz has already mentioned in a different thread by Rory. I too found it extremely useful; it doesn't contain nearly as much as the Camel (2nd edition) or the _Perl Cookbook_, but I found it much more accessible. If you're going to be doing any DBI::DBD development, consider _Programming the Perl DBI_ by Descartes and Bunce. It also covers DBM databases very well. I wished I'd found it before I'd started bungling through DBM using tutorials from the Internet. Oskar mentioned Damian Conway's _Object Oriented Perl_. I consider Damian Conway the Jacques Derrida of the Perl world: I'm sure he's making a great deal of sense, I just wish I could understand any of it! There's also _MacPerl: Power and Ease_ by Vicki Brown and Chris Nandor, which is an excellent resource if you happen to be using Mac OS 9. It's available online at: . Ultimately, I think what makes a particular book stand out for a particular person has a lot to do with where that person is coming from. I felt that the Camel expected some previous (C?) programming experience whereas _MacPerl_ doesn't even assume that you know how to use a calculator. The third edition of the Camel is now available. At 1092 pages, it's nearly doubled in size. It must cover topics in a great deal more depth than it used to. Has anybody read it? -- Regards Sean Carte University of Zululand Network Services Unit Phone: 035 902 6081 Fax: 035 902 6028 "Mistakes? We don't make mistakes." -- Bill, Department of Works From dax at compuscan.co.za Tue May 27 02:24:00 2003 From: dax at compuscan.co.za (Deon Bredenhann) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] mod_perl 2.0 (use CGI replacement) Message-ID: <001001c32420$f1cddde0$0601640a@dev6> Hi there I'm rather new to this list and not a Perl guru (yet) :) Here is my problem. Under mod_perl 1.0 is was able to do the following. use CGI; my $cgi = new CGI; my $temp = $cgi->param('form-value'); print $cgi->header(); #rest of page here. Now with mod_perl 2.0 they recommend adding the following to make it run. use Apache2; use Apache::compat; OK All fine it will work like that, but what is the new way of doing it. Is there a new module like CGI for mod_perl 2.0 or do it have to send headers manualy en pull the %ENV appart to get http params. The CGI module is so much easier. :) I was looking around on perl.apache.org for an answer and don't know where else to look. On google I only get people telling on how to use Apache::compat. Any ideas. Thanx Deon Bredenhann Network Manager CompuScan Information Technologies (PTY) Ltd Tel: +27 21 8832332 Fax: +27 21 8832336 Call centre: 0860111011/0861514131 Email: dax@compuscan.co.za Red Hat Certified Engineer From contrafa at biology.und.ac.za Tue May 27 03:45:01 2003 From: contrafa at biology.und.ac.za (Dr Giancarlo Contrafatto) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] Re: Za-pm digest, Vol 1 #15 - PERL vs PHP In-Reply-To: <20030526092156.GA12300@qualica.com> References: <200305251701.h4PH1Nd16773@mail.pm.org> <1053935386.13695.19.camel@contra.biology.und.ac.za> <20030526092156.GA12300@qualica.com> Message-ID: <1054025101.1077.101.camel@contra.biology.und.ac.za> On Mon, 2003-05-26 at 11:21, Oskar Pearson wrote: Hi folks; Well, thank you to Orkar, Dallas, Rory and Nico for their "perl of wisdom". Ouch ... sorry ... Dreadful! Oh, yes. Bartho is asking for books. There is the one I used to get myself started with PERL. I'll check at home to see if I have the CD and then we can talk some more. > > PHP is not really like javascript. > Javascript runs in the browser itself: web pages with embedded source > are served to the browser, which then runs the code in the pages. Although, one can use Java to write servelets which, I suppose, can be viewed as serverside, wealthy relatives of javascript. But this doesn't seem to have been a very popular choice at all. There was much hype about it in the mid- to late 90s but I haven't come across all that many real-life examples. > PHP runs in the server. It determines what is in the web pages it serves > before it even gets sent to the client. It can, of course, serve javascript > to the client, which can then run it. > > It's akin to CGIs (not sure of your level..) - it's just faster than running > a program from the ground up - the interpreter is always in ram. > > PHP is akin to mod_perl in this way: it's in the server, and serves the > data without having to load the interpreter each time. OK gorrit! Same as PERL except that the availability of the interpreter is neat but, probably, not crucial in a relatively low traffic environment and efficient server hardware. > > >2) php programmers generally have a poor idea of the seperation between > > >code and interface. They put db queries straight into their table > > >layout code and other such things. > > i have seen many programmers do this, even perl programmers > > Oh absolutely - I agree with that. The difference is, however, that > almost all the reference material I've seen and read for php seems > to have examples like this: > > print "
$col_value
\n"; > while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { > print "\t\n"; > foreach ($line as $col_value) { > print "\t\t\n"; > } > print "\t\n"; > } > > (that's from the php manual at http://www.php.net/manual/en/ref.mysql.php) Hehehe! Yea, I know the feeling. From bitter experience, I've figured it is best for me to place the html code into subroutines and leave the logic at the top of my scripts. At least I know the variables are there when the HTML interface needs them. Of course, I understand what Nico is saying: even if you know both languages, you would tend to do the heavy duty stuff using the one you have more experience with. So, in conclusion, I may have a look at PHP and may even like it but I may end up carrying on using Perl because I've already aquired some familiarity with it. Certainly, one of the things I like about it is the debugger: always been very useful to me. ciao -- there is no road to freedom, freedom is the road. Mahatma Gandhi \|/ (o o) --------------ooO0-(_)-0Ooo---------------------------------------------- G. Contrafatto - School of Life and Environmental Science University of Natal Durban - Ph. +270312603336 ########################################################################## Visit Darwin at http://contra.biology.und.ac.za From nico at itfirms.co.za Tue May 27 06:50:45 2003 From: nico at itfirms.co.za (Nico Coetzee) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] mod_perl 2.0 (use CGI replacement) Message-ID: <200305271150.h4RBojb14421@itfirms.co.za> > Hi there > > I'm rather new to this list and not a Perl guru (yet) :) > > Here is my problem. > > Under mod_perl 1.0 is was able to do the following. > > use CGI; > > my $cgi = new CGI; > my $temp = $cgi->param('form-value'); > print $cgi->header(); > #rest of page here. > > Now with mod_perl 2.0 they recommend adding the following to make it run. > > use Apache2; > use Apache::compat; > Mmm.. No such modules on CPAN so I guess this is pure mod_perl stuff. I do however belief that the old techniques should still work, as the CGI module relied on HTTP protocol, which has not changed. Mayube there is somebody in here that's got a little more time on their hands to test this... > OK All fine it will work like that, but what is the new way of doing it. Is > there a new module like CGI for mod_perl 2.0 or do it have to send headers > manualy en pull the %ENV appart to get http params. The CGI module is so > much easier. :) > > I was looking around on perl.apache.org for an answer and don't know where > else to look. > On google I only get people telling on how to use Apache::compat. > I basically found the same :( It seems the new methods are still very new. > Any ideas. > Thanx > > Deon Bredenhann > Network Manager > CompuScan Information Technologies (PTY) Ltd > Tel: +27 21 8832332 > Fax: +27 21 8832336 > Call centre: 0860111011/0861514131 > Email: dax@compuscan.co.za > Red Hat Certified Engineer > > _______________________________________________ > Za-pm mailing list > Za-pm@mail.pm.org > http://mail.pm.org/mailman/listinfo/za-pm > > From riaanvj at radioretail.co.za Tue May 27 07:27:07 2003 From: riaanvj at radioretail.co.za (Riaan Van Jaarsveld) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] Webmin Message-ID: <004401c3244b$515d6c10$21a61eac@riaanvj> When I am trying to save a settings of Apache I get "Failed to determine Webmin root from SERVER_ROOT or SCRIPT_FILENAME". If tried editing web-lib.pl where the error occured but can't find the error. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/za-pm/attachments/20030527/43c0486b/attachment.htm From perl at linux.za.net Wed May 28 06:06:24 2003 From: perl at linux.za.net (Allen Baranov) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] Recommended Perl Books In-Reply-To: <1054017767.16990.4095.camel@seanc.uznet.uz> References: <3ED204A2.4050000@cae.co.za> <1054017767.16990.4095.camel@seanc.uznet.uz> Message-ID: <200305281306.24308.perl@linux.za.net> Hi, > The third edition of the Camel is now available. At 1092 pages, it's > nearly doubled in size. It must cover topics in a great deal more depth > than it used to. Has anybody read it? Yes, I have it...I haven't read it cover to cover but it is a great improvement over edition 2. It doesn't do the "Chapter one - very basic" "Chapter Two - very complex" jump. It is much more logically structured and much easier to read. I don't recommend it to people who have the camel book already but I do recommend it to perl programmers. If possible try get edition 3 over edition 2. Allen Baranov From spikeh at mweb.co.za Thu May 29 01:37:07 2003 From: spikeh at mweb.co.za (Spike) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] books In-Reply-To: <200305281701.h4SH1UK09560@mail.pm.org> Message-ID: <5.2.1.1.0.20030529075151.0302eec0@pop3.mweb.co.za> The cost of technical books in SA is horrific. However I had a pleasant surprise with Amazon.com. I wanted a copy of Perl,CGI and Javascript Compleat. I got a secondhand one for $4.50 off the Amazon site. The book is in reasonable condition and a lot cheaper than the $18.75 for a new one. Also at a value of $4.50 there was no customs hassle (which can be a problem with Amazon orders). oh yes - and I got it in 9 days! At 2003/05/28 07:00 PM, you wrote: >Send Za-pm mailing list submissions to > za-pm@mail.pm.org > >To subscribe or unsubscribe via the World Wide Web, visit > http://mail.pm.org/mailman/listinfo/za-pm >or, via email, send a message with subject or body 'help' to > za-pm-request@mail.pm.org > >You can reach the person managing the list at > za-pm-admin@mail.pm.org > >When replying, please edit your Subject line so it is more specific >than "Re: Contents of Za-pm digest..." > > >Today's Topics: > > 1. Re: Recommended Perl Books (Allen Baranov) > >--__--__-- > >Message: 1 >From: Allen Baranov >To: Sean Carte , za-pm@mail.pm.org >Subject: Re: [Za-pm] Recommended Perl Books >Date: Wed, 28 May 2003 13:06:24 +0200 > >Hi, > > > The third edition of the Camel is now available. At 1092 pages, it's > > nearly doubled in size. It must cover topics in a great deal more depth > > than it used to. Has anybody read it? > >Yes, I have it...I haven't read it cover to cover but it is a great >improvement over edition 2. It doesn't do the "Chapter one - very basic" >"Chapter Two - very complex" jump. > >It is much more logically structured and much easier to read. > >I don't recommend it to people who have the camel book already but I do >recommend it to perl programmers. If possible try get edition 3 over edition >2. > >Allen Baranov > > >--__--__-- > >_______________________________________________ >Za-pm mailing list >Za-pm@mail.pm.org >http://mail.pm.org/mailman/listinfo/za-pm > > >End of Za-pm Digest Spike Hodge UNIX Programmer M-Web Technology 021 596 8496 082 901 5265 Click here and make M-Web your homepage http://homepage.mweb.co.za -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/za-pm/attachments/20030529/35d53b0f/attachment.htm From scarte at pan.uzulu.ac.za Fri May 30 01:03:22 2003 From: scarte at pan.uzulu.ac.za (Sean Carte) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] books In-Reply-To: <5.2.1.1.0.20030529075151.0302eec0@pop3.mweb.co.za> References: <5.2.1.1.0.20030529075151.0302eec0@pop3.mweb.co.za> Message-ID: <1054274603.5077.127.camel@seanc.uznet.uz> On Thu, 2003-05-29 at 08:37, Spike wrote: > Also at a value of $4.50 there was no customs hassle (which can be a > problem with Amazon orders). Is it true that there is no customs duty on items that cost less than R400? and I assume that that includes shipping, and is worked out at the exchange rate applicable on the day that the item crosses paths with customs? -- Regards Sean Carte University of Zululand Network Services Unit Phone: 035 902 6081 Fax: 035 902 6028 "An empty desk is an efficient desk!" -- Warren From contrafa at biology.und.ac.za Fri May 30 05:57:48 2003 From: contrafa at biology.und.ac.za (Dr Giancarlo Contrafatto) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] Re: Za-pm digest, Vol 1 #16 - Recommended Perl Books (Bartho Saaiman) In-Reply-To: <200305261701.h4QH1BT23891@mail.pm.org> References: <200305261701.h4QH1BT23891@mail.pm.org> Message-ID: <1054292269.3341.8.camel@contra.biology.und.ac.za> > From: Bartho Saaiman > To: za-pm@mail.pm.org > Subject: [Za-pm] Recommended Perl Books > Date: 26 May 2003 14:12:18 +0200 > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi All > > I have found a lot of info with regards to books, but would like to know > ~ what *your* suggestions would be to someone that is completly new to > Perl. Have seen suggestions of the "Camel Book" > Right, as I advertised earlier: Eric Hermann, "Teach yourself CGI programming with Perl in a week. sams.net, Indiana. 1996. 513 pp. I've still got the CD, which you're welcome to borrow. I found the book useful to get started and get most of my CGI programmes running and deployed. It does focus on HTML forms and CGI though, but it comes with PERL 5.0 included in the CD. ciao -- I don't have time to be in a hurry. John Wesley \|/ (o o) --------------ooO0-(_)-0Ooo---------------------------------------------- G. Contrafatto - School of Life and Environmental Science University of Natal Durban - Ph. +270312603336 ########################################################################## Visit Darwin at http://contra.biology.und.ac.za From nico at itfirms.co.za Fri May 30 12:33:25 2003 From: nico at itfirms.co.za (Nico Coetzee) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] books In-Reply-To: <1054274603.5077.127.camel@seanc.uznet.uz> References: <5.2.1.1.0.20030529075151.0302eec0@pop3.mweb.co.za> <1054274603.5077.127.camel@seanc.uznet.uz> Message-ID: <200305301933.25617.nico@itfirms.co.za> I have never paid customs duty - even when the total value exceeded R1000 - personally I don't knoe if it should be an automatic thing, or do the customs trust you to fill in some form? I honestly don't know, and every person you ask has a different story :-| Anyway - I read the the story on the two URL's, and I must say, I havn't experienced anything like they describe. I order books - ussually from Amazon.com - and within two to three weeks I get the postoffice note. I then go pick up the books, and that's it. My average order is well in excess of $40 ( or R400 ), so I really don't know... Weird how these import stuff works - but for me, it's still a mystery. On Friday 30 May 2003 08:03, Sean Carte wrote: > On Thu, 2003-05-29 at 08:37, Spike wrote: > > Also at a value of $4.50 there was no customs hassle (which can be a > > problem with Amazon orders). > > Is it true that there is no customs duty on items that cost less than > R400? > > and > > > I assume that that includes shipping, and is worked out at the exchange > rate applicable on the day that the item crosses paths with customs? -- Nico Coetzee http://www.itfirms.co.za/ http://za.pm.org/ http://forums.databasejournal.com/ To the systems programmer, users and applications serve only to provide a test load. From rory at radv2.za.net Sat May 31 08:06:41 2003 From: rory at radv2.za.net (Rory Austin) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] Perl Source Code Formatter Message-ID: <5.1.0.14.2.20030531150443.00b8a428@pop.mighty.co.za> Hi I'm looking for a tool to indent my code for me... 1000+ lines. Preferably one that uses STDIN and STDOUT so I can easily integrate with an IDE. Can any of you recommend any? Or have you got a perl script to do it? Thanks, Rory From nico at itfirms.co.za Sat May 31 10:55:23 2003 From: nico at itfirms.co.za (Nico Coetzee) Date: Mon Aug 2 21:39:57 2004 Subject: [Za-pm] Perl Source Code Formatter In-Reply-To: <5.1.0.14.2.20030531150443.00b8a428@pop.mighty.co.za> References: <5.1.0.14.2.20030531150443.00b8a428@pop.mighty.co.za> Message-ID: <200305311755.23481.nico@itfirms.co.za> http://search.cpan.org/author/SHANCOCK/Perl-Tidy-20021130/bin/perltidy On Saturday 31 May 2003 15:06, Rory Austin wrote: > Hi > > I'm looking for a tool to indent my code for me... 1000+ lines. Preferably > one that uses STDIN and STDOUT so I can easily integrate with an IDE. > > Can any of you recommend any? Or have you got a perl script to do it? > > Thanks, > Rory > > _______________________________________________ > Za-pm mailing list > Za-pm@mail.pm.org > http://mail.pm.org/mailman/listinfo/za-pm -- Nico Coetzee http://www.itfirms.co.za/ http://za.pm.org/ http://forums.databasejournal.com/ To the systems programmer, users and applications serve only to provide a test load.
$col_value