Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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
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

Double double toil and trouble
1 direct reply — Read more / Contribute
by marto
on May 04, 2017 at 03:38
The Cookies account
4 direct replies — Read more / Contribute
by Lady_Aleena
on Apr 26, 2017 at 04:47

    A little over four years ago, I created the Cookies account for fun. I was known for my chatterbox antics with cookies; so on April Fools 2013, I decided to have some fun. Two years ago I went in for surgery, which is scary. I was thinking something could happen, and Cookies would be left without someone to maintain the account.

    Some users still play with the buttons from time to time. I would not want the account to die just because I did. So, if anything happened to me, would there be someone who would be willing to take over this very silly account?

    P.S. I am always willing to add more flavors and options to the account. Just let me know.

    P.P.S. This thread can be for anything related to the Cookies account that might merit general discussion, too. 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, the Cookie Lady
Number of Replies Count Wrong
1 direct reply — Read more / Contribute
by perldigious
on Apr 25, 2017 at 09:09

    I was just looking at the latest CUFP as I post this and I noticed that in the CUFP home it says "1 reply", but when I click on it to look it appears to have none. A minor thing, but some sort of glitch perhaps?

    Just another Perl hooker - Working on the corner... corner conditions that is.
Discrepancy in reap notification message
4 direct replies — Read more / Contribute
by Athanasius
on Apr 24, 2017 at 23:57

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?
    [Discipulus]: good Autumn/Fall start monks!

    How do I use this? | Other CB clients
    Other Users?
    Others cooling their heels in the Monastery: (7)
    As of 2017-09-22 07:04 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      During the recent solar eclipse, I:









      Results (259 votes). Check out past polls.

      Notices?