« first day (3743 days earlier)      last day (1094 days later) » 

1:01 PM
I'm going to go sleep now, so let the 200 trillion conversations commence
 
1:13 PM
-1
Q: Is there an expression for an element of the inverse of a invertible square matrix?

Big Beari am looking for an expression for the inverse of a invertible square matrix, but element-wise: ie, given a matrix X, does there exist an expression for any element of its inverse, in terms of the elements of the matrix X? i am fully aware of Gauss-Jordan, LU-dcomp, etc, but its not whut i'm look...

 
@Lyxal Back in India, we called it MacD
 
@Lyxal insert conversation-starter here
 
my song answer is exploding
it has 4 upvotes
F O U R
blows the longstanding "A Problem of Rarity" out of first
 
People upvote funny stuff :P
Especially once a question hits the HNQ
 
1:28 PM
lol
5 upvotes now
made it to the top answer list
 
Hello everybody!
 
Looks like @everybody isn't here right now.
 
smash ultimate bad ending
 
@user If you aren't including Day 0, what's the score for someone who only posted on Day 0? inf? n/a?
 
Hey does someone want to cooperate in making a song entirely of error messages, by posting an answer along the lines of "zsh -c, 0 bytes" to continue mine?
 
1:37 PM
@cairdcoinheringaahing n/a, I guess
@pxeger Please don't do that
 
@user Ooh, how about NaN? :P
 
Even better! That way, none of the answers on Day 0 have the same score :P
I hate when the example KotH bot is actually good
I experimented with random numbers to see which worked best, found out 80 was consistently good, then made a bot and gave it a very creative name, only to find out that the OP's Simpleton bot does the same thing (ノ°Д°)ノ︵ ┻━┻
How are we supposed to deal with this answer? It's funny, but it kinda just ruins the entire KotH if no one can win
 
That is not allowed
 
Is it even allowed? The rules say "returns a number between 1 and 100" and that doesn't do that
 
@user should I flag it
 
1:45 PM
no
 
Already am
 
I have scientifically proven that you're less likely to get stabbed by a cat in the middle of the night if you play dead!
 
No, notify the answerer
 
Also, always put your code to run submissions in a try/catch
 
@Wezl you're 0.0001% likely to get stabbed by a cat in the middle of the night if you don't have a cat, works for me
 
1:46 PM
If you flag it, the mods are just going to notify the answerer and give them ~24 hours to fix it before deleting it. You might as well skip the 24 hour waiting period and make the mods' jobs easier
 
@rak1507 That 0.0001% worries me...
 
well I can't say for certain that a cat won't manage to somehow get in my room and stab me
 
@rak1507 *summons an airplane, which bombards your house with cats*
 
Great, one more fear to add to my list
 
@Wezl at a high altitude all the cats would just fall to their death
unless they had parachutes
 
1:47 PM
Cats don't take fall damage
5
 
They don't have to be alive to stab you
4
 
lol
 
Nah, they'll all land on their feet
 
@rak1507 was about to say :)
 
@user good point, but they do have to be alive to come in my room considering that it has a roof
 
1:48 PM
Obviously, first Wezl will bomb your house and make you run outside
 
well sorry I introduced this off-topic conversation, it's just my way of saying good morning
 
Then comes the cat attack. Of course, since you can still run around, you'd need a lot of cats to ensure you get stabbed by one.
 
damn, it's like a siege
@Wezl :) good morning
 
@user Zombie cats?
 
Nah, just frozen, aerodynamic cats aimed properly
If they have icicles coming off them everywhere, you could just check them at people like deadly basketballs
 
1:50 PM
bro
 
Yeah let's move the topic to something else
 
weasels
 
2:06 PM
I'm always terrified someone will discover a massive shortcut in one of my questions that will smoke all the previous competition and then ruin the challenge thereafter
 
2:19 PM
@pxeger are you referring to the alien probe one?
 
> always
 
I'm afraid of alien probes too
 
yes
@Pureferret says they can't wait for it to be posted
which makes me worry that's because they'll win
 
Oh wait I was talking about your question too, it's very daunting. Totally not talking about, um, whatever else that might be
 
@pxeger just got the best Python answer on the "Is it true? Ask Jelly!" question, feeling good
 
2:35 PM
fails for [[0]]
you should really add a tio link that includes all the test cases
maybe then you'd see that your answer is wrong too
 
ok I'll delete it @rak1507
 
@Lyxal I've heard it called MackyD's
 
@Neil really
 
@Neil in France they call it McDoh
 
 
1 hour later…
4:02 PM
I have a list of pairs (num, val) where num is an integer (positive or negative) and val is a printable character. I want to output the total count for each printable character in Python. Is there a compact way to do that?
I can do
from collections import defaultdict
counts = defaultdict(int)
for (c, x) in seq:
    counts[x] += c
print(counts)
but it's quite long
 
there's a fixed font button when you paste in multiple lines
 
cool! Thanks
 
nothing much you can do without sacrificing efficiency
that looks like the reasonable way of doing things to me
 
ok thanks
I always miss a trick so I thought I would ask
 
@rak1507 same, except for that it's python :D
 
4:08 PM
lol
APL: {⊃{⍺,+/⍵}⌸⍨/↓⍉↑⍵}
 
@rak1507 Or ⊢/¨{⍺,+/⍵}⌸⊣/¨
 
yeah
more sensible
 
But of course, in APL, you'd want to keep the letters in one array and the counts in another, and then do vals{⍺,+/⍵}⌸num
 
@Anush We can fill the dictionary first with empty values and keys with the printable chars, later add up the values with for loop, like this
d={y:0for x,y in seq}
for x,y in seq:d[y]+=x
You no longer need a defaultdict!
 
@Wasif that is cool
 
ngn
4:25 PM
hi people. i have a question about html/css/fonts: is there an elegant way to toggle the display of a certain unicode character without enclosing all occurrences with html tags?
 
toggle display, meaning "removing" them on event?
 
ngn
@Razetime show or hide the character depending on the state of a checkbox
 
I guess there's regex removing the character when the checkbox is clicked
and then reverting back
 
@Wasif two pass is gonna be slower than 1
you could also do for x,y in seq:d[y]=d.get(y,0)+x
 
@rak1507 oO i had no idea about using .get()
 
ngn
4:30 PM
@Razetime but if i remove the character from all text nodes in dom, i wouldn't be able to revert it. also, newly created content would still show the character.
 
@ngn You might be able to create a font that doesn't render that (or any) character, and then toggle font-family on/off for the character range of that single character.
 
flooding the DOM with spans sounds awful but it looks like the most obvious one
 
ngn
@Adám i had a similar idea but couldn't get it to work (fontforge is hard to use..)
 
editing an existing font and deleting the relevant unicode glyphs shouldn't be hard
hmm, what would happen if you changed the meta charset from utf-8 to latin?
 
ngn
@Razetime what do you think would happen :)
it would misinterpret everything as latin1
 
4:42 PM
perfect
 
Oh nice, they delayed something I've been working on for school that was supposed to be due tomorrow all the way until May 20
 
@Razetime I think it's better than font or encoding hacks
 
\o/ Just got Reviewer for LQP :D
 
I don't see why just using JS to store the version with the characters, then toggling between that and a filtered one wouldn't work
@cairdcoinheringaahing Nice!!!
 
@RedwolfPrograms Just 750 more to go until Steward :P
 
4:45 PM
I'm almost 60% of the way to Reviewer in FP
 
@RedwolfPrograms it looks like he's dynamically adding content to the page
 
Don't see why JS couldn't still work for that
 
@ngn Could you use JS to replace all of them with zero-width non-breaking spaces ― which you could then replace back?
 
@ngn Is this user input, or is all of the updating done by JS?
 
you
d have to keep track of all the locations
 
ngn
4:48 PM
@RedwolfPrograms the user is not expected to enter the character in question, but js could create more content that contains it
 
a better font solution would be to have a font that only has that character, but it's blank, and enabling that font when you want the character to be hidden
 
So is this inside a textbox, or a contenteditable?
Or neither?
 
ngn
@RedwolfPrograms it's everywhere in the dom
the character i'm talking about is a stress marker
 
Fonts are going to be the best option for sure then
 
ngn
@Wezl right, the first solution mentioned by adam - it would be ideal. i just need to learn how to create such a font
 
4:51 PM
I volunteer :)
 
ngn
@Wezl thanks, but please also teach me how to do it :)
i need to hide U+0301
 
I feel like there should be some sort of CSS trick but I can't think of anything
Also, what if someone enters a precomposed character like á instead of ?
 
ngn
@RedwolfPrograms we can assume that that won't happen
 
Maybe instead of putting the ´s in spans, you could put the letters they're on in spans and use :after toggled by a class, that doesn't involve as much DOM manipulation so it's probably a lot faster
 
4:57 PM
@Wezl is 0x0.st dedicated for public use?
 
@Wasif I guess. Go to 0x0.st and read the info
@ngn I went to glyphrstudio.com/online , made a new project, added the glyph range 0x0301 - 0x0301, and set the width for that character to zero (then saved as OTF)
 
that server is quite helpful
there is nothing better than world in auto-downloader link
for lazy people like me
 
ngn
@Wezl strange. it works for other chars but not for U+0301
it might be because U+0301 is supposed to combine with the preceding character
 
@ngn define "works"
 
There might be the things that start with an L
 
ngn
5:08 PM
@Wezl "hides the character when i add the font to the css with @font-face{} and font-family"
 
Ligatures, that's the word
Is it those?
 
ngn
@RedwolfPrograms afaik ligatures are combinations of letters that form a single glyph, like "ffi"
U+0301 is an stress sign that could be placed on top of any letter (typically vowels)
 
Ah, ok
I don't know too much about fonts :p
 
kfpzb.csb.app here is my test thing (source)
 
lol HN got a good question badge from the RO welcome post
Also for some reaosn the spacing is different between Bubbler and caird, and between caird and me
Oh wait it's because Adám isn't rendering for me lol
 
ngn
5:15 PM
@Wezl after i press "hide" it looks like this^
so, it hides the lone U+0301 but doesn't affect it when it's combined with an "a"
 
the spacing changes because I forgot about it, but it adjusts the text around it to the same size as the default for the font editor (which doesn't look that bad)
 
ngn
there must be a way to define a glyph for a pair of codepoints..
 
@ngn there is, one way is ligatures
 
@user I think it's kinda funny that they weren't renominated for the Community award :P
 
5:29 PM
"funny"
 
@RedwolfPrograms i've gotten so many meta badges from organizing the RO election it's hilarious
i wish i could prevent that but alas even CW doesn't stop me from getting the badges
 
TIL ligate is a word
 
sup
 
wait, SO needs 3 votes to close?
 
5:39 PM
Yep
 
huh. nice
 
It's necessary for a site that gets so many low quality questions
Reopening also takes 3 votes, and I wish it did here too :\
 
yeah, that's true.
i don't know if there's a way to have a different close and reopen condition. if we have a really high desire for it i could ask a cm if it's possible
i don't think we need 3-close 3-reopen though, otherwise i could post a meta discussion since they are going to be adding it to a bunch of sites soon
 
I'm not sure we need 3 close votes either, but I feel it's too hard to reopen questions, especially with how few users we have
otoh all our active users look at every new question comes by, and some of them have hammers
 
well they will go into the review queue and there are at least a couple of people who look at the review quite regularly :P
@user only applies to dupes though
 
5:46 PM
Okay I just generated 16 random ASCII characters and somehow about half of them belonged to some sort of profanity :|
This always happens for some reason
 
n i c e
 
n i c e v 2
 
@RedwolfPrograms did you use a prng (profane random number generator)?
 
Seriously, I can't verify my email for a new account because SO's email validation site is blocked on my school network
 
kOThS always make lots of activity
 
5:51 PM
@RedwolfPrograms lol
all of SE is available on my school's network lel
 
They use a .email domain
So that's why it's blocked I think
 
It's annoying when you want to sign up for a free Student pack but you can't because your school blocks emails from other domains, so they can't validate it :(
I had to send JetBrains a photo of my report card to use IntelliJ Ultimate, which was embarrassing.
 
@Wezl they're my favourite
 
@AncientSwordRage Looks like it'd run
 
idea: Challenge about making a kOTh controller (probably already been done, but ofc it can be done multiple times)
 
6:08 PM
For my Compose a song challenge, should I restrict answerers to three answers on a single day? Makonede pointed out that you can lower your score a lot by just posting a lot of answers.
 
@RedwolfPrograms more than I could possibly hope for
 
Through Ruby, I have found God.
 
@user hahahae
 
I guess I should start on Hunter-Gatherer again. Question: Should armor be made from bronze and iron, or from some other material like animal hide?
 
If your civilization is advancing technologically, why not make it an option?
They could start with animal hide, then after acquiring metallurgy, use bronze or iron
 
6:17 PM
Because I'm not really sure if I want bronze and iron to be too useful
And it's not super hard to get ahold of
 
@RedwolfPrograms what's hunter-gatherer
 
If your weapons are light swords, animal hide is probably okay
 
@StackMeter A KotH proposal
Because right now rabbits and elk are basically the same, so more hide from elk could make them useful
 
also you know damn well the moment A-Maze-ing Adventure v1.0 comes out I'm doing a KOTH on it
 
@RedwolfPrograms kOTh ftfy
 
6:21 PM
for those of you who don't know what I'm waxing about, I'm making a game
 
6:38 PM
@user it's always been depressing to me that non-free IDEs are so far ahead open-source ones in feature set
 
Depressing, but not surprising. Most people are going to do better work if they also have incentives such as money
 
ngn
every feature of your ide is a misfeature of your language
 
Plus, IJ Ultimate borrows from the work people put into IJ Community
@ngn If you're talking about linting, then maybe, but you can't expect a compiler to do refactoring and syntax highlighting :P
 
I don't like IDEs
 
i code in TIO a lot of the time
 
6:46 PM
A text editor with syntax highlighting is all that I really need, and syntax highlighting is optional
 
I'm not as powerful as y'all :P
 
i code in either TIO, atom, or codeanywhere
 
I use the editor that's built-in on Chromebooks, it's not actually that bad
 
TIO or IDLE for me :P
 
Is Atom as good as VS Code? I thought work on it was slowing down
 
6:47 PM
Atom's good
I use it on my Minecraft laptop
 
vis ftw
 
Although I mostly use vim there
Because I'm too lazy to click the icon to open Atom when I've already got the terminal open lol
 
Vim is too hard for me, although I learned a little when it was LotM
 
Imagine using vim. Made by the "I only open vim to run the vim kolmo answers locally cause it's black magic" gang
Plus they look cool to run locally :P
 
I only know a few basic vim commands
 
6:49 PM
Every time I forgot the -m flag when committing, my commit message would be something like "Cleaned up code:wq:wq!:q!!!!f*ckvimlkuiyt21`"
 
i only know like dd and i lmao
so i don't use vim for any of the actual vim features
 
I've tried a few other editors for Chrome OS, but none of them are really that customizable and Text is what I'm most used to
 
Text is actually pretty decent
 
I tried installing Atom in the Linux VM, but it runs too slow to be useful
 
So I wrote a reference solution for the Gelatin metagolfer that only uses Square and Decrement to get from n to m. On the test cases, it had a total program length of 183119 and on the scoring cases, it timed out on TIO :/
 

« first day (3743 days earlier)      last day (1094 days later) »