TIL (about the Dark Arts of HTML)
-
@Jaloopa said in TIL (about the Dark Arts of HTML):
@Gąska said in TIL (about the Dark Arts of HTML):
TIL Americans consider it bad sportsmanship to score high in football.
As in "we're so much better than them we can smoke a load of weed and still wipe the floor with them"? Yeah, that's not very sporting
And not even trying to play good for half the match (that people paid to see because they like how good you play) is better?
European football has a very simple system that allows players to do their best while also avoiding the floor wiping. It's called leagues.
-
@boomzilla Well, considering that no one (well, except for the goalie) is allowed to touch the ball except with a foot, what else would you call it?
I mean, what you're playing is Carryball-with-the-occasional-kick.
-
@Rhywden said in TIL (about the Dark Arts of HTML):
I mean, what you're playing is Carryball-with-the-occasional-kick.
-
@Gąska said in TIL (about the Dark Arts of HTML):
@Rhywden said in TIL (about the Dark Arts of HTML):
I mean, what you're playing is Carryball-with-the-occasional-kick.
Oh, yeah, right, it's not even a ball.
-
@Mason_Wheeler said in TIL (about the Dark Arts of HTML):
"a new shade of purple" which is actually near-spectrum UV.
Knowing what little I know of Pratchett, this was probably his inspiration for octarine.
-
@Gąska said in TIL (about the Dark Arts of HTML):
TIL M.2 connector is specified to endure up to 60 mating cycles with maximum mating force of 20 newtons.
I like to imagine you determined this experimentally rather than scholastically. Destructive testing is fun!
@Tsaukpaetra said in TIL (about the Dark Arts of HTML):
Ah, if your doggo is willing to clean up for you, it makes things easier!
...
I better stop before it gets too dark....
Too late.
-
Coronavirus test, 2020 (colorized)
-
TIL Kansas, famously portrayed as a drab and boring place in The Wizard of Oz, was once the most exciting and contentious place in the United States, and a major focal point of national politics. In the days leading up to the Civil War, the question of whether Kansas should be a slave state or a free state attracted passionate defenders on both sides, and lead to such heavy violence between the two groups that it earned the nickname "Bleeding Kansas" from contemporary news media!
-
@Watson said in TIL (about the Dark Arts of HTML):
@Mason_Wheeler said in TIL (about the Dark Arts of HTML):
"a new shade of purple" which is actually near-spectrum UV.
Knowing what little I know of Pratchett, this was probably his inspiration for octarine.
Speaking of Pratchett, real life dwarf
breadcheese:
-
@boomzilla leave it to Americans to make cheese that’s both too hard to eat and turns into chewing gum.
Wait, Nepalese you say? Ah, thanks for ruining my
-
@JBert said in TIL (about the Dark Arts of HTML):
@Benjamin-Hall said in TIL (about the Dark Arts of HTML):
TIL that one of two things is true. Either I lack the manual dexterity and visual acuity to successfully open a mouse micro-switch without breaking it or they've been redesigned to be tamper-resistant.
I've managed to open an Omron switch once and get it together again after bending the spring but it was quite the ordeal. I'm thinking that next time I'll just order a whole bag of those switches and simply solder in a fresh one, it might turn out to be faster and cheaper than fiddling with tiny parts. You do need the equipment and some expertise with (de-)soldering though...
I shouldn't have been bragging about this because you can't escape karma.
Just last week that darn switch started acting up again and confusing the crap out of me when files would get opened rather than selected (i.e. the mouse was sending a double click when I meant to do a single click). It seems the switch is getting so worn out that it bounces just long enough that the mouse sends two presses (part of it has to do with this being a gamer mouse which likely tries to capture even short presses - a bit more debounce time in the mouse's controller and this wouldn't have been an issue).
Last time I opened up the switch and bent the teeny spring inside, this time I followed up on my word by outright replacing the switch. Desoldering took maybe 5 minutes (mainly because solder tends to stick in the plated holes, keeping the switch in place), soldering in a new one took less than 1 minute.
Surely less pain then trying to pry one open and injuring your fingers when your prying tool slips off the switch, then cussing half an hour trying to get the fiddly bits together again...
-
Sharovipteryx, leg glider:
Originally named Podopteryx (“foot wing”), but that name was occupied by a damselfly.
Poles in the audience will obviously be thrilled to learn that the other known Sharovipterygid, Ozimek, was found in Poland.
-
@kazitor What they've drawn on this reconstruction is way out of balance to be correct.
-
Apparently, it's possible to protect browser clients from CSRF attacks just by checking
Referer:
and requiringPOST
, without any identifiers in the cookies. It sounds like it should be easy to bypass, but no, the browser either sends wrongReferer:
or doesn't send one at all. And even if the attacker finds a way to script a cross-origin frame in the client's browser, they would still have trouble loading your website in the frame in the first place.
-
TIL that green is just
blackzeroes in YUV.
-
@topspin I had an inkling that was the reason, never had the guts to check it out myself.
-
@aitap said in TIL (about the Dark Arts of HTML):
Apparently, it's possible to protect browser clients from CSRF attacks just by checking
Referer:
and requiringPOST
, without any identifiers in the cookies. It sounds like it should be easy to bypass, but no, the browser either sends wrongReferer:
or doesn't send one at all. And even if the attacker finds a way to script a cross-origin frame in the client's browser, they would still have trouble loading your website in the frame in the first place.Well, sort of. The conditions when
Referer
andOrigin
are set or not are quite complicated and some browsers have special case for various reasons, so you can do it for your app if you know what you are doing and only want to cover your specific set of use-cases, but nearly impossible to create reasonably foolproof API in a framework for it. At least so much I understood from the owasp cheat-sheet.
-
@topspin said in TIL (about the Dark Arts of HTML):
TIL that green is just
blackzeroes in YUV.Ah! I had assumed it was the chroma key that they were using for hardware acceleration, but that makes sense.
(remember back in the day, when you could only have one window using hardware acceleration at a time and/or overlapping them fucked everything up and to get a screenshot you had to use something that supported actually taking a snapshot of the video frame because the Print Scrn button would only capture a solid dark purplish colored window?)
-
@brie said in TIL (about the Dark Arts of HTML):
@topspin said in TIL (about the Dark Arts of HTML):
(remember back in the day, when you could only have one window using hardware acceleration at a time and/or overlapping them fucked everything up and to get a screenshot you had to use something that supported actually taking a snapshot of the video frame because the Print Scrn button would only capture a soliddark purplishbright magenta colored window?)(most software used #FF00FF for the overlay color)
-
@Zerosquare Citation? I know that Windows Media Player at the very least definitely used a shade of dark purple (nearly black), which made sense because it wasn't a common color (it wasn't exactly black). I don't remember ever seeing magenta.
-
@brie I have no idea about video, but for images / icons I’ve seen magenta used as the transparent color a lot.
-
@topspin Video was a bit different, because at the time, due to limits of memory and processing speed, there was only one hardware acceleration layer (the whole display)... if the hardware acceleration was painting video onto one particular magic color, and another window happened to have some pixels that were that color and you dragged it on top of the video player's window, the hardware acceleration would still paint video onto those pixels. Even though the pixels belonged to the wrong application. Using a "common" color was therefore not a very good idea.
The transparency in images and icons was generally just handled in software, I think, and had none of those types of problems.
-
@brie said in TIL (about the Dark Arts of HTML):
@Zerosquare Citation?
If the decoder does not specify a color key, the Overlay Mixer uses default color keys: dark gray for more recent graphics cards and magenta for older 256-color cards.
In practice, many software using overlay (such as video players and video capture/editing software) used magenta on all video cards for compatibility. Maybe WMP was different (I never used it much).
-
@Zerosquare I can't say I've ever used hardware accelerated video on a 256-color display (not in a windowing operating system, at least), so that may be the reason. Windows Media Player was probably just using the default. It's interesting that they call it "dark gray" though; I definitely remember it having a purplish hue.
-
They're only talking about the default color for the overlay ; programs could also specify their own. So it's possible the WMP developers chose dark purple for some reason.
In less-than-24 bit color modes, there was the risk that the color you chose couldn't be displayed directly and would be dithered (thus ruining the effect). Bright magenta (#FF00FF) was one of the few "safe" colors that could be rendered in any mode without dithering.
-
@Zerosquare said in TIL (about the Dark Arts of HTML):
They're only talking about the default color for the overlay ; programs could also specify their own. So it's possible the WMP developers chose dark purple for some reason.
I really only call it dark purple to differentiate it from black. It wasn't quite black.
Fortunately I have a Windows XP machine that I can fire up and check. Here's a screenshot of a playing instance of Windows Media Player:
The color that it used for the chroma key is #100010 (16, 0, 16)... very dark purple.
Bright magenta (#FF00FF) was one of the few "safe" colors
That's also what made it a less than ideal choice on high-color displays; it was more likely to conflict with colors actually used by other applications.
-
Did anyone ever actually use all that stuff back then? Media guide, premium services?
I think they were about as successful as Groove Music is today.
-
I had to use my phone to capture a video; screen capture doesn't capture the hardware accelerated video...
Disabling the hardware acceleration ruins the effect, obviously.
-
@Bulb said in TIL (about the Dark Arts of HTML):
The conditions when Referer and Origin are set or not are quite complicated and some browsers have special case for various reasons
Thanks for the link, I'll keep it in mind. I wonder if the users of the 6-megabyte executable written in C containing a version control system and an embedded web server for it have already suffered from CSRF-related problems but don't know it.
-
@aitap said in TIL (about the Dark Arts of HTML):
@Bulb said in TIL (about the Dark Arts of HTML):
The conditions when Referer and Origin are set or not are quite complicated and some browsers have special case for various reasons
Thanks for the link, I'll keep it in mind. I wonder if the users of the 6-megabyte executable written in
Cjava/ruby script containing a version control system and an embedded web server for it have already suffered from CSRF-related problems but don't know it.
-
@M_Adams No, the software he is referring to really is implemented entirely in C and SQL. And includes it's own SQL implementation, but that is insanely well tested... because it is SQLite and its author is the same guy.
I wouldn't write such an application entirely in C, FWIW.
-
@M_Adams if that was and java/ruby, you’d also have to the 6MB to 6GB
-
TIL the saxophone was invented by an early 19th century man named Adolph Sax, who as a child had so many bizarre brushes with death that the only reasonable explanation is that some well-intentioned but clueless time traveler picked the wrong "Adolph" to attempt to assassinate.
-
-
TIL:
(Disregard onebox picture. This is about linguistics.)
-
More rigorously, metonymy and synecdoche can be considered subspecies of metaphor, intending metaphor as a type of conceptual substitution... yada yada yada
A synecdoche is a class of metonymy in the category of endofunctors
-
@Applied-Mediocrity I think you're confusing it with those buildings for Jewish people.
-
@Zecc Nonsense. They are synonyms.
-
@Mason_Wheeler said in TIL (about the Dark Arts of HTML):
TIL the saxophone was invented by an early 19th century
Belgian man named Adolph Sax
-
@Zecc said in TIL (about the Dark Arts of HTML):
@Applied-Mediocrity I think you're confusing it with those buildings for Jewish people.
My first thought was concentration camps. Should I get help?
-
-
@topspin technically I'm already in the process of getting citizenship of a country where the president is thought to be literally Hitler.
-
@Gąska said in TIL (about the Dark Arts of HTML):
@topspin technically I'm already in the process of getting citizenship of a country where the president is thought to be literally Hitler.
And they also had some involuntary camps going on.
-
@Gąska said in TIL (about the Dark Arts of HTML):
thought to be literally Hitler
By those who literally don't know what literally means...
-
@error_bot xkcd literally
-
-
@Carnage said in TIL (about the Dark Arts of HTML):
@Gąska said in TIL (about the Dark Arts of HTML):
@topspin technically I'm already in the process of getting citizenship of a country where the president is thought to be literally Hitler.
And they also had some
insemi-voluntary camps going on.
-
-
@topspin The president of Flavour Country
-
TIL there's nothing special about foaming hand soap, and that it can be cheaply refilled with just about any liquid soap