Slashdot Mirror


User: madprof

madprof's activity in the archive.

Stories
0
Comments
1,107
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 1,107

  1. Re:Ummm, no... on Writing CGI Applications with Perl · · Score: 1

    Ah no I was not claiming that mod_php gave you some PHP interface to the Apache API or anything silly.
    It was, as you identified, that it embeds the technology within the web server.
    So which user runs your PHP scripts? You or the web server user?
    Who then owns files that are opened? What about putting passwords in database connection code?
    If I have a CGI Perl script I can have the database run an ident check to make sure the owner of the process running matches theowner of the table being accessed. No password needed. My files are chmodded 0700 too. Using mod_php/mod_perl I am not sure this is possible.

    If that's not correct then fair enough but it is AIUI.

  2. Re:Coming from an ASP background on Writing CGI Applications with Perl · · Score: 1

    200 concurrent connections is a large amount for one machine. Did you not think of using more boxes?
    How long did it take the machine to service one request?
    It sounds a bit like you weren't using enough hardware.

  3. Re:As an alternative to Perl...... on Writing CGI Applications with Perl · · Score: 1

    To be honest I doubt EmbPerl really is more flexible than Mason. I'd be interested to know what it could do that Mason couldn't.
    For small projects it might well be less overkill though.

  4. Re:As an alternative to Perl...... on Writing CGI Applications with Perl · · Score: 1

    This is what HTML::Mason lets you do - embed Perl into HTML. For big projects it is very very good.

  5. Re:Moving production to Asia? on IBM Spins Down · · Score: 1

    Well any government can impede the flow of capital/labour.
    But obviously when they're not doing so then it will flow.
    I have to say that capital flows a lot more though.

  6. Re:24 Hours on Writing CGI Applications with Perl · · Score: 1

    PHP inserted within HTML is great for small stuff. Scale that up to large sites and you have to be kidding.
    Sure, don't generate the HTML/XML from your code (as in the CGI.pm shortcut functions), but don't mix your presentation with your application logic either.

  7. Re:Coming from an ASP background on Writing CGI Applications with Perl · · Score: 1

    It depends. You can let the mod_perl processes die after a certain number of runs to make sure that they don't end up taking up loads of memory (given a leak or something).
    Perl requires lots of RAM, but then so does Java. It's totally usable for heavy duty web sites unless you're struggling with just 128 megs of RAM or something.

  8. Re:Most hosts will set up PHP for you, though on Writing CGI Applications with Perl · · Score: 1

    Sorry this makes absolutely no sense.
    You either run PHP as your own user name (suexec CGI execution of the PHP binary) or you use mod_php which is similar to mod_perl.
    I don't know how much faster PHP is to execute than Perl but Perl is fast enough for me and is more powerful. Sorry but no contest there.

  9. Re:Strict on Writing CGI Applications with Perl · · Score: 1

    Dave Cross is a god-send in that he is one of the main movers behind the "Not Matt's Scripts" page.

  10. Re:Uh, what? on Writing CGI Applications with Perl · · Score: 1

    Of course mod_perl is the proper solution but not for boxes that are not dedicated to just your site. You can't run mod_perl processes with suexec obviously, so CGI is the only way forwards for secure scripting on a machine which you might share with anyone else, and that means quite a few people will still use CGI.

  11. I can see why they chose Mason on Writing CGI Applications with Perl · · Score: 3, Insightful

    HTML::Mason is one of the most sophisticated Perl tools for templating web sites, and indeed it does a whole lot more than mere templating.
    It'd be my first choice for including in a general book as although it can get more complex (and powerful) when necessary it is actually very easy to use for simple sites.
    However yes to be fair you'd not want to ignore the very good work done by other module authors.

  12. Re:Moving production to Asia? on IBM Spins Down · · Score: 1

    While your life expectancy figures sound bizarre, you're absolutely right about the finance side. This is the way international business works. Capital and jobs will flow around the place.
    How many people who believe in the free market don't quite get the actual ramifications of the damn thing?

  13. Re:COMING SOON - How Americans invented the wheel on The Myth of the Lone Inventor · · Score: 1

    Let's be fair - do we use anything like a derivative of baid's system? Nope. He did demonstrate his syetem in 1926 or whenever but it wasn't his system that he invented that ended up being used.
    So credit is perhaps due to whoever it was that did invent that system.

  14. Re:Before you switch... on Migrating Your Office from Windows to Linux? · · Score: 1

    Why not just use PuTTY if you want to ssh from Windows? Getting Cygwin just for ssh seems madness.

  15. Re:Diehard Netscape user on Mozilla Tree Closes for 1.0 · · Score: 1

    Being aware of the myriad Netscape 4.x bugs means your pages will be designed with a clue so you have a point!

  16. Re: what are these %20 crap? on Mozilla Tree Closes for 1.0 · · Score: 1

    %20 is hexdecimal notiation for the ASCII value for a space.
    So%20a%20URL%20with%20spaces%20in%20it%20l ooks%20l ike%20this.

  17. Re:ok on Alan Cox: The Battle for the Desktop · · Score: 3, Insightful

    That one man's views are given too much credit and immense powers of knowledge and foresight attributed to him automatically?
    Yeah, I respect Alan and I'd say that was the case here.
    Terrific bloke, but we're all human.

  18. Re:For those too lazy to read... on Every Road a Toll Road · · Score: 1

    That depends on the level of background noise doesn't it?
    Someone who excercises regularly and frequently, eats well and doesn't sit for 30 mins in smog-filled traffic each day might notice the effects more.
    Given the fairly large differential in the long-term effects and amount required for damagae between alcohol and smoking I'd say it is still okay to tax tobacco way more heavily than drink.
    <controversial>
    Hell, if people are stupid enough to do it, then at least make some money out of them - a bit like the lottery. :-)

  19. Re:Britian would make itself more useless to world on Every Road a Toll Road · · Score: 1

    The idea is that you pay for using the roads in that money, not elsewhere as well.
    This was in the article but you had to read it to find out.

  20. Re:For those too lazy to read... on Every Road a Toll Road · · Score: 1

    VAT is on almost all items, not luxury items.
    Tax on cigs and booze is cos we'll still use those even with high taxes, plus cigs give you cancer (booze ain't good for you, but it's okay in moderation, unlike tobacco) so why not tax them to hell and give people extra incentive to stop smoking?
    Income tax at 10% is nothing. Try earning a decent wage and you'll get hit for 40% of it above 30K UKP.
    Roads are often maintained by local councils. Complain to them not central governemnt.

    Of course you'll be the first to moan once all the good things tax pays for are taken away. "Where's my local hospital? Where's the Police?"
    Frankly we've sucked up so much to the road lobby anyway that our future still lies with the car even though we're completely stuffed by it.

  21. Re:Online Backups/High Availability on PostgreSQL v7.2 Final Release · · Score: 1

    Yes, then we could pull the wool over each other's eyes with an increased sense of superiority and twice the derision!
    Damn, that's an inspired idea... :-)
    Can I nominate Quake 3 performance whilst running large UPDATEs as a performance indicator please?

  22. Re:Excellent!! on PostgreSQL v7.2 Final Release · · Score: 1

    A *little* troll-like perhaps?
    Not every PostgreSQL upgrade requires a dump-restore.
    Could you quote version numbers which don't have compatible dump files?

  23. Re:Online Backups/High Availability on PostgreSQL v7.2 Final Release · · Score: 1

    > P.S. How about we drop the Postgres vs. MySQL
    > flamewars every time someone posts a database
    > article?

    That wouldn't be as much fun. Sadly.
    Hopefully one of the replication projects will mature into something to rival a commercial package. But that is a lot to hope for.

  24. Re:The AI on Free The TA Source Code · · Score: 1

    Try playing 3 non-cheating Queller AIs on hard. It kicked my butt and I'm fairly experienced.
    Humans are always much more fun to play against though. There are limitations to any AI that a human does not posess like the COmmander trying to fire in 50 different directions at once and never actually firing at all.

  25. Re:It's still being sold on Free The TA Source Code · · Score: 1

    I bought TA Battle Tactics in Australia for AUS$15. What a find! You can't buy this in the northern hemisphere now it seems, and Electronics Boutique in a shopping centre in Miranda, Sydney had it.
    So now you know where it is folks... ;-)