Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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
Feature: Auto hide. Change: show node vote counts to all, not just logged in users.
9 direct replies — Read more / Contribute
by marto
on Jul 18, 2017 at 05:22

    A couple of suggested changes. I propose that if a node not under considereation hits the same level of downvotes required to trigger auto reaping, the node content should be automatically hidden, a message displayed warning readers that it's quality/relevance is in question, a link would allow reading the original. Something along the lines of:

    This node was taken out by the NodeReaper on Jul 16, 2017 at 09:42 BST Reason: [NodeReaper] - Post contents hidden due to sufficiently negati +ve reputation. You may view the original node and the consideration vote tally.

    All other cases I can think of (trolling, abuse, duplicate post etc) are already catered for by the consideration system as is.

    Secondly, the vote count be displayed to all, not just logged in users.

A new CB reader
2 direct replies — Read more / Contribute
by choroba
on Jul 05, 2017 at 16:09
    I was a happy user of the #cbstream IRC ↔ PM client that makes the ChatterBox feel and behave like the IRC. But then sometimes broke (as it happened time to time), but ambrus hasn't been around for the last three weeks to fix it. So I wrote a simple ChatterBox reader myself. At the moment, it only reads, and I'm still not sure I want to add the ability to write to it. It uses the new CB XML ticker (as I skimmed over the other CB clients, they all seem to use the old one). If you want to use it, or just check the code, you can find it on GitHub.

    ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
Input Boxes Rendering?
4 direct replies — Read more / Contribute
by haukex
on Jun 24, 2017 at 06:54

    Fellow monks, could you try going to Perl Monks Discussion and seeing if the following renders as actual input boxes?

    Because that is what is happening for me when I view this node via SoPW, as well as this node via PMD. (Posted at the request of tye .)

    Update: Also happening for me when viewing SoPW as anonymous. Edited the title to remove "in SoPW" since it's happening in PMD too.

    Update 2: Relevant HTML source of PMD:

    <tr class="post-body post_body"> <td colspan="2"> <ul><p>Fellow monks, could you try going to <a href="?node_id=1040">Pe +rl Monks Discussion</a> and seeing if the following renders as actual + input boxes?</p> <input> <input> <p>Because that is what is happening ...</p></input></input></ul> </td> </tr>
Update shortcut link to SSCCE
2 direct replies — Read more / Contribute
by 1nickt
on Jun 16, 2017 at 12:12

    The current link from SSCCE points to node # 1177743, which is a page containing only one thing: a link to node # 1177642 -- the page that actually describes what an SSCCE is. The handy syntax link is great, but could it be updated to point directly to the page? I don't really see the point of the intermediary page, and I fear that some newbs who click to it won't manage to click through to the real doc. Studies about page depth and retention show ... , etc. and the link doesn't exactly stand out.

    Can we do away with the intermediary page and update the link?


    The way forward always starts with a minimal test.
Book review update button not doing anything
3 direct replies — Read more / Contribute
by oldtechaa
on Jun 14, 2017 at 13:57

    I wrote a review of Modern Perl here: Modern Perl

    Since I made some mistakes in formatting, I then immediately went to change the formatting to what's below. When I hit the update button, nothing happens. It doesn't update and doesn't reload the page, but it does show the button was pressed. I'm using Firefox on Android.

    I'll try again on a desktop computer, then report back.

    --------------------------------------------------------

    The details of Modern Perl can be found in other reviews on PerlMonks. As it is freely available and anyone can look at the chapter descriptions, I won't review those here.

    What I want to point out is the usefulness of this book for teaching best practices. The basic Perl part of the book isn't strictly necessary as this is covered in perlintro. However, many of the best practices cannot be found in perldoc or can't be found easily.

    Such chapters as 2 and 7-12 are gold mines for best practices, many of which are difficult to find elsewhere unless searching specifically for them. Such things as the best community websites, Moose, style, exceptions, testing, warnings, reliability, security, idioms, things to avoid, and other tips are all considered in an uncluttered format, simple to understand and free to read (although you may want to donate on onyxneon.com).

    Enjoy this modern, free, effective best practice guide.

Rendering problem
2 direct replies — Read more / Contribute
by Athanasius
on Jun 13, 2017 at 02:55

    There appears to be a problem in rendering the title of the nodes in the thread Why does widget->destroy give the error Tk::Error widget was deleted before its visibility changed? Instead of rendering like this:

    | Poetry | Recent Threads | Newest Nodes | Donate | What's New

    the links at the top right of the page have erroneous text added:

    | Poetry | Recent Threads | Newest Nodes | Donate | What's New destroy + give the error Tk::Error widget was deleted before its visibility ch +anged? NODE.owner = 193692 N.title = monktitlebar sitedoclet N.owner = 17342 -->

    The added text also appears at the end of the Cabalists’, Find Nodes, Settings, and Leftovers Nodelets.

    The rendering problem is common to all the nodes in the thread, so presumably the arrow in the node title is the trigger? I see the problem on both Chrome and Firefox1, whether I’m logged in or viewing anonymously.

    1Update: and Internet Explorer.

    Cheers,

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

Erroneous message from root
1 direct reply — Read more / Contribute
by shmem
on Jun 09, 2017 at 13:24
Some [doc://...] links are broken
1 direct reply — Read more / Contribute
by LanX
on Jun 03, 2017 at 14:30
    Hi

    while ie [doc://while] doesn't link to while

    Not sure what changed, but I'd like to have a look into the code resolving doc links.

    Maybe I can patch it.

    Spend an hour with the pmdev docs, but couldn't find it.

    update

    I noticed that the Function Nodelet links to a doc node

    http://www.perlmonks.org/index.pl?node=doc%3A%2F%2Fmy

    But http://www.perlmonks.org/index.pl?node=doc%3A%2F%2Fwhile doesn't work either.

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

side effects "Enforce proper nesting of HTML"
1 direct reply — Read more / Contribute
by LanX
on Jun 03, 2017 at 13:09
    I just noticed that my display of this node How to analyse structured data to get a hash was totally messed up (no line breaks), but becomes kind of "readable" after I logged off (the OP avoided code tags)

    Turned out that my  Display Settings had "Enforce proper nesting of HTML" enabled, which didn't go well with the OP's use of </br> tags.

    Though after reading the help page, I don't understand why

    • Enforce proper nesting of HTML - If set, PerlMonks adds explicit closing tags in cases where an element was implicitly closed due to the ending of an outer element.

    Merely an information, not sure if this demands action.

    FWIW: disabled the option now.

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

Can not link to "id" in shortcuts
2 direct replies — Read more / Contribute
by Lady_Aleena
on May 31, 2017 at 22:30

    I just tried to create a link to part of my scratchpad where I placed an id=. I tried [id://637756#laundry|my pad]. It did not munge. I just got [id://637756#laundry|my pad]. I would really like to link to tags with ids. For example, if I give an id to a section of my home node, I can link to just that section. Pretty please?

    Update: It looks like I can not add ids to the html elements. They do not make it to display. 8(

    No matter how hysterical I get, my problems are not time sensitive. So, relax, have a cookie, and a very nice day!
    Lady Aleena
Anonymous Monk comment(s) on questions
7 direct replies — Read more / Contribute
by thanos1983
on May 24, 2017 at 15:55

    Hello everyone,

    Lately I have been noticing very often Anonymous Monk is someone who is posting not nice answers to questions (e.g. Re^2: Supervised machine learning algo for text matching across two files).

    Somehow we need to contain this. This is a great very polite forum that people with real questions come and search for answers. I comparison to other forums people here do help and not judge if their skills are not super or their knowledge on experience is high. Everyone of us was a beginner and we/I are still beginners in areas where other can strive.

    Any way in conclusion, this forum is great but people like Anonymous Monk who hide behind anonymous profiles can post what ever they want and mess the reputation of this forum.

    I would propose if possible to constrain Anonymous Monk from replying on questions, he should be still possible to post and read any questions but what about not been able to post a reply if he is not a registered member?

    What do you think, would that maintain somehow this problem?

    Seeking for Perl wisdom...on the process of learning...not there...yet!
Messaging the result of a consideration
6 direct replies — Read more / Contribute
by chacham
on May 20, 2017 at 15:15

    There is a message if a considered node gets reaped or edited, and the node is noted with this, including a link to the tally. If the node does not get reaped or edited, there is no message and the node is not noted.

    It would be nice to know the result of a consideration regardless of the outcome. Also, when viewing a node, to see if it has been previously considered and what the tally was. Beside being interesting, it can prevent a second consideration of the same node.

I can upvote a node multiple times! Well... sort of.
4 direct replies — Read more / Contribute
by perldigious
on May 15, 2017 at 10:08

    Just tried something that occurred to me because I though I could find a large bug. It only partially worked, so I guess it's at best a small bug...

    Basically, I tried opening the same node in multiple tabs of my browser prior to voting on it. Since the voting options stick around in any tab opened prior to actually voting on a node, and curious if the programming behind the scenes actually just hid them from the account that already voted after the fact to prevent multiple votes, or if it did any kind of back end checks to see if that specific account had already voted on the node, I gave it a try.

    From what I could observe, my first upvote did increase the rep of the node, but my second upvote did not. I'm not sure if there is any wonky behavior involving XP for either the voter or the vote-ee, but I did notice that my number of votes left for the day decreased in both cases.

    So based on that, I'm calling it a small bug, since really if someone tries to do this maybe they should lose the vote(s) to oblivion anyway (assuming that's all that happens). I figured I'd report it none the less, since sometimes I have an annoying habit of trying to "break" things like this on purpose. Trust me, I'm a video game designer's/programmer's worst nightmare, after beta testing and post release or course. :-)

    UPDATE: My bad, disregard based on my response to soonix below. That's what I get for taking non-current data at face value, and just generally not thinking through what I was actually observing. I should have seen my number of votes decrease by two instead of one the second time if what I said were actually true.

    Just another Perl hooker - Working on the corner... corner conditions that is.
Restricting Anonymous Monk to SOPW
8 direct replies — Read more / Contribute
by Anonymous Monk
on May 13, 2017 at 10:25
    I understand the reasoning that new members should be allowed to post anonymously.

    But none of the sections except Seekers Of Perl Wisdom is meant for new members, it's acceptable to ask for a log-in before posting there.

    Hence reducing AM to SOPW would reduce the amount of needed considerations and moves.

add rewrite rule to redirect /index.pl?node_id=.... to /?node_id=.....
3 direct replies — Read more / Contribute
by Anonymous Monk
on May 12, 2017 at 21:26

    Hi,

    Can we add a rewrite rule to redirect /index.pl?node_id=.... to /?node_id=.....

    I'm dilligent about using perlmonks.org only, but once in a while through site navigation not user links i end up with index.pl and bam, all my visited links aren't visited anymore..

    Just a thought

    Thanks


Discussion Item
Title:
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?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and all is quiet...

    How do I use this? | Other CB clients
    Other Users?
    Others avoiding work at the Monastery: (5)
    As of 2017-07-23 01:01 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      I came, I saw, I ...
























      Results (342 votes). Check out past polls.