« first day (4339 days earlier)      last day (833 days later) » 

00:09
@smci Certainly! I've been an Escher fan since I was a kid, from Martin Gardner's columns, and was given a book of his prints when I was 13 or so. Escher initially learned about hyperbolic geometry from Coxeter, but also made his own discoveries in it.
 
9 hours later…
09:14
I think what I really need to solve my audio problems is a way to set the volume in Firefox on a per-domain basis. And to nobody's surprise, there are no existing addons for this
I am Sisyphus and my todo list is the mountain
8
needs more focus (too many weird unrelated errors) stackoverflow.com/questions/73579898/…
09:56
@Aran-Fey There's Volume Master for Chrome, but it disables Full Screen Mode unless you make a video Full Screen and then ctrl - f11 the tab
@Aran-Fey I really relate to that. I think I have too many back-burner projects :/
Also, it's been a minute since I used Firefox, but this add-on: addons.mozilla.org/en-US/firefox/addon/600-sound-volume seems to be of the same main point to the one I'm using on Chrome
@Aran-Fey per domain, do you mean by focused apps? or by application?
And now, I think that you maybe mean something else entirely. As these work per tab
yeah, I guess "domains" make more sense in the context of tabs. I just thought per apps would also fit :)
09:59
@NordineLotfi What is an "application" in the context of Firefox?
ah, you meant "inside" of firefox. nvm what I said then :P
I thought you meant to do that for firefox and other application, etc
@dhiaagr I've tried it, it doesn't work reliably. And I suspect it will forget the volume settings when I close and reopen firefox, since it's tab-based rather than domain-based
Actually, maybe I shouldn't have tried so many audio-related addons one after another without restarting... I think something is permanently messed up now
@Aran-Fey That it will do. I believe it is even enforced by the browser (that it just controls the sound on an active tab while activated), at least on Chrome
Huh, turns out the ping sound isn't so unpleasant when you have your volume set to a reasonable level. Who knew?
 
4 hours later…
13:48
Thinking about trees
You've been very tolkien-esque recently . . . :0)
Trees and rocks and great big meals which I will describe over the course of three pages
Three rungs up my XY problem ladder, I have a binary tree that I want to describe without using parentheses or brackets etc. I came up with an approach that reminds me of run length encoding, except you don't always have to include the length.
Little prototype: pastebin.com/raw/wjL0JE9F
Since I only ever encode the size of the left parts of the tree, it's possible to have a quite large tree whose encoding has very few numbers describing the size of its subcomponents. In the best case, there's no numbers at all. For example, sample_tree = ["a", ["b", ["c", ["d", ["e", ["f", ["g", "h"]]]]]]]
But then there's the mirror image of the best case, which has as many numbers as the tree has branch nodes. See test case 3 of pastebin.com/raw/GBWxEKJr
The decoder there is a bit inefficient because it's creating something like O(n log n) slices of the input list. You could do it without slicing if you manually kept track of the starting and ending indices of each sub-list. But I didn't feel like it.
I bet somebody already invented this 300 years ago
14:27
Representing a binary tree as (in?) an array has been around for some time now. Just takes some simple algebra. I imagine you know that though.
The simplest algebraic approach is the one that works on "perfect" binary trees, where every level is completely filled. Then you can encode the tree by literally just writing down the value of each leaf in order.
For example, the perfect binary tree [[['a', 'b'], ['c', 'd']], [['e', 'f'], ['g', 'h']]] would encode to [a,b,c,d,e,f,g,h].
I don't really understand the goal here tbh. In order to flatten a tree, you need some sort of separator. You don't want to use parentheses, but numbers are ok? Why? Is the goal to use as little memory as possible?
14:49
Where's the question which has "use struct.unpack" as the answer?
This one has the answer but it's actually the wrong question for that answer: stackoverflow.com/questions/43668096/…
And it is closed with a wrong duplicate, too.
(I'm trying to find a good duplicate for stackoverflow.com/questions/73583991/…)
15:35
@Aran-Fey I also don't understand the goal.
In a way, those are the best goals
Another thing I found interesting is that you can unambiguously describe a binary tree even if you delete all the left square brackets. 'a', 'b'], 'c', 'd']], 'e', 'f'], 'g', 'h']]] has exactly one valid interpretation, because you know for a fact that every list has a length of two
It can't be [[[[[[['a', 'b'], 'c', 'd']], 'e', 'f'], 'g', 'h']]], for example, because len([['a', 'b'], 'c', 'd']) == 3.
You can decode it in one pass, too. Nice when you're reading from a generator. pastebin.com/raw/aNd1htFg
You can do something similar if the left brackets are present and the right brackets are gone. Decoding gets a bit less elegant, perhaps.
 
2 hours later…
18:13
Is YouTube stuck in an endless loading loop for anyone? I closed all my precious tabs (restored, thankfully, unlike last time I tried where it just dumped them all) to restart Chrome but getting nowhere :(
Nm, turning it off and on again twice was what was needed. IT help desks will now have double the workload. I pray for them in this difficult time
18:30
I think convincing a user to do the same thing twice in a row will take significantly more than double the effort...
A bit off topic, but saw someone posted here duplicate questions. May be that were python SO questions, don't remember. Still, how are questions linked together in SO in general? Here https://stackoverflow.com/questions/51121554/reset-or-reload-max-script almost duplicate of this: https://stackoverflow.com/questions/17008711/how-do-i-refresh-or-reload-scripts-in-3ds-max
How these two can be linked together?
If it's only almost a duplicate, you can post it in a comment under the question
That means duplicating an answer which is like pure violation of our religion... Did that already, don't want more
What? Just post a link to your answer in a comment. That doesn't duplicate your answer
Oh, that way sounds fine. Still some questions have more internal link which is displayed on right area of SO. Will that became available with more reputation?
18:40
Posting a link to another question will automatically make it show up there
Oh, so comment will do this. Nice, thanks!
I always thought posting a link to a question only showed up there when it was inside OP's post...good to know :o
 
2 hours later…
20:18
I post lots of links in comments. The only problem is if the comment thread gets too big & a mod moves all the comments to chat, since that removes the comment links from the Linked section.
20:42
FWIW I almost never look at the associated links section when I land on a question
If I land on something close but not close enough, I take my bets in rolling a new google search term rather than try follow up on the linked comments. No idea whether or not that's the most effective approach, just stating my MO
Actually, that's overstated because I do read the comments to find things like "You can't do that because X - see Y". But I don't use the disembodied list of related questions on the RHS

« first day (4339 days earlier)      last day (833 days later) »