Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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
You disrespect french...
4 direct replies — Read more / Contribute
by vkon
on Dec 16, 2014 at 18:06
    I am not french... my post about french showshow quick on downvotes you are...
    you just plain stupid....
    bye-bye snobs, see ya
what? No French UI setting for the perlmonks site?
7 direct replies — Read more / Contribute
by vkon
on Dec 16, 2014 at 08:13
    subj
    even facebook have French UI, ... maybe I've searched settings in a wrong way?
TinyMCE javascript toolbar
5 direct replies — Read more / Contribute
by Steve_BZ
on Dec 11, 2014 at 15:46
    Hi Monks,
    After the controversy of my last post, I thought I'd post this in a spirit of reconciliation. I've also switched my spell-check back to English which might help.
    Here is a piece of JavaScript that displays a toolbar with some html generator buttons on the text area where we type our responses. You put it in your Free Nodelet and it loads up a small editor.
    The JavaScript source code can be downloaded freely to perlmonks.org from here (www.tinymce.com), so that the risk of code changes would be lessened. Then of course it need not be included in our free nodelet.
    Update 1 for tables, menu and other cool stuff.
    Update 2 There seem to be some integration problems between tinyMCE and PM. TinyMCE posts as a wholeblock. I'm looking into it. - OK now.
    Update 3. Needs some experimentation to get used to.
    Update 4. White space and formatting issues fixed (Thanks anon).
    <script src="//tinymce.cachefly.net/4.1/tinymce.min.js"></script> <script type="text/javascript">// <![CDATA[ tinymce.init({ selector: 'textarea', remove_linebreaks: false, forced_root_block : 'p', convert_newlines_to_brs : true, preformatted : true, plugins: 'table wordcount searchreplace autosave spellchecker visualb +locks textpattern textcolor save print preview paste lists link inser +tdatetime hr fullscreen legacyoutput contextmenu code charmap', // m +edia image tabfocus pagebreak template fullpage bbcode colorpicker em +oticons toolbar: 'undo redo | table | bold italic | alignleft aligncenter alig ++nright alignjustify | bullist numlist outdent indent | link | print +preview | forecolor backcolor emoticons charmap code | hr paste searc +hreplace spellchecker template visualblocks insertdatetime', // inser +tfile styleselect save media image fullpage pagebreak statusbar : true }); // ]]></script>
    Try it out and let me know what you think.
    Regards
    Steve
Perl Monks monastery vs the Vatican
9 direct replies — Read more / Contribute
by Steve_BZ
on Dec 09, 2014 at 16:14

    Beloved Brothers and Sisters in Perl.

    I understand that Perl Monks is a monastery and that we all regularly meditate, fast and pray to the great Perl god through his divine representative here on Earth, the prophet Larry, may his name be for ever hallowed. We dine off olive stones and we desk-check our code before typing it onto punch cards.

    I recently heard about a new religion that is doing the rounds with young people (hippies I think they are called) they have these things called Smartphones (a bit like a portable 3270 vdu), and they use a different monastery to us, called Facebook. It sounded threatening, so I looked to see what our Great Competitor is doing vatican.com.

    Imagine my surprise when I saw they had a FacebookLike button on it. Call me old-fashioned maybe, but it seemed oddly sacrilegious to my way of thinking. And even something called the "g+", it's either a new compiler or it's that thing that Brother Masters and Sister Johnson were describing in 1957. I feared the worst.

    So there seems to be this thing out there called "Social Media". If the Great Competitor is using it, may be we should reconsider our position, or maybe the Trappists have got it right. Maybe we should all take a vow of silence. Only to be broken with our morning chant of: use strict; use warnings; print @_;

    Brother and Sisters I earnestly ask for your views on this difficult matter.

    Yours in faith,

    Brother Steve

    PS GUYS, SOCIAL MEDIA. IT'S OUT THERE. WADDA WE GONNA DO ABOUT IT?!

why appears AnonymousMonk and how to update posts
4 direct replies — Read more / Contribute
by Anonymous Monk
on Dec 09, 2014 at 10:04

    Why appears AnonymousMonk when I reply.
    Then, how can I update my posts in case of mistakes.

    Saverio
Please let the last message a user sent in the chatterbox time out?
2 direct replies — Read more / Contribute
by Lady_Aleena
on Dec 08, 2014 at 02:20

    Hello. Today I went into the chatterbox to say "Hello". My simple "Hello" did not appear. I went to CBstream and found the last message I sent before this "Hello" was another "Hello". I think I sent it a few days ago. While I can see the wisdom behind not allowing repeated messages in the CB, would you please consider putting a time out of something like half a day or a day? Sometimes I don't want to freshen the cookies on the sideboard (and even if I did, I can't do it twice in a row).

    Thank you.

    No matter how hysterical I get, my problems are not time sensitive. So, relax, have a cookie, and a very nice day!
    Lady Aleena
perlmonks App?
5 direct replies — Read more / Contribute
by lightoverhead
on Dec 01, 2014 at 00:35

    Monks:

    I was trying to search an android app for perlmonks reader type stuff.

    But I failed to discover any readers for perlmonks in google play store.

    Does it really exist? If not, why don't someone write one for android system, so people can read/post perlmonks using their phones.

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('http://fonts.googleapis.com/css?family=PT+Mono'); @import url(http://fonts.googleapis.com/css?family=Merriweather:400,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 http://www.example.com/chacham/ // @description Replace attribution title with corresponding level // @include http://perlmonks.org/* // @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 perlmonks.com
2 direct replies — Read more / Contribute
by Lotus1
on Oct 24, 2014 at 09:54

    This morning IE8 won't connect to perlmonks.com. At work we are using IE 8 and it has been working to connect to perlmonks.com. 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 perlmonks.org.

    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 'index.pl' component in them), including the Donate link. Even with the link manually corrected, there doesn't seem to be anywhere on http://donate.perlfoundation.org that shows the current funding level for perlmonks.org. Maybe someone with edit capability could take a look?

    Cheers.

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

    explicitly.

    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.


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!
  • 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?
    Username:
    Password:

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

    How do I use this? | Other CB clients
    Other Users?
    Others rifling through the Monastery: (6)
    As of 2014-12-23 00:38 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      Is guessing a good strategy for surviving in the IT business?





      Results (133 votes), past polls