skysight-inc/HackerNews huggingface dataset:
In the movie Minority Report, there is a scene where the protagonist is blindfolded and opens a fridge that contains one fresh and one spoiled version of each item.

Eventually, he bites a spoiled sandwich with mold and drinks spoiled milk.

That is the best analogy for npm.
I stopped using `set -e`. It is disabled if the function you're running is part of an `if` statement, for example:

thingThatCanFail() {
echo "step one succeeded"
echo "step two failed"
false
echo "step three was run too"
}

if ! thingThatCanFail; then
echo "thingThatCanFail failed!"
fi

With or without `set -e`, step three is run, and the function returns success, even though you might expect the failure of step two to prevent step three from running.

If "thingThatCanFail" is called _outside_ of an if statement, then `set -e` causes different behavior (i.e. step three _is_ skipped).

I instead use lots of chaining with && (as in the article), or explicit checks after each command. I have two utility functions I define in nearly every script:

warn() { >&2 printf "%s\\n" "$*"; }
abort() { warn "$@"; exit 1; }

Then I do lots of:

stepOne || abort "step one failed"
stepTwo || abort "step two failed"
...

It can get a little verbose, but much better than trying to reason about `set -e` in my opinion.
yeah I know that, and I always wondered how they implement basic data structure like linked list or bst with static allocation. I guess that this will be never something really needed in an embedded system, and they can live with arrays and variables.
No, you don't have to sweep, but you're allowed to. Playing without sweeping is throwing out half the game, and a big part of what makes it hard.
Facebook Open-Sources AI Model to Predict Covid-19 Patient Outcomes
Martin's books formalised learnings of others - including those from the Smalltalk community - and PoEAA acts like a good map to the works of information systems.

When I say that "Eric took that idea and ran with it", I mean that Eric went into a lot of detail on the Domain Model (and wrote the definitive book on it). Given the way that Fowler (and Thought Works) work I wouldn't be surprised if Eric was one of the main sources.

Both books had a great impact on me, and they're both on the reading list I give to developers I'm mentoring.

Properly applied DDD is extremely effective, just using Bounded Contexts is extremely valuable (i.e. taking a high level view of your enterprise, putting logical boundaries in place and accepting different abstractions in different contexts).
I prefer the taste of impossible but this is great news for the category.
Satellite constellation operator Spire Global to go public via $1.6B SPAC
Based on what I've seen elsewhere in Germany, Berlin will start seeing lots of empty apartments now that it is too much of a gamble whether you'll earn profit renting (since Germany's laws protect the renter more than the landlord, which you can combat with a portfolio of properties that earn a certain level of rent to cover the non-paying tenant that you can't evict), and because there isn't much of a good reason to sell (maybe in a few years things improve, or maybe the apartment is useful for family, or one's own future retirement home).
Tests aren't the actual requirements doc once your code is used by a nontrivial number of people. People will always depend on your undocumented implementation details. Always.
They have their work power - don't banks actually love it when people can't pay off their debt?

If your odds of making your investment back are so bad that the bank won't give you a loan, maybe it is the wrong plan to begin with. The job of bankers in theory is to evaluate the risk of your plans and offer you credit accordingly. (Not that I claim they are all good at their job).
FWIW Gab very proudly proclaims that they report things to law enforcement if they cross a legal line. I could be wrong but I would think that if the FBI was trying to entrap people they would not want to give such a warning.
Bitcoin is a settlement layer, like ACH, not a payment provider like Venmo
> The other thing I don't like is when you are experimenting and fleshing out an idea you want to take a try it and see approach but with Typescript you have to really commit even though you just want to experiment. When you want to change something there is so much more code that you have to change.

I've seen this opinion before, and I don't understand it in the slightest.

Let's say you're modeling a "user". You might initially think that users should have a first & last name, so you write it this way. Then later on you realize that there's no point in this distinction, and some of your users from Indonesia don't even have separate first & last names, so you want to switch to a single name.

* With weak/no typing, you have search around for anything that matches the field names, and hope to God you didn't miss anything.

* With stronger typing you just change it let the compiler tell you all the places you need to fix up.
"I'd like to move out of my rent-controlled apartment in SF because my job is in Mountain View, but I don't want to walk away from this rate."
One thing that always bothers me about BTC is that the whole blockchain is kept, its like half a terabyte by now. Will they ever agree to just trim off everything older than XXX days or similar? It seems hugely inefficient.
Things is a great example here. Lightning fast, lets me quickly add or re-order todo items, and does nothing else.
Oh, a New Unix Shell
Good Strategy Bad Strategy by Richard Rumelt
Is it a "javascript application" or a "page with text that uses javascript for dynamic features"...
DJI announces new first person drone
I don't use Google Photos normally, but wanted to check this feature out. I don't use cloud storage, and the app is updated. However I don't see this button. Am I doing something wrong? Is it supposed to decide for me which photos are suitable and only then display a button?
What happens if you have the same amount of horses like cars? Aren't they wasteful and need a lot of space and at night a heated parking spot? :)
Accidentally because opposition to bitcoin, like opposition to cars, isn't luddite rustic anti-industrialism, it's common sense advocacy for equally modern but different solutions to the problem.

Bitcoin doesn't do anything that electronic banking can't do better, and it causes a lot of harm in wasted energy and space.

Cars don't do anything that busses, trains, and bicycles can't do better, and they cause a lot of harm in wasted energy and space.
Or maybe they just didn't build a strong enough engineering team and quickly ran into the limits of their experience and skills levels.

There are numerous examples of start ups and even mature companies making basic mistakes. This is easily explainable without resorting to conspiracy theories.
You're a neckbearded gender troll. The sooner you can admit it to yourself, the sooner you can start healing yourself.
Ranged types are directly from Pascal. You can also use them to specify the valid indexes for an array (so a given array might be zero-based, or one-based, or 1900-based, or even -32768-based). A very positive feature, I agree.
I was not expecting it when I started, but I recall coming home sore from curling practice.
Pluttification
This. I was a happy Rails dev but html over the wire wasn’t cutting it at the club anymore. So I had to switch to React and now I’m married.

Just kidding. My wife loves Rails.
Well you have read the description of the poor in the 19th century, so I'd say it still doesn't compare. Nobody starves in the west, unless they have a serious mental illness. But then the comparison would also be silly, as their problem would not primarily "being poor", but having a mental illness. Of course you can always find somebody who is worse off than somebody else. Those starving people begging in the streets have it really well compared to somebody who is about to die from a terminal disease within the next 24 hours.

And if there is such a huge amount of people with mental illness, as I said elsewhere, I suspect the real problem is drug addiction and not "the economy" or "rich people".
I think you are the one with your head firmly shoved in the sand. Bitcoin has enormous problems with legality, energy usage, lack of trust, hacking, and slow, expensive transactions that make it a really shitty alternative to fiat. Bitcoin isn't just a gamble - its sole use as of now is as a pump and dump scam. There is no earthly reason why a digital token should be worth $50k a pop. Bitcoin is a shitty bet, and I'd take USD and a bank account any day over it.
ExtJS = "What if JSX, but in JSON" ;)

For me, ExtJS redefined what's possible on the web a full decade before React/Angular & co, and it's sad that Sencha is now part of a heartless corporate graveyard.
Bullet Journals are perfect for that ( https://bulletjournal.com/pages/book ), I'm still using them for managing my personal life (ideas, goals, progress on stuff, daily journals, etc). Having knowledge base in digital format is better in many ways, but IMO nothing beats notebooks when it comes to solving problems and thinking.
trypaper.io is nice

What exactly happens if u miss payments on these loans? (Do they write it off, negotiate equity, extend and pretend ?)
Square's entire merchant dashboard was in CoffeeScript. Half a million lines of code.

Took over a year to convert to ES6.
> a white-hot parasitic transistor connecting Vcore to ground at low impedance

In plain English: an internal short-circuit.
I live in NYC, in 50 story apartment building next to several other similarly sized high rises.

Our cars need about 75 sq. ft each (they're on stacked up 3 levels high in the garage)

How many sq. ft. would we need for all of our horses? How many people would be needed to take care of them full time?

Actually yeah... outside of cities who'd be taking care of these horses? Because cars need mechanics when something goes wrong obviously, but likewise horses need vets.

The day-to-day stuff like refueling a car is dead easy, meanwhile you can't just ignore your horse in the stable for a week because you didn't feel like going anywhere then fill it up on the way to your destination...

Edit response because I'm rate limited:

It seems you're not joking with the tone you're taking. I feel bad for you.

Our world would be much better off if we all lived in cities like NYC. Ten years ago average New Yorker generated 30% less CO2 than the average, and greenhouse emissions from the city were trending downward as economic activity trended upwards.

But yeah, I guess you're just enlightened past living near other people and shame on anyone who's comfortable enough with human contact to live in a city.

For all your posturing it's ironic you'd balk at "living in a crowded place"... the 30% in CO2 we'd save by living in cities like NYC is more than if we got rid of all forms of transportation in the US. Meaning simply by living in a city I don't really need to play ridiculous mental gymnastics like, but it's fun to tear down a bad argument.

-

You're privileged enough to have an existence where taking care of a horse is easy and "therapeutic" I'm sure all the people barely making ends meet working 2 jobs would have just as easy a time filling up their car in 5 minutes as taking care of a horse.

I wonder what percentage of Americans have and additional 2 to 4 hours every single day just burning a hole in their pockets

And let's not forget the fact a car requires operating two pedals and a wheel. We can even modify them to require less for people who are physically impaired.

Good luck with taking care of an actual horse with a physical impairment. I'm sure you'll just say it's good exercise though, and woe onto you if you're someone with something like limited mobility trying to muck a horse stall.

It's always funny how the people who lived in the most privileged little bubbles seem to think those big city sheeple just don't get it
Yes, absolutely.

The use case: a small CraftCMS-driven site using a bunch of long-lived jquery plugins and almost no custom JS.

Also, no need for transpiring or bundling.

It is wonderful.
This drives me crazy: whenever I type 'emacs' on my iPad, I get 'emasculated' (and the iPad keeps insisting on it even when I try to correct the word).
I think you have the articles argument twisted.

> If you’re going to argue that supply will only go up if you allow price to rise infinitely, you’re getting it backwards- the increase in supply is supposed to make the price go back down, that’s the whole idea. There is supposed to be a balance that develops that holds the price down to an affordable level.

The article argues that the people who construct apartment buildings operate on incentives. Their incentives are the revenue generated by the apartment over, say, 30 years and the cost of constructing the apartment (in materials, regulations, time, ...).

Decreasing the expected rents and/or increasing cost of construction should result in less new apartments (supply increase is slow or nonresistant).

Conversely, increasing the expected rents and/or decreasing cost of construction should result in more new apartments (supply increases quickly).

The article does not suggest:
>supply will only go up if you allow price to rise infinitely

but instead:
>> The right answer to that shortage would be to increase supply — for instance, by cutting red tape in zoning and construction.
You can easily extend NodeList.prototype with Array.prototype functions you like, and then just use them:

['map', 'find'].forEach(f => NodeList.prototype[f] = Array.prototype[f]);

document.querySelectorAll('bla').map(el => whatever)

That's what prototypes are for, anyway.
Housing is not scarce though, some people (companies) own 14 houses whilst others have non. It's not a problem rent control can solve, but it's also not a scarcity problem.
> Plain HTML renders several order of magnitudes faster than post-load JS rendering

Well, "several orders of magnitude" is a bit much, but the point stands.

However, that's only during the initial load. After that, JS can just keep modifying the DOM based on the data retrieved from API, and never download HTML and construct new DOM again. If done properly (and that's a big if!), and where appropriate, this can be much faster.

> Most web devs develop on localhost and test on some of the best connections you can get today, leaving network performance testing as an afterthought at best... and it shows.

Very true! And on beefeir CPUs/GPUs, more RAM, faster storage etc.

For the last couple of years, I've been careful to develop on "midrange" hardware, exactly so I can spot performance problems earlier.
Oh my, I am at the point I only read the 1 star reviews and maybe 2 star reviews. Worse dealing with Amazon is a royal pain when the company fulfilling the order ships the wrong item.

Brand names are a fine method to follow but not when sellers ship the wrong model/version/etc.
What's the correlation of people who hate on crypto who lost money or missed out on it?
I'm not talking about any OS concept, but about the concept of how memory works in the virtual machine defined by the C standard. That implementation isn't compliant just because it works; if an undefined behavior checker could see into the malloc implementation, it would see that it's returning pointers inside the same object, which conflicts with the (impossible to implement) rule that malloc returns pointers to different objects.

The practical consequence of this is malloc is kept in a different library and not inlined into callers, and asan doesn't work with custom allocators unless you tell it they behave like malloc.
Why are celebrities famous in the first place? because people care what they are doing and wearing and eating.
Exactly.

I mean, all you really need is a Turing Machine, but they're not very pleasant to program.

Same thing with vanilla JS and jQuery.
I fail to see how something with wildly fluctuating value like bitcoin can ever serve as a stable currency or medium of exchange.

Maybe it's a "less terrible" solution in poor countries with inflation challenges, but I don't see that as a strong proposition for the utility of bitcoin. Cigarettes are used as a medium of exchange in prison. That doesn't serve as a strong argument for using cigarettes as currency.
On a somewhat related topic, has anyone seen any information about how well the Impossible Whopper is selling?
lol. still a bike :D
Imo the problem mainly lies in Google's square. All SEO tools exist for the reason of it being possible to game search results in the first place. It's inevitable that companies will offer tools and services to do so when there's such a huge market for it.

Google has gotten better at discerning between crap and quality content, but they still have a long way to go, and I'm unsure if it can be fully fixed the way search engines currently work.
I wanted to add: "Dedicated server" in the cloud business refers to a 1-to-1 mapping between server and physical computer. A "virtual server" is one that maps onto a physical computer when it actually needs the CPU. There are generally two types of virtual servers: A very low-end one running ARM or Intel ARM slower than your typical 1.3GhZ laptop, and a very high-end one typically used for CPU-bound applications.

The cheapest dedicated host on AWS costs $370/month: https://aws.amazon.com/ec2/dedicated-hosts/pricing/

So Matrix is misusing cloud terminology when it says "dedicated server."
That sounds almost poetic. I wish people who mindlessly rail against capitalism on twitter actually took the time to understand how these systems work. I think many of them would like to believe that we can all live in a system without currency. They don't realize that much of the freedom we enjoy today comes from capitalism. The ability to start your own business, and more fundamentally, to decide how your money (and time) is spent. Communism and centralized control over resource utilization necessarily results in less freedom.
and yet their stock price is down..... this market is hard to read!
This reminds me I should try to make a bit more progress with trying to write an RDP display driver for Win9x... one of those things I thought of one day but never really got around to doing. (I'm sure there are existing solutions, but writing my own is half the fun --- and I've already written a generic VESA framebuffer.)

I like stuff like this in the same ways as car modding --- teaching an old dog new tricks.
Yes but one Reddit comment has a lot more weight right now because of the ease of astroturfing, so it doesn’t need to be a Bot. Someone posts a Swiss Army knife and someone else might say, “I love my Swiss Army Knife that my grandfather left me. Oddly enough my aunt thought it was lost and bought me a knockoff from Amazon and it actually works better than my grandfather’s knife.”

Then someone replies saying “what was the brand?”

Then the person replies with a picture of the knife with the lettering in tatters saying “QUINIPO” or one of those Chinese brand names.

Boom
George Orwell and the Secret World
The difference is that it was not a premine. I don’t know how can you say it’s a small difference..
I ran the response for the Apr 2019 incident that you're digging up, and fwiw:

* The breach impacted the free best-effort matrix.org server & infrastructure, not Element Matrix Services (the subject of this HN thread).

* We didn't "revoke user keys", we logged users out on matrix.org whose password hashes & login access tokens had been exposed.

* At the time we were in beta, and there was only one mechanism to logout users: a 'hard logout' used to evict client sessions which would cause them to clean up their local data; the common case where as a user you want to kick off old sessions and don't want to leave your keys littered around. Before exiting beta in June 2019, we implemented 'soft logout' as a mechanism to expire access_tokens without clients cleaning up data: https://github.com/matrix-org/synapse/issues/4280. Given the urgency to protect user data immediately after the breach, we couldn't release new clients to expedite soft logout, so had to go with hard logout.

* However, any user who backs up their E2EE keys, either online (the default configuration), or offline was unaffected. To repeat: the default configuration was to nag the user into backing up their keys, encrypted, on the server, for precisely this sort of situation. And to the best of my knowledge I don't recall anyone who reported having lost data to us.
You can definitely export your data from Roam. Maybe not some types of data, such as images, but you can scrape that if you needed to. I can say this for certain as someone who's worked on open source import, export, and backup tools for roam. [1, 2]

[1] https://github.com/MatthieuBizien/roam-to-git

[2] https://github.com/adithyabsk/keep2roam
Maybe for you, in your current life situation, but that isn't for everyone. You might want a large apartment to live in, and a small room near the "party/bar zone" where you can sleep off your night. Similar to the above you might want a large place for the family, and a small place near work so you can get to the next shift. The above are somewhat common reasons people already take two apartments in the same city.

And there are also people who would be interested in an apartment in a different city. A favorite vacation destination. Near the in-laws so you can visit and yet get away. A short term job. The foreigner in an unstable country who wants every possible reason for customs to let him in if things get bad enough to flee. Hotels fill some of that, but if the price was right an apartment where you can leave spare things instead of packing starts to look nice.

Mostly it isn't economical, and I don't see that changing. However in the imagined world where it was very cheap you might be interested in a second flat just across town. It would change your lifestyle to use it.
There are APIs and it would be great if more people and organizations built on top of them, and specifically build content or collection-specific interfaces.

Here is the entry point for API documentation: https://archive.org/services/docs/api/

Hot linking, CORS, and other things to support third-party integration are usually supported, though there are a lot of special cases for security or to prevent malicious use. If you run in to technical problems we are usually responsive to the main contact routes on the archive.org site.

The system is not designed to allow multi-party curation and editing of metadata, but there is nothing stopping folks from building third-party catalogs on top of the content stored (and served) from IA. That is sort of what openlibrary.org is for books. The same thing could be done for music, video, specific documents, etc.

Note: I work at IA but not on the APIs or archive.org collections
I liked your first comment. This one: not so much. It’s not HN like.
An electro bike doesn’t require someone to pick up all the crap and won’t throw you when it hears a loud bang. I don’t think you’ve thought through the problems with horse transportation properly.
It's only obsolete if it doesn't have the features you need.

Which, in this case, include radiation resistance, which is much harder, if not impossible, to achieve with modern chips with very tiny transistors. Large transistors can much more easily shrug it off.

The old chip is not just "good enough". It's the only thing that works.
Basically any language with objects and methods can do this
We're talking about Berlin.