Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Perl Monks Discussion

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

Do not post your Perl questions here!

This section is only for discussing issues pertaining to the PerlMonks web site itself. For example, asking about how things work, or offering ideas on how the site could be made better.

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

PerlMonks Discussions
Recently Active Threads: limited maximum node depth
2 direct replies — Read more / Contribute
by kcott
on Nov 27, 2022 at 17:24

    G'day All,

    This morning, I saw in "Best Nodes" a link to "Re^12: Perl XS binding to a struct with an array of chars*". I looked in RAT to get an idea of the activity in this thread: there were a number at "Re^9" but nothing deeper. I went to the Page Settings (bottom of the RAT page) to change the maximum depth but the selection only provides 0-10.

    Scrolling through (the very long) "Perl XS binding to a struct with an array of chars*", I found a couple at "Re^10" as well as the "Re^12" (from Best Nodes). So, I haven't lost access to any content; however, it would've been preferable to get a high-level view via RAT.

    Can that "maximum depth" selection be extended? I don't know if there are other factors involved, so I don't know what to suggest beyond arbitrary ranges such as 0-20 or 0-99. Alternatively, could there be a "no depth limit" checkbox? I imagine a text entry box would be another option, but I suspect that might require a fair bit of validation and other work which pmdev's may not want to undertake (although, I'm very much guessing about that).

    — Ken

Hermitage page is blank
3 direct replies — Read more / Contribute
by harangzsolt33
on Oct 29, 2022 at 01:10
    I recently got promoted to level 10 "Hermit," and I saw that there is more information about this level. So, I clicked on the "Hermitage" link, and to my surprise, the page is empty. Well, I made a note of that, and Ken informed me that it's not empty. It says, "Info for Hermits (and above) only." Okay, so is this a joke? I see the words "Info for Hermits (and above) only" and it's followed by nothing but blank space all the way to the bottom of the page. Then at the very bottom it says, "PerlMonks lovingly hand-crafted by Tim Vroom..." So, my question is is there something on this page that should be visible to me? because I can't see it.
Notification of XP increase has gone wild (maybe)
6 direct replies — Read more / Contribute
by davido
on Oct 21, 2022 at 21:17

    The past few times I've logged in here (sadly, days or sometimes a week apart) I'm seeing big bumps in XP. Most recently, the XP nodelet congratulated me on +92.

    At first I thought it was some recent post getting a lot of attention, but I'm not seeing that. Then I thought maybe a really old post hit reddit or something. But when I search my posts by reputation I'm not seeing new top contenders. That leaves the possibilities that I have no idea what post is getting upvoted so much, or that a bunch of posts are getting upvoted a little, but continuously over the past month or so, or that there's a bug.

    Has anyone else noticed this behavior?


    Dave

Anonymous monk reaches 100,000 posts
2 direct replies — Read more / Contribute
by marto
on Sep 25, 2022 at 04:40
Please unconsider
3 direct replies — Read more / Contribute
by hv
on Sep 18, 2022 at 18:30

    I considered node 11146956 as "fix link" because the author had entered something like [<a href=...>link</a>]; but it seems the author noticed it too, because when I hit "moderate" the page refreshed with the link already fixed (moved to the end, with no markup). That leaves the consideration looking like a request for something else entirely.

    I can't remove the consideration myself, right? (Perhaps unconsider could be automatic if the first vote is "keep", and made by the considerer? Or maybe that's just too much magic.)

    I'll try to remember to make consider requests more explicit in the future. (But I suspect edits by the author are hard to anticipate.)

Consistent tab width settings
5 direct replies — Read more / Contribute
by LanX
on Sep 10, 2022 at 17:32
    Hi

    if I look with Chrome at that post

    and at the embedded code I notice that the tab width settings are 4 and 8.

    And it's also 8 if I copy that code to the textarea for composing a post.

    Suggestion: Is there a way to homogenize that to one of these? Best with CSS?

    There is no need to discuss that mixing tabs and whitespace is a bad habit, or that the mainstream is against tabs for formatting. And I don't really have an opinion which width would be better suited here...

    But I think it would be beneficial for newbies if they saw the same result before and after posting.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

    ) My subjective preference is 4, which doesn't mean it's the objective overall solution.

    ) Which means the OP didn't notice the problematic display prior to submitting.

    update

    there is a CSS setting called tab-size

    see

    and when I use the dev-console in my browser to change the style, it seems to work fine...

    plz check with other browsers and discuss the options. :)

Nodelet Hack to auto-linkify modules in code sections (well almost)
1 direct reply — Read more / Contribute
by LanX
on Jul 22, 2022 at 13:15
    Hi

    I just wanted to hack a free nodelet hack (sic) on the fly, which automatically links any used or required module in code-sections to CPAN.

    But I don't know what I'm doing wrong, can't make it work yet.

    Not sure if it's a JS problem or related to Chrome and security issues (couldn't test in FF yet).

    Before scratching all the efforts, I thought it might be reasonable to ask for help.

    paste this into the JS Console

    function linkCPAN() { let codes = document.getElementsByClassName('codetext'); // let pattern = '$1<href="http://search.cpan.org/perldoc?$3">$3</ +a>'; let replacer = function (match, p1, p2, p3) { return p1 + '<href="http://search.cpan.org/perldoc?' + p3 + '" +>' + p3 + '</a>'; }; for (var i in codes) { if (!codes.hasOwnProperty(i)) continue; let text = codes[i]; let inner = text.innerHTML; inner = inner.replace(/((use|require)\s+)((\w+)(::\w+)*)/g, re +placer); console.log(inner); text.innerHTML = inner; } }

    and call linkCPAN()

    you should see the properly replaced HTML in the console, but nothing happens in the window.

    here some input for testing

    use strict; use Data::Dump;

    Any ideas?

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

    update

    fixed JS has no hashes but objects bug with if (!codes.hasOwnProperty(i)) continue;

RFC: Policy regarding abuses of the voting system
10 direct replies — Read more / Contribute
by jdporter
on Jun 09, 2022 at 09:38

    I submit for your consideration:

    Policy regarding abuses of the voting system

    The following behaviors are counter to the spirit of PerlMonks and are considered abuses of the voting system:
    1. Massive downvoting of nodes belonging some specific user.
    2. The use of vote-bots for any reason.
    3. Voting on nodes you (the human) wrote.
    Any violation of this policy will result in a suspension of your voting privileges, and may result in having your XP reduced by an amount we deem appropriate.

    If you suspect you have been the target of a malicious downvoting campaign, please /msg [gods]. We will look into it.

    References:
    1. History now influences voting
    2. All your Votebots are belong to us
    3. Site Rules Governing User Accounts

No new reviews?
1 direct reply — Read more / Contribute
by hippo
on May 27, 2022 at 06:49

    It seems that new reviews are not being accepted - is this intentional?

    From the top menu, select Reviews, then "Add a Module Review" or "Add a Book Review" and you just get

    This node has been deleted.

    🦛

Time of post is missing (at least in not logged-in session)
1 direct reply — Read more / Contribute
by Anonymous Monk
on May 10, 2022 at 18:50

    As a reader who has not logged in, the time of post is missing from the view of https://perlmonks.org/?node_id=397425;mode=root-and-node (got "Tough beans" message when the text was a link). That makes it hard to track which thread/post I should read next.

    And no, color gradient is not helpful in my case.

    Please show the age of post again.

Warning: PerlMonksFlair now links to a porn site
4 direct replies — Read more / Contribute
by kcott
on Apr 27, 2022 at 17:17

    See "perlmonksflair.com : get your perlmonks flair!" for more about PerlMonksFlair.

    I had a link to this on my home node:

    <p>[id://1049026|PerlMonks Badge]: [http://www.perlmonksflair.com/kcot +t.jpg]</p>

    Overnight, ++Cristoforo advised me: "Someone linked your `perlmonksflair` link to a porn site!". I immediately removed that paragraph. I'm reasonably certain that I've seen similar links (e.g. http://www.perlmonksflair.com/<monk_name>.jpg) on other monks' home nodes; they may also exist on non-PM webpages including, potentially, $work websites.

    It looks like the author, gideondsouza, was maintaining this up to, and including, 31-Jul-2017; that is also the last time he visited PerlMonks. I suspect ownership of the domain expired and was bought by another party (just guessing, though).

    I'll add a link to this post on "perlmonksflair.com : get your perlmonks flair!"; however, given the length and popularity of that thread, my addition may not be particularly prominent. Perhaps gods, janitors, or other cabal members with appropriate permissions, might consider adding a large, bold warning to the top of the OP.

    — Ken

Is "Tidings: What's New at PerlMonks" Obsolete?
5 direct replies — Read more / Contribute
by kcott
on Apr 23, 2022 at 02:13

    G'day All,

    Just to be absolutely clear, this is about "Tidings".

    The first paragraph of that node begins with:

    "Your site maintainers are constantly improving the appearance and functions of PerlMonks to make your experience here the best it can be. To find out what has changed recently, or since the last time you logged in, peruse the headlines below."

    Unfortunately, while "constantly improving the appearance and functions of PerlMonks" is certainly true, reporting such via Tidings is not.

    I make a point of checking this node every time I log in (that probably averages more than once a day). I rarely see any updates; the last was 16-Jul-21.

    I don't wish to single out any particular changes, but it seems many occur without notification in this node. Purely for example, the recent "User Profile Element: CPAN author ID" would seem like a prime example to be notified in Tidings.

    I've been a registered user for well over a decade; as such, I'm familiar with some for the foibles of this site. For newer users, or less frequent visitors, this may appear as stagnation. Let's avoid that by either using Tidings regularly or retiring it to the monastic archives.

    Discussion appreciated.

    — Ken

Is this OK?
4 direct replies — Read more / Contribute
by jwkrahn
on Apr 09, 2022 at 18:56

    Is it OK to post some Perl code I found on the web and critique/make fun of it, or should I just post it on https://thedailywtf.com/ ?

User Profile Element: CPAN author ID
6 direct replies — Read more / Contribute
by jdporter
on Apr 04, 2022 at 14:38

    We have just added a new field to the user profile: CPAN author ID. You can put your PAUSE author ID in this field. When someone views your profile, they will see it and it will be a link to the corresponding page on metacpan.

    Do you like this? It can be removed if it is unpopular.

    Update:

    I have turned off users' ability to set this value themselves.
    The field itself is still supported, and you can see it displayed on certain monks' homenodes.
    If you would like to have your CPAN ID on your homenode, please just /msg gods with your request. Thanks!

    Update 2:

    As a convenience, I have added the CPAN IDs to user profiles based on the info provided in this CPAN api (about 30 monks) and in this MetaCPAN api (about 185 monks). Interestingly, there was almost no intersection between those two sets of data.

    I reckon we are the only monastery ever to have a dungeon staffed with 16,000 zombies.
Random Perl Pair Programming
1 direct reply — Read more / Contribute
by InfiniteSilence
on Apr 01, 2022 at 16:30

    I'm watching Mark Gardner and Gabor Zabo doing some pair programming and wondered if there could be a facility here at PerlMonks to initiate the same thing?

    I think it would be like the equivalent of a private chat ... someone is online and you can see what project they would like to code in this fashion. Since you could see their ranking on Perlmonks you could get a feel right away if this might not be a great idea maybe?

    Celebrate Intellectual Diversity


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":


  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2022-12-02 03:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?