Re: perlmonksflair.com : get your perlmonks flair!
by tobyink (Canon) on Aug 11, 2013 at 18:29 UTC
|
It would be nice if the badges included the monk's level as a name (e.g. "Priest") instead of numerically.
package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
| [reply] |
|
Yep. I was thinking about this but wasn't too sure. If more people want it this way I shall get it done :)
| [reply] |
|
| [reply] |
|
| [reply] |
|
| [reply] |
|
| [reply] |
|
|
|
Re: perlmonksflair.com : get your perlmonks flair!
by syphilis (Archbishop) on Aug 12, 2013 at 03:15 UTC
|
Neat idea - and nicely implemented, too !!. I'm another of those that would prefer the "Level" to be replaced with the actual title ... and, depending upon what others think, I'd perhaps do away with the "Experience" entry altogether.
Cheers, Rob | [reply] |
Re: perlmonksflair.com : get your perlmonks flair!
by hossman (Prior) on Aug 12, 2013 at 06:08 UTC
|
FWIW: You can get someones eperience really easily w/o needing to parse HTML using the xml display type, ie: http://perlmonks.org/?node=gideondsouza;displaytype=xml
But for reasons i'm not clear on, the XML displyatype doesn't include the level, so you'd have to compute that from the experience.
| [reply] |
|
Hey! That's really cool. It's weird why it doesn't include levels. I'll try and make this and all updates together.
I'm not entirely certain how much faster it will turn out if I parse xml instead of html. I am searching for all td tags though and there are a lot of them
| [reply] |
Re: perlmonksflair.com : get your perlmonks flair!
by Loops (Curate) on Aug 11, 2013 at 18:40 UTC
|
Nice job. Now if only we could set a URL for profile image instead of having to upload a fixed image...
| [reply] |
|
Ah! thanks. For a second there I thought you were suggesting putting the profile image in the badge, like most people do. But this really spoils the badge.
Yea that's true, I tried to add the badge to my profile description but the image doesn't render! :'(
| [reply] |
Re: perlmonksflair.com : get your perlmonks flair!
by Happy-the-monk (Canon) on Aug 11, 2013 at 19:18 UTC
|
I like it, but it goes on strike (404) when used with my name.
Cheers, Sören
Créateur des bugs mobiles - let loose once, run everywhere.
(hooked on the Perl Programming language)
| [reply] |
|
Hey!! I'm really sorry, I feel ashamed. I will try and see why this is happening!
I think I know why and it might be simple.
| [reply] |
|
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.
| [reply] |
|
|
|
|
|
| [reply] |
Re: perlmonksflair.com : get your perlmonks flair!
by pokki (Monk) on Aug 12, 2013 at 11:38 UTC
|
Neat, but the Scribe picture makes "Experience" hard to read, white on white: here
| [reply] |
Re: perlmonksflair.com : get your perlmonks flair! [WARNING]
by kcott (Archbishop) on Apr 27, 2022 at 21:41 UTC
|
| [reply] |
Re: perlmonksflair.com : get your perlmonks flair!
by Anonymous Monk on Aug 12, 2013 at 01:19 UTC
|
| [reply] |
Re: perlmonksflair.com : get your perlmonks flair!
by Grimy (Pilgrim) on Aug 13, 2013 at 08:08 UTC
|
| [reply] |
|
| [reply] |
|
| [reply] |
|
It's perfectly correct. Violer is the verb "to rape"; conjugated into the 3rd person, singular past tense, it's viola.
But also it's a violet, and a musical instrument.
I can't imagine many contexts where the three usages would be likely to be confused.
package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
| [reply] |
|
|
| [reply] |
Re: perlmonksflair.com : get your perlmonks flair!
by QM (Parson) on Aug 12, 2013 at 13:32 UTC
|
Blocked by WebSense at my $work.
-QM
--
Quantum Mechanics: The dreams stuff is made of
| [reply] |
|
| [reply] |
|
Do you know why WebSense does the blocking?
| [reply] |
Re: perlmonksflair.com : get your perlmonks flair!
by Boldra (Deacon) on Aug 27, 2013 at 08:08 UTC
|
Very nice, thankyou! The link to http://www.jenniferleigh.ca/ seems to be broken.
| [reply] |
|
You're very welcome. I Fixed the link!
| [reply] |
Re: perlmonksflair.com : get your perlmonks flair!
by sotona (Scribe) on Sep 20, 2013 at 10:35 UTC
|
Since the flair is cached for 5 days, it doesn't reflect the real experience points. Is there any possibility to check an actual exp level and generate the new flair if smth changed? | [reply] |
|
I'm not entirely sure if I get you. Are you saying I should fetch the XP and check if it has changed? It would defeat the purpose of caching a bit. I have an extremely light server running this app and wanted to avoid the call to the site itself. Perlmonks.org is very slow, and making calls to check it everytime would be expensive.
As alternatives I was thinking of (1) A sliding cache window, if your XP updates frequently then I will cache less frequently. But this is hard because it means I have to write a varnish plugin. (2) A feature to allow users to refresh the cache for just their flair. This is slightly more do-able
If you submit it as an issue I will take this up when I can:
https://github.com/gideondsouza/perlmonksflair/issues/new
| [reply] |
|
A feature to allow users to refresh the cache for just their flair. This is slightly more do-able
That would be quite useful, especially for the newly-initiated who move through the levels faster than established monks. Something like http://www.perlmonksflair.com/<username>.jpg?purge to force an update, perhaps?
You may want to keep an eye on how much that's used so that people don't put too much load on the server by constantly purging their badge, of course. Alternatively, you could do some sort of rate limiting for purging as well -- say, once per day, or (if you want to allow a little more flexibility) three times per day and seven times per week.
Thanks to both you and your friend for creating this, BTW!
| [reply] |
|
Re: perlmonksflair.com : get your perlmonks flair!
by Anonymous Monk on Aug 26, 2013 at 09:51 UTC
|
Are all the pictures male? | [reply] |
|
Um. I think Beadle is female. Didn't mean to be gender bias. The artwork was designed by a female.
| [reply] |