Adding details with summary html tags
4 direct replies — Read more / Contribute
|
by Lady_Aleena
on May 22, 2020 at 14:23
|
|
|
I was wondering if <details> with <summary> could be added as acceptable html here in PerlMonks. Those tags could be used when code or data examples are more than 10 or so lines. <readmore> is great for keeping long batches of code or data from the main list of posts, however, long batches of code might do well if kept in a <details> tag where the code or data can be hidden to keep page lengths from being over long upon initial load. So what do you all think?
My OS is Debian 10 (Buster); my perl version is 5.28.1.
No matter how hysterical I get, my problems are not time sensitive. So, relax, have a cookie, and a very nice day!
Lady Aleena
|
Low volume on the Gates these days
3 direct replies — Read more / Contribute
|
by ForgotPasswordAgain
on May 15, 2020 at 22:22
|
|
|
Hello, hope your mask is securely in place on your face.
I noticed that there are fewer Monastery Gates posts in the last few days.
I'm not complaining, but how can I help increase the Gates-posts, if possible?
|
Unable to approve #11116576
1 direct reply — Read more / Contribute
|
by kcott
on May 08, 2020 at 18:33
|
|
|
I've been unable to approve "[OT] Am I just a bad programmer?" [#11116576] — I tried a few times.
The same problem was noted by davies: see the update to his "Re: [OT] Am I just a bad programmer?" response.
Looking at the moderation and janitation histories, two things happened at the same time
("2020-05-08 21:42" in my timezone):
-
The post was moved from SOPW to Meditations.
-
The post was approved (apparently in SOPW section).
We've previously seen this situation where a move and a subsequent approval were registered in the database out of order.
I suspect this node is approved in SOPW so further attempts to approve it are ignored;
however, as it's actually in Meditations, it's showing as unapproved in that section.
In the past, this has needed senior moderator intervention to fix.
I've no idea of the exact cabal/level/other requirements.
|
[Free Nodelet Hack] CodeMirror
No replies — Read more | Post response
|
by haukex
on May 03, 2020 at 05:48
|
|
|
You need to be logged in, then enable the Free Nodelet in your Nodelet Settings, turn on the option "Code Wrapping Off" in your Display Settings, and in your Free Nodelet Settings, paste the following, and all textareas and code blocks will become CodeMirror editors with syntax highlighting, line numbers, etc. For code blocks, the syntax highlighter is Perl (which doesn't appear to mess up the syntax highlighting on non-Perl source too much), and for text areas, the syntax highlighting is HTML, with support for JavaScript in <script> tags and CSS in <style> tags, as well as for Perl in <c> tags (not <code> tags for now, because those are actually valid HTML5 tags; I'm open for suggestions otherwise).
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/co
+demirror/5.53.2/codemirror.min.css"
integrity="sha256-vZ3SaLOjnKO/gGvcUWegySoDU6ff33CS5i9ot8J9Czk=" cros
+sorigin="anonymous" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.53.2/
+codemirror.min.js"
integrity="sha256-sRwcFCKzBvYiAJfddXlx1Ld5+hAxpYzCM+drX/GHMKE=" cros
+sorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.53.2/
+mode/xml/xml.min.js"
integrity="sha256-Lfk8z6WUsBN6YiCaMpH6bxBHyRqkPK4O2QbQHFNUS40=" cros
+sorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.53.2/
+mode/javascript/javascript.min.js"
integrity="sha256-tnhIfKT2keR1i4Y7lQL70BBfwnxp10ywUpnXjSjIlH4=" cros
+sorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.53.2/
+mode/css/css.min.js"
integrity="sha256-Np6VKUByekB6pozOOgM2TcmhyGX46hnWr9TpJbUXpyo=" cros
+sorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.53.2/
+mode/htmlmixed/htmlmixed.min.js"
integrity="sha256-9Dta/idKg17o/o0a3PEsL6JjkYvijj9UMh3Z86HhUcg=" cros
+sorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.53.2/
+mode/perl/perl.min.js"
integrity="sha256-fQeGcgwNMEHlEqr9CCAoDsorVyJXm1mDMq1E/rB1wiQ=" cros
+sorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.5.0.min.js"
integrity="sha256-xNzN2a4ltkB44Mc/Jz3pT4iU1cmeR0FkXs4pru/JxaQ="
crossorigin="anonymous"></script>
<script src="/?node_id=11116375;displaytype=displaycode;part=2"
type="text/javascript"></script>
(If you've already got jQuery loaded from another nodelet hack, you don't need to put that <script> tag twice, of course.)
Note: If something goes wrong in your browser, and suddenly the text areas break, you need to disable JavaScript to be able to edit your Free Nodelet to disable this hack. And of course let me know, with OS and browser version, and best would be the error messages from your browser's JS console too.
Since this code isn't particularly long, if you'd like to customize any of the CodeMirror settings (like indentation), you can also copy the below code into your Free Nodelet directly (inside <script> tags, and omit the final <script> tag above).
There is support for CodeMirror Themes: add the desired stylesheet to the Free Nodelet (e.g. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.53.2/theme/lesser-dark.min.css" integrity="sha256-kRDm75ZpAk6HEGxwszCLc7vt79azRsrfybbL4llVXBw=" crossorigin="anonymous" />) and then add <script> CM_THEME="lesser-dark"; </script>.
|
[Free Nodelet Hack] AJAX Chatterbox
2 direct replies — Read more / Contribute
|
by haukex
on May 02, 2020 at 18:44
|
|
|
You need to be logged in, then enable the Chatterbox and the Free Nodelet in your Nodelet Settings, and in your Free Nodelet Settings, paste the following, and you get a chatterbox that refreshes itself dynamically, with optional browser notifications! Sending messages also works without reloading the entire page. It now also refreshes the "Other Users" nodelet and the Chatterbox regularly.
Since it was a little quiet in the Monastery when I implemented this, it's currently not 100% tested yet, let me know if you have any issues. (Update: So far, so good...)
<script src="https://code.jquery.com/jquery-3.5.0.min.js"
integrity="sha256-xNzN2a4ltkB44Mc/Jz3pT4iU1cmeR0FkXs4pru/JxaQ="
crossorigin="anonymous"></script>
<script src="/?node_id=11116369;displaytype=displaycode;part=2"
type="text/javascript"></script>
(If you've already got jQuery loaded from another nodelet hack, you don't need to put that <script> tag twice, of course.)
If you don't want the AJAX CB enabled by default, then put this before the above <script> tags: "<script> AJAXCB_DEFAULTOFF=true; </script>".
|
XML Generator ticker=yes only works sporadically? (updated)
1 direct reply — Read more / Contribute
|
by haukex
on May 02, 2020 at 10:43
|
|
|
|
|
[Free Nodelet Hack] Browser Notifications for New Nodes
No replies — Read more | Post response
|
by haukex
on May 02, 2020 at 10:35
|
|
|
You need to be logged in, then enable the Free Nodelet in your Nodelet Settings, and in your Free Nodelet Settings, paste the following, and on supported browsers you'll get a checkbox "☐ New Node Notifications" above your nodelets that you can turn on, and you'll get a browser notification for each new node that is posted.
<script src="https://code.jquery.com/jquery-3.5.0.min.js"
integrity="sha256-xNzN2a4ltkB44Mc/Jz3pT4iU1cmeR0FkXs4pru/JxaQ="
crossorigin="anonymous"></script>
<script src="/?displaytype=displaycode;node_id=11116359;part=2"
type="text/javascript"></script>
(If you've already got jQuery loaded from another nodelet hack, you don't need to put that <script> tag twice, of course.)
The notifications are disabled by default because if you have multiple tabs open to PerlMonks, you'd get a notification per tab. If you want to have notifications turned on by default, you can add this before the above <script> tags: "<script> NOTIFICATIONS_ENABLE=true; </script>", and if you additionally want to hide the checkbox, add "NOTIFICATIONS_HIDECB=true;" inside those <script> tags.
|
VPN Usage
1 direct reply — Read more / Contribute
|
by freonpsandoz
on Apr 26, 2020 at 19:01
|
|
|
Does the Perl Monks site forbid VPN usage? When I tried to post a reply in a forum, I got the error message, "You do not have permission to post. Tough beans." The error went away when I disconnected from my VPN. Thanks.
|
Janitation History vs. Poster History
1 direct reply — Read more / Contribute
|
by kcott
on Mar 06, 2020 at 19:59
|
|
|
G'day All,
I was looking at a node which I thought may have been modified by the poster.
I wondered if Janitation History would enlighten me.
It didn't: "This node has not been edited yet.".
Just to confirm that, I checked "Re: how to write a vertical TK Entry?".
I had fixed a minor typo in that: s/wigdet/widget/.
Again, Janitation History reports: "This node has not been edited yet.".
I wasn't really expecting Janitation History to report on poster edits;
however, I thought it was worth checking.
It's often useful to know if a poster has made modifications,
especially when subsequent posts by others don't seem to make sense.
I'll just throw this open for general discussion:
-
Would a new Poster History link be useful to others?
-
What about a combined Janitation History and Poster History
(possibly renamed to something like Edit History)?
-
Are there any technical issues with doing this (e.g. increased database load)?
-
Is there another way to get this information of which I'm unaware?
|
NEW [doc://perldoc#deeplink] works now with all perldocs
1 direct reply — Read more / Contribute
|
by LanX
on Feb 17, 2020 at 16:37
|
|
|
|
|
Chatterbox: NEW link to sent messages
No replies — Read more | Post response
|
by LanX
on Feb 16, 2020 at 07:11
|
|
|
Hi
Private /msg [messages] are sometimes hard to understand if they are a reply to something you wrote a day ago.
Actually they are still available in the "Delete" folder but only for a limited time (36h ?)
click here to check
The chatterbox nodelet used to have various links to the message box in the bottom row
• And 69 more, 90 archived
It now contains a link to recently sent messages too
• And 69 more, 90 archived, recently sent
The "recently" was necessary to avoid confusion about older messages missing. You need to archive them explicitly if you want keep them longer. °
Thanks to the gods for accepting my patch. :)
°) The link is a bit long for my taste, probably "just sent" or only "sent" with alt-text would have been better
|
Monastery gates typo and title change
2 direct replies — Read more / Contribute
|
by Eily
on Feb 13, 2020 at 09:16
|
|
|
Hello fellow monks :). There are a few things that (might) need some change in the Monastery Gates' page
First: the Quests section gives a current staus for the quest. Same for Quests. In both cases only the active quests are displayed anyway so I'm not sure that the line is useful. Does this come from a template used elsewhere?
Second, in the same section, is it me or does the prompt "Offer your reply" sound a little weird? Anyway, having that link for the top node preview of the page but not the other ones might make it seem like it's missing in other places.
And lastly the PerlMonks Discussion section of the Gates is called "New Monks Discussion" which is very misleading (for a second I thought there was a section to welcome newcomers that I had never noticed).
|
A reply to a reply not shown in RAT (solved)
2 direct replies — Read more / Contribute
|
by choroba
on Feb 11, 2020 at 03:53
|
|
|
+/-Making Perl Monks a better place for newbies (and others) (A:6/178/
+2) [ELISHEVA]
+/-Re^18: Making Perl Monks a better place for newbies (and others)
+(P:1) [PerlGuy(Tom)]
Update: My bad. Clicking on the + makes the post appear. Sorry for the confusion.
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
|
last hour of cb planned outage
2 direct replies — Read more / Contribute
|
by Tanktalus
on Feb 09, 2020 at 10:13
|
|
|
If you're one of those people who rely on on last hour of cb to tell how long it's been since the last conversation, because, let's face it, the conversation isn't as continuous as it was ten years ago, then I'm sorry to report that it's going to be taken off effective within a few hours of this post. I'm not sure when it'll be back online. Hopefully ~36 hours, but a good chance it'll be down most of the week.
Longer version: I'm moving. Not very far, just about 6 or 7 minutes' drive away. The new house's networking will, if I'm really lucky, be set up tomorrow, but I haven't been that lucky with this build so far, and so I'm not really expecting the network termination to be completed tomorrow. (The female CAT5e terminations in the office and other places are done, but not the male termination points in the mechanical room where I could then plug them into the switch / router. Because that made any sense whatsoever.) I'm tearing down the electronics today in the hopes of moving it myself rather than relying on the movers to do it, but without networking, the PCs aren't going to do a whole heck of a lot.
And, yes, the whole CB stats / last hour of cb system is running on my home PC, as it has been doing for a long time already.
My goal is to get the systems running again asap. It's just that some of this is out of my hands.
|
confusing style when A reply falls below the community's threshold of quality. You may see it by logging in.
2 direct replies — Read more / Contribute
|
by Anonymous Monk
on Jan 15, 2020 at 19:05
|
|
|
|
|