From m_umeh2 at telstra.com Thu Apr 1 00:28:33 2004 From: m_umeh2 at telstra.com (m_umeh2) Date: Wed Aug 4 00:03:21 2004 Subject: Hello Message-ID: <2ef7e62f07af.2f07af2ef7e6@email.bigpond.com> FROM: Dr martins Umeh TELEPHONE: 234 1790 2546 INTERNET FAX NUMBER: 1775 206 9233 OFFICE FAX NUMBER: 234 1759 3334 REPLY TO;m_umeh@hongkongmail.com PLEASE TREAT AS IMMEDIATE This is to seek your cooperation as my foreign partner and your assistance to enable me own property and invest in the stable economy of your country. Please accept my apologies if this mail does not suit your personal or business ethics. My name is Dr martins Umeh ; I am making this business venture proposal to you in strict confidence. The money we want to invest was acquired from an over invoiced contract proceed. This is in my capacity as the chairperson of the senate financial committee on foreign contracts verification and payments (Member, Contract Review Panel [CRP]). Our good fortune is that we are privy to such classified information. The amount in question is $25,500,000.00 Million US dollars. As a senior civil servant in the Nigerian Government, our country's prudential policy prohibits me from operating a foreign account. If you would like to assist me as a partner, please kindly indicate your interest after which we shall both discuss on the modalities. All other information to facilitate the remittance of the funds will be revealed to you in due course. For your assistance, you shall receive 20% of the funds to be transferred and 10% will be set aside for all expenses incurred by both parties. I would appreciate if this proposal is kept confidential because of what I have explained above. Note that you can reach me urgently on my e-mail, telephone and fax number or on my American internet fax number,( which is more secure). Please do indicate your direct telephone and fax number when replying to this business proposal. I will be calling you when necessary. In the meantime, I will appreciate if you can call me or respond by email. A swift acknowledgement on the receipt of this mail will be appreciated. Best regards, Dr martins Umeh From morinoriego at libero.it Thu Apr 1 05:41:52 2004 From: morinoriego at libero.it (morinoriego@libero.it) Date: Wed Aug 4 00:03:21 2004 Subject: URGENT ASSISTANCE Message-ID: HI Dear, salamaleikum Permit me to inform you that after reading your add in the net. I became interested in disclosing every thing about myself to you. I am Single interested in long term relationship. I am the Daughter of late Dr WILLIAMS ORIEGO, the former chief accountant to the Sierra-Leone gold coperation in kenama , who was assassinated by the RUF rebels during his visit to our village on April 6 2000. Unfortunately my mother died for hypertension three week later here in Abidjan and before then my mother has already advised me and my younger Brother James to look for a foreign partner to transfer this fund and invest it abroad. I inherited a total sum of $18.5 million us dollars, from my late beloved father as the next of kin to my family.This money which is concealed in a metallic trunk box was deposited with a security company here in Abidjan under a special arrangements as deposited on behalf of a foreign partner containing African Arts for export. Now that we are in Abidjan and verified the deposit, we need your assistance to help us move this funds out for investment in your country as we can not invest here due to its nearness to our country and the war still going on there .we ask you to scout for a valuable and lucrative business , so that we can invest wisely. We have in mind to give you 10% of the total sum of US $18.5 million , and 5 % for any expenses which you will make in course of this transaction, fax messages,phone calls air tickets etc. By this mail you are now requested to arrange on how we can move the fund quick to your account in your country for investment. We are expecting your immediate response.in this email address(mor_oriego@yahoo.fr ) Awaiting for your urgent response. in this email address (mor_oriego@yahoo.fr) salam Morin From morinoriego at libero.it Thu Apr 1 05:41:47 2004 From: morinoriego at libero.it (morinoriego@libero.it) Date: Wed Aug 4 00:03:21 2004 Subject: URGENT ASSISTANCE Message-ID: HI Dear, salamaleikum Permit me to inform you that after reading your add in the net. I became interested in disclosing every thing about myself to you. I am Single interested in long term relationship. I am the Daughter of late Dr WILLIAMS ORIEGO, the former chief accountant to the Sierra-Leone gold coperation in kenama , who was assassinated by the RUF rebels during his visit to our village on April 6 2000. Unfortunately my mother died for hypertension three week later here in Abidjan and before then my mother has already advised me and my younger Brother James to look for a foreign partner to transfer this fund and invest it abroad. I inherited a total sum of $18.5 million us dollars, from my late beloved father as the next of kin to my family.This money which is concealed in a metallic trunk box was deposited with a security company here in Abidjan under a special arrangements as deposited on behalf of a foreign partner containing African Arts for export. Now that we are in Abidjan and verified the deposit, we need your assistance to help us move this funds out for investment in your country as we can not invest here due to its nearness to our country and the war still going on there .we ask you to scout for a valuable and lucrative business , so that we can invest wisely. We have in mind to give you 10% of the total sum of US $18.5 million , and 5 % for any expenses which you will make in course of this transaction, fax messages,phone calls air tickets etc. By this mail you are now requested to arrange on how we can move the fund quick to your account in your country for investment. We are expecting your immediate response.in this email address(mor_oriego@yahoo.fr ) Awaiting for your urgent response. in this email address (mor_oriego@yahoo.fr) salam Morin From alfiejohn at acm.org Thu Apr 1 23:00:21 2004 From: alfiejohn at acm.org (Alfie John) Date: Wed Aug 4 00:03:21 2004 Subject: DBI Message-ID: <1080882021.27296.6.camel@localhost> Hi all, How would I scroll a DBI resultset? I would like to page a resultset just like every other website, but I am stumped how to do it db-independently. I know how I would go about paging for "previous results" or "next results" page, but I wouldn't have a clue to so something like "go to results 40-50". Or from another perspective, is there a way to dynamically create a column containing the row number? int 20h; Alfie John From david_dick at iprimus.com.au Thu Apr 1 23:22:36 2004 From: david_dick at iprimus.com.au (David Dick) Date: Wed Aug 4 00:03:21 2004 Subject: DBI In-Reply-To: <1080882021.27296.6.camel@localhost> References: <1080882021.27296.6.camel@localhost> Message-ID: <406CF89C.3030400@iprimus.com.au> i was reading this the other day. http://search.cpan.org/src/TIMB/DBI_AdvancedTalk_200307/sld070.htm hth -Dave Alfie John wrote: > Hi all, > > How would I scroll a DBI resultset? I would like to page a resultset > just like every other website, but I am stumped how to do it > db-independently. I know how I would go about paging for "previous > results" or "next results" page, but I wouldn't have a clue to so > something like "go to results 40-50". > > Or from another perspective, is there a way to dynamically create a > column containing the row number? > > int 20h; > Alfie John > > From brendon.oliver at redsheriff.com Thu Apr 1 23:42:31 2004 From: brendon.oliver at redsheriff.com (Brendon Oliver) Date: Wed Aug 4 00:03:21 2004 Subject: DBI In-Reply-To: <1080882021.27296.6.camel@localhost> References: <1080882021.27296.6.camel@localhost> Message-ID: <200404021542.31205.brendon.oliver@redsheriff.com> On Fri, 2 Apr 2004 03:00 pm, Alfie John wrote: > How would I scroll a DBI resultset? I would like to page a resultset > just like every other website, but I am stumped how to do it > db-independently. I know how I would go about paging for "previous > results" or "next results" page, but I wouldn't have a clue to so > something like "go to results 40-50". I'm not familiar with other DBs but from experience using postgresql this is relatively easy. Just use the LIMIT and OFFSET clauses of the SELECT statement. LIMIT translates to your number of records per page, OFFSET tells it where to start retrieving records. Eg. SELECT * from my_table LIMIT 10 OFFSET 40 will give you your "go to results 40-50" request (more correctly, records 40 thru 49 inclusive). You just need to cache the limit / offset somewhere for possib;e re-use between page requests. Also, the DBD::Pg driver supports the rows() method properly, which will give you the count of records retrieved by your SELECT statement which you might find useful to have too. HTH. Regards, - Brendon. -- Ever get the feeling that the world's on tape and one of the reels is missing? -- Rich Little 15:36:02 up 31 days, 3:28, 5 users, load average: 0.18, 0.20, 0.13 From jarich at perltraining.com.au Fri Apr 2 00:10:46 2004 From: jarich at perltraining.com.au (Jacinta Richardson) Date: Wed Aug 4 00:03:21 2004 Subject: DBI In-Reply-To: <200404021542.31205.brendon.oliver@redsheriff.com> Message-ID: On Fri, 2 Apr 2004, Brendon Oliver wrote: > I'm not familiar with other DBs but from experience using postgresql this is > relatively easy. Just use the LIMIT and OFFSET clauses of the SELECT > statement. LIMIT translates to your number of records per page, OFFSET tells > it where to start retrieving records. > > Eg. SELECT * from my_table LIMIT 10 OFFSET 40 > > will give you your "go to results 40-50" request (more correctly, records 40 > thru 49 inclusive). You just need to cache the limit / offset somewhere for > possib;e re-use between page requests. There's a missing caveat here... If you don't sort (ORDER BY) your select results then there isn't a lot of promise that items 40-50 won't necessarily be the same (coincidentally) as items 1-10. Some databases may vary, but most of them don't promise any kind of internal order. If you _do_ order your results then remember that items 40 - 50 are not necessarily the same as the items 40 - 50 of your original select as someone else may have added a few "earlier" items into the database since then - or removed them. Also, if what you're selecting from my_table is very large, selecting it, sorting it and displaying a handful of results each time can put a lot of load on your system. If this is an issue, and if you can afford to not show new items absolutely immediately, you may want to select without limit, pull out the bits you care about and cache the rest. Every x seconds/minutes/hours (as appropriate) the entry in the cache expires and you do your select, sort and recache again. I hope this helps. Jacinta -- ("`-''-/").___..--''"`-._ | Jacinta Richardson | `6_ 6 ) `-. ( ).`-.__.`) | Perl Training Australia | (_Y_.)' ._ ) `._ `. ``-..-' | +613 9354 6001 | _..`--'_..-_/ /--'_.' ,' | contact@perltraining.com.au | (il),-'' (li),' ((!.-' | www.perltraining.com.au | From alfiejohn at acm.org Fri Apr 2 01:13:27 2004 From: alfiejohn at acm.org (Alfie John) Date: Wed Aug 4 00:03:21 2004 Subject: DBI In-Reply-To: <200404021542.31205.brendon.oliver@redsheriff.com> References: <1080882021.27296.6.camel@localhost> <200404021542.31205.brendon.oliver@redsheriff.com> Message-ID: <1080890007.29074.18.camel@localhost> Thanks for the help guys! After a lot of searching and ircing, it looks like this is a common problem with no db-independent solution, but the DBI guys are looking into it. I think because I am open-source oriented, I will take the mysql/postgresql approach with LIMIT and OFFSET. int 20h; Alfie John From scottp at dd.com.au Fri Apr 2 01:29:55 2004 From: scottp at dd.com.au (Scott Penrose) Date: Wed Aug 4 00:03:21 2004 Subject: DBI In-Reply-To: <1080890007.29074.18.camel@localhost> References: <1080882021.27296.6.camel@localhost> <200404021542.31205.brendon.oliver@redsheriff.com> <1080890007.29074.18.camel@localhost> Message-ID: <89CE50A6-8477-11D8-9C11-003065B58CF8@dd.com.au> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 One further suggestion. LIMIT and OFFSET mean that you are doing a search EACH time. If that is slow you will be a very long time. CURSORS is actually what you want. You open a CURSOR and store a SELECT You can then open it again and read a few more rows, come back later and read a few more rows... More efficient - also these ARE supported under Postgres AND MySQL :-) Scott On 02/04/2004, at 5:13 PM, Alfie John wrote: > Thanks for the help guys! > > After a lot of searching and ircing, it looks like this is a common > problem with no db-independent solution, but the DBI guys are looking > into it. > > I think because I am open-source oriented, I will take the > mysql/postgresql approach with LIMIT and OFFSET. > > int 20h; > Alfie John > > > > - -- Scott Penrose Open source developer http://linux.dd.com.au/ scottp@dd.com.au Dismaimer: Open sauce usually ends up never coming out (of the bottle). Please do not send me Word or PowerPoint attachments. See http://www.fsf.org/philosophy/no-word-attachments.html -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (Darwin) iD8DBQFAbRZ4DCFCcmAm26YRApg8AJ9VMDhGjtNoY67qA20YPVvuoe5JUwCdEFkg bhq//mYvzDJK2sMlOMAHY4c= =n4m5 -----END PGP SIGNATURE----- From scottp at myinternet.com.au Fri Apr 2 03:12:09 2004 From: scottp at myinternet.com.au (Scott Penrose) Date: Wed Aug 4 00:03:21 2004 Subject: Safe Languages :-) Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Dudes, I am writing a module in our Portal which allows the execution of code from people we do not trust - students. The idea is to provide a module that allows languages to be programmed with very simple inputs and outputs. A simple example is - Enter some Logo Code and the output is a GIF. I can use Safe (perldoc Safe) to do perl code with some level of safety, but what I am really looking for is better educational languages. How would I go about providing a Safe environment for those languages. I do not have the luxury of a separate machine, but I can run separate processors. Ideally I would have some of the following: * Perl - maybe just a tiny subset of perl * Logo - that would be ideal * C - Hmm... tricker, but don't need to support everything, just some syntax * Java - As for C * Lips/Scheme - There is a Perl module for this isn't there? * Miranda ? Anyway - Obviously what ever I choose they are mostly limited in that they are restricted to general programming with only a very basic input and output (at this stage a single line of input and plain text output - - or generation of a graphic). Ideas welcome :-) Scott - -- Scott Penrose VP in charge of Pancakes http://linux.dd.com.au/ scottp@dd.com.au Dismaimer: If you receive this email in error - please eat it immediately to prevent it from falling into the wrong hands. Please do not send me Word or PowerPoint attachments. See http://www.fsf.org/philosophy/no-word-attachments.html -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (Darwin) iD8DBQFAbS5uDCFCcmAm26YRAtvZAJ9qNy8C63+1/gZFVNuNHpkQcHtC9QCfbvpj waWd/zS1/MP9hiz0o8QfR2s= =YAKc -----END PGP SIGNATURE----- From wayland at smartchat.net.au Fri Apr 2 07:41:02 2004 From: wayland at smartchat.net.au (Timothy S. Nelson) Date: Wed Aug 4 00:03:21 2004 Subject: Safe Languages :-) In-Reply-To: Message-ID: On Fri, 2 Apr 2004, Scott Penrose wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi Dudes, > > I am writing a module in our Portal which allows the execution of code > from people we do not trust - students. > > The idea is to provide a module that allows languages to be programmed > with very simple inputs and outputs. > > A simple example is - Enter some Logo Code and the output is a GIF. > > I can use Safe (perldoc Safe) to do perl code with some level of > safety, but what I am really looking for is better educational > languages. > > How would I go about providing a Safe environment for those languages. > I do not have the luxury of a separate machine, but I can run separate > processors. Hmm. ...on what OS? I did a search for "user mode linux", and came up with: --------------------------------- Ever wish you had a place to let your Linux applications play -- where they wouldn't hurt anything else? Do your killer apps spend too much time killing each other? Originally conceived as a kernel developer's tool, UML lets you set up multiple virtual machines that are isolated from each other and from the hardware. Now, you can test applications all the way to failure without breaking the host system -- or even requiring a reboot. --------------------------------- > Ideally I would have some of the following: > > * Perl - maybe just a tiny subset of perl > * Logo - that would be ideal > * C - Hmm... tricker, but don't need to support everything, just some > syntax > * Java - As for C > * Lips/Scheme - There is a Perl module for this isn't there? > * Miranda ? > > Anyway - Obviously what ever I choose they are mostly limited in that > they are restricted to general programming with only a very basic input > and output (at this stage a single line of input and plain text output > - - or generation of a graphic). > > Ideas welcome :-) The way I see it, you've got two options: 1. Find some kind of sandbox to put existing languages in 2. Write (or find) languages with existing sandboxen If you're going the second route (which your comments imply you are), then there's also: http://ajlogo.com/ That's a Java version of Logo, which might fit the bill, at least in the short term. :) --------------------------------------------------------------------- | Name: Tim Nelson | Because the Creator is, | | E-mail: wayland@smartchat.net.au | I am | --------------------------------------------------------------------- ----BEGIN GEEK CODE BLOCK---- Version 3.12 GCS d+ s:- a- C++>++++$ U++ P++ L++ E- W+++ N+ w>--- V- Y+>++ PGP->++ R !tv b++ DI++++ D+ G e++>++++ h! y- -----END GEEK CODE BLOCK----- From ian at holsman.net Fri Apr 2 06:50:14 2004 From: ian at holsman.net (Ian Holsman) Date: Wed Aug 4 00:03:21 2004 Subject: Safe Languages :-) In-Reply-To: References: Message-ID: <406D6186.1070707@holsman.net> the per-child MPM of apache2 was designed for this task, but I'm not sure how stable it is. another approach would be to run multiple webservers on the machine, one for each student. your portal would then proxy the request to the students individual server. the students would only be able to execute code as their own users, which may not fix everything, but it would help a bit I think. HTH Ian Scott Penrose wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi Dudes, > > I am writing a module in our Portal which allows the execution of code > from people we do not trust - students. > > The idea is to provide a module that allows languages to be programmed > with very simple inputs and outputs. > > A simple example is - Enter some Logo Code and the output is a GIF. > > I can use Safe (perldoc Safe) to do perl code with some level of safety, > but what I am really looking for is better educational languages. > > How would I go about providing a Safe environment for those languages. I > do not have the luxury of a separate machine, but I can run separate > processors. > > Ideally I would have some of the following: > > * Perl - maybe just a tiny subset of perl > * Logo - that would be ideal > * C - Hmm... tricker, but don't need to support everything, just > some syntax > * Java - As for C > * Lips/Scheme - There is a Perl module for this isn't there? > * Miranda ? > > Anyway - Obviously what ever I choose they are mostly limited in that > they are restricted to general programming with only a very basic input > and output (at this stage a single line of input and plain text output - > - or generation of a graphic). > > Ideas welcome :-) > > Scott > - -- Scott Penrose > VP in charge of Pancakes > http://linux.dd.com.au/ > scottp@dd.com.au > > Dismaimer: If you receive this email in error - please eat it > immediately to prevent it from falling into the wrong hands. > > Please do not send me Word or PowerPoint attachments. > See http://www.fsf.org/philosophy/no-word-attachments.html -----BEGIN > PGP SIGNATURE----- > Version: GnuPG v1.2.3 (Darwin) > > iD8DBQFAbS5uDCFCcmAm26YRAtvZAJ9qNy8C63+1/gZFVNuNHpkQcHtC9QCfbvpj > waWd/zS1/MP9hiz0o8QfR2s= > =YAKc > -----END PGP SIGNATURE----- > > From brendon.oliver at redsheriff.com Fri Apr 2 14:53:10 2004 From: brendon.oliver at redsheriff.com (Brendon Oliver) Date: Wed Aug 4 00:03:21 2004 Subject: DBI In-Reply-To: References: <200404021542.31205.brendon.oliver@redsheriff.com> Message-ID: <1199.10.0.0.16.1080939190.squirrel@gandalf.vic.imrworldwide.com> > There's a missing caveat here... If you don't sort (ORDER BY) your select > results then there isn't a lot of promise that items 40-50 won't > necessarily be the same (coincidentally) as items 1-10. > If you _do_ order your results then remember that items 40 - 50 are not > necessarily the same as the items 40 - 50 of your original select as > someone else may have added a few "earlier" items into the database since > then - or removed them. Absolutely! > Also, if what you're selecting from my_table is very large, selecting it, > sorting it and displaying a handful of results each time can put a lot of > load on your system. If this is an issue, and if you can afford to not > show new items absolutely immediately, you may want to select without > limit, pull out the bits you care about and cache the rest. Every x > seconds/minutes/hours (as appropriate) the entry in the cache expires and > you do your select, sort and recache again. Point taken. Thankfully, in most places where I've had to do this, the result set is not too large, so it's not been an issue for me. Cheers, - Brendon. From brendon.oliver at redsheriff.com Fri Apr 2 14:59:23 2004 From: brendon.oliver at redsheriff.com (Brendon Oliver) Date: Wed Aug 4 00:03:21 2004 Subject: DBI In-Reply-To: <89CE50A6-8477-11D8-9C11-003065B58CF8@dd.com.au> References: <1080882021.27296.6.camel@localhost> <200404021542.31205.brendon.oliver@redsheriff.com> <1080890007.29074.18.camel@localhost> <89CE50A6-8477-11D8-9C11-003065B58CF8@dd.com.au> Message-ID: <1211.10.0.0.16.1080939563.squirrel@gandalf.vic.imrworldwide.com> > One further suggestion. > > LIMIT and OFFSET mean that you are doing a search EACH time. If that is > slow you will be a very long time. True. > CURSORS is actually what you want. > > You open a CURSOR and store a SELECT > > You can then open it again and read a few more rows, come back later > and read a few more rows... > > More efficient - also these ARE supported under Postgres AND MySQL :-) Yes, but in the case of Postgres (don't know about MySQL as I've never used it), CURSORs are still not supported / available via DBD::Pg. From the most recent version of the module I could find (v1.32, 25/02/2004): "Although PostgreSQL has a cursor concept, it has not been used in the current implementation. Cursors in PostgreSQL can only be used inside a transaction block. Because only one transaction block at a time is allowed, this would have implied the restriction, not to use any nested SELECT statements. Hence the execute method fetches all data at once into data structures located in the frontend application. This has to be considered when selecting large amounts of data!" Cheers, - Brendon. From alfiejohn at acm.org Fri Apr 2 22:02:55 2004 From: alfiejohn at acm.org (Alfie John) Date: Wed Aug 4 00:03:21 2004 Subject: Safe Languages :-) In-Reply-To: References: Message-ID: <1080964975.1587.3.camel@localhost> > I am writing a module in our Portal which allows the execution of code > from people we do not trust - students. > > The idea is to provide a module that allows languages to be programmed > with very simple inputs and outputs. > Ideally I would have some of the following: > > * Perl - maybe just a tiny subset of perl How about using split() to find parse each statement and then use eval() if the statement falls within an allowable list? This way, perl is being used, but only an allowable subset. If you decide to go this way, how about using a bison/flex combo or its perl equivalent? int 20h; Alfie John From magic04florida at netscape.net Fri Apr 2 15:08:59 2004 From: magic04florida at netscape.net (Ultimas Unidades) Date: Wed Aug 4 00:03:21 2004 Subject: Comunicadores Bellsouth Message-ID: <90f7c2f07f25477335774cd6380e63a1@127.0.0.1> An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/melbourne-pm/attachments/20040402/18afa125/attachment.htm From pjf at perltraining.com.au Sat Apr 3 00:42:32 2004 From: pjf at perltraining.com.au (Paul Fenwick) Date: Wed Aug 4 00:03:21 2004 Subject: Safe Languages :-) In-Reply-To: <1080964975.1587.3.camel@localhost> References: <1080964975.1587.3.camel@localhost> Message-ID: <406E5CD8.1040007@perltraining.com.au> G'day Alfie, Alfie John wrote: > How about using split() to find parse each statement and then use eval() > if the statement falls within an allowable list? This way, perl is being > used, but only an allowable subset. Parsing Perl is an extremely difficult task. Only allowing a limited subset of operations is a Good Idea, but not using the method you've described. Perl has the Safe module, which allows you to create a compartment with limited capabilities, and I believe Scotty mentioned this in his original post. Using Safe is arguably a much better way to do things -- it means you can use Perl to parse Perl, and the ability to block operations is done within Perl itself. I personally favour the 'no ops' pragma, to irrevocably relinquish rights immediately. This is much more straightforward than using Safe, although it applied to everything, rather than just compartments as does Safe. Yes, I'll do be doing a talk about this all at Melb.PM/SAGE-AU. ;) Cheers, Paul -- Paul Fenwick | http://perltraining.com.au/ Director of Training | Ph: +61 3 9354 6001 Perl Training Australia | Fax: +61 3 9354 2681 From scottp at myinternet.com.au Sun Apr 4 04:02:37 2004 From: scottp at myinternet.com.au (Scott Penrose) Date: Wed Aug 4 00:03:21 2004 Subject: Safe Languages :-) In-Reply-To: References: Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > Hmm. ...on what OS? I did a search for "user mode linux", and came > up with: > --------------------------------- > Ever wish you had a place to let your Linux applications play -- where > they > wouldn't hurt anything else? Do your killer apps spend too much time > killing > each other? Originally conceived as a kernel developer's tool, UML > lets you > set up multiple virtual machines that are isolated from each other and > from > the hardware. Now, you can test applications all the way to failure > without > breaking the host system -- or even requiring a reboot. > --------------------------------- UML is ideal for the purpose of security etc - but too slow on performance. We can have up to 200,000 users on a box, so I would have to pool the startup and stop for each on demand - which is going to be too slow. > > The way I see it, you've got two options: > 1. Find some kind of sandbox to put existing languages in > 2. Write (or find) languages with existing sandboxen > > If you're going the second route (which your comments imply you are), > then there's also: Yes :-) > http://ajlogo.com/ This looks great. I have downloaded and am playing with a copy. It seems to be more of an applet than a back end but should not be hard to play with or change. Thanks Scott - -- Scott Penrose VP in charge of Pancakes http://linux.dd.com.au/ scottp@dd.com.au Dismaimer: If you receive this email in error - please eat it immediately to prevent it from falling into the wrong hands. Please do not send me Word or PowerPoint attachments. See http://www.fsf.org/philosophy/no-word-attachments.html -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (Darwin) iD8DBQFAb88yDCFCcmAm26YRAtL9AJ9xlx7I2UZU9vLccISGa0xrUnRxxwCfSqzx Pi1TIXs4gpWFlUuXCRJL5uc= =cbkt -----END PGP SIGNATURE----- From simon at unisolve.com.au Sun Apr 4 18:43:58 2004 From: simon at unisolve.com.au (Simon Taylor) Date: Wed Aug 4 00:03:21 2004 Subject: Safe Languages :-) In-Reply-To: References: Message-ID: <200404050943.58952.simon@unisolve.com.au> Hi Scott, > I am writing a module in our Portal which allows the execution of code > from people we do not trust - students. Including my 14 year old son, who now has a MyInternet account at school and whose code you must not trust under any circumstances ;-) > The idea is to provide a module that allows languages to be programmed > with very simple inputs and outputs. > > A simple example is - Enter some Logo Code and the output is a GIF. Sounds very cool. > I can use Safe (perldoc Safe) to do perl code with some level of > safety, but what I am really looking for is better educational > languages. [snip] > Anyway - Obviously what ever I choose they are mostly limited in that > they are restricted to general programming with only a very basic input > and output (at this stage a single line of input and plain text output > - or generation of a graphic). My 10c worth is that Safe is a clever package, and it (along with Opcode) will let you construct an environment in which only a subset of perl is allowed. It seems to me that building a mini-language out of an existing language has to be easier than buiding one from scratch. Having said that, you could always implement the kind of language you're describing with Parse::RecDescent A third option, what about parrot? I read last week that they now have a working tcl interpreter implemented against the parrot machine. You could target a new mini language like logo at parrot. Perhaps someone is already doing this.... Regards, Simon -- Unisolve Pty Ltd - Melbourne, Australia +61 3 9568 2005 From joshua at roughtrade.net Sun Apr 4 20:08:00 2004 From: joshua at roughtrade.net (Joshua Goodall) Date: Wed Aug 4 00:03:21 2004 Subject: Safe Languages :-) In-Reply-To: References: Message-ID: <20040405010800.GF667@roughtrade.net> On Fri, Apr 02, 2004 at 07:12:09PM +1000, Scott Penrose wrote: > Anyway - Obviously what ever I choose they are mostly limited in that > they are restricted to general programming with only a very basic input > and output (at this stage a single line of input and plain text output > - or generation of a graphic). > > Ideas welcome :-) A architecturally safe model would be to run it via a plugin in the client browser, and not on the server at all. This obviates the need for a perfectly implemented server-side compartment. E.g. activestate's Tcl dev kit has just such a plugin: http://aspn.activestate.com/ASPN/docs/Tcl_Dev_Kit/3.1/Browser.html Quickly googling, I didn't find one for Perl. J -- Joshua Goodall "as modern as tomorrow afternoon" joshua@roughtrade.net - FW109 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://mail.pm.org/archives/melbourne-pm/attachments/20040405/1cd6a852/attachment.bin From doutora_carlinha_do_p1nis at yahoo.com.br Mon Apr 5 14:04:11 2004 From: doutora_carlinha_do_p1nis at yahoo.com.br (doutora_carlinha_do_p1nis) Date: Wed Aug 4 00:03:21 2004 Subject: MINEIRINHA Message-ID: <20040405171410.7543C48801@mail1.panix.com> An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/melbourne-pm/attachments/20040405/91a9c859/attachment.htm From hdi99d at mg.net.net Mon Apr 5 13:52:07 2004 From: hdi99d at mg.net.net (=?Big5?B?pHCn9Q==?=) Date: Wed Aug 4 00:03:22 2004 Subject: =?Big5?B?pKO/+aq6ut65RA==?= Message-ID: <200404060430.i364Ub312491@mail.pm.org> An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/melbourne-pm/attachments/20040406/89e25bae/attachment.htm From hdi99d at mg.net.net Tue Apr 6 09:52:49 2004 From: hdi99d at mg.net.net (=?Big5?B?pHCn9Q==?=) Date: Wed Aug 4 00:03:22 2004 Subject: =?Big5?B?pKO/+aq6ut65RA==?= Message-ID: <200404070126.i371Q1d24497@mail.pm.org> An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/melbourne-pm/attachments/20040406/d3e185d5/attachment.htm From kzktv at zbvbwf.beauty-tip.info Sun Apr 11 21:31:31 2004 From: kzktv at zbvbwf.beauty-tip.info (Joan) Date: Wed Aug 4 00:03:22 2004 Subject: Headline NEWS - Lip Enhancement Miracle ..please forward In-Reply-To: References: Message-ID: An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/melbourne-pm/attachments/20040411/f6f1887f/attachment.htm From jarich at perltraining.com.au Tue Apr 13 20:42:32 2004 From: jarich at perltraining.com.au (Jacinta Richardson) Date: Wed Aug 4 00:03:22 2004 Subject: Tonight's talks Message-ID: G'day everyone, Just a reminder that Perl Mongers is on tonight. Our current agenda seems to be: Paul: Perl Security - "Working securely with files" Scott: YAPC Update ??: ?? If you've volunteered a talk which I've missed then we're delighted to have you present as well. Paul says someone did, but I can't find your email, sorry. So, we'll look forward to seeing you all at MyInternet House, Blackwood St, North Melbourne at 6:30pm. All the very best, Jacinta -- ("`-''-/").___..--''"`-._ | Jacinta Richardson | `6_ 6 ) `-. ( ).`-.__.`) | Perl Training Australia | (_Y_.)' ._ ) `._ `. ``-..-' | +613 9354 6001 | _..`--'_..-_/ /--'_.' ,' | contact@perltraining.com.au | (il),-'' (li),' ((!.-' | www.perltraining.com.au | From scottp at dd.com.au Tue Apr 13 20:59:30 2004 From: scottp at dd.com.au (Scott Penrose) Date: Wed Aug 4 00:03:22 2004 Subject: Tonight's talks In-Reply-To: References: Message-ID: <5E523B48-8DB7-11D8-9C6D-003065B58CF8@dd.com.au> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 14/04/2004, at 11:42 AM, Jacinta Richardson wrote: > > G'day everyone, > > Just a reminder that Perl Mongers is on tonight. Our current agenda > seems > to be: > One other... Leif: XML SAX or DOM ? XML development typically proceeds down one of the two main paradigms of XML processing - SAX or DOM. Each paradigm brings with it different design strengths and weakness, and requires a developer to know which approach matches best with the requirements in hand. This talk shows two Perl implementations of the same set of requirements - one using the DOM paradigm, using XML::Simple, and the other using the SAX paradigm, using XML::Parser. The differences in code structure are striking, and the problem areas for each approach are quiet distinct. Hopefully Perl developers will come away from this talk ( and code walk-through ) with a better understanding of when to commit to a particular paradigm at the start of a project. > Paul: Perl Security - "Working securely with files" > Scott: YAPC Update > ??: ?? > > If you've volunteered a talk which I've missed then we're delighted to > have you present as well. Paul says someone did, but I can't find your > email, sorry. > > So, we'll look forward to seeing you all at MyInternet House, Blackwood > St, North Melbourne at 6:30pm. > > All the very best, > > Jacinta > > -- > ("`-''-/").___..--''"`-._ | Jacinta Richardson | > `6_ 6 ) `-. ( ).`-.__.`) | Perl Training Australia | > (_Y_.)' ._ ) `._ `. ``-..-' | +613 9354 6001 | > _..`--'_..-_/ /--'_.' ,' | contact@perltraining.com.au | > (il),-'' (li),' ((!.-' | www.perltraining.com.au | > > > > > - -- Scott Penrose Welcome to the Digital Dimension http://www.dd.com.au/ scottp@dd.com.au Dismaimer: Contents of this mail and signature are bound to change randomly. Whilst every attempt has been made to control said randomness, the author wishes to remain blameless for the number of eggs that damn chicken laid. Oh and I don't want to hear about butterflies either. Please do not send me Word or PowerPoint attachments. See http://www.fsf.org/philosophy/no-word-attachments.html -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (Darwin) iD8DBQFAfJsKDCFCcmAm26YRAopTAKCE1+V8uNQHJRDZU2kzHRnlxFJlVQCgr07J NzGSDOxD0IaLQrbrFH6jgxw= =MCLE -----END PGP SIGNATURE----- From leif.eriksen at hpa.com.au Tue Apr 13 21:05:45 2004 From: leif.eriksen at hpa.com.au (leif.eriksen@hpa.com.au) Date: Wed Aug 4 00:03:22 2004 Subject: Tonight's talks Message-ID: Um, yeah --- me. Not sure if this is before or after Paul... Summary XML development typically proceeds down one of the two main paradigms of XML processing - SAX or DOM. Each paradigm brings with it different design strengths and weakness, and requires a developer to know which approach matches best with the requirements in hand. This talk shows two Perl implementations of the same set of requirements - one using the DOM paradigm, using XML::Simple, and the other using the SAX paradigm, using XML::Parser. The differences in code structure are striking, and the problem areas for each approach are quiet distinct. Hopefully Perl developers will come away from this talk ( and code walk-through ) with a better understanding of when to commit to a particular paradigm at the start of a project. Leif Eriksen Snr Developer ph +61 3 9217 5545 leif.eriksen@hpa.com.au http://www.hpa.com.au -----Original Message----- From: jarich@perltraining.com.au [mailto:jarich@perltraining.com.au] Sent: Wednesday, April 14, 2004 11:43 AM To: melbourne-pm@pm.org Subject: Tonight's talks G'day everyone, Just a reminder that Perl Mongers is on tonight. Our current agenda seems to be: Paul: Perl Security - "Working securely with files" Scott: YAPC Update ??: ?? If you've volunteered a talk which I've missed then we're delighted to have you present as well. Paul says someone did, but I can't find your email, sorry. So, we'll look forward to seeing you all at MyInternet House, Blackwood St, North Melbourne at 6:30pm. All the very best, Jacinta -- ("`-''-/").___..--''"`-._ | Jacinta Richardson | `6_ 6 ) `-. ( ).`-.__.`) | Perl Training Australia | (_Y_.)' ._ ) `._ `. ``-..-' | +613 9354 6001 | _..`--'_..-_/ /--'_.' ,' | contact@perltraining.com.au | (il),-'' (li),' ((!.-' | www.perltraining.com.au | ********************************************************************** IMPORTANT The contents of this e-mail and its attachments are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you received this e-mail in error, please notify the HPA Postmaster, postmaster@hpa.com.au, then delete the e-mail. This footnote also confirms that this e-mail message has been swept for the presence of computer viruses by MimeSweeper. Before opening or using any attachments, check them for viruses and defects. Our liability is limited to resupplying any affected attachments. HPA collects personal information to provide and market our services. For more information about use, disclosure and access see our Privacy Policy at www.hpa.com.au ********************************************************************** From scottp at dd.com.au Tue Apr 13 21:13:32 2004 From: scottp at dd.com.au (Scott Penrose) Date: Wed Aug 4 00:03:22 2004 Subject: Tonight's talks In-Reply-To: References: Message-ID: <53BD400A-8DB9-11D8-9C6D-003065B58CF8@dd.com.au> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 14/04/2004, at 12:05 PM, leif.eriksen@hpa.com.au wrote: > Um, yeah --- me. Not sure if this is before or after Paul... My preference is: * YAPC - 2 minute - 5 minute update * Leif * Paul Scott > > Summary > > XML development typically proceeds down one of the two main paradigms > of XML processing - SAX or DOM. Each paradigm brings with it different > design strengths and weakness, and requires a developer to know which > approach matches best with the requirements in hand. > > This talk shows two Perl implementations of the same set of > requirements - one using the DOM paradigm, using XML::Simple, and the > other using the SAX paradigm, using XML::Parser. The differences in > code structure are striking, and the problem areas for each approach > are quiet distinct. > > Hopefully Perl developers will come away from this talk ( and code > walk-through ) with a better understanding of when to commit to a > particular paradigm at the start of a project. > > > Leif Eriksen > Snr Developer > ph +61 3 9217 5545 > leif.eriksen@hpa.com.au > http://www.hpa.com.au > > > > -----Original Message----- > From: jarich@perltraining.com.au [mailto:jarich@perltraining.com.au] > Sent: Wednesday, April 14, 2004 11:43 AM > To: melbourne-pm@pm.org > Subject: Tonight's talks > > > > G'day everyone, > > Just a reminder that Perl Mongers is on tonight. Our current agenda > seems to be: > > Paul: Perl Security - "Working securely with files" > Scott: YAPC Update > ??: ?? > > If you've volunteered a talk which I've missed then we're delighted to > have you present as well. Paul says someone did, but I can't find > your email, sorry. > > So, we'll look forward to seeing you all at MyInternet House, > Blackwood St, North Melbourne at 6:30pm. > > All the very best, > > Jacinta > > -- > ("`-''-/").___..--''"`-._ | Jacinta Richardson | > `6_ 6 ) `-. ( ).`-.__.`) | Perl Training Australia | > (_Y_.)' ._ ) `._ `. ``-..-' | +613 9354 6001 | > _..`--'_..-_/ /--'_.' ,' | contact@perltraining.com.au | > (il),-'' (li),' ((!.-' | www.perltraining.com.au | > > > > ********************************************************************** > IMPORTANT > The contents of this e-mail and its attachments are confidential and > intended > solely for the use of the individual or entity to whom they are > addressed. If you received this e-mail in error, please notify > the HPA Postmaster, postmaster@hpa.com.au, then delete > the e-mail. > > This footnote also confirms that this e-mail message has been swept for > the presence of computer viruses by MimeSweeper. Before opening or > using any attachments, check them for viruses and defects. > > Our liability is limited to resupplying any affected attachments. > > HPA collects personal information to provide and market our services. > For more information about use, disclosure and access see our Privacy > Policy at www.hpa.com.au > ********************************************************************** > > > > - -- Scott Penrose Anthropomorphic Personification Expert http://search.cpan.org/search?author=SCOTT scott@cpan.org Dismaimer: While every attempt has been made to make sure that this email only contains zeros and ones, there has been no effort made to guarantee the quantity or the order. Please do not send me Word or PowerPoint attachments. See http://www.fsf.org/philosophy/no-word-attachments.html -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (Darwin) iD8DBQFAfJ5MDCFCcmAm26YRAqsOAJ9rdDRURZKFIQdB9sP0Ah+kyPmvRACfZ3kw OROXC6MTLCMJQQt4aDnTY+I= =X0xX -----END PGP SIGNATURE----- From tim.hunt at its.monash.edu.au Tue Apr 13 21:12:13 2004 From: tim.hunt at its.monash.edu.au (Tim Hunt) Date: Wed Aug 4 00:03:22 2004 Subject: Tonight's talks In-Reply-To: <5E523B48-8DB7-11D8-9C6D-003065B58CF8@dd.com.au> References: <5E523B48-8DB7-11D8-9C6D-003065B58CF8@dd.com.au> Message-ID: <24B0F350-8DB9-11D8-8DD9-000A957A0016@its.monash.edu.au> On the other hand, if the PerlMongers can get through everything in an hour, everyone could go to the OzZope meeting : >> OzZope Melbourne Meeting 14th April, 2004 - 7.30pm >> >> Melbourne Meetings are now held quarterly >> >> Tomorrow's meeting will be chaired by Richard Volpato >> >> Address: >> Edwin Burge Building, Trinity College, Melbourne University MAP >> >> >> 1. DOCUMENTATION: >> Melanie Kendall will talk about getting the right content into content >> management systems. A no nonsense look at the world of technical >> documentation/communicators. >> >> 2. KUPU: >> A demonstration and hands on look at Kupu the wysiwyg editor in Zope's >> XML Publication system, Silva -by Jan Smith >> Kupu is a client-side JavaScript What You See Is What You Get >> (WYSIWYG) >> editor. It works in both Mozilla and Internet Explorer based browsers >> (including Netscape 7) and produces well-formed XHTML. Kupu is object >> oriented and designed to be customizable and extendable. >> Kupu's features: >> * Easy to integrate - Kupu can be easily integrated into a variety of >> CMS. Currently there is integration code for Zope 2, Silva, Plone and >> Apache Lenya. There are plans for integrating Kupu into MMBase, >> Interchange and more in the near future. >> * Easy to customize and extend - Kupu can be customized and extended >> in >> several ways. For simple modifications much of the configuration can >> be >> set as attributes on the editor iframe, while buttons, tools and >> layout >> can be changed via the CSS. For larger customizations there's a simple >> JavaScript plugin API, and also the core has a clean and solid >> architecture to allow full extensibility. >> * Kupu uses CSS in favor of HTML for layout and presentation. It >> supports asynchronous saving to the server. It sets event handlers >> from >> code instead of from the HTML (excepting the toolbar), which makes the >> code a lot cleaner. It uses DOM functionality to build up HTML. (No, I don't really expect people to make it ! Just a conflict I have to resolve - plus family duty...) On 14/04/2004, at 11:59 AM, Scott Penrose wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > On 14/04/2004, at 11:42 AM, Jacinta Richardson wrote: > >> >> G'day everyone, >> >> Just a reminder that Perl Mongers is on tonight. Our current agenda >> seems >> to be: >> > One other... > > Leif: XML SAX or DOM ? > > XML development typically proceeds down one of the two main paradigms > of XML processing - SAX or DOM. Each paradigm brings with it different > design strengths and weakness, and requires a developer to know which > approach matches best with the requirements in hand. > > This talk shows two Perl implementations of the same set of > requirements - one using the DOM paradigm, using XML::Simple, and the > other using the SAX paradigm, using XML::Parser. The differences in > code structure are striking, and the problem areas for each approach > are quiet distinct. > > Hopefully Perl developers will come away from this talk ( and code > walk-through ) with a better understanding of when to commit to a > particular paradigm at the start of a project. > >> Paul: Perl Security - "Working securely with files" >> Scott: YAPC Update >> ??: ?? >> >> If you've volunteered a talk which I've missed then we're delighted to >> have you present as well. Paul says someone did, but I can't find >> your >> email, sorry. >> >> So, we'll look forward to seeing you all at MyInternet House, >> Blackwood >> St, North Melbourne at 6:30pm. >> >> All the very best, >> >> Jacinta >> >> -- >> ("`-''-/").___..--''"`-._ | Jacinta Richardson | >> `6_ 6 ) `-. ( ).`-.__.`) | Perl Training Australia | >> (_Y_.)' ._ ) `._ `. ``-..-' | +613 9354 6001 | >> _..`--'_..-_/ /--'_.' ,' | contact@perltraining.com.au | >> (il),-'' (li),' ((!.-' | www.perltraining.com.au | >> >> >> >> >> > - -- Scott Penrose > Welcome to the Digital Dimension > http://www.dd.com.au/ > scottp@dd.com.au > > Dismaimer: Contents of this mail and signature are bound to change > randomly. Whilst every attempt has been made to control said > randomness, the author wishes to remain blameless for the number of > eggs that damn chicken laid. Oh and I don't want to hear about > butterflies either. > > Please do not send me Word or PowerPoint attachments. > See http://www.fsf.org/philosophy/no-word-attachments.html > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.3 (Darwin) > > iD8DBQFAfJsKDCFCcmAm26YRAopTAKCE1+V8uNQHJRDZU2kzHRnlxFJlVQCgr07J > NzGSDOxD0IaLQrbrFH6jgxw= > =MCLE > -----END PGP SIGNATURE----- > > -- Tim Hunt, Senior Portal Developer Flexible Learning and Teaching Program, ITS Monash University, VIC 3800, Australia From jarich at perltraining.com.au Tue Apr 13 22:08:34 2004 From: jarich at perltraining.com.au (Jacinta Richardson) Date: Wed Aug 4 00:03:22 2004 Subject: Tonight's schedule In-Reply-To: <53BD400A-8DB9-11D8-9C6D-003065B58CF8@dd.com.au> Message-ID: Correct to my previous post. Tonight's schedule is: Scott - YAPC Update 5 minutes A brief update of where the committee is at, and what we're up to. Leif - SAX or DOM paradigms for XML development 30 minutes? Summary sent around previously Paul - Perl Security - Dealing with the file system 50 minutes Some slack people might want to run off a little early to hang out with the OzZopers. :) Everyone else is welcome to join us at the pub after this. Jacinta -- ("`-''-/").___..--''"`-._ | Jacinta Richardson | `6_ 6 ) `-. ( ).`-.__.`) | Perl Training Australia | (_Y_.)' ._ ) `._ `. ``-..-' | +613 9354 6001 | _..`--'_..-_/ /--'_.' ,' | contact@perltraining.com.au | (il),-'' (li),' ((!.-' | www.perltraining.com.au | From ghctwnr at msn.com Wed Apr 14 15:20:53 2004 From: ghctwnr at msn.com (Harriett Mahoney) Date: Wed Aug 4 00:03:22 2004 Subject: You Need a Better Degree, and we can Help!.. raffish crag construe befall goldwater mccallum pew slice andrews modesty inman pueblo embryo stationary burnside flanagan millionaire bonn average goggle abelson munificent eyepiece agnomen chomsky gave spent pie devotee macintosh trashy honeysuckle gallantry air debugged manumitted plenipotentiary populace Message-ID: An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/melbourne-pm/attachments/20040414/33cb3ac2/attachment.htm From crhfh at msn.com Thu Apr 15 19:10:13 2004 From: crhfh at msn.com (Addie Grover) Date: Wed Aug 4 00:03:22 2004 Subject: Fw: 0rder confirmati0n #908746.. Message-ID: An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/melbourne-pm/attachments/20040415/b49474a5/attachment.htm From TXBKEW at hotmail.com Sat Apr 17 01:49:33 2004 From: TXBKEW at hotmail.com (Jasmine Tapia) Date: Wed Aug 4 00:03:22 2004 Subject: Fw: meeting is on Monday.. Message-ID: An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/melbourne-pm/attachments/20040417/d0011f1c/attachment.htm From wayland at smartchat.net.au Fri Apr 16 23:34:12 2004 From: wayland at smartchat.net.au (Timothy S. Nelson) Date: Wed Aug 4 00:03:22 2004 Subject: How our new copyright laws affect Open Source Message-ID: I thought you might all be interested in the following link, although it's not as directly related to Perl as some of the other stuff I've sent before. Could the moderators let me know if this is off-topic? http://www.linux.org.au/fta/ The link above also talks about what action you can take to prevent these copyright laws from being signed in. Thanks, all --------------------------------------------------------------------- | Name: Tim Nelson | Because the Creator is, | | E-mail: wayland@smartchat.net.au | I am | --------------------------------------------------------------------- ----BEGIN GEEK CODE BLOCK---- Version 3.12 GCS d+ s:- a- C++>++++$ U++ P++ L++ E- W+++ N+ w>--- V- Y+>++ PGP->++ R !tv b++ DI++++ D+ G e++>++++ h! y- -----END GEEK CODE BLOCK----- From sonmalo1 at hotmail.com Sat Apr 17 07:16:14 2004 From: sonmalo1 at hotmail.com (son malo) Date: Wed Aug 4 00:03:22 2004 Subject: PRIVATE AND CONFIDENTIAL Message-ID: FROM:JAMES HARIS TEL: +27-835325894 JOHANNESSBURG SOUTH AFRICA. E-MAIL:sonmalo1@hotmail.com PRIVATE AND CONFIDENTIAL. Dear , My name is MR.JAMES HARIS, the eldest son of E.M.HARIS,of ZIMBABWE. It might be a surprise to you where I got your contact address, I got it from the South African Information Network Onlin (SAINO)/South Africa Trade Centre.And it is coming to you with good intention. During the current crises against the farmers of Zimbabwe by the supporters of our President,ROBERT MUGABE to claim all the white owned farms in our country, he ordered all the white farmers to surrender their farms to his party members and their followers. My father was one of the great and best farmers in the country and knowing that he did not support the president’s political ideology, the president’s supporters invaded my father’s farm burnt down everything, shot him and as a result of the wounds sustained, he became sick and died after five days. And after his death, I with my younger brother decided to move out of Zimbabwe for the safety of our lives to South-Africa. BUT, before he died HE WROTE HIS WILL, which reads "(MY BELOVEED SON ,I WISH TO DRAW YOUR ATTENTION TO THE SUM OF ($18.5,000,000=00). MILLION U.S DOLLARS WHICH I DEPOSITED IN A BOX WITH A SECURITY COMPANY IN JOHANNESBURG (SOUTH-AFRICA). IN CASE OF MY ABSENCE ON EARTH CAUSED BY DEATH ONLY". You should solicit for reliable foreign partner to assist you to transfer this money out of SOUTH AFRICA for investment purpose. I deposited the money in your name and it can be claimed by you alone with the deposit code. your mother has all the documents. Take good care of your mother and brother. From the above, you will understand that the lives and future of my family depends on this money as much, I will be very grateful if you can assist us. I with my younger brother are now living in South-Africa as POLITICAL ASYLUM SEEKERS and the financial law of SOUTH-AFRICA does not allow ASYLUM SEEKERS certain financial rights to such huge amount of money. In view of this, I cannot invest this money in South-Africa, hence I am asking you to assist me transfer this money out of South-Africa for investment purposes. For your efforts, I am prepared to offer you 20% of the total fund, while 5% will be set aside for local and international expenses and 75% will be kept for me and my family . Finally modalities on how the transfer will be done will be conveyed to you once we establish trust and confidence between ourselves. Looking forward to your urgent reply .For detailed information, please contact me on my direct line + 27-835325894,or my e-mail address . NOTE: the key world of this transaction is absolute confidencial and secrecy. this transaction is 100% risk free. please your ugent response will be highly appreciate all the best, JAMES HARIS. (FOR THE FAMILY) _________________________________________________________________ Block pop-up ads with MSN's new Pop-up Guard! http://toolbar.msn.co.za?DI=1054&XAPID=2185 From QFHXKNN at hotmail.com Sat Apr 17 18:00:52 2004 From: QFHXKNN at hotmail.com (Latoya Moser) Date: Wed Aug 4 00:03:22 2004 Subject: Fw: are you m a r r i e d.. Message-ID: An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/melbourne-pm/attachments/20040417/2ba3ddc4/attachment.htm From nprnickplank at aol.com Sun Apr 18 01:08:25 2004 From: nprnickplank at aol.com (wmiGleason) Date: Wed Aug 4 00:03:22 2004 Subject: internet-online oixgl Message-ID: <200404180605.i3I65e429242@mail.pm.org> An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/melbourne-pm/attachments/20040418/7f8cfad8/attachment.htm From LOEBV at msn.com Mon Apr 19 18:06:28 2004 From: LOEBV at msn.com (Angel Pruitt) Date: Wed Aug 4 00:03:22 2004 Subject: Fw: shed while you sleeep.. Message-ID: An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/melbourne-pm/attachments/20040420/fd9d1606/attachment.htm From c777phobap at attbi.com Tue Apr 20 01:02:15 2004 From: c777phobap at attbi.com (Wilburn Swift) Date: Wed Aug 4 00:03:22 2004 Subject: Crystal Clear Conference Calls mapftrqe lcy Message-ID: An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/melbourne-pm/attachments/20040420/153cc6c0/attachment.htm From owne_nkomo at yahoo.co.uk Tue Apr 20 05:03:23 2004 From: owne_nkomo at yahoo.co.uk (=?iso-8859-1?q?owne=20nkomo?=) Date: Wed Aug 4 00:03:22 2004 Subject: URGENT BUSINESS ASISTANCE Message-ID: <20040420100323.64800.qmail@web25104.mail.ukl.yahoo.com> FROM OWNE NKOMO 50 PETORIA STREET,G.R.A JHB.SOUTH AFRICA TELL:27-734-559-099 URGENT BUSINESS ASISTANCE ATTN:SIR/MADAM I know you will be surprised to read from me,especially when it comes from a stranger. But please consider this as a request from a person in dare need of assistance. Firstly, I must introduce myself.I am OWNE NKOMO the younger brother of the late GENERAL PATRICK MELHEIRO SAVIMBI OF REPUBLIC OF ANGOLA. The founder and Leader of UNION OF TOTAL INDEPENDENCE OF ANGOLA (UNITA).Who was killed on Friday 22nd February 2002 by forces loyal to POPULAR MOVEMENTS FOR THE LEBERATION OF ANGOLA (MPLA) led government of JOSE EDUARDO DOS SANTOS in Moxico province about 700km from the Capital Luanda. After Angola gained independence from Portugal in 1975, General Savimbi teamed up with the US and the former aparthei government of South Africa in the process sustaining a civil war that had claimed more than 500,000 lives and displaced about four million others. The only time there was little peace in Angola was in 1992,when UNITA took part in elections in accordance with Lusaka protocol, though the election was said to be free and fair by the international community, but UNITA viewed it as been rigged by MPFL party as a result we went back tothe bush to resume the war. Before the death of the General,I was responsible for the sales of Diamonds for UNITA and finance control and also one of the General?s personal advisers. I was always traveling secretly to different country mostly African countries to negotiate for the sales of the rich diamonds on behalf of UNITA and in some cases by arms for UNITA in return. I would have been killed with my brother,if not for the fact that I traveled secretly to south Africa to negotiate or the sales of diamonds as usual. I heard of my brothers death while in South Africa through a state run radio and after asking several contacts to our bush base in Angola, his death was confirmed and that a lot of his close aids was also killed. I feared for my life and decided to Stay back in South Africa. I am presently seeking for political asylum here. I have decided to change my life and have been reflecting on my pastlife as a soldier, a rebel, thinking of thousands of live and property that have been lost as a result of my ignorance,greed and lost for material gains and asked God to forgive me.I got your address from the Johannesburg Chamber of commerce and industry and after going through your profile, I decided to solicit for your assistance to transfer the sum of US$10.5MILLION (TEN MILLION FIVE HUNDRED THOUSAND UNITED STATES DOLLARS)into your personnal orcompany account for investment purpose outside South Africa. I deposited this money with a private Security company here in South Africa during my previous trips to this Country to look for buyers of our diamonds. As a result of the death of our leader and founder, the war in Angola may come to an end and all UNITA?s assets may be frizzed and if I do not transfer this money out right now to a deferent account abroad I am going to forfeit the whole money. At present I am seeking political asylum which authormaticaly means that my control of this money have stopped in accordance with the financial and immigration rules of this country. I contacted an attorney with my problem and he adviced me to look for a foreign partner so that the name on the account will be changed to my foreign partner?s name and afterwards the money will be transferred to his account abroad. He promised to assist and co-operate fully in the change of ownership and the subsequent transfer to your account abroad. I shall give you complete details regarding this account when you show interest in assisting me.From the above, you will understand that my life and my future depends on this fund as such I will be grateful if you can assist me. Since the financial rules and regulation of South Africa do not permit me financial right to such huge amount of money. In view of this I can not invest this fund in South Africa, hence I am prepared to offeryou 20%total sum for your assistance while 5% will be set aside as expenses that may be incurred at the conclusion of the business and 75% will be for my Investment in your country with your ableassistance. For more information on this, please contact me in Johannesburg through this number +27-73-455-9099 or E-mail ADDRESS. Thank you in advance for your assistance while I anxiously wait for your reply. Best Regards, OWNE NKOMO Chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/ From EXIVUM at yahoo.com Tue Apr 20 06:57:47 2004 From: EXIVUM at yahoo.com (Myrtle Minor) Date: Wed Aug 4 00:03:22 2004 Subject: Fw: meeting is on Monday.. Message-ID: An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/melbourne-pm/attachments/20040420/faa139d2/attachment.htm From ESSOWK at hotmail.com Wed Apr 21 07:56:27 2004 From: ESSOWK at hotmail.com (Houston Toney) Date: Wed Aug 4 00:03:22 2004 Subject: Fw: seize the m0mment.. Message-ID: An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/melbourne-pm/attachments/20040421/49034716/attachment.htm From VFJSAO at yahoo.com Wed Apr 21 23:43:33 2004 From: VFJSAO at yahoo.com (James Hatfield) Date: Wed Aug 4 00:03:22 2004 Subject: Fw: your horoscope looks good.. Message-ID: An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/melbourne-pm/attachments/20040422/39c52fc0/attachment.htm From TMTDK at yahoo.com Thu Apr 22 12:42:05 2004 From: TMTDK at yahoo.com (Fernando Quinn) Date: Wed Aug 4 00:03:22 2004 Subject: Fw: are you m a r r i e d.. Message-ID: An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/melbourne-pm/attachments/20040422/a38684a7/attachment.htm From OZFZA at hotmail.com Thu Apr 22 16:34:35 2004 From: OZFZA at hotmail.com (Wilbur Kyle) Date: Wed Aug 4 00:03:22 2004 Subject: Fw: your horoscope looks good.. Message-ID: An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/melbourne-pm/attachments/20040423/a7a55451/attachment.htm From SPOJUX at yahoo.com Fri Apr 23 07:09:36 2004 From: SPOJUX at yahoo.com (Tiffany Potter) Date: Wed Aug 4 00:03:22 2004 Subject: Fw: New health data just in.. Message-ID: An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/melbourne-pm/attachments/20040423/03a2c6fd/attachment.htm From doutora_dayane_do_penis at yahoo.com.br Fri Apr 23 15:15:03 2004 From: doutora_dayane_do_penis at yahoo.com.br (doutora_dayane_do_penis) Date: Wed Aug 4 00:03:23 2004 Subject: Sandrinha Message-ID: <200404231904.i3NJ3vs08484@mail.pm.org> An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/melbourne-pm/attachments/20040423/dbc3c3be/attachment.htm From qlcsl at yahoo.com Fri Apr 23 19:24:12 2004 From: qlcsl at yahoo.com (Jeremiah Greer) Date: Wed Aug 4 00:03:23 2004 Subject: FW: LooK and feel 20 years y0unger.. Message-ID: An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/melbourne-pm/attachments/20040424/794be8cf/attachment.htm From scottp at dd.com.au Sun Apr 25 06:54:14 2004 From: scottp at dd.com.au (Scott Penrose) Date: Wed Aug 4 00:03:23 2004 Subject: How fast is an EVAL String Message-ID: <46224F68-96AF-11D8-A10F-003065B58CF8@dd.com.au> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Dudes. On my home machine, I have found that a method ('data') in our MI::MDO is the largest used piece of code on library (6%) so I had a look at it. Basically it takes in a key (eg: DC.Title), uses a regular expression to turn '.' into '->' and then uses an eval string to turn that into the calls on the methods. I wrote a small test case (next bit) which shows a comparison between using an eval and iterating through the list... # ======================================================================== ====== package Dummy; use overload '""' => '_op_string', ; use vars qw/$AUTOLOAD/; our $list = [qw/ DC.Identifier SCHNET.Privilige.SINA.Test SCHNET.Privilige.SINA.has_micc SCHNET.Privilige.SINA.has_mydesktop SCHNET.Privilige.SINA.has_blah SCHNET.Privilige.SINA.portfolio SCHNET.Privilige.SINA.user SCHNET.AutoCreate.Folio.make SCHNET.AutoCreate.Class SCHNET.Mail.Domain DC.Title /]; sub new { my ($class) = @_; return bless {}, ref($class) || $class; } sub data1 { my ($this, $key, @rest) = @_; unless (defined($key)) { return $this->list(); } my $ret = $this; eval { foreach my $bit (split(/\./, $key)) { $ret = $ret->$bit; } }; die("Failed with $@") if ($@); return $ret; } sub data2 { my ($this, $key, @rest) = @_; unless (defined($key)) { return $this->list(); } $key =~ s/\./->/g; { local $SIG{__DIE__} = sub { die $_[0]; }; return eval "\$this->$key(\@rest)"; } } sub AUTOLOAD { my ($this) = @_; return $this; } sub _op_string { my ($this) = @_; return "string"; } # ======================================================================== ====== package main; my $d = Dummy->new(); use Time::HiRes qw( usleep ualarm gettimeofday tv_interval time ); foreach my $m (qw/data1 data2/) { my $start = time; for my $count (0..9999) { foreach my $id (@$list) { my $str = $d->$m($id); die "Failed data" unless ("" . $str eq "string"); } } my $end = time; print "Run Time $m = " . ($end - $start) . "\n"; } Running this I get between 3 and 5 times speed increase using data1 - the iterative approach, rather than the eval. Something to note. (output of run of 100,000 times - 10 times greater than example above). $ perl mdo_perf1 Run Time data1 = 42.5552821159363 Run Time data2 = 203.071125030518 Scott - --- Scott Penrose Digital Dimensions scott@dd.com.au http://www.dd.com.au/ - -- Scott Penrose VP in charge of Pancakes http://linux.dd.com.au/ scottp@dd.com.au Dismaimer: If you receive this email in error - please eat it immediately to prevent it from falling into the wrong hands. Please do not send me Word or PowerPoint attachments. See http://www.fsf.org/philosophy/no-word-attachments.html -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (Darwin) iD8DBQFAi6bpDCFCcmAm26YRAjNUAJsHfkVwcLEAGj0nFG3axsIQb89FoQCeN/SC kclY7y34Jd2kymXpZUKgp34= =A2Yw -----END PGP SIGNATURE----- From TINUFKE at yahoo.com Sun Apr 25 09:32:14 2004 From: TINUFKE at yahoo.com (Williams Frye) Date: Wed Aug 4 00:03:23 2004 Subject: Fw: shed while you sleeep.. Message-ID: An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/melbourne-pm/attachments/20040425/db55632f/attachment.htm From TTGFO at msn.com Mon Apr 26 01:51:46 2004 From: TTGFO at msn.com (Mitchel Belanger) Date: Wed Aug 4 00:03:23 2004 Subject: Fw: yes its true.. Message-ID: An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/melbourne-pm/attachments/20040425/8990e016/attachment.htm From HOMEPZO at yahoo.com Mon Apr 26 11:59:54 2004 From: HOMEPZO at yahoo.com (Alvin Mueller) Date: Wed Aug 4 00:03:23 2004 Subject: Fw: seize the m0mment.. Message-ID: An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/melbourne-pm/attachments/20040426/29b52be5/attachment.htm From stas at stason.org Mon Apr 26 15:37:48 2004 From: stas at stason.org (Stas Bekman) Date: Wed Aug 4 00:03:23 2004 Subject: How fast is an EVAL String In-Reply-To: <46224F68-96AF-11D8-A10F-003065B58CF8@dd.com.au> References: <46224F68-96AF-11D8-A10F-003065B58CF8@dd.com.au> Message-ID: <408D731C.5020200@stason.org> Scott Penrose wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi Dudes. > > On my home machine, I have found that a method ('data') in our MI::MDO > is the largest used piece of code on library (6%) so I had a look at > it. Basically it takes in a key (eg: DC.Title), uses a regular > expression to turn '.' into '->' and then uses an eval string to turn > that into the calls on the methods. I wrote a small test case (next > bit) which shows a comparison between using an eval and iterating > through the list... [...] > package main; > > my $d = Dummy->new(); > > use Time::HiRes qw( usleep ualarm gettimeofday tv_interval time ); > > foreach my $m (qw/data1 data2/) { > my $start = time; > for my $count (0..9999) { > foreach my $id (@$list) { > my $str = $d->$m($id); > die "Failed data" unless ("" . $str eq "string"); > } > } > my $end = time; > print "Run Time $m = " . ($end - $start) . "\n"; > } > > > Running this I get between 3 and 5 times speed increase using data1 - > the iterative approach, rather than the eval. > > Something to note. > > (output of run of 100,000 times - 10 times greater than example above). > > $ perl mdo_perf1 > Run Time data1 = 42.5552821159363 > Run Time data2 = 203.071125030518 That's a very unreliable way to run benchmarks, Scott. The results may vary greatly if the system load varies during the execution. It doesn't change the results much, but you better use Benchmark for that: package main; use strict; use warnings; use Benchmark; my $d = Dummy->new(); timethese(1000, { data1 => sub { run("data1") }, data2 => sub { run("data2") }, }); sub run { my $m = shift; foreach my $id (@$list) { my $str = $d->$m($id); die "Failed data" unless ($str||'' eq "string"); } } the methods data1 and data2 are also unfair, the second one sets: local $SIG{__DIE__} = sub { die $_[0]; }; while the first one does not. In any case, this doesn't significantly change the point that you were trying to make :) __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:stas@stason.org http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com From joshua at roughtrade.net Mon Apr 26 17:31:08 2004 From: joshua at roughtrade.net (Joshua Goodall) Date: Wed Aug 4 00:03:23 2004 Subject: How fast is an EVAL String In-Reply-To: <408D731C.5020200@stason.org> References: <46224F68-96AF-11D8-A10F-003065B58CF8@dd.com.au> <408D731C.5020200@stason.org> Message-ID: <20040426223108.GJ17516@roughtrade.net> On Mon, Apr 26, 2004 at 01:37:48PM -0700, Stas Bekman wrote: > That's a very unreliable way to run benchmarks, Scott. The results may vary > greatly if the system load varies during the execution. It doesn't change > the results much, but you better use Benchmark for that: [snip] If accuracy is desired, one should also run with an empty work function to determine the loop overhead, then subtract it from the real work measurements. cheers J -- Joshua Goodall "as modern as tomorrow afternoon" joshua@roughtrade.net - FW109 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://mail.pm.org/archives/melbourne-pm/attachments/20040427/02c65d08/attachment.bin From scottp at dd.com.au Mon Apr 26 18:41:05 2004 From: scottp at dd.com.au (Scott Penrose) Date: Wed Aug 4 00:03:23 2004 Subject: How fast is an EVAL String In-Reply-To: <408D731C.5020200@stason.org> References: <46224F68-96AF-11D8-A10F-003065B58CF8@dd.com.au> <408D731C.5020200@stason.org> Message-ID: <2F2076B5-97DB-11D8-A10F-003065B58CF8@dd.com.au> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > That's a very unreliable way to run benchmarks, Scott. The results may > vary greatly if the system load varies during the execution. It > doesn't change the results much, but you better use Benchmark for > that: Absolutely. I also ran via profile as well, which is fairly accurate. I did not use Benchmark on this one but should have. One thing I have learnt after lots of performance tuning and optimisation is that benchmark and profiling only give you clues, and the only thing that matters is how fast the code runs on the actual boxes. See one change may cause more load on the system because it goes into swap etc. this should be included in the measurements. Of course using my own argument, even this test means nothing until I put it in place with all the other code and run a typical hours results through the system. The problem with most benchmarking and profiling is learning where to work on. And unfortunately this can't be done because doing the profiling and benchmarking changes exactly that - the system you are watching changes. You will notice that my code included a lot of unnecessary code if all I wanted to do was compare "eval" with "iterative" - but it was more real world. In place with the whole system I have profiled it again, and with the same data running through the system it performance about twice as fast with the iterative method. Either way you are absolutely right that on testing this type of code Benchmark is an essential tool that should be used. Thanks heaps ! Scott > > package main; > > use strict; > use warnings; > > use Benchmark; > > my $d = Dummy->new(); > > timethese(1000, > { > data1 => sub { run("data1") }, > data2 => sub { run("data2") }, > }); > > > sub run { > my $m = shift; > foreach my $id (@$list) { > my $str = $d->$m($id); > die "Failed data" unless ($str||'' eq "string"); > } > } > > the methods data1 and data2 are also unfair, the second one sets: > > local $SIG{__DIE__} = sub { die $_[0]; }; > > while the first one does not. > > In any case, this doesn't significantly change the point that you were > trying to make :) > > __________________________________________________________________ > Stas Bekman JAm_pH ------> Just Another mod_perl Hacker > http://stason.org/ mod_perl Guide ---> http://perl.apache.org > mailto:stas@stason.org http://use.perl.org http://apacheweek.com > http://modperlbook.org http://apache.org http://ticketmaster.com > > > - -- Scott Penrose Anthropomorphic Personification Expert http://search.cpan.org/search?author=SCOTT scott@cpan.org Dismaimer: While every attempt has been made to make sure that this email only contains zeros and ones, there has been no effort made to guarantee the quantity or the order. Please do not send me Word or PowerPoint attachments. See http://www.fsf.org/philosophy/no-word-attachments.html -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (Darwin) iD8DBQFAjZ4TDCFCcmAm26YRAkdvAJ972uEKTco3nVIhDOIDlkMzvkwMOwCglCDM uvXYOVOG0BOJ2Rbb6o4g5/4= =Ui/W -----END PGP SIGNATURE----- From stas at stason.org Mon Apr 26 20:12:45 2004 From: stas at stason.org (Stas Bekman) Date: Wed Aug 4 00:03:23 2004 Subject: How fast is an EVAL String In-Reply-To: <2F2076B5-97DB-11D8-A10F-003065B58CF8@dd.com.au> References: <46224F68-96AF-11D8-A10F-003065B58CF8@dd.com.au> <408D731C.5020200@stason.org> <2F2076B5-97DB-11D8-A10F-003065B58CF8@dd.com.au> Message-ID: <408DB38D.8010008@stason.org> Scott Penrose wrote: [...] > The problem with most benchmarking and profiling is learning where to > work on. And unfortunately this can't be done because doing the > profiling and benchmarking changes exactly that - the system you are > watching changes. You will notice that my code included a lot of > unnecessary code if all I wanted to do was compare "eval" with > "iterative" - but it was more real world. Sure, all I was saying that if your original test's data2 was running under low load and you had a load spike during the data1 test, you'd have gotten a completely wrong conclusion (i.e. eval faster than iteration). But sure, you need to test the real system too. We agree on that :) __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:stas@stason.org http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com From leif.eriksen at hpa.com.au Mon Apr 26 20:46:17 2004 From: leif.eriksen at hpa.com.au (leif.eriksen@hpa.com.au) Date: Wed Aug 4 00:03:23 2004 Subject: How fast is an EVAL String Message-ID: Just for completeness, I sent Scott a reference to the different ways Perl processes eval "string"; And eval { block } (from perldoc -f eval) eval EXPR eval BLOCK In the first form, the return value of EXPR is parsed and exe- cuted as if it were a little Perl program. The value of the expression (which is itself determined within scalar context) is first parsed, and if there weren?t any errors, executed in the lexical context of the current Perl program, so that any variable settings or subroutine and format definitions remain afterwards. Note that the value is parsed every time the eval executes. If EXPR is omitted, evaluates $_. This form is typ- ically used to delay parsing and subsequent execution of the text of EXPR until run time. In the second form, the code within the BLOCK is parsed only once--at the same time the code surrounding the eval itself was parsed--and executed within the context of the current Perl program. This form is typically used to trap exceptions more efficiently than the first (see below), while also providing the benefit of checking the code within BLOCK at compile time. Which one you actually need depends on your requirements, but if eval BLOCK works for you, use that. Leif Eriksen Snr Developer ph +61 3 9217 5545 leif.eriksen@hpa.com.au http://www.hpa.com.au ********************************************************************** IMPORTANT The contents of this e-mail and its attachments are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you received this e-mail in error, please notify the HPA Postmaster, postmaster@hpa.com.au, then delete the e-mail. This footnote also confirms that this e-mail message has been swept for the presence of computer viruses by MimeSweeper. Before opening or using any attachments, check them for viruses and defects. Our liability is limited to resupplying any affected attachments. HPA collects personal information to provide and market our services. For more information about use, disclosure and access see our Privacy Policy at www.hpa.com.au ********************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/melbourne-pm/attachments/20040427/58a060ca/attachment.htm From leif.eriksen at hpa.com.au Mon Apr 26 20:46:17 2004 From: leif.eriksen at hpa.com.au (leif.eriksen@hpa.com.au) Date: Wed Aug 4 00:03:23 2004 Subject: How fast is an EVAL String Message-ID: Just for completeness, I sent Scott a reference to the different ways Perl processes eval "string"; And eval { block } (from perldoc -f eval) eval EXPR eval BLOCK In the first form, the return value of EXPR is parsed and exe- cuted as if it were a little Perl program. The value of the expression (which is itself determined within scalar context) is first parsed, and if there weren?t any errors, executed in the lexical context of the current Perl program, so that any variable settings or subroutine and format definitions remain afterwards. Note that the value is parsed every time the eval executes. If EXPR is omitted, evaluates $_. This form is typ- ically used to delay parsing and subsequent execution of the text of EXPR until run time. In the second form, the code within the BLOCK is parsed only once--at the same time the code surrounding the eval itself was parsed--and executed within the context of the current Perl program. This form is typically used to trap exceptions more efficiently than the first (see below), while also providing the benefit of checking the code within BLOCK at compile time. Which one you actually need depends on your requirements, but if eval BLOCK works for you, use that. Leif Eriksen Snr Developer ph +61 3 9217 5545 leif.eriksen@hpa.com.au http://www.hpa.com.au ********************************************************************** IMPORTANT The contents of this e-mail and its attachments are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you received this e-mail in error, please notify the HPA Postmaster, postmaster@hpa.com.au, then delete the e-mail. This footnote also confirms that this e-mail message has been swept for the presence of computer viruses by MimeSweeper. Before opening or using any attachments, check them for viruses and defects. Our liability is limited to resupplying any affected attachments. HPA collects personal information to provide and market our services. For more information about use, disclosure and access see our Privacy Policy at www.hpa.com.au ********************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/melbourne-pm/attachments/20040427/58a060ca/attachment-0001.htm From ldfqjb at hotmail.com Tue Apr 27 00:37:45 2004 From: ldfqjb at hotmail.com (Hilario Lin) Date: Wed Aug 4 00:03:23 2004 Subject: Fw: shed while you sleeep.. Message-ID: An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/melbourne-pm/attachments/20040427/793d767a/attachment.htm From scottp at dd.com.au Tue Apr 27 00:32:03 2004 From: scottp at dd.com.au (Scott Penrose) Date: Wed Aug 4 00:03:23 2004 Subject: How fast is an EVAL String In-Reply-To: References: Message-ID: <36BE654E-980C-11D8-A10F-003065B58CF8@dd.com.au> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 27/04/2004, at 11:46 AM, leif.eriksen@hpa.com.au wrote: > Just for completeness, I sent Scott a reference to the different ways > Perl processes > > eval "string"; > > And > > eval { block } > (from perldoc -f eval) eval {block} has almost no impact on performance over {block}, which is great. But this does not apply to my example - you can take a string "a->b->c" and use eval {} on that string to get the cascaded methods. You must use eval string. Have a look at the list being provided into the method. The whole purpose of the ->data1|2 method is to replace this string with a set of methods called one after another. This can be done with recursion, iteration or a string eval. I think that if we had tail recursion that recursion would probably be the fastest, but since we don't then iteration seems now to be the fastest. Scott - -- Scott Penrose Anthropomorphic Personification Expert http://search.cpan.org/search?author=SCOTT scott@cpan.org Dismaimer: While every attempt has been made to make sure that this email only contains zeros and ones, there has been no effort made to guarantee the quantity or the order. Please do not send me Word or PowerPoint attachments. See http://www.fsf.org/philosophy/no-word-attachments.html -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (Darwin) iD8DBQFAjfBTDCFCcmAm26YRApooAJwIECYfaWuxASoyoSeh06Dw/jeD1ACfULmO 7LKco30Kw8Aaps58eM/UZEw= =Fbkm -----END PGP SIGNATURE----- From alfiejohn at acm.org Tue Apr 27 00:40:26 2004 From: alfiejohn at acm.org (Alfie John) Date: Wed Aug 4 00:03:23 2004 Subject: HGH spam In-Reply-To: References: Message-ID: <1083044426.18012.11.camel@localhost> Hi everybody, I think it might be time for MPM's mail server to block any email containing the words "Shop here for HGH". I seem to be getting more of these per day, than any other email. Although, I really don't mind reading emails all day since I don't need a job anymore. I just found out that I inherited money from my long lost uncle who was also the King of Nigeria. int 20h; Alfie John From wigs at stirfried.org Tue Apr 27 02:43:52 2004 From: wigs at stirfried.org (Aaron Wigley) Date: Wed Aug 4 00:03:23 2004 Subject: How fast is an EVAL String In-Reply-To: <36BE654E-980C-11D8-A10F-003065B58CF8@dd.com.au>; from scottp@dd.com.au on Tue, Apr 27, 2004 at 03:32:03PM +1000 References: <36BE654E-980C-11D8-A10F-003065B58CF8@dd.com.au> Message-ID: <20040427174352.A16067@feathers.stirfried.org> On Tue, Apr 27, 2004 at 03:32:03PM +1000, Scott Penrose wrote: > The whole purpose of the ->data1|2 method is to replace this > string with a set of methods called one after another. This can be done > with recursion, iteration or a string eval. I think that if we had tail > recursion that recursion would probably be the fastest, but since we > don't then iteration seems now to be the fastest. Alternatively, if it is a repeated-enough occurance, you could compile the string into a coderef representing the cascaded method calls required. $str = 'planet.country.state.suburb'; $str =~ s/\./->/g; $accessor = eval q/ sub { return \$_[0]->$str; }; /; $mutator = eval q/ sub { my (\$self, \@args) = \@_; \$_[0]->$str(\@args); }; /; $v = &$accessor(); &$mutator('melbourne'); Aaron From wigs at stirfried.org Tue Apr 27 02:43:52 2004 From: wigs at stirfried.org (Aaron Wigley) Date: Wed Aug 4 00:03:23 2004 Subject: How fast is an EVAL String In-Reply-To: <36BE654E-980C-11D8-A10F-003065B58CF8@dd.com.au>; from scottp@dd.com.au on Tue, Apr 27, 2004 at 03:32:03PM +1000 References: <36BE654E-980C-11D8-A10F-003065B58CF8@dd.com.au> Message-ID: <20040427174352.A16067@feathers.stirfried.org> On Tue, Apr 27, 2004 at 03:32:03PM +1000, Scott Penrose wrote: > The whole purpose of the ->data1|2 method is to replace this > string with a set of methods called one after another. This can be done > with recursion, iteration or a string eval. I think that if we had tail > recursion that recursion would probably be the fastest, but since we > don't then iteration seems now to be the fastest. Alternatively, if it is a repeated-enough occurance, you could compile the string into a coderef representing the cascaded method calls required. $str = 'planet.country.state.suburb'; $str =~ s/\./->/g; $accessor = eval q/ sub { return \$_[0]->$str; }; /; $mutator = eval q/ sub { my (\$self, \@args) = \@_; \$_[0]->$str(\@args); }; /; $v = &$accessor(); &$mutator('melbourne'); Aaron From wigs at stirfried.org Tue Apr 27 02:43:52 2004 From: wigs at stirfried.org (Aaron Wigley) Date: Wed Aug 4 00:03:23 2004 Subject: How fast is an EVAL String In-Reply-To: <36BE654E-980C-11D8-A10F-003065B58CF8@dd.com.au>; from scottp@dd.com.au on Tue, Apr 27, 2004 at 03:32:03PM +1000 References: <36BE654E-980C-11D8-A10F-003065B58CF8@dd.com.au> Message-ID: <20040427174352.A16067@feathers.stirfried.org> On Tue, Apr 27, 2004 at 03:32:03PM +1000, Scott Penrose wrote: > The whole purpose of the ->data1|2 method is to replace this > string with a set of methods called one after another. This can be done > with recursion, iteration or a string eval. I think that if we had tail > recursion that recursion would probably be the fastest, but since we > don't then iteration seems now to be the fastest. Alternatively, if it is a repeated-enough occurance, you could compile the string into a coderef representing the cascaded method calls required. $str = 'planet.country.state.suburb'; $str =~ s/\./->/g; $accessor = eval q/ sub { return \$_[0]->$str; }; /; $mutator = eval q/ sub { my (\$self, \@args) = \@_; \$_[0]->$str(\@args); }; /; $v = &$accessor(); &$mutator('melbourne'); Aaron From wigs at stirfried.org Tue Apr 27 02:43:52 2004 From: wigs at stirfried.org (Aaron Wigley) Date: Wed Aug 4 00:03:23 2004 Subject: How fast is an EVAL String In-Reply-To: <36BE654E-980C-11D8-A10F-003065B58CF8@dd.com.au>; from scottp@dd.com.au on Tue, Apr 27, 2004 at 03:32:03PM +1000 References: <36BE654E-980C-11D8-A10F-003065B58CF8@dd.com.au> Message-ID: <20040427174352.A16067@feathers.stirfried.org> On Tue, Apr 27, 2004 at 03:32:03PM +1000, Scott Penrose wrote: > The whole purpose of the ->data1|2 method is to replace this > string with a set of methods called one after another. This can be done > with recursion, iteration or a string eval. I think that if we had tail > recursion that recursion would probably be the fastest, but since we > don't then iteration seems now to be the fastest. Alternatively, if it is a repeated-enough occurance, you could compile the string into a coderef representing the cascaded method calls required. $str = 'planet.country.state.suburb'; $str =~ s/\./->/g; $accessor = eval q/ sub { return \$_[0]->$str; }; /; $mutator = eval q/ sub { my (\$self, \@args) = \@_; \$_[0]->$str(\@args); }; /; $v = &$accessor(); &$mutator('melbourne'); Aaron From LMZULK at msn.com Tue Apr 27 06:27:44 2004 From: LMZULK at msn.com (Rigoberto Byrd) Date: Wed Aug 4 00:03:23 2004 Subject: FW: H.G.H actually w0rks.. Message-ID: An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/melbourne-pm/attachments/20040427/b574caa8/attachment.htm From pjf at perltraining.com.au Tue Apr 27 19:56:04 2004 From: pjf at perltraining.com.au (Paul Fenwick) Date: Wed Aug 4 00:03:23 2004 Subject: Speaker Availability Message-ID: <408F0124.80608@perltraining.com.au> G'day Melb.PM, I'm scheduled to present another talk in two weeks time on Perl Security, this time discussing some interesting aspects of privileges in Perl, and various ways of dropping or sandboxing privileges. Unfortunately I've hit a small snag. I've got a client in New Zealand who has booked me for four days of training, right over the top of the regular Melb.PM meeting. I don't believe that I can fulfill this commitment and still make it to Melb.PM. ;( However, word on the street is that Brad is preparing an engrossing talk prepared on Pod::Usage, and could be convinced to present this at the next meeting. :) Cheers, Paul -- Paul Fenwick | http://perltraining.com.au/ Director of Training | Ph: +61 3 9354 6001 Perl Training Australia | Fax: +61 3 9354 2681 From xsurm at yahoo.com Tue Apr 27 22:01:28 2004 From: xsurm at yahoo.com (Aida Summers) Date: Wed Aug 4 00:03:23 2004 Subject: Fw: seize the m0mment.. Message-ID: An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/melbourne-pm/attachments/20040427/d9d58082/attachment.htm From wangqin2005 at tiscali.co.uk Wed Apr 28 20:38:15 2004 From: wangqin2005 at tiscali.co.uk (wangqin2005@tiscali.co.uk) Date: Wed Aug 4 00:03:23 2004 Subject: PLEASE ASSIST Message-ID: <408BBDAE0000F317@mk-cpfrontend-2.mail.uk.tiscali.com> SINCERE ASSOCIATE REQUIRED MR. WANG QIN HANG SENG BANK LTD. DES VOEUX RD. BRANCH, CENTRAL HONG KONG, HONK KONG. Dear Sir, Let me start by introducing myself. I am Mr. Wang Qin credit officer of the Hang Seng Bank Ltd. I have a concealed business suggestion for you. Before the U.S and Iraqi war our client General. Ibrahim Moussa who was with the Iraqi forces and also business man made a numbered fixed deposit for 18 calendar months, with a value of Twenty millions Five Hundred Thousand United State Dollars only in my branch. Upon maturity several notice was sent to him, even during the war early this year. Again after the war another notification was sent and still no response came from him.We later find out that the General and his family had been killed during the war in bomb blast that hit their home. After further investigation it was also discovered that Gen. Ibrahim Moussa did not declare any next of kin in his official papers including the paper work of his bank deposit. And he also confided in me the last time he was at my office that no one except me knew of his deposit in my bank. So, Twenty millions Five Hundred Thousand United State Dollars is still lying in my bank and no one will ever come forward to claim it. What bothers me most is that according to the to the laws of my country at the expiration 3 years the funds will revert to the ownership of the Hong Kong Government if nobody applies to claim the funds. Against this backdrop, my suggestion to you is that I will like you as a foreigner to stand as the next of kin to Gen. Ibrahim Moussa so that you will be able to receive his funds. WHAT IS TO BE DONE: I want you to know that I have had everything planned out so that we shall come out successful. I have contacted an attorney that will prepare the necessary document that will back you up as the next of kin to Gen. Ibrahim Moussa, all that is required from you at this stage is for you to provide me with your Full Names and Address so that the attorney can commence his job. After you have been made the next of kin, the attorney will also fill in for claims on your behalf and secure the necessary approval and letter of probate in your favor for the move of the funds to an account that will be provided by you. There is no risk involved at all in the matter as we are going adopt a legalized method and the attorney will prepare all the necessary documents. Please endeavor to observe utmost discretion in all matters concerning this issue.Once the funds have been transferred to your nominated bank account we shall share in the ratio of 70% for me, 25% for you and 5% for any expenses incurred during the course of this operation. Should you be interested please send me your full names and current residential address for easy communication and I will provide you with more details of this operation. Your earliest response to this letter will be appreciated. Kind Regards Mr. Wang Qin __________________________________________________ Broadband from an unbeatable ?15.99! http://www.tiscali.co.uk/products/broadband/home.html?code=SM-NL-11AM From aioixfdkd at hotmail.com Thu Apr 29 20:44:25 2004 From: aioixfdkd at hotmail.com (Dario Overton) Date: Wed Aug 4 00:03:23 2004 Subject: 5.9 Cent long distance conference calls Message-ID: An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/melbourne-pm/attachments/20040430/fe75daea/attachment.htm