Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

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
Single code block split into multiple sequential code blocks.
3 direct replies — Read more / Contribute
by BrowserUk
on Oct 30, 2014 at 16:17

    Does any/everyone else see the first code block in Inline C memory leak split into 4 sequential code blocks?

    Is this a bug?

    This is the second or third time I've encountered this recently, though I can't remember which the other posts were.

    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.
Google fonts
1 direct reply — Read more / Contribute
by Loops
on Oct 30, 2014 at 04:16

    Google has a large collection of free fonts that are hosted for use on web sites. You can use them in your own personal CSS for this site if that's your kind of thing. Here is example CSS that you could paste into your Display Settings in the "On-Site CSS Markup" field. I think it looks good with the Dark theme selected, but it should work with any.

    @import url(''); @import url(,40 +0italic,700); * { font-family: 'Merriweather', serif !important; } .titlebar { display:none; } /* Remove title bar from top of every +screen */ .monktitlebar { font-size: 80%; } /* Make top link list a little sm +aller */ textarea { width: 90%; height: 30em; } /* Don't post through a keyho +le */ tbody.nodelet td { font-size: 14px !important; } /* Reduce sidebar s +quint */ /* Put border around code areas, and select monospaced Google font */ tt.codetext { display: block; margin-right: 5px; padding: 4px 4px 4px 4px; font-size: 96%; border: 2px solid gray; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; font-family: 'PT Mono', monospace !important; }

    If you do decide to use different fonts, google makes it quite easy:

  • Find the font you like and click on its "Quick Use" button
  • Scroll down to step-3 for your selected font
  • Click on the "@import" tab (since Standard is shown by default)
  • Copy the shown "@import" line for your font
  • In Display Settings, replace the import from the CSS above to use yours instead
  • You'll also need to copy the font-family line from step-4 and replace it in the CSS too
  • Obligatory Screenshot and another Screenshot with Indie Flower font

    *The code-border CSS was based on a PM post that evades my search fu right now, sorry

Displaying Monk Levels
No replies — Read more | Post response
by chacham
on Oct 28, 2014 at 16:26

    After reading Author's level title hidden by default, and adding ".attribution-title { display: inline; }" to On-Site CSS Markup in Display Settings i realized i had no idea what the levels of those titles were. So, with a lot of searching and some guessing, i put together a Greasemonkey script to show (# - title), for example, instead of "(Pope)", it'll display "(28 - Pope)".

    // ==UserScript== // @name Monk levels // @namespace // @description Replace attribution title with corresponding level // @include* // @grant none // ==/UserScript== var level = { "Initiate" : "1", "Novice" : "2", "Acolyte" : "3", "Sexton" : "4", "Beadle" : "5", "Scribe" : "6", "Monk" : "7", "Pilgrim" : "8", "Friar" : "9", "Hermit" : "10", "Chaplain" : "11", "Deacon" : "12", "Curate" : "13", "Priest" : "14", "Vicar" : "15", "Parson" : "16", "Prior" : "17", "Monsignor" : "18", "Abbot" : "19", "Canon" : "20", "Chancellor" : "21", "Bishop" : "22", "Archbishop" : "23", "Cardinal" : "24", "Sage" : "25", "Saint" : "26", "Apostle" : "27", "Pope" : "28" }; var attribution = document.getElementsByClassName('attribution-title') +; for (var i = 0; i < attribution.length; i++) for (var title in level) attribution[i].innerHTML = attribution[i].innerHTML.replace(title, l +evel[title] + " - " + title);
IE8 connection problem to
2 direct replies — Read more / Contribute
by Lotus1
on Oct 24, 2014 at 09:54

    This morning IE8 won't connect to At work we are using IE 8 and it has been working to connect to Has something changed?

    I can connect with Google Chrome on the same machine but I prefer to just use one browser for everything so it must be IE8. I can still connect via IE8 to

    Update: Before someone asks, it was just timing out, there were no browser errors shown. Now it is working again.

Donation page
2 direct replies — Read more / Contribute
by Loops
on Oct 22, 2014 at 03:00

    The Offering Plate node has a handful of broken links (they have a spurious '' component in them), including the Donate link. Even with the link manually corrected, there doesn't seem to be anywhere on that shows the current funding level for Maybe someone with edit capability could take a look?


monk equator
3 direct replies — Read more / Contribute
by LanX
on Oct 18, 2014 at 20:28
    His popeness Corion just crossed the monk equator of 111111 XPs. ;)

    Experience: 111111 Level: Pope (28) Writeups: 8802

    Congratulation! =)

    Cheers Rolf

    (addicted to the Perl Programming Language and ☆☆☆☆ :)

Displaying the Experience nodelet on your homepage
1 direct reply — Read more / Contribute
by chacham
on Oct 15, 2014 at 13:29

    Some people like recording the Experience Nodelet on their homenode when they find a particular one to be significant or amusing. When i hit Level 13: Curate someone kindly sent me the following code (which i modified to meet my needs):

    <table class="nodelet_container" width="300"> <tbody class="nodelet"> <tr class="nodelet_head_row"> <th class="nodehead" align="left">XP Nodelet</th> </tr> <tr class="nodelet_body_row"> <td class="nodebody"> You gained 2 experience points. I've got a million of them. <br>Your new level imbues you with super-powers! Check out [id://5 +04005] for the details! <br>You have 999 points until level 14 - Priest. </td> </tr> </tbody> </table>

    This shows up as:

    XP Nodelet
    You gained 2 experience points. I've got a million of them.
    Your new level imbues you with super-powers! Check out Level 13: Curate for the details!
    You have 999 points until level 14 - Priest.

    The text itself needs to be copied from the experience nodelet. It'll wrap itself, but add <br> for new lines. If you already closed the browser tab with the text, chances are you can pull it back up from history or go back to it as necessary.

    Though the experience nodelet does not use it, you can show a caption with the <caption></caption>tags inside the table.


    Update: Added align="left" in <th> because "XP Nodelet" should not be centered.

SuperSearch: hitting "return" in form with altered query
1 direct reply — Read more / Contribute
by LanX
on Oct 09, 2014 at 13:02
    After a partial search in SuperSearch hitting return seems to be bound to the first submit button

    <input type="submit" value="Next >" name="nx">

    Unfortunately that means altering the query doesn't restart at the beginning of the DB after hitting return but continuing where the last query stopped.

    So it's necessary to click

    New <input type="submit" value="Search" name="go">


    I can't see an application for binding the return-key to "Next >" while it's handy after altering a form entry.¹

    My suggestion would be to add a hidden

    <input type="submit" value="Search" name="go" style="display:none">

    prior to

    <input type="submit" value="Next >" name="nx">

    to change the default for return-key.

    This SO discussion shows different ways to do so how-to-submit-a-form-when-the-return-key-is-pressed

    I haven't tested yet...but I think we have enough HTML expertise in this board to find a solution! :)

    Cheers Rolf

    (addicted to the Perl Programming Language and ☆☆☆☆ :)

    ¹) for creating a keyboard submit you need to select a form element. The only way to select "next >" w/o clicking is to hit the "tab"-key. But in that case pressing "bar"-key has still the effect to continue the search.

    All other form elements should be bound to "Search" again.

consideration style for spam nodes
1 direct reply — Read more / Contribute
by LanX
on Oct 09, 2014 at 12:02

    as you can see, there have been many spam nodes reaped recently without mentioning the word "spam" within the consideration.

    click and hit search to see

    Please, in order to facilitate the update of the spam filter from time to time, it'll be nice if you could all try to write something like "Reap: spam" or so.¹

    The update is done manually, use of SuperSearch helps a lot here! :)

    Cheers Rolf

    (addicted to the Perl Programming Language and ☆☆☆☆ :)

    ¹) at least mention " spam " somewhere ...

Daily Best Thread?
4 direct replies — Read more / Contribute
by QM
on Sep 29, 2014 at 05:01
    Being a somewhat erratic reader here, I find the Daily/Weekly/Monthly Best Nodes helpful to find high quality content in my limited time. (AFAIK, Daily Best does not have it's own page, but is derived from Best Nodes, and there's more info at About the Daily Best Nodelet.)

    But I often feel I'm missing out on the OPs that have lots of good discussion, while not making it into Best Nodes.

    My question: Is there a "Best Thread" mechanism? If not, is there enough interest to consider making one?

    Of course, this begs the question of what a "Best Thread" is, because we don't vote on threads. Given the current scheme, we'd have to compute some thread score, such as Sum_of_Node_Votes / Number_of_Nodes. Perhaps throw in a multiplier for unique responders, or unique readers.

    I did a quick search here, but of course "thread" comes up with the other kind, and I didn't find anything relevant. Please point me to any previous discussions.

    Quantum Mechanics: The dreams stuff is made of

Message Inbox bug?
1 direct reply — Read more / Contribute
by tel2
on Sep 10, 2014 at 19:32
    Hi Monks,

    On the Perlmonks website, if I have some messages in my Inbox, and want to archive them, I bring them up on the Message Inbox page, and then I do this:
       {Move} ({x} all but) selected to {Archive}   (where 'x' is a tick)
    without having to select any of the messages. This works and seems logical to me, but doing exactly the same thing without ticking the "all but" box, seems to give exactly the same result (i.e. it archives all the (unselected) messages).

    Why does this happen? Is this a bug? Is this a feature? Or am I just losing my logic?


PerlMonks meets Twitter Bootstrap
11 direct replies — Read more / Contribute
by tobyink
on Sep 02, 2014 at 15:56

    Here's what it looks like: screenshot.

    And, here's how to do it. Paste the following into your Free Nodelet:

    <script type="text/javascript" src="// +n.js"></script> <script type="text/javascript" src="// +p/3.2.0/js/bootstrap.min.js"></script> <script type="text/javascript" src="// +ighlight.js/8.2/highlight.min.js"></script> <script type="text/javascript" src="//"> +</script>

    Then in Nodelet Settings make sure your Free Nodelet isn't hidden.

    If you want to play around with the idea, adjust the URL to point to a script file on your own server; grab a copy of the Javascript and CSS files and have fun!

perlmonks site
5 direct replies — Read more / Contribute
by rsFalse
on Sep 02, 2014 at 05:37
    I dislike: small texts at this site, white background of site (it's uncomfortable for my eyes), inability to reply to forum post. I like: answers on topics, and other... // guest-newbie
Meeting & conference announcements (updated with suggested guidelines)
2 direct replies — Read more / Contribute
by davies
on Jul 26, 2014 at 13:14

    I cannot find any guidelines for announcing Perl related events on this site. I have seen some events announced with requests for talks here, but not others. I am asking now because this year's London Perl Workshop has just been announced, but it is a question that has exercised my mind when other events have come up, such as the London PM tech meet two days ago (Thursday).

    Do such guidelines exist? If not, what should the guidelines contain? The simplest guideline of all is "Don't", but as I said above, it's one I have frequently seen broken. Do people want to know about major conferences only, lesser ones like the tech meet, routine pub events, emergency pub events? Where notices include publicity blurb about sponsors, should this be repeated or edited out?

    For any London mongers reading this, I happily volunteer to post notices about London events here, once I know I'm not doing the wrong thing. If guidelines exist or are created that permit such postings, I also volunteer to put a copy of the LPW 2014 notice in Perl news, unless someone else would prefer to do it.


    John Davies

    Update 2014-07-29

    I have received fewer replies & suggestions than I hoped. I'm therefore putting up my own suggestions for guidelines. Please note that they are my suggestions. If the Gods see things differently, their word goes.

  • It's good to talk. News of any sort of meeting should be posted on this site in the Perl news section (
  • If this isn't the primary or first place a notice is posted, the notice should be of the form Title, Explanation (if the title isn't enough), Time, Place, Link to full details.
  • Repeated events should all be in the same thread. Each new case of an event should have a post of its own. I.e. there should be a thread for the London Perl Workshop, with each year's event having a new node in the thread.
  • Fewer threads are better than more, but materially different events should have their own thread. London would therefore have three threads, LPW, tech meets & social meets, with emergency socials being grouped with routine & heretic socials.
  • IMHO, any existing posts should be used as a starting point. If there are more than one that should be in a series, they should be considered and re-parented as necessary. But I'll wait for janitorial or Godly opinions before I start considering such nodes. If the amount of work is a problem, I hereby volunteer, if granted the power by the gods, to do it.

Broken link - Offering Plate Node / Click here to donate!
1 direct reply — Read more / Contribute
by bcarroll
on Jul 09, 2014 at 19:49

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
  • Outside of code tags, you may need to use entities for some characters:
            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 avoiding work at the Monastery: (9)
    As of 2015-02-28 14:02 GMT
    Find Nodes?
      Voting Booth?

      On my keyboard, Caps lock is:

      Results (462 votes), past polls