2,676 karma · joined Nov 28, 2019 (7y ago) · 1,131 submissions
comment 8mo ago · link · parent
std::vector<std::string> split(const std::string& text, char delimiter) {
std::vector<std::string> parts;
std::istringstream stream(text);
std::string part;
while (std::getline(stream, part, delimiter)) {
parts.push_back(part);
}
return parts;
}comment 8mo ago · link · parent
My computer has neither Verdana nor Geneva, and my browser's default sans-serif is Noto Sans, which has bars on the upper case "I".
Verdana does, too. It looks like Geneva does not (<http://www.identifont.com/show?1O3>), so you're probably using Geneva.
Maybe Verdana is the default for Windows, Geneva for MacOS, and "other" for Linuxes.
comment 8mo ago · link · parent
edit: ah, but wiki disagrees <https://en.wikipedia.org/wiki/Blockbuster_(entertainment)>
comment 8mo ago · link · parent
So the grid was always charging up the lead acid batteries, and the phone lines were always draining them? Or was there some kind of power switching going on where when the grid was available the batteries would just get "topped off" occasionally and were only drained when the power went out?
comment 8mo ago · link · parent
Dude that's everybody in charge. You're young, you build a system, you mold it to shifting customer needs, you strike gold, you assume greater responsibility.
You hire lots of people. A few years go by. Why can't these people get shit done? When I was in their shoes, I was flying, I did what was needed.
Maybe we hired second rate talent. Maybe they're slacking. Maybe we should lay them off, or squeeze them harder, or pray AI will magically improve the outcome.
Come on, look in the mirror.
comment 8mo ago · link · parent
Maybe this was Diogenes's observation.
comment 8mo ago · link · parent
I wonder if the vaccine causes inflammatory and other unpleasant responses when administered. If so, I wonder if those responses go away after the last dose, when the three months of protection begin.
Here are the two paragraphs that I found interesting:
> The new vaccine, for now known as GLA-3M-052-LS+OVA, mimics the T cell signals that directly stimulate innate immune cells in the lungs. It also contains a harmless antigen, an egg protein called ovalbumin or OVA, which recruits T cells into the lungs to maintain the innate response for weeks to months.
> In the study, mice were given a drop of the vaccine in their noses. Some recieved multiple doses, given a week apart. Each mouse was then exposed to one type of respiratory virus. With three doses of the vaccine, mice were protected against SARS-CoV-2 and other coronaviruses for at least three months.
comment 8mo ago · link · parent
comment 8mo ago · link · parent
I set that option one day when a news website would autoplay a video every time I scrolled (I think it was the New York Times). This sent me into a fit of rage and now I prefer the inconvenience of having to reselect "allow all" almost every time I visit a site with video.
comment 8mo ago · link · parent
I told him to slurp it all into a sqlite database and to express his data integrity questions as SQL queries.
It was still a pain in the ass for him, but leveraging that tool made things go a lot better.
comment 9mo ago · link · parent
This is criticism that I would use to describe countries like China and Russia, and many other poorer ones. Were the Trump administration to do this, it would be unequivocal evidence that we are dealing with an unlawful insurgent government. I doubt it will happen, but I'm often wrong.
comment 9mo ago · link · parent
It also teaches how && and || work, their relation to [output redirection][3] and [command piping][2], [(...) versus {...}][4], and tricky parts like [word expansion][5], even a full grammar. It's not exciting reading, but it's mostly all there, and works on all POSIXy shells, e.g. sh, bash, ksh, dash, ash, zsh.
[1]: https://pubs.opengroup.org/onlinepubs/7908799/xcu/chap2.html
[2]: https://pubs.opengroup.org/onlinepubs/7908799/xcu/chap2.html...
[3]: https://pubs.opengroup.org/onlinepubs/7908799/xcu/chap2.html...
[4]: https://pubs.opengroup.org/onlinepubs/7908799/xcu/chap2.html...
[5]: https://pubs.opengroup.org/onlinepubs/7908799/xcu/chap2.html...