« first day (763 days earlier)      last day (661 days later) » 

4:07 AM
@VLAZ Because someone forgot to set rawHTML: true?
 
4:47 AM
@CodyGray More of the existence of this configuration option. I suspect it was introduced and the backend was changed to produce different messages at the same time. And the reason the community had to hunt them down for SE is probably that some messages coming from the backend are escaped (or don't need escaping), others not. So each specific place on the frontend would then have to either specify showing the message raw or also escape it.
 
Hmm
So we had to play whack-a-mole because there are moles.
It still seems like a ridiculous design issue.
 
5:14 AM
I agree it seems dumb that the backend produces escaped strings which the frontend also then escapes.
I think it's dumber that the solution is to blindly trust the backend strings are actually escaped.
 
Meh
If you can't trust your own backend, what can you trust?
 
Normally, the issue is that it might not be your backend responding. If a malicious user succeeds in hijacking the communication. Slim chance but it's there. And it's extremely easy to protect against, but just not trusting the data you get is safe to plaster on a page. Simply escape it and done, in this case. This also happens to fix a different problem - the backend simply being wrong, rather than malicious. For whatever reason, you might get some actual HTML back.
Maybe it was a bug with the message, maybe it's not the backend but something on the whole network chain just returns HTML (had this problem with a reverse proxy once). There are many scenarios without evil hackers involved that the response can be wrong and benefit from escaping. And we know SE don't test these anyway
 
6:00 AM
Yeah, that makes sense
 
 
3 hours later…
8:31 AM
0
Q: Hide answer sorting for a single answer

VLAZStackExchange hide sorting for a single answer A userscript that removes the sorting combobox in questions when there is only one answer available. Before: After: For users who prefer a cleaner UI when the sorting technically does not make a difference Remarks Deleted answers are not distinguis...

 
Yeah, that's been oddly requested multiple times on Meta
Of all the things to request...
 
@CodyGray It's why I created it. I've seen it requested. I don't like it but sure - if others want that, they can use the userscript.
 
You are trying to show Oleg that it's possible to have a fast turn-around time on userscript requests? :-p
 
I even posted an answer pointing to it here. Since it seemed appropriate - it's still open and there is an answer by some pair of glasses discussing why not to include the feature.
@CodyGray Heh, actually I made it yesterday. I just didn't bother posting it on StackApps until today.
I finally started making a setup for all of this. And I'm using Oleg's package to generate the headers for the script.
It's quite convenient.
@OlegValteriswithUkraine later on I'll have to ask you about the other generate-* packages. I didn't find an example of how to use generate-readme. Probably being blind again or something. And I tried generate-stackapps but it didn't do anything. No error, no output, no nothing. But I'll have to give you an MCVE for it in several hours time.
To clarify slightly - I tried generate-stackapps as CLI.
 
@VLAZ both generate-stackapps and generate-readme are kind of experimental, I still have a lot to do in regards to them. However, generate-stackapps should work fine:
generate-stackapps \
    --about "" \
    --chrome "101.0.4951.67" \
    --excerpt "Following Overcharged contains various improvements to the \"follow\" feature" \
    --install "https://github.com/userscripters/following-overcharged/raw/master/dist/modern/index.user.js" \
    --minified "https://github.com/userscripters/following-overcharged/raw/master/dist/modern/index.min.user.js" \
    --language "TypeScript" \
    --org-name "UserScripters" \
    --org-url "https://github.com/userscripters" \
^ CLI calls to generate-stackapps should work something like this
it should create a STACKAPPS.md file in the repository (or wherever you specify)
if it does not - just let me know, I'll take a look, but pretty sure it should
 
8:47 AM
I invoked it from the command line (using npx but I doubt matters) and user yhr example from StackApps as a starting point. But passed fewer arguments. I didn't get anything. I tried --direct and also --output with a destination but neither produced anything.
 
But I don't have the exact thing I tried right now. I'll let you know when I do - what I tried and what the repo looks like (if it matters).
Well, probaly matters. I did pass the --package parameter.
 
yea, please do - the package is covered with tests for every option and both CLI and programmatic usage, so I am pretty sure it should work unless there's something very odd that I missed
--package is optional and defaults to ./package.json, so it should not be a problem, methinks
and you should get an error if it's missing
 
It's possible I didn't see the STCKAPPS.md in the main directory. However, when I specified --output "dist/temp.txt" I didn't get anything.
 
8:52 AM
It's also possible I entirely botched something. I was trying to set this up after midnight, an hour or two after I should have been in bed. You know, mistakes happen at that point.
 
heh, it's kind of head-scratching to me, as generate should be pretty resilient to mistakes and report on fatal errors
 
I mean, I could have ran it in the wrong directory
Or checked the wrong directory afterwards :P
Is it resilient to that? Can you make it generate the output in the directory I'm looking at? :P
 
well, what's more concerning to me is --direct option not doing anything - it should output on stdout
 
Yeah, actually the generate-headers also didn't produce anything with --direct
I don't know why, though.
 
hmm, that does start to look interesting
what would cause process.stdout.write(...) to fail silently on your system?
maybe I should switch it to a promise that resolves after the write callback is called in case it has something to do with output buffering
 
9:03 AM
se_userscript-hide-single-answer-sorting $ npx @userscripters/generate-headers violentmonkey \
>  --package "./package.json" \
>  --namespace "https://github.com/PurpleMagick/" \
>  --run "end" \
>  --match all meta 'https://domain/questions/*'  \
>  --direct
se_userscript-hide-single-answer-sorting $
Here is the command + output
There is no output
Running this in WSL, so might be related
 
hmm
and if you run it outside it?
 
Outside? As in outside the repo?
 
no, I mean, outide WSL, if that's possible
 
Oh, I'll try that
 
if that changes anything, I'll add an issue and take a look at why would it not write to stdout there
 
9:07 AM
Works in PowerShell
So, it's something about WSL, then
 
aha
ok, you just got me a fun thing to ponder
 
Are you running it in Linux, Oleg?
 
generate-stackapps also works in PowerShell
 
yea, they share the same logic
 
At least the --direct option
 
9:10 AM
ther output should also work directly then, wonder what's up with WSL
 
I removed --direct and tried it: WSL - nothing. PowerShell - created a STACKAPPS.md file.
Maybe don't look too much into it. I'm pretty sure I'm on WSL 1. I'll try updating to 2 (not sure how you do that exactly) and see if the issue persists.
 
wsl --set-version <distro name> 2
 
I'll also boot up my machine that actually runs Linux and see how it behaves there
 
It's very complicated.
 
Wait, that's it?
 
9:13 AM
haha, yeah
 
I thought I had to install something extra.
 
Uh, well, I guess if you don't have the latest version of WSL installed, you might have to do that first.
But I'm pretty sure Windows Update forces all that down your throat
 
@CodyGray no (although at this point my OS is a Frankenstein monster)
 
You are running BSD?
 
@VLAZ well, it's still interesting why on earth would neither writing to a file nor to stdout work when the CLI is launched under WSL
as for the generate-readme, @VLAZ - it does lack usage info indeed, but mostly because it is a package I did not expect anyone to use except for us internally for a while, so in addition to it being not published on StackApps, it also lacks a proper README. It also is quite basic (although it does generate all the relevant package.json metadata + custom "about" section). But since you are interested, I can work on it over the weekend to expand it and document options.
I also have changelog generation from commits / tags on my backlog
 
9:25 AM
I looked at the userscripters repos and noticed generate-readme :) I checked stackapps and didn't see it there.
Seems WSL2 is a bit more involved. It's asking me to enable virtualisation features and I'm trying to figure out what I need for that, since I thought they were enabled already.
 
@VLAZ yeah, because it's not published there yet - I've been stalling on making it useful enough to publish as it was mostly about creating a dummy readme for generated repositories (its initial idea), but seems like it just shoot up the priority list :)
 
Don't do it just for my sake. I finally started making a setup for userscripts, so I can create and publish them much faster. I myself have been stalling on this. So, in the process I explored what other people used.
And noticed the generate-readme then.
 
Oh, you probably have to enable Hyper-V.
 
9:43 AM
Yep, that's the thing. And I thought it was enabled.
 
Because you're always hyper?
 
@VLAZ it's already on the backlog, so it seems fitting to address :) nice to know that packages are being used not only by myself - that puts them much higher on the priority list. I've been mostly working on the ElectionBot for the past week so all the other items were pushed back for a while
 
The error message was stupidly complaining about virtualisation options and asking me to enable something else but not telling me Hyper-V wasn't enabled.
@CodyGray Doesn't sound like me, TBH
 
@OlegValteriswithUkraine Because of the upcoming EE elections? :-)
 
So, I enabled Hyper-V, restarted, now I'm waiting for the conversion to finish
 
9:48 AM
@CodyGray they are always coming :) we currently have 3-4 instances running at the same time
 
Well...no change after converting to WSL2.
 
Does any site other than SO actually use it?
 
Well, it's now faster to give me no output, I suppose.
 
WSL2 or the bot, @CodyGray? :)
 
Sorry, running generate-stackapps on WSL2
also generate-headers with --direct still has no output.
 
9:51 AM
ok, so it seems there is a problem with propagating stdout from WSL - hmm, I lack expertise with WSL to be able to easily tell why would this be a problem. I'll take a look
 
I wouldn't have thought there is any real difference
But apparently there is
 
@OlegValteriswithUkraine The bot
 
sorry, could not resist to make a pun about the ambiguity :) Yeah, most of the time, folks are pretty happy to play around with the bot. The only site that didn't like it in all the history is TeX
 
Because it didn't accept TeX commands?
 
no, because TeX folks apparently have no sense of humor :) there is a fun mode that, in addition to adding some easter eggs, sends a random joke response with a pop culture reference if no command matched
multiple folks there got literally offended without checking that the response is a quote
I kid you not, one of the trigger phrases is "frankly, my dear, I don't give a damn"
which even has its own wiki page:
"Frankly, my dear, I don't give a damn" is a line from the 1939 film Gone with the Wind starring Clark Gable and Vivien Leigh. The line is spoken by Rhett Butler (Gable), as his last words to Scarlett O'Hara (Leigh), in response to her tearful question: "Where shall I go? What shall I do?" Scarlett clings to the hope that she can win him back. This line is slightly different in Margaret Mitchell's 1936 novel Gone with the Wind, from which the film is derived: "My dear, I don't give a damn."The line demonstrates that Rhett has finally given up on Scarlett and their tumultuous relationship. After...
 
9:58 AM
Dude, I'm not your dear.
 
heh, yea, the responses were along this line, so... we have fun mode disabled there
 
Oh, that's it's own meme
 
the bot is also literally a persona non-grata on Mathematics SE
in 2021 Mathematics Stack Exchange Moderator Election Chat on The Stack Exchange Network Chat, Nov 8, 2021 at 20:04, by JNat
Hey, @SamuelLiew ! The Math mods requested that you don't add your election bot to this room, as they've found it disruptive in the past. They're happy with creating a separate room for it, if you'd like to, though — lemme know.
and you know why? You see, it disrupts "human interaction" because folks play with the bot when it's available
in 2020 Moderator Election Chatroom on The Stack Exchange Network Chat, Aug 3, 2020 at 19:50, by amWhy
@quid The ElectionBot has dominated this thread more than any human user, in part because users have been spending more time playing with the bot than discussion the election. I see very little participation by candidates and real human users. If this is how future election chats on SE are going to operate, no one should even bother with such a chatroom.
in 2020 Moderator Election Chatroom on The Stack Exchange Network Chat, Aug 3, 2020 at 19:51, by amWhy
Bots are only useful if they facilitate human dialogue, in this case, between candidates and users, and between users. This particular bot has shut dialogue between human users down to a trickle, at best.
 
amWhy is a moderator now?
 
no, they... seem to be currently suspended
mods there seemed to play it safe last year because of these complaints
I think I ranted about Maths SE to Sam several times at this point, and it never gets less cathartic :)
 
10:10 AM
@OlegValteriswithUkraine That's what I thought...
@OlegValteriswithUkraine amWhy likes to complain...
 
yea, I noticed...
 
Nobody knows why
 
does one need a reason to keep complaining? :) Joking aside, because of Maths SE, we'll have to add something like if ( site.includes("math.") ) return when we get to automatically determining which elections to jump into
 
10:20 AM
Wouldn't it be more like if (haters.indexOf(site) !== -1) return?
 
heh, likely, but the rest of the network seems to like the bot - it's precisely Maths SE that has a problem with it
 
I once tried a mathematic. I hated it.
(actually, I've never hated maths)
 
@VLAZ did it taste bad? :)
 
It was insoluble!
And the taste was highly variable
 
@OlegValteriswithUkraine It tastes like pie which is missing something.
 
10:31 AM
heh
fun story: when I just started out, I had something like an evaluation - I was faring pretty well until the "interviewer" (I don't know how to put because it wasn't an interview) asked me what Math.PI does. The problem was that in Russian, we pronounce "pi" as "pe", and I forgot that it is actually pronounced similarly to "pie"... You should've seen the shade of red I went when I realised why I had to say I don't know what they are talking about.
 
xD
 
Interlocutor?
"Because I'm Russian" was as much a cause for embarrassment then as now? ;-p
 
At Uni, everybody got a login that's based on their initials. Unless they clash with somebody else (not too hard), in which case usually IT just gave one a different middle letter. One friend of mine was unlucky and got the login pee
 
yea, it was wholly embarrassing. I frantically searched my brain for references to Math.pie and, since nothing obviously came up, I admitted that I am not sure how to answer. That holds a high place in my "worst fuck ups of my life" list
 
To clarify, the initials of all three names are taken. Well, unless you have two names only, then you're assigned a random second letter. Or if you have more than two names, IT also do something to choose one.
 
10:42 AM
That's a stupid interview/evaluation question anyway, though
 
@VLAZ what did they do to the IT department to get such a login? :)
@CodyGray eh, well, it was just a set of questions on the knowledge of the standard library, but man I still go deep red when telling this story
 
@OlegValteriswithUkraine Mostly the IT department having stupid policies.
 
Of all the embarrassing stories I've heard, this one doesn't even seem bad
Reminds me of one from when I was very young... My parents, at the insistence of some clueless busybody employed by my primary school, took me to have me evaluated, somewhat like an IQ test, except you can't give IQ tests to kids that are very young, so it wasn't exactly that.
The person asking the questions started asking about colors of 'crowns'.
Or, at least, that's what I thought they were asking about. Apparently, they were asking about the colors of Crayons.
But who could tell, since they pronounced Crayon as "crown".
And they concluded that I was dumb, because at age... whatever, say 5 or 6, I didn't know my colors.
 
@CodyGray heh, probably, but it was still a hard kick in the guts after I realized that ~18 years of studying English by that point left me completely for a question that should've been a breeze to answer
 
But it's not an English problem?
It's a pronunciation problem
 
10:48 AM
BTW, somebody at IT was given way too much time on "make sure password is secure" task. When you were setting up a password, you'd get a "cannot use this password - it contains a word in Spanish" or "in Welsh" or "in French", etc. They just imported several full dictionaries of blacklisted words and rejected the password on any substring match. Even fuzzy, e.g., "p4ssw0rd" would also fail because it's still based on the word "password".
@OlegValteriswithUkraine It's not even a useful answer. Either you know what pi is or you don't. And if you don't know pi...so what, exactly? I've had to use it exactly zero times since I started programming.
On somewhat related note to interviews - at my last place, we had a coding task in Java which was to write a validator for ISBN numbers. Which is pretty easy and almost FizzBuzz in disguise. At any rate, we made sure to tell candidates that they can use the Internet for anything, they didn't have to do it by memory alone.
So, one candidate just googled "how to validate ISBN number in java", took the solution and spend no more than 5 minutes total after making sure it passed the tests.
 
@CodyGray is a 5 YO supposed to know what crayon is?
@CodyGray how... does one pronounce "crayon" as "crown"??
@VLAZ well, that's a dumb metric to check the password strength by
 
@OlegValteriswithUkraine I think so, yes. At least in the US, kids of around that age spend a lot of time (or used to) coloring with crayons. (I think now they poke at iPads or something.)
 
@OlegValteriswithUkraine It was.
 
@OlegValteriswithUkraine I later heard that pronunciation intermittently though surprisingly frequently.
It's more like... "craaaaon", without the Y, I guess
But it sounds an awful lot like "crown".
 
It meant that most people spent like 10-15 minutes trying passwords until one worked then almost immediately forgot it.
 
10:57 AM
@VLAZ Were there points off for failing to be DRY?
The "N" already means "number".
 
@VLAZ well, I had to use it, primarily when working with canvas and SVG (for example when calculating horizontal shift when the text is on an angled path, and only the length of text is known)
 
@CodyGray It's possible I didn't relay the exact search term.
 
Oh, I meant your description: "write a validator for ISBN numbers"
 
@CodyGray huh, I had to google what crayon means before I asked.
 
What?! What do you call them?
 
11:00 AM
@CodyGray It's also possible I didn't relay that one exactly
@CodyGray crayon but in Russion, I suspect
 
Then he'd know what it was!
Unless there was a pronunciation issue when translating to English ;-)
 
@CodyGray I... don't, I can't even tell if I ever had a situation where I had to use the word
 
"мелок" according to Google translate
 
pronounced like "melon" but with a K sound at the end?
Or does it use the Russian thing where some "o"s are pronounced as "a"s?
 
11:02 AM
eh, hard to say, more like "maelok"
or, closer, as in "melody"
 
Oh, wait Google Translate had a pronounciation. It's more like "meelok"
 
I guess "melon" works too
@VLAZ that... does not look like the correct pronunciation
 
Basing it on this: translate.google.com/…
 
it is pronounced in the same way as "melon", "melody", "metastasis", etc
with "o" stessed
 
OK, so it's how I thought it was pronounced, then. Google Translate voice uses something very close to "e" (as in, how you'd sound out the letter in English) in the first syllable.
 
11:06 AM
oh, speaking of, @CodyGray, now that I looked at the translation @VLAZ provided above, I think I always thought they are called "colored chalk" or "pastel pencils".
 
melon does not have a "me" sound
 
yeah, I listened to the pronunciation provided by Google - it's incorrect
 
@OlegValteriswithUkraine Chalk is totally different from wax. And they're not always pastel (in fact, rarely are they pastel; they're generally bold colors). And pencil(s) is/are also very different from wax!
 
so... is a crayon specifically a colored wax stick?
 
@OlegValteriswithUkraine Yes
 
11:09 AM
Yes
For art/drawing purposes
Not for, like, I don't know, anything else you'd do with a wax stick?
Maybe there is nothing
Maybe I am overreacting :-)
 
that does not seem right, chalk crayons, apparently, exist
 
@CodyGray Candles. You can also apply wax in some crafts. But those aren't crayons.
 
on an off-note: wait... was richardec's account nuked after playing around with the "unlimited votes" bug?
 
@OlegValteriswithUkraine Ehh, yeah, but they're not actually crayons. They're just named after crayons because they have a similar shape.
@VLAZ Oh yeah! Haha, candles.
@OlegValteriswithUkraine No
 
@CodyGray huh, O.K., time to expand on my vocabulary
 
11:18 AM
It was a self-delete
I think the UI should show that distinction, but that's just me
 
 
4 hours later…
3:34 PM
BTW, Oleg - related to your Math.PI story. I had a friend who interviewed for a job. And he had already finished university and worked for 3-4 years. Goes to some interview and is asked "What stack do you use at your current job". And he didn't actually know "stack" meant "technologies". Thought it's a very odd question to ask but answered about data structures.
He didn't get the job.
 
 
3 hours later…
6:37 PM
0
Q: Revert Stack Overflow's new up/down vote buttons

TylerHThis userscript, written for ViolentMonkey, reverts the question and answer upvotes on Stack Overflow so that they are almost identical to their previous design. New Stack Overflow vote buttons: This user script changes them to: Link to userscript install: https://github.com/Tyler-H/SO-UserScri...

 
6:50 PM
@OlegValteriswithUkraine I accidentally ran generate-stackapps with --works-with "greasemonkey" "violentmonkey" --works-with "tampermonkey" --works-with "violentmonkey" and it generated
Supported userscript managers:

- Greasemonkey
- Violentmonkey
- Tampermonkey
- Violentmonkey
I found it amusing. You might as well. I don't think it's really needed to fix it - if it were me, I'd just expect users of this to just use the command correctly.
 
--works-with "greasemonkey" "violentmonkey"
 
o.k., I did not expect I need to uniquify the input array :) duly noted
 
I mean, you don't have to. I only hit this because I copy and pasted incorrectly.
BTW, is it possible to run generate-headers for all userscirpt managers? Assuming I don't want anything specific to any of them, seems it should be fine, right?
 
@VLAZ heh, I'll probably still squash that peculiar issue :)
@VLAZ eh, not technically, but all 3 commands work like this: common headers + match/grant headers + package metadata + specific headers. So if you knly specify common headers, you can use either command
That said, I know about that, and a command to generate all three header types is in the backlog.
 
7:11 PM
For generate-stackapps: how is the changelog generated? Right now I get this and I want to have something like "initial release" for version 1.0.0
## Change log

| Version | Description |
| ---------- | ----------- |
| 1.0.0 | |
Also for generate-stackapps: can I omit the table with last tested on? I just don't want to include it. I can easily have a script just post-process the file, I just want to make sure I'm not missing anything with the command.
 
 
2 hours later…
9:05 PM
@VLAZ eh, the answer is simple: it is not :) It is a backlog item - for now, it only takes the current version from the package.json so a I do not forget to fill in the change log manually. I intend to add full Git integration soon, likely in the upcoming weeks (I need to settle on how exactly I want to generate the changelog for our repositories first - for now I am leaning towards using tag + tag message info)
@VLAZ currently, you cannot - as I designed the package for our projects - and they always include this info - I opted to make the table generate no matter what. However, I can make it so it is omitted in case no browsers are specified, will that work for you?
 
Maybe make a switch, if you want. I'm also fine with postprocessing the file, as I said. Should be a simple sed thing with the command line - match the table start, delete the next few lines.
I can similarly post-process to add information for version 1.0.0
In fact, I could just get the git history, match the commit messages for version change, generate a table for it and replace in the generated file.
 
sure, but it's nice when the package does that for you :) And the suggestion seems reasonable to me - I have some time today, and it sounds like an easy thing to do, might as well work on it
 
It serves well as a template that can be manipulated programatically.
On a different notes, I noticed that you had shell scripts in your repos. And it seems they are running automatically. Is there some CI option in GitHub?
 
Yup, we basically invoke NPM scripts with GitHub Actions that in turn execute the shell scripts - I like how it comes together quite neatly
 
9:24 PM
Ah, I see. Yeah, that would work for me. I wanted to do some simple automatic system that would just build the thing on push.
 
that's exactly what we settled on - simple GH Actions running NPM scripts on push, PRs, and publish
 
 
1 hour later…
10:53 PM
@VLAZ published version 1.3.0 of the generate-stackapps package, addressed 2 of the things discussed today: (1) conditional generation of the "platform" section; (2) uniquifying of "works with" entries;
 
Thanks. I'll update tomorrow and use it.
 
11:12 PM
do let me know if you find any issues - although I covered both cases with tests, so should work as expected
 

« first day (763 days earlier)      last day (661 days later) »