Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

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
How can one find his previous preview page (uncreated)?
2 direct replies — Read more / Contribute
by u65
on Oct 03, 2015 at 11:48

    Is there a procedure for finding an uncreated preview node?

    A couple of times now I've started a post but got interrupted before I pushed "create" and so far have found no reliable way to easily find what I started. If I don't go too far astray, I can keep pushing the back arrow in my browser and find it, but if I log off or otherwise close the page I can't always find it again. I have not been able to find much searching about preview here except the threads on wanting a preview capability for updates.

    Note that when working on longer posts I've kept text in an offline file to edit and copy from, but that seems to be a pain for relatively small posts, but I guess I could make that a habit.


here frequency ?
1 direct reply — Read more / Contribute
by LanX
on Sep 26, 2015 at 10:03

    Just an idea...

    Would it make sense to add a "here frequency" to the user profiles?

    I just spotted a good brother who wasn't here for a long time but he disappeared before my /msg could reach him.

    Strangely I can't tell if he's passing now more frequently b/c last here is only telling me what I already know.

    More a meditation...

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

Bug in RAT node display?
1 direct reply — Read more / Contribute
by Athanasius
on Aug 30, 2015 at 09:00

    I just considered Digest::MD5 addfile() w/ tied filehandle to fix a spelling mistake in the name of the module under discussion. The node was already approved and front-paged. Following the consideration, the node is marked (CA) in Recently Active Threads (Full Thread view). Before consideration, it was marked (FA). So, the F (for Front Page) has now dropped out, although the node is still on the Front Page.

    Nothing earth-shaking here, I know, but — is this the expected behaviour, or is it a bug? I expected the node to be displayed with (CFA) following the consideration.


    Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,

Reaped nodes no longer visible?
2 direct replies — Read more / Contribute
by Athanasius
on Aug 10, 2015 at 03:33

    Has there been a change to the display of reaped nodes?

    In looking through a thread, I used to see nodes that were marked as “reaped.” The content of these nodes wasn’t visible, but there was a link to see that content if one wanted to. Now, threads I know to contain reaped nodes no longer show them at all.

    This used to be configurable via one of the user settings. So my thought was that my setting had somehow been changed from “show reaped nodes” to “don’t show reaped nodes” — but now I can’t even find that setting anywhere.

    So, am I imagining things, or has the site been changed to no longer show reaped nodes? I see they are still accessible via the homepage of he who must not be named, just not in the threads where they were posted.

    Don’t get me wrong, if this change has been made then I’m all for it. I’ve long thought it was counter-intuitive to mark a node as “reaped” and yet still make it (relatively) easy to see what it said. I’m just surprised that no announcement has been made in Tidings (and a Super Search on “reaped nodes” shed no light on the issue).


    Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,

"Your Blog Stream" in "User Settings" is "Show blog on homenode:" but its not a blog
1 direct reply — Read more / Contribute
by beech
on Jul 30, 2015 at 16:50

    If I go to User Settings the node User Posts is linked as "Your Blog Stream" and later there is a checkbox "Show blog on homenode:" but my writeups aren't a blog

    in other forum software, the "blog" section is not just another name for all the users writeups, its a separate section

    now given there is some choice of sections ... if its just root nodes I post that might make sense,

    but there is no docs on this,

    So I'm trying it out

Adding googleon/googleoff to portions of the right sidebar?
3 direct replies — Read more / Contribute
by perlancar
on Jul 30, 2015 at 09:31

    A couple of times when I'm searching for some perlmonks users in Google (for example, say I want to know the threads in which "perlancar" posts something or is mentioned), what come up instead are pages where the username is found in the "Other Users" section in the right sidebar.

    Google (and probably other search engines too) allow us to put hints to parts of a page which should not be indexed. In Google case, we can use the googleon/googleoff comments. The details are here: Excluding Unwanted Text from the Index p

Querying Saints in our Book
2 direct replies — Read more / Contribute
by chacham
on Jul 29, 2015 at 13:12
Checking Saint in our Book for ties
1 direct reply — Read more / Contribute
by chacham
on Jul 20, 2015 at 12:08

    eyepopslikeamosquito's planetscape and me: 1282 nodes apiece can be queried, or turned into a Greasemonkey script to run each time Saints in our Book loads:

    // ==UserScript== // @name PerlMonks Saints in our Book Ties // @namespace // @description Find ties in Saints in our Book, based on Writeups and + Experience // @include // @grant none // ==/UserScript== var table = document.getElementsByTagName('table')[4]; for (var i = 1; i < table.rows.length; i++) if ( (table.rows[i].cells[2].textContent == table.rows[i + 1].cells +[2].textContent) && (table.rows[i].cells[4].textContent == table.rows[i + 1].ce +lls[4].textContent) ) alert(table.rows[i].cells[0].textContent + ' ' + table.rows[i].cells[ +1].textContent + '\r\n' + table.rows[i + 1].cells[0].textContent + ' ' + table.rows[i ++ 1].cells[1].textContent);

    Alternatively, it can be turned into a bookmarklet by enclosing it in javascript:(function(){})();, to execute on demand. That is, copy and paste the following as a new bookmark:

    javascript:(function(){var table = document.getElementsByTagName('tabl +e')[4]; for (var i = 1; i < table.rows.length; i++) if ( (table.rows[i].cells[2].textContent == table.rows[i + 1].cells +[2].textContent) && (table.rows[i].cells[4].textContent == table.rows[i + 1].ce +lls[4].textContent) ) alert(table.rows[i].cells[0].textContent + ' ' + table.rows[i].cells[ +1].textContent + '\r\n' + table.rows[i + 1].cells[0].textContent + ' ' + table.rows[i ++ 1].cells[1].textContent);})();

    To test it, as it stands at the time this is being posted, it should alert you to one set of duplicates.

    Added on OpenUsersJS at PerlMonks Saints in our Book Ties

Consideration history? (No further action required.)
1 direct reply — Read more / Contribute
by BrowserUk
on Jul 15, 2015 at 12:37

    Update: Sorry people. See Re^2: Consideration history?)

    It is possible to view whether a node has been considered and subsequently un-considered (de-considered?)?

Threaded Monks Yodeling Modeling
5 direct replies — Read more / Contribute
by oiskuu
on Jul 08, 2015 at 17:54

    Consider one emergent discussion as a collective knitting job. Each monk can view it, appraise it, expand it. Or consider it a symphony of voices (Tolkien style?) In any case, some locus or front is implicit, with the work inexorably progressing along the time dimension, toward resolution. A piece that keepsmorphing while you look at it, is probably not the easiest to work on. I see the new default order, and I'm not liking it.

[Solved]: Thoughts on a section for popular one liners
3 direct replies — Read more / Contribute
by Perl300
on Jul 07, 2015 at 10:47
    Hello monks,

    I have not been a very active user until recently when I started working on perl. So please forgive me if I am not suggesting something useful or just repeating a topic that was discussed earlier as well.

    As a learner, I am fascinated with one liners in perl that could do something very useful in just one line. So this came to my mind. Would it be a good idea to have a link on perlmonks where we can have users post some interesting/useful one liners? Going further (may be) selected ones are displayed on the website.

    Just a thought that I wanted to post so new learners like me would be tempted more into perl and sooner or later start writing their own one liners :-)

    I did a quick search on net and found that there is one book as well on perl one liners by o'rielly media.

    Thanks in advance!
Attribute Removed When Post is Listed in a PerlMonks Section
1 direct reply — Read more / Contribute
by kcott
on Jul 05, 2015 at 08:50


    Last week I wrote Syntax-highlight Non-Perl Code for HTML which I posted in Cool Uses for Perl.

    The first line contained the abbreviation CRPG. I provided a tooltip for this using the title attribute, like so:

    <span title="Computer Role Playing Game">CRPG</span>

    The tooltip showed up in both the [preview] and [create] renderings. Everything looked fine and I thought no more about it.

    That post was front-paged and I've just noticed that the version in The Monastery Gates listing (under New Cool Uses for Perl) had no tooltip for CRPG.

    I checked the source HTML in Syntax-highlight Non-Perl Code for HTML which had, as expected:

    <span title="Computer Role Playing Game">CRPG</span>

    I then checked the source HTML in The Monastery Gates which had, not as expected:


    And now, while previewing this post, I also notice that the listing in Cool Uses for Perl has no tooltip either (source HTML: <span>CRPG</span>).

    That's now potentially becoming somewhat confusing. To summarize (and clarify):

    Node ID Node Name Tooltip Source HTML
    1132421 Syntax-highlight Non-Perl Code for HTML Yes <span title="Computer Role Playing Game">CRPG</span>
    131 The Monastery Gates No <span>CRPG</span>
    1044 Cool Uses for Perl No <span>CRPG</span>

    So, while that's two PerlMonks Sections that I was able to check, this could also be happening in other sections.


    Is the title attribute (and value) intentionally removed from the listings in PerlMonks Sections? If so, what is the rationale behind this? Are attributes other than title affected? Are elements other than span affected?

    If this attribute was not intentionally removed then, presumably, that indicates a problem somewhere in the process of listing a post in various PerlMonks Sections. If this is the case, can it be fixed?

    -- Ken

And here's why I think "downvotes" should be eliminated, or tabulated separately ...
16 direct replies — Read more / Contribute
by sundialsvc4
on Jun 29, 2015 at 14:32

    A long, long time ago now, I resigned myself to one simple observation:   that, “no matter what sundialsvc4, in particular, may say, he will promptly accumulate about 7 downvotes for the mere fact that he opened his mouth.”   (This post should immediately garner about twice that number, in the first twenty minutes or so, to punish my audacity for bringing this subject up yet again.)   After a little while, many of these posts then turn-around to acquire a positive shine, but I know that they will have had to pass through the gauntlet of obligatory down-voting to get there.

    Now, it would be a marvelous thing if an Internet forum had no signal-to-noise ratio. If every post was rated strictly on the content and not on the person who wrote it.   If personalities had nothing to do with it.   But, it seems, everyone has their enemies, and I have accumulated give-or-take seven of mine.   (They are very consistent.)

    But now, let’s talk about ... Super Search.

    We have recently learned that PerlMonks has, not only a database of more than a million entries, but a venerable database, as well.   PM has a history, and certainly one of the main attractions of other people for the site is to gain access to the high quality of technical opinion and guidance that is routinely expressed here.   With such a large database, search by attributes other than keyword (and the other handful of criteria that Super now provides) would be extremely advantageous.   One of the criteria that I (still ...) think should be available is:   per-post vote ratings.

    ... but only if the positive and the negative votes were separately tallied.

    To my way of thinking ... and this from forums besides this one ... an “up” vote indicates, both that the person casting the vote found the post to be useful to him, but also that the person understood the post in the first place.   Whereas a “down&rdquo vote ... I have no way to say it delicately, so I shall say it anyway ... is just someone pissing in the pool.   The two numbers, if tracked separately, would be (very!) useful to me in searching ... and I would ignore the negative one.   The sum of the two is seriously clouded by the summing.

    Another possible approach ... rarely seen in forums ... is to obligate the person who is casting the positive or negative vote, both to identify him/herself, but also to explain why. This being maintained as a separate thread of information apart from “the thread.”   I am not persuaded, however, that this is really worth the additional storage-space required.

    It is an unfortunate fact of PerlMonks that the site is widely regarded as being openly hostile.   (It is also observable on ChatterBox that many of the younger Monks speak derisively of that hostility.)   I don’t think that this is a good thing.   “The Go-To Site for information about Perl™” ought to be a socially pleasant place.   It should, as its whimsical name suggests, encourage the social and professional interaction that, I fear, today it is openly perceived to oppose.   Ours should not be a forum that people “put up with,” because they need information.   It should not be one in which there is fear of crucifixion.

Additions to Approved HTML
4 direct replies — Read more / Contribute
by kcott
on Jun 29, 2015 at 04:14

    G'day All,

    This post was prompted by ambrus' comment, in Re^4: Approved PM markup?:

    "You may try to petition us with a complete proposal of what attributes to enable in what elements, and then maybe I'll write a patch and maybe some god will apply it."

    However, I'd much rather see discussion and concensus before submitting any proposal; accordingly, please freely discuss the following and let's see if a concensus can be reached.

    For reference, here's the currently approved elements and attributes: Perl Monks Approved HTML tags

    Non-standard Elements

    Firstly, the non-standard <code> tag requires a little more explanation than the remainder do, so I'll deal with that first. (Assume everything here also applies to the <c> tag.)

    I pretty much like everything about the <code> tag except for the fact that it renders Unicode characters with code points greater than 255 (U+00FF) as character entity references. To illustrate, consider this markup:

    U+007E: ~
    U+007F: DEL
    U+0100: Ā
    U+007E: ~
    U+007F: DEL
    U+0100: Ā

    which renders as

    U+007E: ~
    U+007F: DEL
    U+0100: Ā
    U+007E: ~ U+007F: DEL U+00FF: U+0100: A&#772;

    So, in order to post code containing these characters, we need to use <pre> (or <tt> for inline text). When we do this, we lose all the features of <code>, such as code-wrapping and the [download] function.

    Therefore, I'd like to suggest a uni attribute for <code> that might be used either as <code uni="1"> or, given <code> is non-standard anyway, and won't appear in the final HTML, just <code uni>. Unless feedback indicates otherwise, I'll recommend: <code uni>.

    It would, of course, be important, that <code uni> still renders character entity references as written; e.g. &gt; still renders as &gt; and not >.

    Update (code): This is not something that can be done easily, so I've removed it from the proposal. See ambrus' comment below.

    I'm not suggesting any changes to the remaining non-standard elements: <spoiler> and <readmore>. Having said that, I do note that <readmore> allows a title attribute whereas <spoiler> does not: feel free to argue the case for <spoiler title="...">.

    Standard Elements and Attributes

    These are all straightforward and simply represent attributes that are missing from certain elements but allowed elsewhere. I'm really just aiming for consistency here.

    AttributeElements to Allow this Attribute
    classAll standard elements that don't currently allow it.
    dirAll standard elements that don't currently allow it, except br.
    langAll standard elements that don't currently allow it, except br.
    titleAll standard elements that don't currently allow it.

    Unknown Element: wbr

    I've no idea what the <wbr> tag is. It's not standard HTML (see Index of the HTML4 Elements), nor is it documented as being non-standard.

    Unless there's a good reason to keep it, removal would seem to be the appropriate action. Conversely, if we want to keep it, it should be documented. I'll recommend removal unless feedback indicates otherwise.

    Update (wbr): Feedback has indicated otherwise (see Re: Additions to Approved HTML ( ISO-8859-1)): this just needs documenting.

    -- Ken

Approved PM markup?
1 direct reply — Read more / Contribute
by BrowserUk
on Jun 27, 2015 at 23:21

    Why is it that <div> is allowed, and <span> is not? Is there some particular vulnerability connected with <span>?

    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
    I'm with torvalds on this Agile (and TDD) debunked I told'em LLVM was the way to go. But did they listen!

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!
  • 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 imbibing at the Monastery: (1)
    As of 2015-10-04 04:26 GMT
    Find Nodes?
      Voting Booth?

      Does Humor Belong in Programming?

      Results (98 votes), past polls