Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Perl Monks Discussion

( [id://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
Total writeups sometimes incorrect
1 direct reply — Read more / Contribute
by hippo
on Jan 11, 2024 at 06:37
RFC: "Today I Learned" page
9 direct replies — Read more / Contribute
by jdporter
on Jan 10, 2024 at 23:40

    Some time in the last year or two I suddenly realized that I should be keeping a log of the interesting things I learn from day to day. A couple months ago I was talking with my brilliant young nephew about how I didn't have a really satisfactory solution, and he suggested Notion. He set up a Notion workspace where we can both enter our #TILs. It works really well. Notion is amazing. But I can see how it might not scale too well with a large number of contributors.

    Long story short — I have created Today I Learned, a page where anyone (meeting certain minimum elibility requirements) can share interesting factoids. Please check it out. What do you think? Is it worthwhile? If not, could it be made better? If so, how? If snot, blow?

    I also want to note that the extant page, Today I Learned, is based on a generic mechanism which can be easily leveraged for other similar tasks. The main configurable parameters are: who can view the page, who can add entries, and who can delete entries. (readers/writers/deleters, in short.) These can be based on a user group (such as janitors or breathers of fire), or on monastic level (such as Level 10: Hermit). Can you think of a use for such a feature?

    I thank you, and Paco thanks you.

    * On the Today I Learned page, entries can be deleted by the Janitors, and the Editors Nodelet contains a link to that page labled 'TIL'. When there is a new entry on that page, a little flag (*) is appended to the 'TIL' link.

    Today's latest and greatest software contains tomorrow's zero day exploits.
Hacker News titles using U+2013 EN DASH
3 direct replies — Read more / Contribute
by kcott
on Jan 09, 2024 at 02:29

    Many Hacker News titles use U+2013 EN DASH. When listed in the "HackerNews nodelet" these are rendering as "–" instead of "". Would it be possible to convert these?

    I know nothing of the code behind the scenes. Here's a couple of potential options:

    $ perl -Mutf8 -C -E '
        my $HN_title = "Show HN: Auto Wiki – Turn your codebase into a Wiki";
        say $HN_title;
        say $HN_title =~ s/–/\N{EN DASH}/gr;
        say $HN_title =~ s/–/–/gr;
    '
    Show HN: Auto Wiki – Turn your codebase into a Wiki
    Show HN: Auto Wiki – Turn your codebase into a Wiki
    Show HN: Auto Wiki – Turn your codebase into a Wiki
    

    Using – is possibly the better option; but I'm just guessing.

    — Ken

Question about search results.
3 direct replies — Read more / Contribute
by swampyankee
on Jan 04, 2024 at 14:10

    I'm a trifle confused about my search results

    Found 0 nodes roughly between 2024-01-04 and 0 (searched 561.01% of D +B). where title contains "sudoku" Date: Author/owner: Title: Node type: Press to continue searching remaining 303.53% of DB. Please be patient after submitting your search. Link to preload this search: [href://?node_id=3989;HIT=sudoku]

    I'm rather surprised that the percentages are greater than 100%; this is not someone usually sees. Is this a bug in the search function or is it something intentional?


    Information about American English usage here.

    Floating point issues? Please read this before posting. — emc

Confusing Category
2 direct replies — Read more / Contribute
by choroba
on Dec 18, 2023 at 08:23
    This is probably a consequence of the transition from Categorized Q&As to Illuminations:

    How do I find what directory the perl script is running from? is blessed and tagged as "gui programming", but I'm not sure that's the correct tag for the question.

    I don't contest the blessing, just the tag.

    map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
Are blessings a new thing?
4 direct replies — Read more / Contribute
by talexb
on Dec 16, 2023 at 20:28
      (Dec 14, 2023 at 16:38 EST) erzuuli has blessed XS Modules - why and when? by Bod!

    I may have missed this, but I saw three posts that were 'blessed' by people in the Notices section of the side panel. Is this new? What does it mean?

    Alex / talexb / Toronto

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

PerlMonks working OK?
3 direct replies — Read more / Contribute
by Anonymous Monk
on Dec 14, 2023 at 12:04

    Is the site working ok? been mighty quiet the last few hours...

RFC: Add profile field "emergency contact" or such like as
4 direct replies — Read more / Contribute
by jdporter
on Nov 28, 2023 at 16:15

    It has happened from time to time that some monks have expressed concern over the unexpected and prolonged absense of another monk. In at least one case, a monk contacted the gods to see if a reachout could be done. Unfortunately, we had to say no, because the contact information stored in the user profile consists only of an email address, and our policies explicitly state this this email address "is used only to send you your password". I believe that this creates — correctly — a strong expectation of privacy around this personal information.

    Therefore, I would like to propose the addition of an "emergency contact" field, which would probably normally be an email address, but with a different expectation as to its potential usage. The use of this field would be strictly optional. That is, as a user, you wouldn't have to put anything in it unless you want to.

    Alternatively, we could add a checkbox which, when checked, indicates that you are OK with site administrators using the existing email for "emergency contact" purposes, in addition to its current purposes (i.e. password recovery).

    Any thoughts?

    "such like as" is my homage to blazar.

    Today's latest and greatest software contains tomorrow's zero day exploits.
Levels of Monks: missing a row
3 direct replies — Read more / Contribute
by kcott
on Nov 24, 2023 at 22:08

    Assuming the Monk Level Summary in "Voting/Experience System" is correct, the table in "Levels of Monks" is missing a row:

    Level Privileges Title XP ΔXP Votes
    29   His Eminence 1000000 900000 100

    I'm not aware of any special privileges at this level. If there are, they should be added.

    Update: It would appear that there was some sort of misunderstanding regarding this post. Please see: "Re: Levels of Monks: missing a row [Clarification]".

    — Ken

New last hours of cb, CB stats
3 direct replies — Read more / Contribute
by cavac
on Nov 23, 2023 at 10:28

    As you might know, Tanktalus is retiring his CBStats/last hours of cb service. In agreement with gods and Tanktalus, i have taken over the duties of providing these services.

    I've been working hard to get the new codebase for last hour of cb and cb stats to work reasonably well. Stats are still a bit bare, though. And i'm pretty sure there are plenty of bugs.

    The new services (and the PM nodes) are run by the new chatterbot account. It's profile provides the official documentation, that is, it will provide it as soon as i get around to writing the damn thing. Technically, i'm running TWO of these services under the same account, one live, one for development/request-for-comment purposes. So, i might sometimes link to one of the dev pages and ask for feedback.

    All bug reports and feature requests and questions, at least for now, should go into this discussion, directly as an answer to THIS post (that way, CB automatically notifies me of any new messages). For short things, send me a private message. (Don't send it to chatterbot, i seldomly log into this account, except by way of perl scripts).

    Q: So this new CB stats is a downgrade?

    A: Yes and no. The stats are not as feature rich as the old ones. I'm working on that. But on the bright side, chatterbot has the ability to understand commands. Currently, there is only 1 useful one:

    !snapshot

    This will generate a snapshot of the current "last hour of cb" and send you a link via private message. This may take about minute, and it currently doesn't always work. But when you see something in chatterbox that you like, give it a whirl.

    !cookie username

    Make chatterbot send a user a cookie. It's one of my test commands, so no guarantees that cookies will be, in fact, delivered.

    When you are not sure what commands are available, you can type !help in chatterbox.

    Command parsing and answering takes some time, because of the relatively long work cycles i've set in the software. (My software could run hundreds of calls to PM a seconds to make processing lightning fast, but running a denial-of-service attack on my favourite website would be counterproductive).

    Edit: The current command list is now available in the Chatterbox FAQ

    PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP
Time offset after reply
1 direct reply — Read more / Contribute
by jo37
on Nov 14, 2023 at 15:40

    Noticed this twice:
    After replying to a node, both the original node any my reply show a strange time offset. This is shown right after submitting a reply:

    +/-Capture Groups (A:1) 2023-11-14 16:11 5 hours ago [Bod] Re: Capture Groups [0] 2023-11-14 16:29 5 hours ago [jo37]

    After a page refresh everything looks fine:

    +/-Capture Groups (A:1) 2023-11-14 21:11 25 minutes ago [Bod] Re: Capture Groups [0] 2023-11-14 21:29 7 minutes ago [jo37]

    Is this a known issue?

    Greetings,
    -jo

    $gryYup$d0ylprbpriprrYpkJl2xyl~rzg??P~5lp2hyl0p$
Pages slow to load
3 direct replies — Read more / Contribute
by hippo
on Nov 07, 2023 at 09:12

    Recently (maybe 3 weeks ago now) something appears to have changed which means that frequently pages which would have loaded quickly now load much more slowly. My experience has always been that this site is fast by the standards of the modern web - almost everything downloads and finishes rendering in well under a second. But the last few weeks has seen this significantly alter where some requests are taking a great deal longer - up to 15 or 20 seconds in some instances and very often 5 seconds or more. This is a noticeable degradation.

    Investigating via the in-browser tools shows that this is a delay in initial HTTP response. It's not DNS or the TLS setup, both of which happen very quickly, but after that the page response is the one which takes a long time to start. This can happen on any page and it doesn't seem to be some more than others.

    Hopefully whatever is causing this is easy to find and simple to resolve. It would be great to have the old, snappy performance back again. :-)

    This was discussed in the CB at the end of last week. Since that confirmed that it isn't just me affected, I'm raising it here for TPTB to be made aware.


    🦛

CB stats, Last hour of CB
2 direct replies — Read more / Contribute
by Tanktalus
on Oct 28, 2023 at 13:40

    It is with some regret that I've come to realise that my return to Perl is unlikely, let alone any time soon. Since I've not really been an active participant in this community in years, I think it's prudent to accept the truth and pass on the torch.

    I will be shutting down the CB stats service I've been running for probably over a decade now by the end of the year. That service also provides last hour of cb, and so that will also disappear.

    While I'm more than willing to pass on the codebase I have to any who ask for it (my nick at gmail.com), please be forewarned: it's not the cleanest code, and it was used to learn both Coro and DB2 (the latter of which for whom I worked at the time), and you'll probably want to re-seat it against a different database, the queries will be significantly less performant (sorry, but the joins are things that DB2 objectively does better than MySQL). I've gone on to do a lot of work against various databases, and what I learned writing this helped immensely, so I have zero regrets about doing it.


    Why am I no longer doing Perl? Well, it's simple. After working from home for 13 years, I was told to return to Toronto. That wasn't going to happen, so I had to find another job. Took me 18 months, during which time I managed to hold on to the work-from-home position. What I found was something doing C# on Windows. That job was, let's just say, sub-optimal, and a bit over a year later I found another local job still with C#, leading a small team. I've been here for over four years at this point. By January, it'll have been about 5 years since I did any significant amounts of Perl.

    Also, while working from home, I also helped out with an online game written in Perl, which got shut down shortly before I left the work-from-home position. I've come to realise that part of its cost in running came down to Perl - specifically, its lack of threading and co-routine support. (Yes, Coro works, but it's a serious hack to the point where I'm not confident in its future, but also its ability to support all the drivers and such that would be required for this.) I've wanted to re-start this game, but only recently embarked on this, and decided a better backend for this game would be .NET whose native support for threads and co-routines (async/await) is significantly stronger, but also because I'm already using that in my day job, so it becomes advantageous to stay ahead of the team that reports to me on technical matters this way. This serves to drop my chances at returning to Perl in any significant manner even further.


    I cannot guarantee a timely return to view any responses here. You're better off with email if you feel the need to reach me. While I, personally, don't see any harm in multiple monks having their own CB scrapers and CB stats generators, you will definitely need the gods approval to take over the last hour of cb, as they will have to assign ownership to someone.

Missing 'in reply to...' And 'in thread....'
5 direct replies — Read more / Contribute
by marto
on Oct 28, 2023 at 08:16

    This node doesn't show the 'in reply to' and 'in thread' hyperlinks for me. I first suspected some user based setting based on depth, but this doesn't seem to be the case as this displays them as expected.

    Update: I don't recall seeing this before. Does it render for everyone else the way it does for me?

Dark Mode for AM?
7 direct replies — Read more / Contribute
by haukex
on Oct 18, 2023 at 04:25

    Hi all,

    PerlMonks already has a dark theme, but it is not automatically selected when not logged in. Literally every website, app, IDE etc. I use regularly nowadays supports a dark mode, and opening PerlMonks in the evenings, e.g. on mobile where I'm not logged in by default, is therefore much less enjoyable to my eyes, and I suspect it's similar for anyone who has selected the dark mode on their mobile, OS, or browser.

    Supporting dark mode is easy nowadays with the corresponding CSS media selector. I propose a new color theme, "auto light/dark", and making this the default for non-logged-in users. This change would only affect users who are not logged in, and only those who have selected dark mode in their OS/browser - all other visistors will see no difference; logged in Monks could select the new theme in their display settings if they prefer. The other great thing is that supporting this and changing the theme doesn't require any server-side detection, JS, or even page reloads.


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?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2024-03-29 12:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found