skysight-inc/HackerNews huggingface dataset:
Estimated based on MTBF (mean time between failure), and expected duration of the apocalypse. If it's truly apocalyptic (nuclear holocaust, not a large scale but conventional war), then the expected duration is your lifetime.

Let's say you only want one of the device operational at a time, then you want:

Spares = Apocalypse Duration / MTBF

This is under the assumption that you will never get any more spares for the duration of the apocalypse. So if your iPad breaks once a year on average, and you expect civilization to have reached basic recovery levels to give you an alternative or replacement for your iPad in 10 years, you want 10 spares (well, I guess 9 in this case, stupid off-by-ones).

If you have N gas generators operating (or that you cycle through to extend their useful lifetimes), you will want:

Spares = Apocalypse Duration * N / MTBF

An iPad battery, even used and recharged daily, should last you several years. Let's say 3 for the sake of the calculations and you only need one iPad. Then you want:

Spare Batteries = Apocalypse Duration / 3

You may obtain those spares by getting spare iPads. Of course, you also have to consider spoilage. A battery sitting on the shelf for 3 or 6 or 9 years will have some chance of becoming a useless battery. This would force you into a rotation of the devices, charging them less frequently and finding a way to synchronize data between them.
> Lithium is a finite resource which needs to be extracted

Yes, but once concentrated it is extremely recyclable. It doesn't flow, or corrode, or leave the battery. So when the cell's life is over the lithium is still there, "extractable" with vastly higher efficiencies than seen by raw production.

> Surely there’s not enough lithium for everything to be powered by battery.

There is for everything we'd want to put a battery in today. It's not an uncommon element at all, it's just a hard one to concentrate because (owing to the fact that it's very soluble) geology has done a poor job of concentrating it for us. There is more lithium in the earth's crust than there is lead or tungsten or tin, yet those metals are minable from "veins" where with lithium we have to get it out of the oceans (or out of salt deposits that are ancient dried oceans).
it's been 15 years so I don't remember the names of the tools, but coverity rings a bell. There was one that we used to make fun of a lot because it was written in Java, but it was by far the best at finding stuff. It would even show you the AST to help point out problems. I'm suddenly feeling really nostalgic about GUIs written in Swing and SWT :-D
FWIW I have been building web applications with JavaScript for about 7 years - sometimes very complex applications with literally millions of MAU - and I couldn’t have told you with any depth what most of these LOC actually do.

YMMV
Sure you can memorize some definitions or equations but the second you have to calculate yourself you will be hopelessly lost.

At least two mathematicians used spaced repetition to further understand mathematics and make new insight.

Conceptual understanding is a good memorization techque.

Underlining and highlighting however, are an ineffective method of studying for any subject, even history.
He's an "investor/entrepreneur" FWIW.

To read, you can always use ThreadReader. Just pop the Tweet's URL in there:

https://threadreaderapp.com/thread/1496861068945154056.html
Sanctions are pretty publicly visible.
You seem to be under the misapprehension that because they were Saudi, that the operated from Saudi Arabia. If you look into it, you will find that their organisation, which planned and coordinated the attacks, was actually based in Afghanistan. It was supported, trained and sponsored by the Taliban in Afghanistan and their associates, and was a multi national group. It was this hosting, support and sponsorship in Afghanistan that lead to the invasion.
It is also missing:

- qualify all type names that you might be using in casts
Ok.Maybe you're right.
Not sure there is enough talent in many of those countries to staff IT related manufacturing.

Migrating investment to Latin and South America is certainly a better direction from the perspective of businesses under an environment where investment in China is discouraged as they gain the protection afforded by the Monroe Doctrine. However, it still does not adequately address the weak manufacturing industry within the United States and it’s ability to produce necessary goods when global trade is impacted by a shock event like a pandemic or war.
> when you borrow $500,000 from the bank, the bank’s funds don’t go down by $500,000

While technically true, this is a bit misleading, because if you actually /do/ anything with the $500,000, that does in fact cause the bank's funds (i.e. reserves) to go down.

If you withdraw it in cash, then the bank will have to give you some of the Federal Reserve Notes it has in its vault, and when they request more from the Federal Reserve, their account there will be debited $500,000.

Or if you send it to someone at a different bank, then to settle the transaction your bank's balance at the Federal Reserve (or another intermediary bank) will go down by $500,000, and the other bank's will go up. This tends to average out if both banks are receiving deposits and making loans at equal rates, but if they become imbalanced the bank is at risk of its reserves falling below the requirements, which it must remedy or risk bankruptcy.

You're right that low interest rates make it easier for banks to create money, though, because one option a bank has to remedy low reserves is to borrow them from another bank at an interest rate that the Federal Reserve can influence.
I wonder why so many interview questions are focussed on knowledge and memory. For most technical roles, and especially in the ever-changing world of FE; your main skill is looking things up and applying what you find.

I do find this an interesting question in some ways, it probably gives some insight into the breadth of knowledge and experience. But I would not spend too much time on it. Get the impression, move on.

What would potentially be more interesting is to ask them to look up some of the things they don't know.

But interviewing is hard, it's a strange dynamic by default, it's hard to not make it cringe. A conversation like described in the article is sort of nice compared to many other tactics.
Classic use-case where a posix rwlock will outperform a mutex.

How often does the locale change in practice? Almost never.
Charlie Chaplin: The Final Speech from The Great Dictator
I'm not aware of any actual AI system for NL using on-line training -- this unlabeled, after all! So "after it looks for patterns" is more "after the next training batch runs", 30 days if they're GDPR compliant.
The script could use --rsync-path='sudo rsync', so that your rsync backup script can access root-owned files on the remote system. It looks like you can add that to the RSYNCCONF part of "subpart of part 2".
Near as I can tell, price could be infinite and it wouldn’t matter. Even using heat pumps, the energy required is multiples higher than all current electrical energy produced or transmitted in Germany.
The internet is the least of your problems. The key industrial automation equipment (PLCs and IPCs) is connected directly to your machines. Higher-level control and planning functions like MES and SCADA are usually running from your server closet. You might not have access to your ERP or cloud MES system, but you can keep the lines running without them for a while. Plenty of factories have weak or flaky internet, so operating during an internet outage is hardly a novel situation.

Your bigger problem is the supply chain. After the apocalypse, I doubt you'll have an easy time sourcing cans, bulk product, spare parts, and sanitizer to run your factory. After all, each of those inputs to your process have their own complex supply chain too. And no, you're not really going to be able to scavenge these parts of manufacture them yourself, since they all have fairly fine tolerances.

In reality, I'd expect that an apocalypse will cause a reversion to a more subsistence-style lifestyle, where production and consumption are largely local and supply chains are very simple, if present at all. Computers will not help with this. I can't imagine keeping our current production processes running without all of the things required to support them.
> BLM protests were huge to no lasting effect

Accountability for criminal homicide of Black people, especially by law enforcement, has definitely increased since BLM became a force. Whether that's a lasting effect is, of course, too soon to say, but it's not to be casually dismissed as you have.
- shortest path to Kyiv from Belarus
- you can't really bomb them now at this location in order to push back
I would be interested in hearing about experiences with these threat detection systems I general. They’re typically quite expensive, and I always wonder whether they actually produce reliable alerts. I’m conditioned by noisy virus scanners and firewalls, and wonder whether these corporate threat detection systems have a similar signal:noise ratio when it comes to alerts.
Imagine if people forgot to have a copy of stackoverflow.com in the apocalypse. I guess that is what would make it the apocalypse.
I live in the balkans...

The main sentiment here, especially amongst the older people is, "russia is strong enough, that they can do the stuff america has been doing for decades now", but due to media influences, it's not a "war for democracy" and "saving the locals", as the americans would paint eg. attacking afghanistan after a few saudis flew a few planes into a few buildings.

My personal and very contraversial opinion is, that every country that currently has soldiers as a part of an occupying force in any country, should just shut the fuck up, and clean up their own messes first.
I don't think that conflicts with my comment. Just because Rust is ready for production doesn't mean that C++ isn't also ready for production. For what it's worth, Google are increasingly choosing Rust for new projects. As are Microsoft, AWS and several other large software companies. Obviously it doesn't usually make sense to rewrite old projects that are already in C++.
I took it as a list. Switching between an image (or series of images), your pronouns, or secret identities.
It was intended to be a joke. "333 repeating of course" is a reference to Leroy Jenkins.
There isn't anything really in this "explanation" that cannot be googled within seconds much less that would require him to be an expert. For me it explains nothing. I don't know, maybe it is a little enlightening for a person that never heard of SWIFT before, that didn't know it's "something related to international payments" and now he does. But I'm not sure this qualifies as an explanation.
Hypothetical military campaigns against Taiwan or South Korea would be much more difficult than what's going on in Ukraine right now. Russia can drive tanks into Ukraine from three sides. Taiwan and Korea would require naval battles in oceans full of submarines.

Large-scale amphibious assaults were incredibly precarious in the era before AWACS and spy satellites. Now they're probably impossible against a modern adversary.

Also - as someone else mentioned - China doesn't want to be a pariah state.
You can shut down power almost entirely with circuitry to trigger a wake from sleep when pressing a button. It's no RTC but a compromise we made to hit the price point and allow for a very long battery life!
Because people tend to copy the terminology of the regime they live in, even if they don't agree with it.

We do the same thing. IE on English Wikipedia there's an article 2011 military intervention in Libya. I can't remember many prestigious western news sources calling it an "invasion" - so neither do most of us.
Being sent into war is also not very good for them. The radiation is probably the least of their worries.
Honestly it's pretty clear from your weirdly large number of negative comments on here that you've never taken a serious look at using the language for a real project. You just have some weird axe to grind with it.

That's cool, I guess, but also not particularly interesting.
"In his 1964 autobiography, Chaplin stated that he could not have made the film if he had known about the true extent of the horrors of the Nazi concentration camps at that time." https://en.wikipedia.org/wiki/The_Great_Dictator
Even ignoring the space concerns, and just looking at the cost, it's completely nonviable. For example, the Grand Coulee Dam has been functioning for 80 years, has a 170 meter height, and holds 9 billion kg of water for a (construction) cost of 2 billion dollars (adjusted for inflation). If you compare that to a crane based system a single tower crane can (in optimal circumstances) reach a wide enough area to lift 500,000kg a similar height (I'm being extremely generous with this estimate). That crane will cost you well over 1 million dollars, will only last around 20 years, and you would need about 4000 of these cranes to have the same capacity. Putting this all together means that the cranes will cost 20x more than the hydro solution even if you ignore the much higher maintenance and operational costs. This is also assuming that the cost of 9 billion kg of concrete is negligible (which it isn't), and that you aren't going to need to replace blocks as they get smashed into each other (which you will). Also, the crane solution will have lower efficiency, won't work in high wind, and is utterly stupid for about 50 other more boring reasons.
What the DSA International Committee's Ukraine Statement Gets Wrong
The first feeling I had upon reading your comment was that it felt like it was pulled from the Milosevich playbook, who used Russian support and at one point had potential for Russian troops to help him continue to further divide his country and and basically pursue genocide.

Then my normalcy bias kicked in and I thought "it would never get that bad"
This just shows you have bad listening skills. No one in their right mind would justify Russian aggression right now. I can’t even imagine Russians would given the possibility that they have to live in a country that will be isolated from the rest of the world. But Americans and EU ‘s incapability to analyse their own mistakes is pathological and hopeless.
NAD+ in Covid-19 and viral infections
With a score of 13.7, the parent comment has been automatically flagged as spam.

5.7 - restricted terms
8.0 - username looks like base64

Maximum score is 10.0
Ask HN: Resources for Manipulating Colors with Code
I am looking for resources on how to do color theory with code. For example, how to combine colors or create tints and shades.
Patrick Nagel
It’s gzip that caused your issue, not tar. The lack of index in tar is actually a strength for surviving corruption, as there are no critical areas, ie you can lose any parts of a tar archive and recover useful data from the rest

Tar.gz and tar.xz should never have been made a thing or become so popular, the only safe options are tar, tar.lz and to an extent tar.bz2
Nvidia is investigating a potential cyberattack
Subverting Ukraine would mean to sow so much division internally that a sizable minority of the defending force would be motivated to defect to the other side and to compromise their countrymen. But in actual reality Russia faces a highly motivated and bitterly angry defensive force with a high morale.[1] And those same Ukrainians ousted a democratically elected (although eventually repressive and violent) pro-Russian government just eight years prior.

[1] That’s just what I have heard, living in a different European country. Maybe it’s just Ukrainian propaganda.
As I was wondering where they are located: https://www.google.com/search?client=firefox-b-d&q=where+is+...

San Francisco, California

The software is produced by Grammarly Inc, which is headquartered in San Francisco, California, with offices in Kyiv, New York City, and Vancouver.
If this would have happened in 10-15 years? Maybe. Right now, no way. It was a bad time with Russia saber rattling for the past 5 or 6 years.
Listenable stuff here

https://storage.googleapis.com/ddsp/index.html
This.

I still write Python for quick scripts, but if it's gonna be a page or more of logic I give up and write it in Rust. Compile times for quick scripts, in practice, don't really bother me, and cargo is fantastic for "just work please".
caffeine + headphones and music
Just saw some videos with that wargonzo neckbeard. Just disgusting, I wonder how he sleeps each night knowing how much shit he eats for a living.
My suggestion is to follow Kimon Nicolaides' "The natural way to draw" It's almost the antithesis of Betty Edwards' "Drawing on right side of the brain". Follow the exercises as if you were doing push-ups. At some point you'll probably want to get a model, spend your money on that.
Iostreams aside: You're absolutely right with the trashfire.

I live in a country where the elders of the language decided that we don't format floating point numbers with a decimal point but use a decimal komma instead.

So PI is not 3.14 but 3,14 instead.

Just imagine what pain you have to go through if you want to parse a .csv file written by an application that "tried to do everything right and use locale".
That would imply that those in power are trying to appease the Russian dictator, extremely sad if true...

Also seems that Biden has waved Trumps opposition to that pipeline, prior to that war, which is kind of confusing.
Snapshots are state that has very, very clear boundary conditions. There are lots of relatively sane systems that only allow modification in the interstitial. Of course as scale goes up, finding “before B but after A” breaks down, but we have whole systems running critical infrastructure based on Communicating Sequential Processes, which is the closest we’ve gotten to solving this problem.
What a delightful read.
jacquesm is repeatedly being annoyingly coy, but his point is that the NATO institution itself (not just members) has acted in many non-Russia conflicts and crises, under its own banner. http://nato.int
>Is that why peter thiel not anonymous?

Most of his financial dealings are well hidden. Took until last year for propublica to figure out that he was stashing billions into a Roth IRA somehow. So when it comes to things that matter, he very much tries to be.

Transparency brings crime and inequality to light. Sweden publicizes these things because it means you can see disparity clearly. Donors to political parties can't hide. Their information is on display. Someone who makes 8 bucks an hour doesn't gain anything from financial anonymity. Lobbyists, politicians, oligarchs do.

And the reason why we need to have people in witness protection or hide rape victims is because we can not get to their assailants. The fact that with a movement like MeToo say, women collectively started to expose powerful people was significantly better than having to individually hide.
Has anyone or is anyone working on displaying a HTML header above sites(or kind of an 'accept cookies' type of HTML UI) for Russian geoblocks that says something like "Please consider telling your government to stop the war on Ukraine".

I read earlier that Pornhub blocked Russian IPs completely and is showing a message but total blocking comes with its own downsides.
You want NATO (mostly US jets) shooting down Russian planes over Ukraine? Why not just come out and say you want WW3?
>China doesn't want to be a pariah state.

Agreed. In particular, they rely on international trade to keep the economic prospects of their young men rosy enough that they won't participate in huge riots that bring down the government, which is the historical fate of most governments of China.
why is locale stuff even in sprintf? What things get localized? Dates? Line endings?

I'm probably dumb but one of things that bugs me with various libraries is when someone has made the decision to do something high level at a low level. For example, localizing inside sprintf,

An another example might be an unzip library (read a zip file). Ideally the library should be small IMO. The simplest might you you pass it a bucket of bytes. If you want to make it flexible then you pass it some abstract interface (or 1-2 functions + void* userdata) so you can supply a "read(byteOffset, length)". You can then provide, outside of the library, streamed files, stream networking, etc...

But, bad libraries (bad IMO) will instead provide like 12 overrides "unzip(void* bytes), unzip(const char* filename), unzip(socket), unzip(url)" and end up including the world in their library. This kind of "try to do everything" is extremely common in npm libraries :( I don't need your library to include command line parsing! If you want to make a tool, make a library, then make a separate tool that uses that library. Keep the 2 separated so users of the library don't need dependencies that only the tool needs. (probably the most common npm example but there are lots of others)

Really surprised something as low-level as sprintf needs locale. Even streams I'd expect maybe a Date object would but not the stream itself.
The real question is whether Tencent-held gaming companies (i.e. every gaming company) is willing to block Russians). Tencent being Chinese, of course.
No phones in sight (unless you code phone apps I guess). No notifications. And I write down any thoughts that my brain wants me to get into for later.