beta testing

Discussion in 'Perl Misc' started by robin, Mar 6, 2005.

  1. robin

    robin Guest

    robin, Mar 6, 2005
    #1
    1. Advertising

  2. "robin" <> wrote in news:1110087761.522984.103340
    @f14g2000cwb.googlegroups.com:

    > if anyone is interested in beta testing this,


    Robin, you could try to learn Perl in your free time, rather than coming
    up with crap like this.

    > www.infusedlight.net/cgi-bin/bbs.pl - please report bugs


    Well, the whole script is one colossal bug.

    I especially found:

    $key = "$userparam$string$about$string$nick$string$aim$string$icq$string
    $hobbies$string$favoritethings$string$webtitle$string${websiteaddress}
    private\n" if $privateparam;

    No wonder you have spelling errors sprinkled at various points in the
    scripts. Who has the ocular dexterity to decipher this?

    Sinan.
     
    A. Sinan Unur, Mar 6, 2005
    #2
    1. Advertising

  3. "A. Sinan Unur" <> wrote in
    news:Xns9611B1E838F18asu1cornelledu@127.0.0.1:

    > "robin" <> wrote in

    news:1110087761.522984.103340
    > @f14g2000cwb.googlegroups.com:


    ....

    > Well, the whole script is one colossal bug.
    >
    > I especially found:
    >
    > $key =


    ....

    I am sorry, I did a partial paste. Here is the interesting bit from
    bbs.pl:

    if ($psplit2[0] eq $userparam)
    {
    $key = "$userparam$string$about$string$nick$string$aim$string$icq
    $string$hobbies$string$favoritethings$string$webtitle$string
    ${websiteaddress}private\n" if $privateparam;
    $key="$userparam$string$about$string$nick$string$aim$string$icq
    $string$hobbies$string$favoritethings$string$webtitle$string
    ${websiteaddress}\n" if ! $privateparam;
    }

    Please do not attempt to explain this as the explanation might be even
    more painful than looking at the actual code.

    No wonder you have spelling errors sprinkled at various points in the
    scripts. Who has the ocular dexterity to decipher this?

    A couple of recommendations:

    * Look into the CGI::Application module (or any of its descendants).

    * For my elementary needs, I have found CGI::Application coupled with
    CGI::Application::Session, Class::DBI (w/ sqlite) and HTML::Template to
    be a wonderful combination.

    * And, I cannot stress this enough, please do consider thinking before
    programming.

    * Do read the documentation for the modules you are using.

    * Your code is sprinkled with crap like this:

    my $hobbies = param ('fivehobbies');
    $hobbies =~ s/&gt;/&amp;gt;/gm;
    $hobbies =~ s/&lt;/&amp;lt;/gm;
    $hobbies =~ s/>/&gt;/mg;
    $hobbies =~ s/</&lt;/mg;

    WTF? Use the HTML::Entities module:

    #! /usr/bin/perl

    use CGI;
    use HTML::Entities;

    my $cgi = CGI->new;

    if(defined (my $value = $cgi->param('value'))) {
    print $cgi->header, encode_entities($value);
    } else {
    print $cgi->header, <<HTML
    <html>
    <body>
    <form>
    <input type="text" size="20" name="value">
    <input type="submit">
    </form>
    </body>
    </html>
    HTML
    ;
    }
    __END__

    Sinan.
     
    A. Sinan Unur, Mar 6, 2005
    #3
  4. robin

    robin Guest

    please do not hack my script. thanks.
    -robin
     
    robin, Mar 9, 2005
    #4
  5. robin

    robin Guest

    more precisely, where did you get this code?
     
    robin, Mar 9, 2005
    #5
  6. robin wrote :
    > more precisely, where did you get this code?


    other question:
    where did you shred your brain?


    --
    perl -e '$|=1;&p(7.74.117.115.116.32);&s();&p(97.110.111);&p(116.104.101
    ..114);&s;&p(32.112.101.114.108);&s();&p(32.104.97.99.107.101.114.10);sub
    s{sleep 1};sub p(){print "@_"}'
     
    Martin Kissner, Mar 10, 2005
    #6
  7. * robin wrote:
    >
    > more precisely, where did you get this code?


    Eh, everyone could download it. Or why you placed a download link on
    your website?

    http://www.infusedlight.net/

    regards,
    fabian
     
    Fabian Pilkowski, Mar 10, 2005
    #7
  8. "robin" <> wrote in news:1110412262.716548.178960
    @l41g2000cwc.googlegroups.com:

    > please do not hack my script. thanks.
    > -robin


    It is not everyday that I meet someone with IQ lower than the room
    temperature.

    If you don't want people to see your code (perfectly understandable given
    the way you code), then you should not place a public link to download the
    source code.

    If you don't want people to evaluate your code, then you shouldn't ask
    people to test it.

    Sinan.
     
    A. Sinan Unur, Mar 10, 2005
    #8
  9. robin

    robin Guest

    sorry, I forgot about the download link...hehehe... I'm an idiot.-robin
     
    robin, Mar 11, 2005
    #9
  10. Sherm Pendley, Mar 11, 2005
    #10
  11. robin

    robin Guest

    yeah?
     
    robin, Mar 12, 2005
    #11
  12. robin

    Jeff Guest

    robin wrote:
    > yeah?


    Robin, do you ever worry some potential 'client' of yours may search
    Usenet for postings form you to learn more about you before hiring you?

    Maybe you should.
     
    Jeff, Mar 12, 2005
    #12
  13. On 2005-03-11, Sherm Pendley <> wrote:
    > robin wrote:
    >
    >> I'm an idiot.-robin

    >
    > Congrats - you've finally said something we can all agree with.


    I knew if I restrained myself, someone would pick up the slack... :)

    dha

    --
    David H. Adler - <> - http://www.panix.com/~dha/
    Jackdaws love my big sphinx of quartz.
    Phillip Newton's replacement for The quick brown fox jumps over
    the lazy dog.
     
    David H. Adler, Mar 12, 2005
    #13
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mark Oliver

    install Beta 2 after Beta 1?

    Mark Oliver, Jan 25, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    414
    Scott Allen
    Jan 25, 2005
  2. Replies:
    1
    Views:
    2,215
    Bruce Barker
    May 3, 2005
  3. Eugene Toporov
    Replies:
    0
    Views:
    769
    Eugene Toporov
    Jul 15, 2004
  4. David Dorward
    Replies:
    0
    Views:
    593
    David Dorward
    Jul 12, 2005
  5. SMichal
    Replies:
    0
    Views:
    646
    SMichal
    Nov 30, 2006
Loading...

Share This Page