@StackedCrooked Apparently that happened a number of times in a row (2 times for that answer, the last example worked, but it was about an hour later). And I had seen it a day or two before as well.
In fact, you can basically grep my answers for Wandbox links and see how often Coliru has given me issues (in fairness, I use Wandbox to get latest Boost to, or to compare behaviour across Boost versions)
Are you sure Mars has enough atmosphere to burn the Tesla before lithobraking kicks in? — gerrityesterday
instead of coming up with something fun, I'm just going to brute force run a few histogram
The histogram approach to auto-contrast works well for 8 bit images but its a little trickier for 16-bit or 32-bit floating point. For floating point its hard to determine the bins a priori. The plan is to run first histogram on a larger range, and then run a second histogram if the first one didn't catch enough of the values.
I've been playing with the idea to have nested logger objects. So my classes have a member Logger object which is constructed by passing a parent logger. This way I can construct log messages with some contextual info.
Does Patreon fit the need here ? I want to make a (small) donation for the services I get out of SE. What about a bitcoin "donations" address? — Criggie9 hours ago
In OOP systems like Qt, failing to cast in qobject_cast gives you a nullptr which immediately will lead to a exception in subsequent lines. In an OOP system, you typically know the type. Admitably, you might mess it up by copy and pasting large swaths of code (for delegates in Qt, for example), but that's why it should be run-time only in debug or equivalent.
I'm reading Coders at Work, and in it there's a lot of talk about invariants. As far as I've understood it, an invariant is a condition which holds both before and after an expression. They're, among other things, useful in proving that loop is correct, if I remember my Logic course correctly.
I...
Valid question and valid question on SO are different things. He should be taught properly and people should help him, but that doesn't change the fact that it was a terrible SO question.
It's clearly too broad, has too many questions in one question and basically requires writing a tutorial. SO rejects such valid questions for good reasons.
> According to SocialBlade, Paul earns up to $14.3 million a year, and up to $1.2 million a month. The site bases its figures on ad rates common for YouTube channels
@Borgleader It is. You can replace the > with std::greater<T>()(x, y) and it will be officially correct. (Even though std::greater also uses > internally.)
@StackedCrooked The people saying that are ill-informed. With an EFI/UEFI BIOS, you can write a bootable program without using any assembly language at all.
@ratchetfreak With UEFI, a "bootable binary" is a Windows PE DLL with the "subsystem" field modified to one that the boot loader recognizes (of which there are three, AFAIK). The EFI toolkit includes a tool to take a normal Windows DLL and change the subsystem field to your choice of those three.
I recently read an interview with Ken Thompson. Apparently his intention was to implement a filesystem. But he needed an environment to run it in. And that's why he wrote Unix.
@Mikhail Very early on, it was almost certainly a net good--but that didn't last very long. It had turned into a net loss quite a while before they were broken up.
@Mikhail Before the breakup, service was fairly poor and prices were almost outrageously high. In current money, a long distance call (anything outside your own town) cost on the order of a few dollars per minute.
Was it a few dollars per minute to the civilized world or some shit hole? For example, I recall the 2000s when calls to Pakistan cost like $3 per minute.
But until then... a quiz! Four questions, True or False, and no googling.
Question 1.
Astronauts' helmets contain a small piece of Velcro so that they can scratch their nose. 👩🚀👃