skysight-inc/HackerNews huggingface dataset:
This is actually more similar to what is going on above:

function ok_or<T>(x: T | null, msg: string): T | Error {
if (x === null) return new Error(msg);
return x;
}

Thrown values (or exceptions if you like that term) are very much not type-safe in TypeScript.
I hope some day auto-save and VCS converge to result in some kind of continuous undo system.

Right now the only reason I leave a file unsaved is to act as an extra layer of ad-hoc version control, and it's not that good.
This is indeed an issue. Most apps allow a (non default) saving manipulation which will remove the history.
It has worked to some degree with cigarettes.
Microsoft's statement confirms that they had malicious software in their environment:

“Like other SolarWinds customers, we have been actively looking for indicators of this actor and can confirm that we detected malicious SolarWinds binaries in our environment, which we isolated and removed. We have not found evidence of access to production services or customer data. Our investigations, which are ongoing, have found absolutely no indications that our systems were used to attack others.”

https://blogs.microsoft.com/on-the-issues/2020/12/17/cyberat...
Finally, Terraform and CloudFormation can truly live up to their names!
Not all bugs relate to internet connectivity. If you had a non-networked computer, you might still want bug fixes.

For that matter, non-internet-connected computers can still be networked to each other using internet protocols, so they can still need bug fixes for internet stuff.
Even modern conventional warfare utterly destroys countries, like Syria. So nothing to gain compared to science, technology and trade.
US has probably done worse to them. Tried at least so this is fair game
I think 300 miles is around the inflection point where, if the transportation systems are mature and trafficked enough, it’s hard to nail down an ideal form of travel.

It’s far too long for a taxi, too short for the plane to be obvious, too short for a drive to be overly boring, and too short for a train to be mind-numbing.

Any longer (500+), I think the plane gets the obvious advantage. Any shorter and you wouldn’t consider a plane.

I guess my point is that, at this point in my life, I’d only want to fly to avoid a reliably 6+hour drive (NYC to Augusta ME, for an example).
Even then it’s a toss up, depending on how much stuff I’m bringing with me.
I wonder if the extra decoupling caps for the CPU and PPU are even necessary?

I get that good decoupling is important but these things worked fine as designed for the decades they were being manufactured.
Only problem is that altitude is the least important component of orbital space flight.

To each orbit you need to achieve roughly Mach 30 in the correct inclination, and above the bulk of the atmosphere. If your rocket can achieve Mach 30 you don’t need an altitude boost from a balloon, if your rocket can’t hit Mach 30 the balloon won’t help.
It's both... misleading, but also not inaccurate. I suppose I agree overall. :P
Enforcement is already happening. Multiple confirmed cases of fines being handed out to businesses, organisations etc :-)

More importantly IMO they are also contacting entities up front to tell them about violations and how to get compliant, the fines we have seen yet seems (again IMO) to be only for particularly nasty cases and/or cases where the entities in question refuses to change.

This means the fines we are seeing is just the top of the iceberg: most changes happens underneath the surface and only trickles up in the form of less annoying websites (or fines) little by little.
Stux to be them.

[1] - https://en.wikipedia.org/wiki/Stuxnet
Twitter cut off the ability to read a tweet by fetching its URL with a HTTP GET
I guess not, since it's for nodejs only. I would use it if it had a frontend component and instructions for implementing the backend component.
You might be thinking of AppImage?
This implies they were using the same character code for O,0 and l,1. Definitely not ASCII so perhaps some 5-channel code? IBM 716?
A launch pad gives you the capacity for far larger rockets and payloads.

A high altitude start only allows you to tweak your rocket nozzles for minor efficiency gains.
Duplicate POST requests are a violation of the HTTP standard because they are not assumed to be idempotent. I hope you're just misunderstanding the problem.
> rot13 is both encoder and decoder

Hence its popularity for very light obfuscation!
Why not name this company?
XAR, perchance?

https://github.com/facebookincubator/xar
I wonder why does it look so simple, almost like an old style soldering iron.
what would be driving BTC up ?
Looking at the traffic leaving my mac, I don't think he is speaking plainly.

As a matter of fact, you can't even TURN ON an iphone for the first time without their little friendly "personally identfiable" logo showing up as the phone boots. No "choice" involved.
I expect the majority of the vulnerabilities were in the command parser. Which attack vector is gone from the database file.
It’s interesting to me, because in my mind Reuters is characteristically a good actor in this space, often opting for more of a mouthful but not misleading title.

It might have been an honest mistake? Although it would be surprising to me that a Reuters editor would miss the implication of this headline.
Stellar Wind
Does TS have syntax sugar for returning errors, as rust has? If not, I don't see what's interesting about your form.
That's fair. Though the disparity is still an order of magnitude...

More seriously, my point is that SQLite is very unlikely to be the most vulnerable piece of software in your stack. It's probably the most stable and bug free piece of software that you use on a day to day basis that hasn't been formally proven correct. Even openoffice itself has more CVEs: https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=openoffice

And some of them are due to the very issue I brought up above...

> CVE-2012-0037 Redland Raptor (aka libraptor) before 2.0.7, as used by OpenOffice 3.3 and 3.4 Beta, LibreOffice before 3.4.6 and 3.5.x before 3.5.1, and other products, allows user-assisted remote attackers to read arbitrary files via a crafted XML external entity (XXE) declaration and reference in an RDF document.
Yep. They are an important indicator of how to pronounce a word. I thought the same thing was true in English, but now I’m not sure..
I’m loving the game so far (on a PC with a 3080), but it is certainly wide instead of deep. It feels really really shallow. There is a lot of content but very little feels meaningful. Outside of the missions with the girlfriend there is very little relationship building. Even this come short compared to most other rpg’s. I have also had a few insane bugs, but nothing came breaking. For example for a while my character was standing naked in his bike, and in another instance a lady was standing like the Rio Christ statue for a whole mission.

I don’t really mind the examples in the Twitter thread, but I do mind that you really cannot interact with the world in any meaningful way.
Rock-paper-scissors to play against AI
When the standard techniques become stale to you, one option is to seek out more classic literature, which usually feature more innovation in them.
Is a clear attempt to "bury the lead " as they call it in journalism. By reporting it this way, they keep others from reporting on it and they get to control the story that gets released.
any proof of this besides your word? I'd love to read about it.
Nvidia Might Be Evil
Hiring people who can perform a complex job at a high level is a very hard thing to do well, regardless of compensation. It feels like telling the hiring committee to just do their job, but better.

Hiring, in general, is hard.
Agree. It's more about the usefulness of moving to the non-Optional type and the null safety in following lines, rather than the readability of the ok_or.
Do you mean game development in general? Or the author of the blog?
This code is identical to

let file = file.expect("file was null");

That is, the "expect" method does exactly this.
PDF is an open spec--even though it is so complicated that there's only one complete implementation which costs money.
ICEYE's website says high res (25cm) imaging is commercially available. Even has some sample 25cm res images available for download at the bottom of this page (I have not downloaded so can't vouch for it) https://www.iceye.com/satellite-data/blog/new-benchmark-in-i...
Strict null checks have a dramatic positive improvement on code correctness.

Just want to point out that Python typecheckers (like mypy) do quite some sophisticated strict null checks when you use the 'Optional' type annotation.
Yes, that is it. Thank you.
Not sure! Trump assured the American people that "I have a son. He's 10 years old. He has computers. He is so good with these computers, it's unbelievable."

Can't imagine why the US government hasn't formed a strategic response under Trump. His foreign policy has been so good over the past 4 years.
Yikes, do you mean Windows Subsystem for Linux? I really appreciate MS folks putting in the effort to try something new, but WSL is close to worthless. I tried it a while back and could not get basic services to work. And why would you want Windows OS around if you just want to run Linux?
Yes, I know. The Yiddish is almost identical to the German, but has a significantly more negative connotation.

(Edit: for an inverse example, consider "dreck": in Yiddish it just means "garbage," but my understanding is that it's significantly more offensive in most Germanic languages.)
More complexity where the solution is rather probably simplicity.
Last generation consoles are really far behind today’s PCs. Like not comparably. Sure you can optimize them a ton since they are all mostly the same, but at some point you hit the limits.
This is akin to legalizing all drugs and selling them in every grocery store with huge ads of George Clooney puffing the magic dragon... And then complaining that everyone is an addict.

American food is a drug. And by any comparison much more harmful than alcohol, smoking and weed combined. However try to tell a normal person to eat a healthy diet (aka, don't be an addict) and they will hate you for it. Or actually, let's start with "healthy diet". What does that even mean? The only proven healthy diet I know of is AIP and related diets. However, it takes substantial mental strengths and abstinence from social gatherings to get going. I know, because I am on it. It completely changed my life, why is the only reason I can sell my brain to hate all the "normal" (addictive) food.

The only way to eat healthy is to realize other food is making you sick and let your brain stop yourself from eating it. The other way around it doesn't work. You can't force yourself to eat healthy; you need to fully buy into it and live it and want to eat healthy from the inside out.

To me, this problem is much worse than drug addiction. Drug addiction is frowned upon. Drugs are largely inaccessible, they are expensive and mostly prohibited. You know it's bad to be an addict. You know stronger drugs literally destroy your body.

Bad food on the other hand... All ads want to make you eat it. Your family eats it, your friends eat it, everyone eats it and wants you to eat it. And it destroys your body over decades, making it hard to connect the "old age" at 40 with your eating habits... I guess I am getting old, huh? Let's order some pizza. It is frowned upon to eat healthy. Healthy food is hard to get (you need to cook it yourself). Healthy food is expensive... See some similarities here? There is an inversion. When it comes to food, the drug is the easily accessible, socially accepted product, while the healthy ones are moved to the margins, just like real drugs are. Crazy stuff.
It’s possible I never get caught and live like a king.

You have to scale it to the population because the thought experiment doesn’t apply to just one individual. Everyone has to answer the question “Why don’t I just rob a bank instead of getting a job?”
>I hope we're hacking back just as hard. That's what the NSA should be doing rather than domestic spying

You really care about the ideals of "liberty" and "democracy" I see.
I think the GP is more an statement of how bad security is with XML than how good it is with SQLite. See for example
https://owasp.org/www-community/vulnerabilities/XML_External....
Or in other words, exposing frauds for who they are based on facts, not their talk.
"Fluent Python" qualifies, iirc.
> But if you manually delete the journal, or otherwise separate it from its database, you get data corruption.

I didn't believe you, but you're right.

https://sqlite.org/wal.html

> If a database file is separated from its WAL file, then transactions that were previously committed to the database might be lost, or the database file might become corrupted. The only safe way to remove a WAL file is to open the database file using one of the sqlite3_open() interfaces then immediately close the database using sqlite3_close().

https://sqlite.org/lockingv3.html

> If a crash or power failure occurs and results in a hot journal but that journal is deleted, the next process to open the database will not know that it contains changes that need to be rolled back. The rollback will not occur and the database will be left in an inconsistent state.

It's a bummer that SQLite is a "database in one file" but many operations actually require a 2nd or 3rd file.

What's the reason that it can't act like a filesystem image, and keep everything in one file? If I mounted an ext4 image in userspace and modified it a bunch, it wouldn't be corrupt, right? Is that just because SQL has stronger atomicity requirements than a filesystem?
That still is the title, as I see it....
Changing one sentence led to 2.5x more reviews
Giving up and not using superior tools won't help us, either.
The world is shifting to mobile devices where battery life trumps all other considerations, and will do so, until we can come up with some technique to siphon metabolic energy of the body to recharge the battery...
Grow a spine.

Microsoft is not doing a Windows build for you. Neither is Oracle doing custom build of Enterprise for you.

On the other hand, most Open Source bugs can be fixed by adding a couple of print statements and reading the log.
You also have no power. The problem power is a ponzi scheme.
No worries, too many bugs will make it DoA
Python type annotations, especially the 'Optional' type annotation in conjunction with a good typechecker like mypy alleviates this problem.
Liquid as in I can get cash out if I need it.

It's in investment accounts, cash accounts, cryptocurrencies.

All of which I could sell and withdraw cash in 1-2 days.
Effective Python is one of my favorite intermediate-level books on the subject https://effectivepython.com/
> I think most in crypto are

Wild-ass guess: "most" is true of "number of humans that own cypto-currency", but probably not true of "percentage of crypto-currency by value held", if that makes sense. More succinctly, I'd expect more crypto to be held in exchanges than in individual wallets, if you're able to somehow account for coins/value stored in lost wallets.

Update: looks like figuring this with any real accuracy is probably near impossible
C’mon. http://www.bbc.com/travel/story/20200402-why-san-francisco-d...
SingleStore Universal Storage, Episode 3: Revenge of the Upsert
No worries, they upgraded to 11111111.
I'm sure that is at least in part due to their child policy though.

https://en.wikipedia.org/wiki/Missing_women_of_China#Wifeles...
it will appear legal if it is worded correctly, just the right side of ambiguity, proofread by a dozen lawyers and backed by a multi-million dollar body

also, to contradict your own tangential claim (from your non-authoritative link):
"You _should_ ask for consent where you are offering a genuine choice over a non-essential service. Typical examples include:

-Using tracking/advertising cookies"

this document may help you understand the difference between should and must:
https://www.ietf.org/rfc/rfc2119.txt
I congratulate anyone who is able to create a dialogue with a country that is otherwise bristling for violence. Better words are flying that bullets or missiles.
Distributed Backup and Restore Added to Free CockroachDB Core
> Sadly, you don't seem to realize that those wages come out of the pocket of the consumer. Lower the cost of labor and you lower the cost of the good that is provided. Why not lower those costs to the minimum? /s

Not sure why you feel that an /s tag is necessary. Why not make your point in plain terms so people can read, understand, and respond?

> Also, a wage laborer who opts out of the wage labor system will likely end up just as dead as a slave who tries to opt out of the slave system.

Yes, however one will be murdered for his refusal to be a slave, whereas one will starve to death or die of exposure for his failure to produce food and shelter. There is no equivalence between being murdered and the natural result of failing to work for food and shelter.

> The "voluntariness" of wage labor isn't quite the panacea is seems to be,

Its not a "panacea," merely a matter of basic human rights that someone should be allowed to choose where to work (or if they want to work at all).

> when you realize many people are given the choice between one or more shitty jobs or no job at all.

They are given as many choices as there are other people offering deals. That they need food and shelter to live is a fact of nature, not something capitalists invented so as to replace slavery.
Lack of multiple independent implementations means we can't ever switch to a different programing language or radically different system architecture.

Nobody is feasibly going to rewrite Sqlite in Rust.

So yeah, it is important.
With fear-based toxic culture, nobody reports anything and you get USSR and Chernobyl the series.
I'm very curious what they mean by "Figma uses Redux, so we have models, actions and reducers". "Models" is not a term that is normally associated with Redux.

Note that we now recommend using the "ducks/slice file" pattern for organizing Redux logic for a given feature in a single file:

https://redux.js.org/style-guide/style-guide#structure-files...

which you basically get for free anyway if you're using our official Redux Toolkit package and the `createSlice` API (which generates action creators based on your reducers):

https://redux.js.org/tutorials/fundamentals/part-8-modern-re...

Obviously the Figma codebase has been around for a while so this isn't an immediate solution to their issue, but it definitely simplifies dealing with most Redux logic.
Ask HN: Can air scrubbers/ionizers impair N95 masks?
The major part of the N95 protection is the charged fibers, which attract small particles, including aerosols. I was wondering if breathing ionized air thru a N95 can cancel it's COVID-19 aerosol protection capability.
Iowa may be an example of how ethanol is done wrong in practice, but I'm not sure your theory is so sound.

Make ethanol from sugar cane, not corn. Louisiana should be the center of US ethanol production. Much higher EROEI.
There was a post office in New Mexico that had collected
over 100 misspellings of: https://en.wikipedia.org/wiki/Pojoaque,_New_Mexico
Do people read the Google reviews of a food truck before they buy from it?
I'm sure they aren't perfect, but their test suite and extensive fuzz testing is far better than any XML or JSON parser I've ever seen

https://www.sqlite.org/testing.html
That didn't stop HR gatekeepers from discriminating against the long term unemployed after the 2008 financial crisis.
How to find contextually relevant link opportunities
Because his ideas are wildly divorced from reality and what's practical?
In my experience `map` and `filter` are easy to grok for even for people unexperienced with FP, but `reduce` is always a headache to parse even if you know how to read it. A loop that accumulates some result is almost always better.
Let's see how many are denied the second booster shot.
Supertokens seem great for any startup and many use cases. But a critical part for many enterprise organisations is compliance and strong security. Does it ensure compliance around GDPR, HIPAA, PCI-DIS etc?
"The hack was so sophisticated, there must be the evil scary country behind it!"

"Their password was solarwinds123 and it was on their GitHub."
> We have found a way to precisely measure where all that scattered light arrives and at what times, then create a 'backwards' version of that light, and send it back through the fog

I'm assuming this is just a sort of analogy, because unless the fog was somehow frozen in time, there's no way the light would (de)scatter in the same way going backwards, it just wouldn't be hitting the same spots within the fog. Now, if they are able to predict the exact flow of the fog, that would be incredibly impressive.
Bonus points: chflag schg the exe and config files such that they cannot be altered ... or better yet, make it a zfs filesystem and mount it read-only ...
The only application/document file format I know that uses sqlite is https://www.giuspen.com/cherrytree/. Is there others out there worth mentioning?
This keeps recirculating over the years and nothing gets done about it!
It's a solid bet that they have pretty much everything infiltrated.

https://thewire.in/world/chinese-communist-party-members-inf...

They've been doing extensive industrial espionage for decades.
Simple, JWT, pick one.

Really don't understand the obsession with JWT, especially if you don't need SSO.

Only real advantage of JWT, vs the tried and true random session_id+database approach, is that you don't need the DB.

What useful web application needs auth, and doesn't already have a DB?
I wonder if the name Smalltalk was inspired by the name "Lisp". Lisp is away of talking, so is small talk. Maybe creators of ST-80 desired to create something higher level, more human-like than "lisp".
MongoDB and BigID Deliver Scalable Data Intelligence for Enterprise Data
Ask HN: NLP/ML functionality to auto-fill docx
Tech newbie here. I am stuck with this problem. Lets say there are n = 10 versions of output_n.doc created manually from a baseline.doc and based on 10 different sets of input text entries from a Typeform Q/A. Each set of input entries is based on a mix of 20 Q/A. Some of these entries overlap, others are different. Now when a 11th input is filled in via Typeform, based on MLP/NL, how accurately can the corresponding 11th version output_11.doc be created, based on auto-filled text entries. I realize that, certain fields of output_11.doc may be left empty, but how much can it auto-fill?
How can I validate above test scenario with typeform, airtable and some quick hacks? Any other tool or plugin or module that can be leveraged to help implement above? Please share any reference links that I can read further.
Is there any major technical flaw in my description and assumption above?

Thank you hackers !!
See also http://howtocenterincss.com/
Part 1: The Modernization Journey with Exafluence and MongoDB
async/await came out of Microsoft research; each year they build and test dozens of concepts. Struck gold with async/await and within a couple years that pattern got retrofitted into most major languages (JS, Python, Rust, C++, C#)

I was wrong about Golang and Typescript, I did some reading and found most of their signature features in older languages.

WASM is some sort of political consortium building triumph, but I think has more potential than everything else on the list. The performance is shockingly good (see Google Blob Opera, Mozilla Pyiodide, etc). Over the next decade everything will become a fast Electron app.
New data shows residents fleeing California in near record numbers