Re: [SLUG] Slides for my Beyond C, C++, Perl and Python talk
On 04/07/2004, at 2:15 PM, Rick Welykochy wrote: I've put up slides for my Beyond C, C++, Perl and Python talk at: http://www.algorithm.com.au/mt/archives/talks/ beyond_c_c_perl_and_python.html I'm happy to discuss any aspects of it on-list or off-list. I was actually intending to write up some additional references and discussion on that page, especially for topics that I wanted to cover but didn't have time for (e.g. garbage collection and meta-programming), but I figured that if people are actually interested in all that, they can ask me and I'll add to the page later :). Simply fascinating. As a programmer who's been through C then C++ (still a fave!) then on through scriptors like perl, I found the paper very enlightening. I've dabbled in Haskell and found out my onw programming limitations ... need more work in the ML/functional area. I could probably do with a good dose of Lisp as well. Thanks for the feedback Rick. Unfortunately the presentation didn't cover anywhere near as much as I really wanted to cover: I basically spent the entirety of the talk going on about type systems, which wasn't my original intent, but I think it worked out OK. I guess I can cover everything else in a future talk, if people are so inclined ... Any references you have on these topics most appreciated. References, hmmm ... a big, big problem with Haskell is that most of the references you can find are papers; not books or easy-to-learn tutorials. That wouldn't be too bad, but the papers are usually targeted at people who already know the language: a lot of Haskell development right now is involved with advancing the language, and is no use to the beginner and is completely overwhelming. I've found that any introductory books on Haskell are usually targeted at somebody who's completely new to programming, or assumes that you have a functional programming mindset already. (Keep in mind that a lot of the Haskell language designers and implemenators are _really_ smart, and they tend to live in ivory towers rather than try to figure out what the masses are up to :). I don't think the language is actually that hard to learn, but I haven't yet found a book or tutorial that presents the ideas in a digestible way to someone who's new to the language, but is already an experienced programmer using imperative or object-oriented languages. That said, probably the best bet for learning Haskell is Hal Daume's Yet Another Haskell Tutorial: http://www.isi.edu/~hdaume/htut/ I find that the start's pretty slow, and presents things in an order I wouldn't choose if I were to help someone understand the language, but lots of other people have liked it, so hopefully you might too. Another tutorial you may find useful is Tom Moertel's Haskell for Perl Hackers talk: http://community.moertel.com/ss/space/Talk+-+Haskell+for+Perl+Hackers Which covers the basics quite well, but unfortunately doesn't have the time to dive into why the basics are the way they are, and IMHO doesn't really whet the appetite for functional programming. e.g. he explains what higher-order functions are and gives an introduction to Haskell's very powerful type classes, but doesn't explain how make programmer better by showing real, concrete advantages over similar ideas in OO languages. Still, it's a good talk, and most likely he couldn't get deeper into those topics because of time constraints. One tutorial I can highly recommend is Merjis's one for learning O'Caml: http://www.merjis.com/developers/ocaml_tutorial/ch1/ which guides you through the language from the viewpoint of someone reasonably familiar with C++, and even goes into fun stuff like walking through an O'Caml compiler's generated assembly code to show you what's happening underneath the hood, and how it can compete so well with imperative languages like C. I don't know Lisp very well apart from it has macros, and macros are schweeet, so I can't really recommend anything to do with that. Lisp/Scheme are on my list of things to learn more thoroughly by the end of the year :). P.S. I don't mean to sound like an armchair critic and throw stones at the functional language community for the lack of tutorials, but it _is_ hard to get into it if you're already an experienced programmer and don't have three months to learn slowly by osmosis. For me, the reward was more than worth it: hopefully I'll sit down some time and write a tutorial of my own which everybody else can criticise ;). -- % Andre Pang : trust.in.love.to.save -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Re: debian java virtual machine
Just for fun, I'd like to install a java runtime environment. I'm a hobbyist rather than a technical user, but I run Debian Unstable. So far I'm not having any luck. I've downloaded the Sun self-extracing binary from: http://www.java.com/en/download/help/linux_install.jsp Are you sure that is the right file name? I download files ending in .bin: /usr/local/j2re-1.4.1-01-linux-i586-gcc3.2.bin and unpacked it into: /usr/lib/j2re1.4.2_04/ Have I used the right directory? Anywhere will do. But /usr/local might be better than /usr/lib I'm following instructions from the Mozilla site. The Debian GNU/Linux Java FAQ mentions unpacking in /usr/local with links made in /usr/local/bin. I know how to make a symbolic link, but I don't know what to link. http://www.debian.org/doc/manuals/debian-java-faq/ch7.html I link /usr/local/jre... to /usr/local/jdk so that when I upgrade I just reset the link to the new version rather than having to modify paths I've added /usr/lib/j2re1.4.2_04/bin to my $PATH: echo $PATH /usr/lib/j2re1.4.2_04/bin:~/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X 11:/usr/games Should I set that new path in ~/.bash_profile, or in /etc/profile? Do you want it just for your use (first choice) or for any user e.g. root (second choice) I've also made a symbolic link from ~/firebird/plugins: lrwxrwxrwx1 mark 66 Jul 3 09:50 libjavaplugin_oji.so - /usr/lib/j2re1.4.2_04/plugin/i386/ns610-gcc32/libjavaplugin_oji.so* -rwx--x--x1 mark 19K Jun 15 18:21 libnullplugin.so* When I open Firefox and type about:plugins, firefox tells me that the java plugin is in place. Alas, when I visit the java plugin test page, http://www.java.com/en/download/help/testvm.jsp Firefox crashes immediately. Is this a Firefox bug, or do I need to do more to configure the JRE? Some people have had to try a variety of plugins with different browsers to get one that works. How about mozilla, konqueror? Mine is working okay with mozilla When I try to run a .jar file, I get the following error: Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object When Java boots it tries to find its bootstrap files such as /usr/local/jdk/jre/rt.jar. To do this, it needs to work out its home directory. It makes lots of guesses, but sometimes fails. You can/could help by setting JAVA_HOME This suggests that I have some more configuring to do! Thanks in advance, all advice gratefully received. Good luck Jan -- Jan Newmarch, School of Network Computing Monash University Email: [EMAIL PROTECTED] WWW: http://jan.netcomp.monash.edu.au Tel: +61 3 9904 4249, Fax: +61 3 9904 4124 (ESOS: Monash Provider No. 8C) If Pacman had affected us as kids, we'd be running around in dark rooms, munching pills and listening to repetitive music (Marcus Brigstocke) -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Slides for my Beyond C, C++, Perl and Python talk
On Sun, 4 Jul 2004 18:24:57 +1000 André Pang [EMAIL PROTECTED] wrote: which guides you through the language from the viewpoint of someone reasonably familiar with C++, and even goes into fun stuff like walking through an O'Caml compiler's generated assembly code to show you what's Does O'Caml compile to a native binary or are you talking about the assembly language for some sort of O'caml VM? Erik -- +---+ Erik de Castro Lopo [EMAIL PROTECTED] (Yes it's valid) +---+ The lusers I know are so clueless, that if they were dipped in clue musk and dropped in the middle of pack of horny clues, on clue prom night during clue happy hour, they still couldn't get a clue. --Michael Girdwood, in the monastery -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Re: Slides for my Beyond C, C++, Perl and Python talk
On 04/07/2004, at 6:40 PM, Erik de Castro Lopo wrote: On Sun, 4 Jul 2004 18:24:57 +1000 André Pang [EMAIL PROTECTED] wrote: which guides you through the language from the viewpoint of someone reasonably familiar with C++, and even goes into fun stuff like walking through an O'Caml compiler's generated assembly code to show you what's Does O'Caml compile to a native binary or are you talking about the assembly language for some sort of O'caml VM? O'Caml actually does both. You can compile to a portable bytecode format if you want to (like Java/Perl/Python) with ocamlc, or you can compile to native code with ocamlopt (but only on platforms where ocamlopt is available: I think x86, PPC, and Alpha). -- % Andre Pang : trust.in.love.to.save -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Re: Slides for my Beyond C, C++, Perl and Python talk
On Sun, 4 Jul 2004 19:45:31 +1000 André Pang [EMAIL PROTECTED] wrote: O'Caml actually does both. You can compile to a portable bytecode format if you want to (like Java/Perl/Python) with ocamlc, or you can compile to native code with ocamlopt (but only on platforms where ocamlopt is available: I think x86, PPC, and Alpha). So which one is it that was winning the (so called) language speed shootouts? Erik -- +---+ Erik de Castro Lopo [EMAIL PROTECTED] (Yes it's valid) +---+ Seen on comp.lang.python: Q : If someone has the code in python for a buffer overflow, please post it. A : Python does not support buffer overflows, sorry. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Re: Slides for my Beyond C, C++, Perl and Python talk
On 04/07/2004, at 7:49 PM, Erik de Castro Lopo wrote: On Sun, 4 Jul 2004 19:45:31 +1000 André Pang [EMAIL PROTECTED] wrote: O'Caml actually does both. You can compile to a portable bytecode format if you want to (like Java/Perl/Python) with ocamlc, or you can compile to native code with ocamlopt (but only on platforms where ocamlopt is available: I think x86, PPC, and Alpha). So which one is it that was winning the (so called) language speed shootouts? According to http://shootout.alioth.debian.org/craps.php, O'Caml optimised to native code placed 4th (score of 40.9063, implementation name is ocaml), and O'Caml compiled to bytecode placed 16th (score of 16.2858, implementation name is ocamlb). Note that that's a pure speed comparison: no memory usage or lines of code factored in. One interesting thing I didn't expect is that Clean, a very close relative of Haskell which implements the linear types thing I touched on briefly in my talk, is quite fast (placed 5th, just after O'Caml): I guess it goes to show that even a purely functional language (which O'Caml isn't) can be pretty damn quick. I'm fairly convinced that linear types alone account for a huge part of that speed increase vs Haskell's performance given in the ghc benchmarks; it really makes me wish linear types were implemented in a Haskell compiler. There's also been quite a few posts to the Clean mailing lists in the past week which point to some patches to Clean that gives greatly improved performance in some tests; e.g. they claim a 8x speed-up on the Reverse File test after enabling that buffering thing on stdio :-). For what it's worth, I think that language shootouts are a load of crap: see http://xrl.us/cada on a post I made about why. -- % Andre Pang : trust.in.love.to.save -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Slides for my Beyond C, C++, Perl and Python talk
André Pang wrote: On 04/07/2004, at 2:15 PM, Rick Welykochy wrote: I've put up slides for my Beyond C, C++, Perl and Python talk at: http://www.algorithm.com.au/mt/archives/talks/ beyond_c_c_perl_and_python.html I'm happy to discuss any aspects of it on-list or off-list. I was actually intending to write up some additional references and discussion on that page, especially for topics that I wanted to cover but didn't have time for (e.g. garbage collection and meta-programming), but I figured that if people are actually interested in all that, they can ask me and I'll add to the page later :). Simply fascinating. As a programmer who's been through C then C++ (still a fave!) then on through scriptors like perl, I found the paper very enlightening. I've dabbled in Haskell and found out my onw programming limitations ... need more work in the ML/functional area. I could probably do with a good dose of Lisp as well. Thanks for the feedback Rick. Unfortunately the presentation didn't cover anywhere near as much as I really wanted to cover: I basically spent the entirety of the talk going on about type systems, which wasn't my original intent, but I think it worked out OK. I guess I can cover everything else in a future talk, if people are so inclined ... Any references you have on these topics most appreciated. References, hmmm ... a big, big problem with Haskell is that most of the references you can find are papers; not books or easy-to-learn tutorials. That wouldn't be too bad, but the papers are usually targeted at people who already know the language: a lot of Haskell development right now is involved with advancing the language, and is no use to the beginner and is completely overwhelming. I've found that any introductory books on Haskell are usually targeted at somebody who's completely new to programming, or assumes that you have a functional programming mindset already. (Keep in mind that a lot of the Haskell language designers and implemenators are _really_ smart, and they tend to live in ivory towers rather than try to figure out what the masses are up to :). I don't think the language is actually that hard to learn, but I haven't yet found a book or tutorial that presents the ideas in a digestible way to someone who's new to the language, but is already an experienced programmer using imperative or object-oriented languages. That said, probably the best bet for learning Haskell is Hal Daume's Yet Another Haskell Tutorial: http://www.isi.edu/~hdaume/htut/ I find that the start's pretty slow, and presents things in an order I wouldn't choose if I were to help someone understand the language, but lots of other people have liked it, so hopefully you might too. Another tutorial you may find useful is Tom Moertel's Haskell for Perl Hackers talk: http://community.moertel.com/ss/space/Talk+-+Haskell+for+Perl+Hackers Which covers the basics quite well, but unfortunately doesn't have the time to dive into why the basics are the way they are, and IMHO doesn't really whet the appetite for functional programming. e.g. he explains what higher-order functions are and gives an introduction to Haskell's very powerful type classes, but doesn't explain how make programmer better by showing real, concrete advantages over similar ideas in OO languages. Still, it's a good talk, and most likely he couldn't get deeper into those topics because of time constraints. If anyone's brain has survived that lot and is begging for more punishment. =) I have a copy of Haskell - The Craft of Functional Programming, free to good home. http://www.amazon.com/exec/obidos/ASIN/0201342758/103-6795994-6708612 Reply off list if you want it and I'll bring it to the next SLUG meeting. Felix snip -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Slides for my Beyond C, C++, Perl and Python talk
On Sun, 2004-07-04 at 01:55, André Pang wrote: Hi all, I've put up slides for my Beyond C, C++, Perl and Python talk at: http://www.algorithm.com.au/mt/archives/talks/ beyond_c_c_perl_and_python.html I thought that the last meeting was one of the best ever. The meet the people was interesting and brought out info that was totally unexpected and really interesting. The talk by Andre was excellent. It was great for a dedicated geek like me :-) -- Thanks KenF OpenOffice.org developer -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Re: [SLUG-ANNOUNCE] SLUG Monthly Meeting, Friday June 25th
People, Is there an electronic summary of Andre's talk anywhere? Thanks, Phil. On 2004.06.22 13:12, Chris Deigan wrote: When: Friday, June 25th. Where: UTS Broadway, Room 01.04.06 SLUG's Monthly Meeting. Meetings are open to the general public and free of charge. Please note the change of rooms. This month's meeting will be held in room 01.04.06. That is building 1, level 4, room 6. A map of UTS is availible from http://www.uts.edu.au/about/mapsdirections/bway.html. General Talk: Meet the members SLUG invites meeting attendees to stand up and introduce themselves, pinp FOSS projects they're involved in and tell us how they use Linux. Special Interest: Andre Pan - Beyond C, C++, Python and Perl. As a Linux user or developer, you probably know a few programming and scripting languages: shell scripting, Perl perhaps, Python, C or C++, and maybe Java or XSLT. Once you've learnt one systems language or one scripting language, you've learnt them all, right? Especially because of that Turing-complete thing... In this talk, Andre will explore the reasearch amd developments that have happened outside of mainstream programming languages in the past decase, in languages such as Objective-C, Haskell, O'Caml, and Nemerle. The scope of the talk is broad: I'll touch on many topics, such as meta-programming, generics, type systems, and proof-carrying code, without going too in-depth into any of them. (Believe me, you don't want to hear me talk for seventeen hours about type systems.) Most of the topics covered (such as meta-programming) are not language-specific, and can be directly applied to your own work, increasing your own programming expertise and repertoire of techniques. The aim is to make the audience aware of the advanced ideas which have been present in other languages and try to carry over the same ideas in your current programming environment, or maybe even pick one of the other languages mentioned and explore how you can use them as a tool in your daily tasks. If you've ever thought there must be a better way as the Python script or C program you wrote did the wrong thing again, you're right -- come to this talk to find out how! :) SLUGlets will be held in room 02.04.10 (Building 2, Level 4, Room 10) Quick talks and discussion of Linux and Free Software. Dinner Dinner will be held at Spice Boys (Indian) at $20 per head. 6:30pm: Doors Open 6:45pm: The Usual Suspects QA - Introduction to SLUG + What has Linux done for/to me lately? + SLUG News Discussion + Quick Meeting Survey. 7:00pm: General Talk Meet the members of SLUG. 8:00pm: Break Refreshments in the foyer, for a small covering charge. 8:20pm: Split into two groups for: Special Interest Talk: Andre Pang - Beyond C, C++, Python, and Perl SLUGlets: Quick talks and discussion of Linux and Free Software. 9:30pm: Dinner Dinner at Spice Boys (Indian), $20 per head. -- SLUG - Sydney Linux User Group Announcements List - http://slug.org.au More info: http://lists.slug.org.au/listinfo/announce -- Philip Rhoades Pricom Pty Limited (ACN 003 252 275 ABN 91 003 252 275) GPO Box 3411 Sydney NSW 2001 Australia Mobile: +61:0411-185-652 Fax: +61:2:8923-5363 E-mail: [EMAIL PROTECTED] -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Re: [SLUG-ANNOUNCE] SLUG Monthly Meeting, Friday June 25th
quote(Philip Rhoades); People, Is there an electronic summary of Andre's talk anywhere? http://www.algorithm.com.au/mt/archives/talks/beyond_c_c_perl_and_python.html#000105 - Chris -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Need to replace htdig for personal use.
on Sat, Jul 03, 2004 at 12:46:52PM +1000, Terry Collins [EMAIL PROTECTED] wrote: The subject is half the story. Basically I want a application that allows me to store, index and search email messages. Lets say something that would handle up to 5gb. Basically, my netscape messages are now 1.5Gb and neither Mozilla or Thunderbird can touch this lot. Sadly, they all barf on the size/number of folders/etc. I have always found mutt to be extreemly good at handling large number of messages. BB -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] mutt and foreign characters
Anyone got any pointers on how to make foreign characters display in mutt? For example when someone sends me email in Spanish, the accented characters appear as question marks: El CMI Valpara?so discutir? I've noticed from the mail agent string that the sender is using Outhouse (don't know if this is relevant): X-Mailer: Microsoft Outlook Express 6.00.2600. I tried these settings, got weird problems in other programs: export LC_CTYPE=es_ES.ISO-8859-1 set meta-flag on# conservar bit 8 en entrada de teclado set output-meta on # conservar bit 8 en salida por terminal set convert-meta off# no convertir secuencias de escape -- Sonia IM: [EMAIL PROTECTED] . 'Autumn of the Patriarch': ...the only difference was the colour of the armoured cars: in Ireland they were khaki; in Ankara and Istanbul they were black. Otherwise the impression from the motorcade was the same: anti-Bush graffiti, lines of armed policemen, roadblocks, and emptied roads. Telegraph.co.uk, 30jun04. See also Gabriel Garcia Marquez. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] mutt and foreign characters
On Mon, Jul 05, 2004, Sonia Hamilton wrote: Anyone got any pointers on how to make foreign characters display in mutt? For example when someone sends me email in Spanish, the accented characters appear as question marks: Your terminal needs to display them correctly. As below you need to set your language locale: I tried these settings, got weird problems in other programs: export LC_CTYPE=es_ES.ISO-8859-1 I think this sets your entire system's language to Spanish. You might want en_AU.ISO-8859-1 instead (both will display all the ISO-8859-1 characters, which include the Spanish accented characters) or possibly en_AU.UTF-8. -Mary -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] mutt and foreign characters
quote who=Sonia Hamilton Anyone got any pointers on how to make foreign characters display in mutt? I suggest using a UTF-8 character set (en_AU.UTF-8) and a terminal such as gnome-terminal that supports UTF-8 really well. - Jeff -- OSCON 2004: Portland OR, USA http://conferences.oreilly.com/oscon/ The only people still using Microsoft IIS are those who don't even know it's there. - Larry Ellison -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Security Policy 101
Sluggers, This was posted to the LINK list during a discussion on Bill Gate's security policy. http://www.kottke.org/04/07/my-new-policy Notified of the security holes Moore and Chisholm exploit, Friendste rep Lisa Kopp insists, We have a policy that we are not being hacked. When I explain that, policy or no, they are being hacked, she says, Security isn't a priority for us. We're mostly focused on making the site go faster. I think Mr Gates should sue Friendster for a violation of Microsoft patent 109230912309230193091230123 regarding security policy! cheers rickw -- _ Rick Welykochy || Praxis Services A: Because we read from top to bottom, left to right. Q: Why should i start my reply below the quoted text? -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] New nVidia Driver Released
Hola muchos, Just incase anyone doesn't know and wants to, the lates nVidia driver with the 4-stacks kernel support is finally released and on the nVidia site. Also support for PCI-Express!! :) :) Enjoy! - Mal -- businessCard Malik Jayawardena Motion Capture Technical Director ANIMAL LOGIC FiLM - e-mail: [EMAIL PROTECTED] ph: +61 2 9383 4800 -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] OT: Perl: CGI.pm
G'day all, Sorry for the OT posting (other mailing list suggestions welcome). Using the Perl CGI module is there a function similar to save_parameters() (save if using OO) that decodes the HTML'ised text? (Ie. Will print [EMAIL PROTECTED] rather than Email=mkraus%40wildtechnology.net) I'm wanting to save the values of forms without having to have separate scripts for different forms, in a human-readable fashion. TIA! Regards, Michael S. E. Kraus Technical Support Specialist Wild Technology Pty Ltd [EMAIL PROTECTED] Direct Line 02-8306-0007 ABN 98 091 470 692 Level 4 Tiara, 306/9 Crystal Street, Waterloo NSW 2017, Australia Telephone 1300-13-9453 | Facsimile 1300-88-9453 http://www.wildtechnology.net blocked::http://www.wildtechnology.net/ The information contained in this email message and any attachments may be confidential information and may also be the subject of client legal - legal professional privilege. If you are not the intended recipient, any use, interference with, disclosure or copying of this material is unauthorised and prohibited. This email and any attachments are also subject to copyright. No part of them may be reproduced, adapted or transmitted without the written permission of the copyright owner. If you have received this email in error, please immediately advise the sender by return email and delete the message from your system. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] OT: Perl: CGI.pm
Hi Michael, On Mon, Jul 05, 2004 at 12:21:09PM +1000, Michael Kraus wrote: Using the Perl CGI module is there a function similar to save_parameters() (save if using OO) that decodes the HTML'ised text? (Ie. Will print [EMAIL PROTECTED] rather than Email=mkraus%40wildtechnology.net) I'm wanting to save the values of forms without having to have separate scripts for different forms, in a human-readable fashion. Not in CGI (I think it only handles html escaping, not unescaping). You probably want URI::Escape's uri_unescape here, since form parameters are URI escaped, not HTML escaped (which is - amp; style - for that you'd use HTML::Entities). Cheers, Gavin -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
RE: [SLUG] OT: Perl: CGI.pm
G'day... Thanks for correcting my terms... Yes, URI escaped... But is there a way of using the two functions together? (Or would I need to use an intermediate file?) Thanks... Regards, Michael S. E. Kraus Technical Support Specialist Wild Technology Pty Ltd [EMAIL PROTECTED] Direct Line 02-8306-0007 ABN 98 091 470 692 Level 4 Tiara, 306/9 Crystal Street, Waterloo NSW 2017, Australia Telephone 1300-13-9453 | Facsimile 1300-88-9453 http://www.wildtechnology.net The information contained in this email message and any attachments may be confidential information and may also be the subject of client legal - legal professional privilege. If you are not the intended recipient, any use, interference with, disclosure or copying of this material is unauthorised and prohibited. This email and any attachments are also subject to copyright. No part of them may be reproduced, adapted or transmitted without the written permission of the copyright owner. If you have received this email in error, please immediately advise the sender by return email and delete the message from your system. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gavin Carr Sent: Monday, 5 July 2004 12:52 PM To: [EMAIL PROTECTED] Subject: Re: [SLUG] OT: Perl: CGI.pm Hi Michael, On Mon, Jul 05, 2004 at 12:21:09PM +1000, Michael Kraus wrote: Using the Perl CGI module is there a function similar to save_parameters() (save if using OO) that decodes the HTML'ised text? (Ie. Will print [EMAIL PROTECTED] rather than Email=mkraus%40wildtechnology.net) I'm wanting to save the values of forms without having to have separate scripts for different forms, in a human-readable fashion. Not in CGI (I think it only handles html escaping, not unescaping). You probably want URI::Escape's uri_unescape here, since form parameters are URI escaped, not HTML escaped (which is - amp; style - for that you'd use HTML::Entities). Cheers, Gavin -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] OT: Perl: CGI.pm
On Mon, Jul 05, 2004 at 12:53:38PM +1000, Michael Kraus wrote: Thanks for correcting my terms... Yes, URI escaped... But is there a way of using the two functions together? (Or would I need to use an intermediate file?) Sorry, I thought you were asking how to unescape the values. There's no unescaped version of save_parameters, so you'd have to use that intermediate file, or just do it yourself - isn't it just this: foreach my $p ($q-param) { printf $filehandle %s=%s\n, $p, $q-param($p); } since CGI handles all the unescaping for your within param. Cheers, Gavin -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
RE: [SLUG] OT: Perl: CGI.pm
G'day... Ahh... Thanks... Yes, I was using an temp file. I didn't realise that the param function could be used in a foreach loop like that. :) (Still a Perl newbie - I shouldn't be after 10 years of Linux, but pleased to be programming in it now.) Thanks Regards, Michael S. E. Kraus Technical Support Specialist Wild Technology Pty Ltd [EMAIL PROTECTED] Direct Line 02-8306-0007 ABN 98 091 470 692 Level 4 Tiara, 306/9 Crystal Street, Waterloo NSW 2017, Australia Telephone 1300-13-9453 | Facsimile 1300-88-9453 http://www.wildtechnology.net The information contained in this email message and any attachments may be confidential information and may also be the subject of client legal - legal professional privilege. If you are not the intended recipient, any use, interference with, disclosure or copying of this material is unauthorised and prohibited. This email and any attachments are also subject to copyright. No part of them may be reproduced, adapted or transmitted without the written permission of the copyright owner. If you have received this email in error, please immediately advise the sender by return email and delete the message from your system. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gavin Carr Sent: Monday, 5 July 2004 2:25 PM To: [EMAIL PROTECTED] Subject: Re: [SLUG] OT: Perl: CGI.pm On Mon, Jul 05, 2004 at 12:53:38PM +1000, Michael Kraus wrote: Thanks for correcting my terms... Yes, URI escaped... But is there a way of using the two functions together? (Or would I need to use an intermediate file?) Sorry, I thought you were asking how to unescape the values. There's no unescaped version of save_parameters, so you'd have to use that intermediate file, or just do it yourself - isn't it just this: foreach my $p ($q-param) { printf $filehandle %s=%s\n, $p, $q-param($p); } since CGI handles all the unescaping for your within param. Cheers, Gavin -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Disaster Recovery in Lower Manhattan presentation tonight
Hey SLUG, [I realize this is rather short notice, but I just got word back that it was ok for non-members to attend] Last year at AUUG's conference I presented a paper on my [then] company's experiences and lessons learned from in the aftermath of the attacks on the World Trade Center in New York. I've been invited to present that paper again to a join meeting of IT students from UTS and the Software Quality Associaton (NSW). http://members.ozemail.com.au/~sqain/ It's tonight (Monday) starting 6pm or so, at UTS: Room 10.04.470 (Building 10, Level 4, Room 4.470), Jones St, Sydney. (Just off Broadway, near Central Station (the old Fairfax offices)) If you're interested in disaster recovery, especially in the context of what a small technology business needs to do to stay afloat, then I welcome you to come. Best, AfC Sydney -- Andrew Frederick Cowie Operational Dynamics Consulting Pty Ltd Australia: +61 2 9977 6866 North America: +1 646 472 5054 http://www.operationaldynamics.com/ -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Asiasat 2-way Satellite
We have a redhat-based billing router, and a customer in a remote part of NT looking to connect through it using Telstra's Asiasat 2- way satellite internet service. Which only has Windows drivers. Not sure I like the idea of a Windows router protecting a Linux router! Has anyone heard of an all-Linux solution? Or, for that matter, any other stable and secure solution? Edwin Humphries, Ironstone Technology Pty Ltd [EMAIL PROTECTED] www.ironstone.com.au Phone: 02 4233 2285 Fax: 02 4233 2299 Mobile: 0419 233 051 -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html