8,214 karma · joined Nov 7, 2019 (7y ago) · 5,323 submissions
comment 3y ago · link · parent
I am interested in genetics, but I didn't trust google, and I trusted a google spouse company even less (it's like John Lennon's Google, and Yoko Ono's 23andMe, when I didn't trust Lennon to begin with) and my data hasn't been spilled. Half of you are thinking of all sorts of epithets to call me, but fact is, I was right about 23andMe. From a decision-making standpoint, slam dunk for me and anybody who listened to me. It was not an unusual position to take. "What. Could. Go. Wrong?"
(I'm fully aware they probably already have my data from numerous blood tests I've taken from normal medical checkups, etc. but what could I have done about that?)
comment 3y ago · link · parent
I get what you're saying, but I pay extra (a lot extra) to sit in the front and have more leg room, and forget about the fact you hate rich people, there out to be a place for my one carryon near where I'm sitting. Because if I have to walk to the back of the plane to stow, how will get to my bag after we land?
the asshole approach really is the asshole approach.
I know, I know, rich and asshole go together. Me paying for that seat, that comfort, should be balanced by me not being able to get my bag till everybody else has left the plane /s
comment 3y ago · link · parent
A gaussian bell curve is a "population density function" and this definition of histogram reflects keeping the population density meaningful in terms of height. I will try to look for some. But the wikipedia article on histograms does reference them, that's what they are talking about wrt "varying width" bar charts. It's just that there is a rule to varying the width, "x times y is equal for all the rectangles" (oh yeah, you even get to "eyeball it" to make them. Unless you have a massive number of sample points, if you can choose a width parameter that makes your curve look normal, your curve probably is normal, or at least, you can't say that it's not, no matter what the bar chart looks like.
to put it another way, if you follow this rule for a perfect normal distribution, you'll still get a plot of a perfect normal distribution. But if you have a sparse sample that's a jaggy bell curve, it will move the curve toward a smoother curve, accurate in the sense of "this curve is statistically equivalent to your data, so if it looks "normal", probably your data is normal, and you won't imagine a mode where there isn't one.
comment 3y ago · link · parent
planes should switch to pods, then we get loaded in bulk. Everybody gets strapped in before the plane even gets there, then load us all up with a forklift!
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
I once heard from a reliable source that Paul Allen's Z80 card was Microsoft's big cash cow funding Microsoft's growth in between the BASIC era and the MS-DOS era, it was a really important product.
comment 3y ago · link · parent
> I went on a road trip a month on from the controversial change... with an open mind.
It's not possible to have an open mind about it. If the law is based on large-number population statistics, an individual driving around talking to people will have zero basis to question the statistics. If the judgement is to be based on personal preferences, well then you don't have an open mind, you have your mind.
There's nothing wrong with voting on policy based on personal opinion and preferences, but why tell me you have an open mind, as if other people don't?
comment 3y ago · link · parent
If you stay put and don't move, your property taxes won't go up much. So you can vote for all the govt spending you want: don't move and you won't have to pay for it.
I'm not saying people are "getting away with" low taxes. I'm saying that people are "getting away with" high spending.
comment 3y ago · link · parent
Instead of jumping to "It shouldn't work this way" consider "Hmmm, why does it work this way? Is it possible that Thompson, Kernighan and Ritchie knew more about how to make a coherent straightforward system that would last 50 years in 1970 than I know how to now?"
comment 3y ago · link · parent
People who try to invent the new new, and don't complete the task, blame unix, when unix just does what unix said it would do. It was the people who made bigger claims but did not deliver who should step up and say "I didn't turn the unix environment into what I thought I did."
but people trying to invent the new new are trying to invent it on unix because unix delivers what it promises. It doesn't deliver what you promise. But have some humility, and accept your failure and don't try to pin it on unix. Go implement on Windows.
Unix does allow you to deliver what you promise, that's why you'll still be complaining about unix 10 years from now, but it's up to you to deliver what you promise.
people who say "footgun" are people who try to shed responsibility; "it wasn't my fault, waaaaaah". I'm not saying we should not make computers easier to program, I'm saying that when we fail to: "it's a poor worker who blames his tools."
Why is it so important to you to blame this on unix, when you could blame it on a mistaken implementation of a library that could be fixed?
comment 3y ago · link · parent
But from what I read, it's documented as not threadsafe and this problem is happening in a threaded environment. That still could be called a bug. You find bugs, you fix them;
That's better than hyperventilating about how there is some massive problem with an operating system that you are using because all the people who came before you who knew more than you decided it was the best thing to use. The other OSes sucked more. This OS is simple enough that you can actually learn how it works, it's all laid out in front of you.
Should it do some additional things? sure. Help write the code.
comment 3y ago · link · parent
Your program gets its own copy of the environment when the program was launched. Nobody is changing it on you, any contention for that resource is you contending with yourself.
You don't expect an operating system to change things out from under you. Unix doesn't. If there is contention for this resource, it's all you (or whoever wrote the library you are using)
The environment is name-value pairs, as strings. That's it. That's what makes it accessible and useful. You can swallow it up, the whole thing, into whatever data structure you prefer in your language in a few lines of code, and a millisecond (if that much) of runtime. Just learn how things work and you won't feel helpless.
comment 3y ago · link · parent
Of course, if a racist makes any racial reference, it's generally racist.
comment 3y ago · link · parent
look into a.out and ELF formats for executable files; your executable files, said files hereby called "your code", will be in this format on linux.
There will be an entry point for your code, so if your program gets run, the kernel (or whatever userspace launcher it's given this task to... now that I think of it, from the command line, the shell would fork itself, and one fork would exec your program, so we're talking about exec here) will load your code into memory, and transfer control to--transfer control to means set the program counter to--your code at a particular address (the address of C main(), so to speak). Before this happens, the launcher will have allocated memory for you, set up the stack pointer, opened stdin/out/err, put the command line arguments into place (argc, argv), etc. Then your code can run till it's done, making system calls if it needs to, and potentially being preemptively multitasked, but that's all invisible to your code, black box in terms of how it's implemented.
now for signals...
Signals from the operating system need their own entry point(s) into your code. So, while your code is running, the OS can interrupt it (stuffing everything of yours onto your stack so it can be popped off later when control flow is returned to the same point later). In this meantime, the OS will now transfer control (set the program counter just like it did when it first launched you) and you're off and running with code to handle the signal, the interrupt.
If you have not prepared your code for this event, the default (set up by the launcher for programs) program flow at this point will be sent to a generic handler that says "unhandled signal", and your program will be killed. They're actually lying, the signal is being handled, but it's being handled by a handler that cleans up and exits.
But, you can write code to handle the signal yourself, and when your program launches you (generally in main() or nearby) register the address of the handler you want to use so that when the interrupt comes the OS will know where to send control. At that point it's as if you just called a function/subroutine at wherever your code running at that moment, and when that function returns, things continue as they were before, modulo whatever you did in your handler.
There's a bunch of specifics I don't know, is there one entry point for all signals, and a signal argument token decides where to transfer control, or are there 10 separate handlers so you don't waste time? etc.
if you're doing no-wait I/O with a single thread, one way is to make a blocking call, call into something that doesn't return till there's new data, and that new data may then arrive, handled by your interrupt handler; in that case returning from your input-getting handler could return from the blocking call and your code is off and running as if it just returned in the first place. There are a myriad variations on this, but that's the general idea.
happy to clarify anything, others can probably answer better, etc.
comment 3y ago · link · parent
Edison was obsessed with making money from the patents he had, applying them to anybody making movies; the reason Hollywood (the industry) is in LA is that filmmakers fled the East Coast to the wild west to get away from Edison's lawsuits.
so perhaps (speculating) if Edison was spending a lot of time with lawyers, I tend to doubt he was doing the filming.
Mark Twain was a celebrity though, so perhaps it was a friendly visit.
comment 3y ago · link · parent
also, isn't inflation always calculated on a 12 month scale? each month they publish how much prices have increased from 12 months before. This means that if there is a lot of inflation for a few months, each succeeding month after that will show high inflation till that bulge in the snake works it's way through. The numbers are a valid comparison to a year earlier, but misleading if you think "omg we've had month over month of high annual inflation numbers!"
comment 3y ago · link · parent
comment 3y ago · link · parent
Germans keep good records, and after the war all the archives were captured and read through and cross indexed. Every incident in Allied logs was compared with German logs to see what matched.