Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: perlmonksflair.com : get your perlmonks flair!

by Your Mother (Chancellor)
on Aug 11, 2013 at 23:27 UTC ( #1049043=note: print w/replies, xml ) Need Help??


in reply to Re^2: perlmonksflair.com : get your perlmonks flair!
in thread perlmonksflair.com : get your perlmonks flair!

Spaces in usernames, like Your Mother, also don't work: 404. :P And 500s are pretty easy to generate. Fun though. So, nice going. If you had it on github, you'd probably already have the patches you need in pending pull requests.

  • Comment on Re^3: perlmonksflair.com : get your perlmonks flair!

Replies are listed 'Best First'.
Re^4: perlmonksflair.com : get your perlmonks flair!
by gideondsouza (Pilgrim) on Aug 12, 2013 at 05:02 UTC
    I do have it on github: https://github.com/gideondsouza/perlmonksflair

    The 404 for hyphens and spaces are just because I don't have them in my route regex. I come from a very different programming background and I'm not fluent enough with regex! But I'll get there.

    I shall get to fixing soon. Pull requests would make me ecstatic, it would probably teach me something. My perl isn't still Perlish.

      The 404 for hyphens and spaces are just because I don't have them in my route regex.

      change /(\w+)\.jpg to /([\w -]+)\.jpg to add hyphens and spaces.

      Put the "-" last or you must quote it as \- in a character class in a regex.

      See perlre for more.

      Cheers, Sören

      Créateur des bugs mobiles - let loose once, run everywhere.
      (hooked on the Perl Programming language)

Re^4: perlmonksflair.com : get your perlmonks flair!
by gideondsouza (Pilgrim) on Aug 20, 2013 at 19:35 UTC
    This is also fixed. Spaces, hyphens and dots are all ok.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1049043]
help
Chatterbox?
[choroba]: I already gave a similar talk to my friends in a pub and at an internal conference at work and people liked it, so maybe...
[choroba]: LanX: That's the heritage, I can't do anything else
[RonW]: Sounds like some system my employer has "It does exactly what we need it to do and can't afford to risk anything we can't prove is 100% compatible"
[marto]: choroba sounds interesting
[RonW]: james28909 Why not write a Perl program to do the task?
[choroba]: RonW Yes, but then, one day, they needed to switch from FTP to SFTP, and... but I can't give the whole talk away here :)
[RonW]: Tunnel FTP through stunnel?

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (10)
As of 2017-05-22 21:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?