Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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
Categorization by level
5 direct replies — Read more / Contribute
by prat7434
on Feb 24, 2015 at 02:55
    Hi, This is a general question not about perl. Can we have a categorization of questions like beginners, intermediate or expert? I think it would be like following: Whenever someone asks a question he chooses a category. Because a person, who is asking, knows about himself that he is at beginner or intermediate or expert level. Thus we have a categorization. I think it would be helpful. And we can have a list of topics for each category automatically.
Date format in attributes of local XML API
1 direct reply — Read more / Contribute
by LanX
on Feb 14, 2015 at 12:51
    Hi

    I'm trying to parse XML from various XML services of the monastery and got bitten by entities in attributes:

    <info site="http://perlmonks.org/" sitename="PerlMonks" ticker_id="507 +310" gentimeGMT="2015-02-14 17:40:04" xmlstyle="clean" xmlmaker="XML: +:Fling 1.001" fetch_num="109" delta_since="2015-02-14 17:29:58&amp;nb +sp;GMT" min_poll_seconds="600">Rendered by the Noderep XML Ticker</in +fo>

    while entities in attributes seem to be allowed this format of delta_since="2015-02-14 17:29:58&amp;nbsp;GMT" looks broken¹.

    (compare also gentimeGMT="2015-02-14 17:40:04")

    Could someone enlighten me if and why that's necessary?

    Otherwise should it better be changed to delta_since="2015-02-14 17:29:58 GMT"?

    Or are there date-time parsers requiring these entities?

    Cheers Rolf

    PS: Je suis Charlie!

    ¹) (or do I miss something in the XML specification?)

CB bug: cutting off text after TAB
1 direct reply — Read more / Contribute
by LanX
on Jan 29, 2015 at 06:34
    Since I'm using a mobile client, I'm regularly struggling with CB messages which only appear shortened in "normal" CB clients but normal in CB60.

    I looked into the HTML source ... could it be that "\t" is translated to an (unbalanced) "<\td>" in the cb sidebar and the rest is chopped?

    For reproduction, posting "test\ttest" produces:

    • <dd>test    test</dd> (i.e. the original input¹) in CB60
    • <span class='content'>test</td></tr> in CB sidebar
    • <span class="content">test</span> in "Chatterbox" nodelet
    edit
    • Possible workaround: pre-filtering input with s/\t/ /g
    • Reasoning: The way browsers handle TAB is too random and the CB isn't meant for horizontal formatting anyway
    • Alternative s/\t/ &nbsp; &nbsp;/g (updatet)

    Cheers Rolf

    PS: Je suis Charlie!

    ¹) discussion posts don't seem to preserve tab in inline <c>code</c>, the HTML here will show test &nbsp; &nbsp;test

How about a "reclaim your post" feature?
6 direct replies — Read more / Contribute
by Anonymous Monk
on Jan 25, 2015 at 17:47
    We all know that posts sometimes accidentally get sent from Anonymous Monk because the user's session got logged off. But presumably we still know what IP-address it came from, and that these are likely to be fairly-unique. How about a feature that lets you reclaim an anonymous post that came from your IP? One positive experience-point would be deducted, total not less than zero, so that you could not upvote a post (to find out what the XP count is), then adopt it to promote yourself to the papacy.
RAT: Recently Active Threads nnt-as-of not preserved when switching modes
1 direct reply — Read more / Contribute
by Anonymous Monk
on Jan 20, 2015 at 22:05
"Please, log in ..."
7 direct replies — Read more / Contribute
by sundialsvc4
on Jan 20, 2015 at 12:45

    Lately, I am seeing a lot of technical comments ... and even entire threads ... which are being made by Anonymous Monk.   These are not particularly negative comments.   These are not people dodging (or firing ...) the downvote-bullet to protect their precious-to-them reputations.   No, nothing “snarky” at all.   They are technical comments, and good ones, therefore by-the-way quite worthy of upvotes.   In one case today, Anonymous is heard saying, “if you remember my previous post [on the subject].”   Problem:   how easy is it going to be to find that particular post, and, having found it, to know that it’s the one referred to?   Now fast-forward six months ... a year ... the post is long forgot, but an intrepid soul with a problem is doing a Super Search.   Can he find your exact comment, quickly, now?

    Oops, you see that you made an error.   Can you go back and fix it now?   Nope!   Not good:   now, and forevermore, the PM database contains an error, or at least, unfinished business.   The post belongs to no-one now.   From an information-quality standpoint, that’s not good.

    I think that we should strongly encourage people to log in when they post comments.   (I have said, before, that I actually don’t like the idea of Anonymous at all ...)   But here’s the main reason for my suggestion:   if I know who you are, I can search for you.   I can find your other posts, probably without trolling through dozens of pages.   I can use your name as part of the Super Search criteria.   All of which cannot be so-effectively done in the case of our Anonymous brother.

    We always need to keep in mind, not just the present, but the future.   More than its dubious value as a social gathering-place for geeks, PM is very much an information resource of very durable, long-lasting value.   People do look for information that is months or years old, and find it just as valuable as when it was written, if they can find it and identify it.   Therefore, sign your name to your posts.   It really isn’t a petty-game of pluses and minuses ... rather, it is something that I think adds real value to your posts when you include it; and removes much of that value when you don’t.

    Another, related suggestion would be to emphasize the value of weaving searchable keywords into post responses, especially if the original thread or its title did not include relevant terms.   And, to be sure that posts represent complete thoughts, to include not only our suggestions but the context/assumptions in which they are made.   Searches consider individual posts, not merely threads.   The searcher will encounter the post before s/he encounters its thread context.   Therefore, make every post count.   Once again, we are pandering to our intrepid Super Searcher from the Future, and in so doing, helping PM to continue to be:   “the Go-To Site on the Internet™” for questions regarding Perl and technical computing.

what are the rules regarding homenode image, what is inappropriate?
5 direct replies — Read more / Contribute
by Anonymous Monk
on Jan 19, 2015 at 18:04

    what are the rules regarding homenode image, what is inappropriate?

    PerlMonks FAQ sheds little light, but the original announcement Home Node Image said
    *No copyrighted material
    *Nothing obscene

Can't submit answers with Chrome 39.0.2171.95 (64-bit)
5 direct replies — Read more / Contribute
by 7stud
on Jan 03, 2015 at 18:50

    Dear Monks,

    When I try submitting a reply to a question, I get some strange url in Chrome:

    data:,

    and all I see is a blank page, and my reply does not show up at perlmonks.

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.


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 exploiting the Monastery: (4)
    As of 2015-03-02 00:09 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      When putting a smiley right before a closing parenthesis, do you:









      Results (21 votes), past polls