Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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
Node ID Typos in Considerations
2 direct replies — Read more / Contribute
by kcott
on Sep 20, 2017 at 05:51

    There appear to be what I'll assume are typos in two considerations.

    The nodes in question are:

    #1199646 was considered for reaping as a dupe of itself. I suspect that should have been "a dupe of #1199658" (although that one was posted about three hours later). Anyway, as you can see above, #1199646 has been reaped: unless there's some administrative reason to change the consideration text, there's probably nothing more to be done about that.

    I replied to #1199646 (Re: Splitting a file based on matched conditions). My post has been considered for reparenting to #1199646 (its original and current parent). That consideration should also have probably referenced #1199658 for the new parent. I have no problem with the reparenting; however, as it stands, the consideration is confusing: maybe a quick s/46/58/ to fix.

    — Ken

How to get raw node content
2 direct replies — Read more / Contribute
by roboticus
on Sep 15, 2017 at 14:25

    Hello, gang:

    I was wondering if there was an API available that would let me fetch the raw content of a perlmonks node?

    Every once in a while, I see a node that I'm interested in dismantling, but it gets a bit butchered by the HTMLification/templating/(or something). The latest example is Reaped: Re: .pl to .exe, where I'm wanting to figure out just what the code is doing. But with the HTML entities, font rendering and whatnot, I can't really tell exactly what the code *was*. So rather than hand-editing it and trying to put it in a form that I can analyze, I'd love to be able to occasionally fetch just the raw node contents.

    I did a little googling and trying to browse the SiteDocClan nodes, but I'm not a member, so there's a limit to what I can see (e.g., I can't see sdc to-do wiki, SDC Wiki, the PMDev, editor, cabalist and pedagogue wikis...).

    I've found some public information, like What XML generators are currently available on PerlMonks?, WWW::PerlMonks, but I didn't see anything that provides the raw node content. I'm not asking for a new feature if it's not available, just a pointer to it if it exists.

    Thanks!

    ...roboticus

    When your only tool is a hammer, all problems look like your thumb.

Chronological Ordering of Nodes with the Same Timestamp
4 direct replies — Read more / Contribute
by kcott
on Sep 12, 2017 at 03:27

    In "Tk label width to fit in text area", when viewed as "Replies are listed 'Oldest First'.", there are two nodes, listed in the following order, with these title bars:

    Re: TK LABEL WIDTH TO FIT IN TEXT AREA [id://1199162] by Anonymous Monk on Sep 12, 2017 at 14:35 AEST ... Re: TK LABEL WIDTH TO FIT IN TEXT AREA [id://1199161] by Anonymous Monk on Sep 12, 2017 at 14:35 AEST ...

    Everything about these two nodes is identical except for the node IDs. [In fact, #1199162 had been considered for reaping because it's a duplicate: that may have happened by the time you read this.]

    Anyway, on the basis that #1199161 was created before #1199162, #1199161 should be displayed first, i.e. the current order reversed.

    As I've no idea of the code behind this, I can really only guess, but perhaps where the timestamps are identical, something akin to this could be added to the current sort functionality:

    ... || $a->{node_id} <=> $b->{node_id}

    — Ken

CSS in Display Setting Suddenly Not Working
2 direct replies — Read more / Contribute
by wjw
on Aug 27, 2017 at 15:48

    Just putting this out there to see if anyone else has experienced this. Anyone?

    UPDATE: I apologize for not putting more effort or detail in this. (In my defense, I was pretty ill and not thinking very clearly... yes, that is my poor excuse) I was using my Windows laptop which I seldom do, and did not bother to fire up the Linux laptop that I normally use on a daily basis.

    Wrong!This turns out to be a browser issue on the Windows laptop. I am still not clear what the issue is and need to explore a bit more. Following is as far as my foggy head has let me get:

    (To be clear: This is not a huge issue, just an observation, and I am still foggy from the meds, so I hope I got this edit formatted fairly decently) Thank you to those who bothered to respond!

    YourMother is correct. A/some .css and .js file(s) are no longer available from buzzfeed.org.uk, it seems the site is down...

    ...the majority is always wrong, and always the last to know about it...

    A solution is nothing more than a clearly stated problem...

Nodes to Consider: Incorrect Reply Count
3 direct replies — Read more / Contribute
by kcott
on Aug 15, 2017 at 00:18
Too soon for guesses on when node #1234567 will arrive?
7 direct replies — Read more / Contribute
by talexb
on Aug 08, 2017 at 13:31

    So we zoomed past the one millionth node a while back .. and since we're at about 1.19MM, the next obvious milestone is node number 1,234,567. Guesses, anyone?

    Alex / talexb / Toronto

    Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

SSL on PerlMonks
4 direct replies — Read more / Contribute
by sapadian
on Aug 07, 2017 at 13:28
    Does anyone know if there are plans to encrypt PerlMonks site traffic with a secure certificate?
CSS/JS if a username is mentioned
6 direct replies — Read more / Contribute
by stevieb
on Aug 01, 2017 at 19:33

    I'm not for certain, but it seems to me that some Monks magically appear on a thread if a specific topic is mentioned, or perhaps their uid is mentioned.

    Can someone explain how this is accomplished (or at least tell me that it isn't happening, and I'm just imagining things)?

    I mean, mention threads, and without fail, a major resident expert magically appears. Could be coincidence, but I'm not sure.

    Question is, is there a way, without having to continuously re-roll the Perlmonks website scraping, to see if a username or phrase or something is published, to recognize this? I'm definitely no web expert, but I can work my way with JS/jQuery/CSS to a degree, but searching is usually required.

    -stevieb

Chosen depth?
1 direct reply — Read more / Contribute
by Todd Chester
on Jul 26, 2017 at 11:32
    I am getting this message on one of my posts: "Some notes below your chosen depth have not been shown here". I go to the link and do not see anything about depth. It is probably there somewhere, but I don't see it. How do I set my chosen depth?
Expand the width of code tags?
3 direct replies — Read more / Contribute
by stevieb
on Jul 25, 2017 at 20:38

    Would it be possible on the screens that display items to be widened, so that things like this:

    pi@raspberrypi:~/repos/rpi-wiringpi $ bbtester --fg --stdout -d 7 -a [2017-07-25 17:52:44.318][lvl 7][Tester] logging to STDOUT [2017-07-25 17:52:44.319][lvl 5][Tester.new] instantiating new Test::B +rewBuild::Tester object [2017-07-25 17:52:44.319][lvl 7][Tester.new] args: [2017-07-25 17:52:44.319][lvl 7][Tester.new] auto: 1 debug: 7 stdout: 1 [2017-07-25 17:52:44.321][lvl 6][Tester.listen] successfully created n +etwork socket on IP 0.0.0.0 and port 7800 [2017-07-25 17:52:44.322][lvl 7][Tester.listen] 0.0.0.0 now accepting +incoming connections [2017-07-25 17:52:44.322][lvl 7][Tester.listen] work dir is: /home/pi/ +brewbuild [2017-07-25 17:52:44.322][lvl 7][Tester.listen] chdir to work dir: /ho +me/pi/brewbuild [2017-07-25 17:52:44.323][lvl 7][Tester.listen] TESTER: 0.0.0.0 PLATFO +RM: armv7l-linux [2017-07-25 17:52:44.323][lvl 7][Tester.listen] waiting for a connecti +on... [2017-07-25 17:54:10.016][lvl 7][Tester.listen] received ack: localhos +t [2017-07-25 17:54:10.016][lvl 7][Tester.listen] returned ack: localhos +t [2017-07-25 17:54:10.017][lvl 7][Tester.listen] received cmd: brewbuil +d -d 7 [2017-07-25 17:54:10.018][lvl 7][Tester.listen] sending 'ok' [2017-07-25 17:54:10.019][lvl 7][Tester.listen] received repo: https:/ +/github.com/stevieb9/rpi-wiringpi [2017-07-25 17:54:10.020][lvl 5][Git.new] instantiating new object [2017-07-25 17:54:10.020][lvl 6][Git.git] git command set to 'git' [2017-07-25 17:54:10.021][lvl 7][Tester.listen] using Git: git [2017-07-25 17:54:10.021][lvl 7][Tester.listen] before all checks, rep +o set to https://github.com/stevieb9/rpi-wiringpi [2017-07-25 17:54:10.021][lvl 6][Git.name] converting repository link +to repo name [2017-07-25 17:54:10.022][lvl 6][Git.name] repo link converted to rpi- +wiringpi [2017-07-25 17:54:10.022][lvl 7][Tester.listen] chdir to: /home/pi/bre +wbuild/rpi-wiringpi [2017-07-25 17:54:10.022][lvl 7][Tester.listen] repo rpi-wiringpi exis +ts [2017-07-25 17:54:10.022][lvl 6][Tester.listen] in auto mode [2017-07-25 17:54:10.032][lvl 6][Git.link] found https://github.com/st +evieb9/rpi-wiringpi for the repo [2017-07-25 17:54:10.032][lvl 7][Git.status] checking git status [2017-07-25 17:54:10.053][lvl 6][Git.link] found https://github.com/st +evieb9/rpi-wiringpi for the repo [2017-07-25 17:54:10.053][lvl 6][Git.revision.revision] initiating git + revision [2017-07-25 17:54:10.054][lvl 6][Git.revision] local: 'rev-parse HEAD' + sent [2017-07-25 17:54:10.063][lvl 5][Git.revision] commit checksum: 4df4fe +ea34b3b4816f31b3086863987e3a3c7278 [2017-07-25 17:54:10.073][lvl 6][Git.link] found https://github.com/st +evieb9/rpi-wiringpi for the repo [2017-07-25 17:54:10.073][lvl 6][Git.revision.revision] initiating git + revision [2017-07-25 17:54:10.074][lvl 6][Git.revision] remote: 'ls-remote http +s://github.com/stevieb9/rpi-wiringpi' sent [2017-07-25 17:54:10.884][lvl 5][Git.revision] commit checksum: 459719 +530fd54a1c864346913fd44472c3dd0d2e [2017-07-25 17:54:10.885][lvl 7][Tester.listen] Git check: status: 1 local: 4df4feea34b3b4816f31b3086863987e3a3c7278 remote: 459719530fd54a1c864346913fd44472c3dd0d2e [2017-07-25 17:54:10.885][lvl 6][Tester.listen] in auto mode, checking + commit checksum reqs [2017-07-25 17:54:10.886][lvl 7][Tester.listen] pulling rpi-wiringpi [2017-07-25 17:54:10.887][lvl 6][Git.clone] initiating git pull remote: Counting objects: 7, done. remote: Compressing objects: 100% (3/3), done. remote: Total 7 (delta 4), reused 7 (delta 4), pack-reused 0 Unpacking objects: 100% (7/7), done. From https://github.com/stevieb9/rpi-wiringpi 4df4fee..4597195 master -> origin/master [2017-07-25 17:54:12.191][lvl 7][Tester.listen] Updating 4df4fee..4597 +195 Fast-forward MANIFEST | 1 + MANIFEST.SKIP | 36 ++++++++++++++++++------------------ 2 files changed, 19 insertions(+), 18 deletions(-) [2017-07-25 17:54:12.196][lvl 5][Tester.listen] COMMENCING TEST RUN; a +rgs: debug => 7 [2017-07-25 17:54:12.199][lvl 7][BrewBuild] in _create_log() [2017-07-25 17:54:12.200][lvl 6][BrewBuild] in new(), constructing Tes +t::BrewBuild object [2017-07-25 17:54:12.201][lvl 7][BrewBuild.BrewCommands.new] instantia +ting new object [2017-07-25 17:54:12.202][lvl 6][BrewBuild.BrewCommands.brew] *brew cm +d is: perlbrew [2017-07-25 17:54:12.203][lvl 5][BrewBuild._set_plugin] [2017-07-25 17:54:12.207][lvl 4][BrewBuild._set_plugin] successfully l +oaded Test::BrewBuild::Plugin::DefaultExec plugin [2017-07-25 17:54:12.210][lvl 7][BrewBuild] using temp bblog dir: /tmp +/8Wu5bKwNNh [2017-07-25 17:54:12.211][lvl 7][Tester.listen] executing test() [2017-07-25 17:54:12.212][lvl 6][BrewBuild.test] warnings trapped loca +lly [2017-07-25 17:54:12.213][lvl 6][BrewBuild] Test::BrewBuild class/obj +accessing the log object [2017-07-25 17:54:12.214][lvl 6][BrewBuild.Test::BrewBuild::Plugin::De +faultExec::brewbuild_exec] performing plugin duties [2017-07-25 17:54:12.215][lvl 6][BrewBuild.exec] instructions to be ex +ecuted: cpan App::cpanminus cpanm --installdeps . cpanm -v --test-only . [2017-07-25 17:54:12.217][lvl 6][BrewBuild.exec] created temp file for + storing output: /tmp/1svWncOk3f [2017-07-25 17:55:04.247][lvl 7][BrewBuild.test] ***** perl-5.24.1 ========== Loading internal null logger. Install Log::Log4perl for logging messag +es CPAN: Storable loaded ok (v2.56_01) Reading '/home/pi/.cpan/Metadata' Database was generated on Tue, 25 Jul 2017 19:29:02 GMT CPAN: Module::CoreList loaded ok (v5.20170114_24) App::cpanminus is up to date (1.7043). --> Working on . Configuring /home/pi/brewbuild/rpi-wiringpi ... OK <== Installed dependencies for .. Finishing. --> Working on . Configuring /home/pi/brewbuild/rpi-wiringpi ... Generating a Unix-styl +e Makefile Writing Makefile for RPi::WiringPi Writing MYMETA.yml and MYMETA.json OK Building and testing RPi-WiringPi-2.3621 ... Skip blib/lib/RPi/FAQ-Tut +orial.pod (unchanged) Skip blib/lib/RPi/WiringPi/Core.pm (unchanged) Skip blib/lib/RPi/WiringPi.pm (unchanged) cp bin/pinmap blib/script/pinmap "/home/pi/perl5/perlbrew/perls/perl-5.24.1/bin/perl" -MExtUtils::MY -e + 'MY->fixin(shift)' -- blib/script/pinmap Manifying 3 pod documents PERL_DL_NONLAZY=1 "/home/pi/perl5/perlbrew/perls/perl-5.24.1/bin/perl" + "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harne +ss::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-load.t ....................... ok t/05-pin.t ........................ ok t/10-register.t ................... ok t/15-pwm_spi_adc.t ................ ok t/20-cleanup.t .................... ok t/25-sig_die.t .................... ok t/35-pin_map.t .................... ok t/40-interrupt_rising_and_pud.t ... ok t/41-interrupt_falling_and_pud.t .. ok t/42-interrupt_both_and_pud.t ..... ok t/45-shift_reg_adc.t .............. ok t/55-dac.t ........................ ok t/60-lcd.t ........................ ok t/65-i2c.t ........................ ok t/70-alt_modes.t .................. ok t/75-serial.t ..................... ok t/80-mode_state_all_pins.t ........ ok t/85-pwm_hw_mods.t ................ ok t/90-servo.t ...................... ok t/manifest.t ...................... ok t/pod-coverage.t .................. ok All tests successful. Files=21, Tests=2411, 34 wallclock secs ( 1.84 usr 0.10 sys + 12.40 c +usr 1.30 csys = 15.64 CPU) Result: PASS OK Successfully tested RPi-WiringPi-2.3621 ***** [2017-07-25 17:55:04.250][lvl 5][BrewBuild.test] got 1 results [2017-07-25 17:55:04.250][lvl 6][BrewBuild.test] 5.24.1 PASSED... [2017-07-25 17:55:04.253][lvl 5][BrewBuild.test] Test::BrewBuild run f +inished [2017-07-25 17:55:04.253][lvl 7][Tester.listen] chdir to: /home/pi/bre +wbuild/rpi-wiringpi/bblog [2017-07-25 17:55:04.254][lvl 7][Tester.listen] no log files generated +, nothing to process [2017-07-25 17:55:04.254][lvl 7][Tester.listen] chdir to: /home/pi/bre +wbuild/rpi-wiringpi [2017-07-25 17:55:04.255][lvl 7][Tester.listen] removing log dir: /hom +e/pi/brewbuild/rpi-wiringpi/bblog [2017-07-25 17:55:04.256][lvl 5][Tester.listen] storing and sending re +sults back to dispatcher [2017-07-25 17:55:04.258][lvl 7][Tester.listen] work dir is: /home/pi/ +brewbuild [2017-07-25 17:55:04.259][lvl 7][Tester.listen] chdir to work dir: /ho +me/pi/brewbuild [2017-07-25 17:55:04.260][lvl 7][Tester.listen] TESTER: 0.0.0.0 PLATFO +RM: armv7l-linux [2017-07-25 17:55:04.261][lvl 7][Tester.listen] waiting for a connecti +on...

    ...expand without wrapping?

eMail response?
2 direct replies — Read more / Contribute
by Todd Chester
on Jul 25, 2017 at 12:22
    Is there a way to gt this forum to send an eMail alert when someone responds?
Feature: Auto hide. Change: show node vote counts to all, not just logged in users.
9 direct replies — Read more / Contribute
by marto
on Jul 18, 2017 at 05:22

    A couple of suggested changes. I propose that if a node not under considereation hits the same level of downvotes required to trigger auto reaping, the node content should be automatically hidden, a message displayed warning readers that it's quality/relevance is in question, a link would allow reading the original. Something along the lines of:

    This node was taken out by the NodeReaper on Jul 16, 2017 at 09:42 BST Reason: [NodeReaper] - Post contents hidden due to sufficiently negati +ve reputation. You may view the original node and the consideration vote tally.

    All other cases I can think of (trolling, abuse, duplicate post etc) are already catered for by the consideration system as is.

    Secondly, the vote count be displayed to all, not just logged in users.

A new CB reader
2 direct replies — Read more / Contribute
by choroba
on Jul 05, 2017 at 16:09
    I was a happy user of the #cbstream IRC ↔ PM client that makes the ChatterBox feel and behave like the IRC. But then sometimes broke (as it happened time to time), but ambrus hasn't been around for the last three weeks to fix it. So I wrote a simple ChatterBox reader myself. At the moment, it only reads, and I'm still not sure I want to add the ability to write to it. It uses the new CB XML ticker (as I skimmed over the other CB clients, they all seem to use the old one). If you want to use it, or just check the code, you can find it on GitHub.

    ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
Input Boxes Rendering?
4 direct replies — Read more / Contribute
by haukex
on Jun 24, 2017 at 06:54

    Fellow monks, could you try going to Perl Monks Discussion and seeing if the following renders as actual input boxes?

    Because that is what is happening for me when I view this node via SoPW, as well as this node via PMD. (Posted at the request of tye&nbsp;.)

    Update: Also happening for me when viewing SoPW as anonymous. Edited the title to remove "in SoPW" since it's happening in PMD too.

    Update 2: Relevant HTML source of PMD:

    <tr class="post-body post_body"> <td colspan="2"> <ul><p>Fellow monks, could you try going to <a href="?node_id=1040">Pe +rl Monks Discussion</a> and seeing if the following renders as actual + input boxes?</p> <input> <input> <p>Because that is what is happening ...</p></input></input></ul> </td> </tr>
Update shortcut link to SSCCE
2 direct replies — Read more / Contribute
by 1nickt
on Jun 16, 2017 at 12:12

    The current link from SSCCE points to node # 1177743, which is a page containing only one thing: a link to node # 1177642 -- the page that actually describes what an SSCCE is. The handy syntax link is great, but could it be updated to point directly to the page? I don't really see the point of the intermediary page, and I fear that some newbs who click to it won't manage to click through to the real doc. Studies about page depth and retention show ... , etc. and the link doesn't exactly stand out.

    Can we do away with the intermediary page and update the link?


    The way forward always starts with a minimal test.

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?
    and all is quiet...

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









      Results (275 votes). Check out past polls.

      Notices?