TIL (about the Dark Arts of HTML)
-
… TIL said
std::print
usesFILE *
rather thanstd::ostream
. Que, kurwa? Just warum?
-
@Bulb Probably because
std::ostream
is a ?
-
@dkf It is, but it also provides a lot of flexibility that a lot of existing libraries need, the
FILE *
does not provide, and you can't convert them to each other though in most implementationstd::[io]fstream
is based onFILE *
internally—but not all of them.… of course a stream print does actually
exist—it's just… kinda exist, butos << std::format(…)
std::format_to(std::ostream_iterator(os), …)
is butt-ugly. And strangely the examples use a back_insert_iterator to a buffer and then output that to the stream though the stream is already buffered with the streambuf (and IIRC has to be).
-
@Bulb said in TIL (about the Dark Arts of HTML):
And strangely the examples use a back_insert_iterator to a buffer and then output that to the stream though the stream is already buffered with the streambuf (and IIRC has to be).
That's to prevent stream flicker.
-
TIL that Warren Buffet does rubber duck debugging, in all but name:
Teaching, like writing, has helped me develop and clarify my own thoughts. Charlie calls this phenomenon the orangutan effect: If you sit down with an orangutan and carefully explain to it one of your cherished ideas, you may leave behind a puzzled primate, but will yourself exit thinking more clearly.
-
@topspin said in TIL (about the Dark Arts of HTML):
TIL that Warren Buffet does rubber duck debugging, in all but name:
Teaching, like writing, has helped me develop and clarify my own thoughts. Charlie calls this phenomenon the orangutan effect: If you sit down with an orangutan and carefully explain to it one of your cherished ideas, you may leave behind a puzzled primate, but will yourself exit thinking more clearly.
He also has a deep dislike of inefficient and dishonest management. And hierarchies.
-
@Carnage That explains why he prefers talking to orangutans. They are probably better listeners anyway.
-
@Zecc Ook!
-
@HardwareGeek
Back to the library!
-
@Luhmann said in TIL (about the Dark Arts of HTML):
@HardwareGeek
Back to the library!Be sure to remind the Librarian he's a good monkey, he's been a bit down lately.
-
@Gribnit
Just increase his daily allowance of bananas
-
@Carnage said in TIL (about the Dark Arts of HTML):
@topspin said in TIL (about the Dark Arts of HTML):
TIL that Warren Buffet does rubber duck debugging, in all but name:
Teaching, like writing, has helped me develop and clarify my own thoughts. Charlie calls this phenomenon the orangutan effect: If you sit down with an orangutan and carefully explain to it one of your cherished ideas, you may leave behind a puzzled primate, but will yourself exit thinking more clearly.
He also has a deep dislike of inefficient and dishonest management. And hierarchies.
If he holds certain stocks, then, then there is certain information he is not aware of.
-
TIL Teddy Roosevelt had a pet hyena named Bill that he took for walks in a leash on the white house grounds. But I am not the least bit surprised.
-
@Carnage A hyena is an ideal pet for a politician. They understand the value of nepotism.
-
Singing "It's A Wonderful World" at full in the style of Louis Armstrong is actually quite soothing for the throat, and will make your children punch you.
-
TIL that somebody at NASA has a sense of humor:
-
Maybe it's more than just humor. There have been cases of space launches failing because modules were installed wrongly, including sensors being mounted backwards or cables being crossed. And a source in the industry told me it happens more frequently that you'd expect.
-
@Zerosquare said in TIL (about the Dark Arts of HTML):
it happens more frequently that you'd expect.
You know me very little, it seems.
-
@Zerosquare said in TIL (about the Dark Arts of HTML):
Maybe it's more than just humor. There have been cases of space launches failing because modules were installed wrongly, including sensors being mounted backwards or cables being crossed. And a source in the industry told me it happens more frequently that you'd expect.
Finagle and Murphy both worked for the Air Force, in the pre-NASA part. Complex systems are complex.
-
@Carnage said in TIL (about the Dark Arts of HTML):
TIL Teddy Roosevelt had a pet hyena named Bill that he took for walks in a leash on the white house grounds. But I am not the least bit surprised.
I'm surprised by the leash.
-
@Gribnit said in TIL (about the Dark Arts of HTML):
@Carnage said in TIL (about the Dark Arts of HTML):
TIL Teddy Roosevelt had a pet hyena named Bill that he took for walks in a leash on the white house grounds. But I am not the least bit surprised.
I'm surprised by the leash.
T'was probably because of the silly security details being afraid. He had it by the dinner table as well.
-
@Zerosquare said in TIL (about the Dark Arts of HTML):
And a source in the industry told me it happens more frequently that you'd expect.
My expectation is that it happens several times a day.
-
@Zerosquare said in TIL (about the Dark Arts of HTML):
Maybe it's more than just humor. There have been cases of space launches failing because modules were installed wrongly, including sensors being mounted backwards or cables being crossed. And a source in the industry told me it happens more frequently that you'd expect.
The orbiter couldn't be mounted the wrong way though because there were only three sockets for those struts and they were on the correct side.
-
@Bulb said in TIL (about the Dark Arts of HTML):
couldn't be mounted the wrong way
Oh my sweet summer child.
-
-
@boomzilla A bit cheaper than depth-charge blasting, but I think it's shorter ranged?
-
@boomzilla I've always wondered if they take electric eels into consideration.
-
@Zecc The eels will be electric ones afterwards for sure.
-
@Carnage said in TIL (about the Dark Arts of HTML):
TIL Teddy Roosevelt had a pet hyena named Bill that he took for walks in a leash on the white house grounds. But I am not the least bit surprised.
What pet did Teddy NOT have is a better question.
-
TIL / Nerdy joke
Since it doesn't embed, here's a direct link:
Caption: Alternative heritage plaque for John Venn in Hull
-
TILA that
xargs
runs the command even if has no arguments for it (in which case most commands fail not knowing what to do), which has to be changed by using the-r
option, which is a GNU extension. I've already worked around that problem in the past .
-
-
@boomzilla rules 1 and 2.
-
TIL about "spicy bananas."
Bananas are known to be one of the mildest-flavored fruits in existence, but there are people who find them to have a spicy "bite," as if they were hot peppers or similar.
These people are actually mildly allergic to bananas and typically never realize it.
-
@Mason_Wheeler said in TIL (about the Dark Arts of HTML):
TIL about "spicy bananas."
Bananas are known to be one of the mildest-flavored fruits in existence, but there are people who find them to have a spicy "bite," as if they were hot peppers or similar.
These people are actually mildly allergic to bananas and typically never realize it.
There is a similar thing with peanut butter.
-
@Mason_Wheeler I always thought there was a time delay between eating something you were allergic to and the manifestation of symptoms. (This is why it sometimes takes people a long time to figure out they have an allergy.) Since it only takes a few minutes to eat a banana, I wonder how they would come to think bananas were spicy.
-
@jinpa said in TIL (about the Dark Arts of HTML):
@Mason_Wheeler I always thought there was a time delay between eating something you were allergic to and the manifestation of symptoms. (This is why it sometimes takes people a long time to figure out they have an allergy.) Since it only takes a few minutes to eat a banana, I wonder how they would come to think bananas were spicy.
Depends. Some allergies, especially food ones, are effectively instantaneous since it starts reacting in the mouth. The membranes there are really tiny and heavy with blood flow. And the stupid immune system of people with allergies is hair-trigger.
It sucks. My food allergies are all of the "annoying, but not fatal" variety, but if I eat peanuts or peanut-containing material I know within seconds. Milk takes a minute or so before my gut starts screaming (separate from lactose, this is to the milk proteins).
-
@jinpa said in TIL (about the Dark Arts of HTML):
@Mason_Wheeler I always thought there was a time delay between eating something you were allergic to and the manifestation of symptoms. (This is why it sometimes takes people a long time to figure out they have an allergy.) Since it only takes a few minutes to eat a banana, I wonder how they would come to think bananas were spicy.
They experience a burning/tingling sensation as they are eating the allergen. Their body is telling them that they are eating something bad.
-
@Atazhaia I trust everyone here already knows :
-
@jinpa it was a reasonable assumption.
-
@Benjamin-Hall said in TIL (about the Dark Arts of HTML):
the stupid immune system of people with allergies is hair-trigger.
It sucks.You failed to eat sufficient dirt in your youth. Try getting a parasite maybe.
-
@Benjamin-Hall said in TIL (about the Dark Arts of HTML):
@jinpa said in TIL (about the Dark Arts of HTML):
@Mason_Wheeler I always thought there was a time delay between eating something you were allergic to and the manifestation of symptoms. (This is why it sometimes takes people a long time to figure out they have an allergy.) Since it only takes a few minutes to eat a banana, I wonder how they would come to think bananas were spicy.
Depends. Some allergies, especially food ones, are effectively instantaneous since it starts reacting in the mouth. The membranes there are really tiny and heavy with blood flow. And the stupid immune system of people with allergies is hair-trigger.
It sucks. My food allergies are all of the "annoying, but not fatal" variety, but if I eat peanuts or peanut-containing material I know within seconds. Milk takes a minute or so before my gut starts screaming (separate from lactose, this is to the milk proteins).
And a work allergy starts burning as soon as you start your car for the commute
-
@izzion said in TIL (about the Dark Arts of HTML):
car for the commute
My what for the commute? I don't need my car to get to my office.
-
@HardwareGeek said in TIL (about the Dark Arts of HTML):
@izzion said in TIL (about the Dark Arts of HTML):
car for the commute
My what for the commute? I don't need my car to get to my office.
I've had to drive in to the office every day this week. 4 days because we were working on a migration (that ended up getting postponed till Monday because the product person didn't contact our beta customers in time to warn them of downtime, not anything technical) and tomorrow because the city here is shutting off the water to the neighborhood for 6 hours to do sewer work nearby.
-
There goes my weekend plans.
-
@boomzilla said in TIL (about the Dark Arts of HTML):
weekend plans.
And here I thought it was just natural lubricant. TIL indeed.
-
https://www.youtube.com/shorts/cL8T3iQdlrI
Apparently Quran says semen comes from the diaphragm? Colour me interessted.
-
@Tsaukpaetra said in TIL (about the Dark Arts of HTML):
https://www.youtube.com/shorts/cL8T3iQdlrI
Apparently Quran says semen comes from the diaphragm? Colour me interessted.
It's says all kinds of really dumb shit. And the further you get though it, the dumber it gets.
-
@Carnage said in TIL (about the Dark Arts of HTML):
It's says all kinds of really dumb shit.
-