Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Perl Monks Discussion

( #1040=superdoc: print w/ replies, xml ) Need Help??

This section is only for discussing issues pertaining to the PerlMonks web site. You can ask about how things work, or offer ideas on how the site could be improved, for example.

Unless the topic pertains to the PerlMonks web site, it does not belong in this section. If you're unsure, check out Where should I post X? and The Perl Monks Guide to the Monastery, or ask in the chatterbox.

PerlMonks Discussions
Always some thing interesting at PM!
2 direct replies — Read more / Contribute
by flexvault
on Feb 19, 2016 at 13:02

    After logging into PM this morning, I found what I thought was a new monk called 'FlexAgain'. To my amazement he has been around much longer than I, and is still Level 1.


    User since: Oct 24, 2002 at 11:47 EDT Last here: Feb 19, 2016 at 10:49 EST (2 hours ago) Experience: 18 Level: Initiate (1) Writeups: none

    It this a typo, or has he been AM for years?


    "Well done is better than well said." - Benjamin Franklin

Why the down votes?
1 direct reply — Read more / Contribute
by u65
on Feb 12, 2016 at 08:04

    I would appreciate knowing what I did wrong in node 1154837.

Find your own monastery: "Perl 6" is not Perl, and Perl is not a Dinosaur
15 direct replies — Read more / Contribute
by 1nickt
on Feb 07, 2016 at 00:00

    This is a call to the fans of "Perl 6" to please go start your own monastery, or website, at least, and stop cluttering up these halls with posts about your new pastime.

    Yes, I know I am free to choose whether to read or not to read whatever article I don't like. But it's not about how I, or any established programmer, feels about "Perl 6" (not even about how it is likely to shrink further the limited opportunities to earn a living practicing a craft I've spent half a lifetime improving).

    The problem I have with allowing these "Perl 6" promos here is that it creates confusion for novice programmers who come to the monastery hoping to learn how to program in Perl, and fills their path to knowledge with obstacles, red herrings and irrelevancies.

    The same sad situation can be encountered when you visit, and apparently even the Perl Foundation spends its money on promoting "Perl 6" at conferences. (Apparently TPF has changed the emblem of the real Perl to a dinosaur; that sure helps!)

    This is, of course, the most unfortunate thing about "Perl 6" the hobby -- that people who don't know better conflate it with Perl, the working and wildly successful programming language. While there's not much we can do about that overall, we can certainly avoid exacerbating the problem by publishing "Perl News" and "Meditations" about Perl's 'mortal enemy,' as DAGolden recently judged it.

    To the "Perl 6" fans I say: stand on your own two feet and quit using the established culture of Perl, and this monastery, to try to popularize your hobby and land-grab your piece of the upcoming "Perl 6" gold rush (*cough*).

    Among the defining characteristics of a successful and long-lasting monastic order -- even a liberal one, even one dedicated to the social good -- are cohesiveness and unity of purpose. A house divided against itself cannot stand, as a wise man once said. It's fine for a small band of dissatisfied brethren to go off and develop a new denomination: knock yourselves out, but please don't forget the first half of that process!

    The way forward always starts with a minimal test.
remove post in perl monks site
2 direct replies — Read more / Contribute
by shan_emails
on Feb 03, 2016 at 10:30
    Hi All,

    Is there any option to remove some of the post in this perl monk site. then what is the procedure for that.

    Thanks in advance
Enhancement request: add <Q> tag to Perl Monks Approved HTML
2 direct replies — Read more / Contribute
by jcb
on Jan 31, 2016 at 22:28

    I recently tried to use <q></q> for an inline quotation and was surprised that PerlMonks does not accept it. I come here to humbly ask that the <q> tag be added to the permitted tags list.

Good Intentions: Wikisyntax for the Monastery
5 direct replies — Read more / Contribute
by LanX
on Jan 27, 2016 at 18:44
    One of my New Year's resolutions is to release more code, even if it doesn't meet my quality expectations yet... Ļ

    I'm using this hack for some time now...

    It's a nodelet hack which automatically transforms my wiki-ish syntax into monk-code on submit.

    This is done transparently because after a reload the monk-code in the textarea is translated back to the original wiki syntax.

    Please note that you can still safely use and blend PM-markup as long as you use lowercase characters. The automatically transformed code is always uppercase.

    The biggest benefit is that paragraphs <P> are automatically included between two newlines...

    ...but I added some more goodies over the years. (see examples further down.)

    To activate this for yourself you just need to include the following code into your free nodelet.

    <script src='?abspart=1;displaytype=displaycode;node_id=1153804;part=3'></script>

    I hope the mechanism of the code is obvious enough to be adapted to your needs.

Ranking the Saints by XP Efficiency
4 direct replies — Read more / Contribute
by 1nickt
on Jan 13, 2016 at 23:24

    Hello fellow monks,

    I was curious about my progress in the XP game, and found it hard to visualize so I made this little script to produce a report on "XP Efficiency."

    It attempts to produce a ranking of Saints by comparing XP to either number of posts made, or to how long the Saint has been a Monk.

    I made a couple of efforts at making the data more relevant. For example, I exclude anyone who hasn't been active for a certain time, and anyone who has not made a minimum number of posts. This eliminates the Monks who have accumulated thousands of points but are not here in the community these days, as well as those who do come by regularly but have never posted anything.

    I also try to get at meaningful data by deducting half a point for each day as a Monk, since I'm most interested in XP efficiency based on real contributions to the Monastery, i.e. XP for upvotes and for votes cast, not for votes accumulated through simple longevity. (Of course it is impossible to properly account for all factors, e.g. the fact that there were far fewer Monks in the early days, so posts had fewer potential upvotes they could earn.) Would like to hear any suggestions on how to improve this "normalization" of the data. Mostly though the results appear to be in line with what I would have expected so I don't think it's too far off. Deducting a point per day seems to make a small difference, and only for XP/posts.

    It's just for fun, but it helps motivate me to excel as a teacher and as a student. You can run the script and force it to include you in the rankings even if you don't make the top 20 (or whatever you limit the search to), so you can see your progress at a glance.


    $ perl Usage: perl --sort_by (age|posts) Options: --sort_by, -s: Rank monks by XP/posts or by XP/age --limit, -l: Limit results to this many --order, -o: Sort order (asc|desc) --recent, -r: Limit to monks seen in the last n wee +ks --only_include, -i: Skip all monks except this/these one( +s) --force_include, -f: Include this/these monk(s) even if -l + is set --min_posts, -m: Exclude monks with fewer than this ma +ny posts --no_adjust, -n: Don't deduct 0.5 XP for each day of m +onkhood --help, -h: Print this help

    A couple of example reports:

    $ perl --sort_by age --min_posts 200 --recent 3 --lim +it 10 --order desc +--------------------------------------------------------------------- +-----------------+ | Pos | St. | Monk name | XP | Level | Age | XP/Age | +Posts | XP/Posts | +--------------------------------------------------------------------- +-----------------+ | 1 2 BrowserUk 159,881 Pope (28) 4,971 36.0644 +22,404 6.9144 | | 2 3 ikegami 127,624 Pope (28) 4,173 34.2347 +19,716 6.2615 | | 3 4 Corion 122,789 Pope (28) 5,783 23.4148 + 9,796 11.9443 | | 4 5 GrandFather 72,446 Sage (25) 3,880 20.4526 + 6,562 10.4489 | | 5 55 Athanasius 24,854 Canon (20) 1,352 20.1077 + 1,458 16.1193 | | 6 664 1nickt 3,115 Curate (13) 214 15.6199 + 468 6.1987 | | 7 42 choroba 29,288 Canon (20) 2,112 14.8885 + 3,739 7.2683 | | 8 20 toolic 43,023 Bishop (22) 3,130 14.7489 + 3,597 11.0906 | | 9 7 tye 70,849 Sage (25) 5,661 13.3272 + 7,887 8.2652 | | 10 60 kcott 24,138 Canon (20) 1,939 13.2484 + 2,407 9.2227 | +--------------------------------------------------------------------- +-----------------+
    The next two show the effect of adjusting to discount the daily freebie XP point (not really seen when sorting by XP/age; this is XP/posts):
    $ perl -s posts -m 200 -l 5 -o desc -n +--------------------------------------------------------------------- +-----------------+ | Pos | St. | Monk name | XP | Level | Age | XP/Age | +Posts | XP/Posts | +--------------------------------------------------------------------- +-----------------+ | 1 82 gryphon 18,249 Abbot (19) 5,643 3.7429 + 218 83.7110 | | 2 17 Old_Gray_Bear 46,694 Bishop (22) 4,507 11.9908 + 598 78.0836 | | 3 72 gmax 20,739 Abbot (19) 5,164 4.6478 + 292 71.0240 | | 4 54 Perlbotics 24,920 Canon (20) 3,056 9.4366 + 384 64.8958 | | 5 34 Gavin 32,148 Chancellor (21) 3,599 10.3364 + 600 53.5800 | +--------------------------------------------------------------------- +-----------------+
    $ perl -s posts -m 200 -l 5 -o desc +--------------------------------------------------------------------- +-----------------+ | Pos | St. | Monk name | XP | Level | Age | XP/Age | +Posts | XP/Posts | +--------------------------------------------------------------------- +-----------------+ | 1 17 Old_Gray_Bear 46,694 Bishop (22) 4,507 10.8334 + 598 70.5468 | | 2 82 gryphon 18,249 Abbot (19) 5,643 2.5855 + 218 57.8257 | | 3 54 Perlbotics 24,920 Canon (20) 3,056 8.2794 + 384 56.9375 | | 4 72 gmax 20,739 Abbot (19) 5,164 3.4905 + 292 53.3390 | | 5 34 Gavin 32,148 Chancellor (21) 3,599 9.1792 + 600 47.5817 | +--------------------------------------------------------------------- +-----------------+
    Include yourself and someone else and see how you stack up:
    $ perl -s posts -m 200 -l 10 -o desc -f 1nickt -f mer +lyn +--------------------------------------------------------------------- +-----------------+ | Pos | St. | Monk name | XP | Level | Age | XP/Age | +Posts | XP/Posts | +--------------------------------------------------------------------- +-----------------+ | 1 17 Old_Gray_Bear 46,694 Bishop (22) 4,507 10.8334 + 598 70.5468 | | 2 82 gryphon 18,249 Abbot (19) 5,643 2.5855 + 218 57.8257 | | 3 54 Perlbotics 24,920 Canon (20) 3,056 8.2794 + 384 56.9375 | | 4 72 gmax 20,739 Abbot (19) 5,164 3.4905 + 292 53.3390 | | 5 34 Gavin 32,148 Chancellor (21) 3,599 9.1792 + 600 47.5817 | | 6 100 scorpio17 16,117 Abbot (19) 3,253 4.5761 + 323 39.8266 | | 7 61 hsmyers 23,992 Canon (20) 5,452 3.9352 + 520 35.6538 | | 8 44 borisz 27,915 Canon (20) 4,756 5.6351 + 913 25.3658 | | 9 129 dvergin 12,732 Monsignor (18) 5,825 1.3724 + 311 22.2090 | | 10 58 FunkyMonk 24,201 Canon (20) 3,187 7.6302 + 1,024 20.5215 | | 41 6 merlyn 71,157 Sage (25) 5,741 13.1874 + 6,322 10.3474 | | 82 664 1nickt 3,115 Curate (13) 214 15.6198 + 468 6.1987 | +--------------------------------------------------------------------- +-----------------+

    Code if you would like to play with it:

    edit: reduce XP by only 0.5 per day; switched to Time::Piece as DateTime::Format::Strptime has compile problems on Strawberry Perl; switched to format_number() because round() does not provide trailing zeroes; increase XP/Age by two more orders of magnitude, for scale

    The way forward always starts with a minimal test.
Approval Nodelet "Consider node:" enhancement suggestion
3 direct replies — Read more / Contribute
by kcott
on Jan 05, 2016 at 01:36

    When initially considering a node, the process is: enter consideration text; select checkbox; hit [moderate] button.

    Now the Approval Nodelet displays the consideration text; however, the keep/edit/reap/nada radiobuttons are not shown. In order to see the radiobuttons, a page refresh is required: at which point, both consideration text and radiobuttons are displayed (as you'd normally see when landing on a page that has already been considered).

    So, the enhancement suggestion is for both consideration text and radiobuttons to be displayed after hitting the [moderate] button.

    — Ken

Message Outbox: "delete" msg box button? (updated)
4 direct replies — Read more / Contribute
by LanX
on Jan 02, 2016 at 10:06
    Considering Message Outbox

    How difficult would it be to add an "erase" button to that form?

    When sending more than one message to the same recipient I'm obliged to delete the old message field first.

    That's especially tricky when using mobiles.

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!


    I looked at the Perl code generating that node and I'm not sure how the message field is filled.

    Probably is done by the browser, can't check while mobile. ..

    Gimme guidance like pointing to the right documentation and I'll patch it myself.

    Otherwise doing it with JS should be trivial, but I doubt this is wanted.

How do you use the CB?
6 direct replies — Read more / Contribute
by stevieb
on Dec 21, 2015 at 16:04

    Like everyone, my mind and attention are all over the map, but over the years I see people using the CB (ChatterBox) like a chat application.

    Do you just follow along as-is, or are there tricks to provide notify-send type pop-ups or something that just makes it easier? When I've spoken and have interest, I open a new browser tab to Enhanced Full Page CB

    The CB has a wealth of good content, hilarity and just something I'd like to see outside of the webpage itself.

    How do Monks follow/track it?

Shadow Titles- RFC
2 direct replies — Read more / Contribute
by jmlynesjr
on Dec 09, 2015 at 14:27

    Has there been any past discussion on adding a Shadow Title to each post as part of the consideration process? Regardless of the posting guidelines, I see many posts where the title has no relation to the question. Comments?


    There's never enough time to do it right, but always enough time to do it over...

Perl Poetry not displaying on Your Blog Stream
1 direct reply — Read more / Contribute
by Athanasius
on Dec 04, 2015 at 23:51
"I've reaped your node" Message
4 direct replies — Read more / Contribute
by kcott
on Dec 02, 2015 at 01:57

    I was just going through Nodes to consider, selected "reap" (for a node that was considered for reaping), hit submit and this was displayed:

    You said "I've reaped your node [id://1149099]. Reason: &#91;[stevieb]]: reap: homework question; no perl content " to johnrock47

    I've gone to some effort to recreate the message verbatim: that's exactly what was displayed.

    I have twothree points regarding this:

    1. Whatever code that generates the &#91;[stevieb]] part, was probably intended to generate a link to the monk who initially posted the consideration, (in this case stevieb).
    2. While I was one of the monks who considered this for reaping (and I don't really have any problem being identified as such), I didn't actually reap the node. Perhaps the message should, more accurately, identify NodeReaper as the one doing the reaping.
    3. Update: Whatever code that generates the [id://1149099] part, was probably intended to generate a link also.

    I don't recall seeing a message like that before, so I'm guessing it's new. I can't see anything in Tidings about it. It's potentially related to the experimental change (Reaped Nodes ... Aug 11, 2015 at 04:00 EST), but that's really just a guess.

    — Ken

Perl Monks Userdata leaked?
2 direct replies — Read more / Contribute
by Skeeve
on Nov 30, 2015 at 02:33


    Is Perl Monks User Database leaked? On the 12th of November, Spam started coming to my mailbox, sent to the mail address I just use here.

    Did anyone else notice this?

Newest Nodes Settings for Anonymous Monk
1 direct reply — Read more / Contribute
by kcott
on Nov 29, 2015 at 09:07

    When logged in, Newest Nodes starts with

    Show nodes created ... More Newest Nodes Settings

    and this all works as expected.

    However, when not logged in (i.e. as Anonymous Monk), the same is displayed but the Newest Nodes Settings link does not link to Newest Nodes Settings; instead, it links to a Super Search page showing:

    Found 0 nodes ... where title contains all of "Newest", "Nodes", "Settings"

    I don't know what the intended functionality is but I suspect this isn't it.

    Here's a non-exhaustive list of possibilities for Anonymous Monk:

    • Remove the "More Newest Nodes Settings" part.
    • Provide a link to a node allowing limited settings changes, e.g. order of nodes (oldest instead of best first), depth of nodes ("Re^5: ..." seems to be the default), etc.
    • Change wording so that it's clear this is a search, not a settings change.

    I'm not making a request for any of those specifically nor do I have any particular preference. I do, however, think that the wording should match the action.

    — Ken

Discussion Item
Give us your input:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others contemplating the Monastery: (6)
    As of 2016-08-29 05:48 GMT
    Find Nodes?
      Voting Booth?
      The best thing I ever won in a lottery was:

      Results (398 votes). Check out past polls.