skysight-inc/HackerNews huggingface dataset:
Is there a proper way to use custom objects as keys in hashmaps in JS (well, ideally TypeScript compliant)? Coming out of the C++ world where this is trivial and something I use quite often this seems pretty infuriating. Maybe a general data structure package that's worth pulling in?

EDIT: After doing a bit of research I found "tstl", looks interesting, their hashmap appears to support custom hashers and equality comparisons:

https://tstl.dev/api/classes/std.hashmap.html

I'm curious about experiences with it if anyone's had the chance?
This and the proliferation of gold-rush TLDs like the .icu mentioned in the article make me feel like we're pretty well all the way there. For all my fighting the good fight, I'm just one more voice in the wilderness, though, and everyone wants their magic boxes without caring what's going on inside them - until they get bitten.
Given what the article reveals about the hardware specs, I suspect they fear that full 3D won't be achievable at good performance. Or they want to avoid facing direct competition against Xbox and Playstation.
> Leaders have a vision for and commitment to their employees’ personal success, whether that be at Amazon or elsewhere

This basically authorizes firing of employees based on their performance or am I reading this wrong?
Apple solve this by making spares super expensive and only available from partners.

The legislation needs to stipulate what a "component" or "part" is, i.e. not the entire motherboard.
So... What would be the fair price? Was $7.85 already outrageous? Should DNS be organized completely differently? Would such a reorganization actually make things cheaper or improve in any other way?
my story too, was able to land a good job withoud any degree
I don't think that's fair. Yagni is a rule of thumb and it works with other rules of thumbs to create effective, maintainable systems.
I can recall horror stories from their engineers when I was in grad school (around 2004 or so). So I think it is well entrenched.
> If someone is phishing via a phone call, I'd expect that they already have the password in-hand,

That's not how it works most of the times. Click forgot password on Gmail and it will use your second factor as a way to let you change the password.

Most websites use the second factor as a backup, including bank websites.
To give intent the broadest benefit of the doubt, maybe that's why they wanted to encode the goal in a principle.

Changing Amazon's corporate culture at this point has to be like relocating the Alps.
Neutral Switzerland plans to buy dozens of US F-35 fighter jets
"Switzerland has chosen Lockheed Martin's F-35A Lightning II as its next-generation fighter jet, the government said on Wednesday, angering opponents who have pledged a new referendum to overturn what they dubbed an unnecessary "Ferrari" option."
> The surprising/interesting thing about this article is the notion that insertion order is the order that you want to iterate through a hash map.

I agree, this is what java calls a "LinkedHashMap" and what python calls an "OrderedDictionary" - there are times when it's quite useful, but often it's simply not necessary, uses extra memory and shouldn't be the default when you just need a hashmap.
Please note that Verisign has a profit margin of 50%. Ie, 50% of their revenue becomes pure profit.

This is an insane level. Apple is at 23%. Facebook at 35%. Profit margins that high only come from rent seeking backed by the full force of the law.
A huge reason for Florida is 2000. 2000 is just two decades ago. “Decades ago” implies three or more decades ago. Even if it meant 2000, Florida couldn’t have been usurped immediately after what was a huge reason for its reputation.

—

Proving bad gerrymandering by showing silly looking maps is not a good argument. There can be valid legitimate reasons for wonky mapping. Linking to wiki and a wonky looking map ends up manipulating people into agreeing with your argument without actually proving this case is bad gerrymandering.
Maybe the price should increase exponentially the more domains a single entity owns to incentivize owning fewer domains. I suppose squatters could create companies left and right just to hold onto more domains more cheaply, but still it would cost them more and it would be a pain in the ass to do it this way.
They couldn't just write "Avoid Bad Press?" That seems to cover it more succinctly and it's externally visible, as opposed to the aspirational junk.
Sad to see that we're still not quite free from the clutches of mass psychology (i.e. the assumption that masses as such can be manipulated).

By the way, "if then" by Jill Lepore is a great book about how tech translated this approach even in the 60s. (https://scholar.harvard.edu/jlepore/publications/if-then-how...)
Timestamps needs to come with a huge warning. If you want to have a created_at timestamp for every record, go for it. HOWEVER be very, very careful about how you use this field. The semantics of created_at are the time at which the record entered the database, that it is, nothing more, nothing less. Trying to use created_at to represent something that happened in the real world bites so many developers. Users will want to tweak the value of the field since there was a delay between the event occuring and the event getting input into the system. Also once you start supporting data imports, backups, and restores, its clear that created_at has nothing to do with when the event was actually created.

Honestly I still lean away from automated timestamps just because the knowledge of when a record entered the database is not that useful and the danger of some developer using the field incorrectly is too high.

created_at/update_at are nowhere near a proper logging solution and just give developers the illusion that they have one.
The main problem with homeless people is not a lack of housing, but that the vast majority of them want to be homeless. That this is even a controversial statement to many is the real tragedy holding back "solving" the homeless problem. In this area the only time there are shelter problems are when it gets too cold for them to realistically stay outside. And yes, the shelters do provide them with networking opportunities, fixed addresses, services to ensure they are clean and have good clothes for job interviews, etc. The majority are not interested. For a wide variety of reasons (and no, not all of them are healthy reasons) they like being independent and not tied to anyone or anything.

Simply providing someone a home and trying to stuff them in there is only a minuscule part of the overall issue.
It's getting off to a bumpy start. It corresponds to the start of the Southern Strategy:

https://en.wikipedia.org/wiki/Southern_strategy

Despite the consistency I was describing, the political map changed radically during that time. The electoral map today looks awfully reminiscent of 1860, but between then and now it was completely different.

The Civil Rights era prompted a return to Civil War geographic lines, albeit with the parties flipped. Most prominently, a lot of Southern Democrats switched parties at exactly the time frame you mention, precisely to avoid being part of that reconciliation.

There may ultimately be a reconciliation and a win-win scenario, but it's not going quietly. There's a lot of benefit to stoking those very old grievances.
Wouldn’t that just result in the domain squatters to be much wealthier and average people would be priced out, while the practice continues but the people profiting change…
A lot of domain squatting can be argued with: If they're sitting on your trademark, you basically can take it from them. But the ICANN dispute resolution process is like $1200 minimum, so most squatters like to sell for just under that.
> the most successful people I know didn’t work hard at all. They either inherited cash...

That's not success.
We're within days of Bezos' departure, and Amazon is immediately signalling traditional, boring "Mission Statements" (this one about 'leadership'). Oddly, the statements (which often refer to we, our) are signed by nobody -- no names at all to associate with the (banal and predictable) words. I'm no cult fan of Bezos (his personality seems annoying), but to become a truly faceless, nameless corporate monolith is...well, expected, I guess.

It doesn't sound like an exciting place to work, overall.
Sure...which is in part because of decades of FUD inserted to slow down the adoption of cleaner energy sources, a practice which has not abated.

Were the oil & gas companies saying "hey! Yes, this stuff is damaging! We need to get off it ASAP! We're here until we do, and we're putting all our R&D money into expanding out renewables and cleaner energy sources, and not just more oil & gas pipelines", we can have a dialog. Until then? Fuck 'em.
Maybe 2000 was the middle of our cycle:

https://news.ycombinator.com/item?id=23176334
translation: this "right to repair" law appears to exclude everything you'd actually want the right to repair.

Rather a lot of the right to repair fight in the US comes down to ECUs and data formats and readers for things like OBD ports on vehicles, or firmware for your farm equipment, or lots of other things that certainly have computers in them.
Ask HN: What aspect of cybersecurity do you spend the most time on?
Given all of the ransomware attacks of late on large enterprises and public organizations, it would be very interesting to understand how other kinds of companies are thinking about security. What eats up most of your time these days?
> I don’t think carrier would do this, otherwise guy reported this would see this a lot in other service sms’s too.

There are US carriers which inject their own banners into websites. Why do you think carrier wouldn't do this?
Well it does say “strive”. Like I’m striving to get on the olympics pole vaulting team by watching it on TV.
you can totally have FU money working a regular job if the job pays well enough.

There are plenty of them out there.
Great how about Amazon creates a single AWS page so I can see all of my resources currently in use with an easy way to cancel each and not be surprised by billing.

If you want to build back trust start there.
>Most people are not geniuses, they are average. You are not a genius.

Kids have far more curiosity and insight about things, "education" exists to squash those qualities in those outside the donor class.
> And here lies the problem, before HDD manufacturers decided to change things up, computer science was already standardised on using 1024^n.

And long before that, the SI units defined K as 10^3, G as 10^6 etc.. This is how the prefix is used everywhere for every unit, with the one exception of computer scientist playing it the US way.

I personally prefer 1024 as well, but honestly, the scientific side of that argument is a lost cause.
YouTube used to select the preview image by taking a freeze frame at a certain point in the video.

Older YouTubers used to manipulate this by putting the suggestive part of the video at the right time.

Here's a blast from the past doing just that: https://www.youtube.com/watch?v=r8tXjJL3xcM
I think it's more speculation than scalping. Scalping implies exclusivity, and there is some legal recourse if a domain is your trademark.
When you evaluate a form deep in a function, how do you handle variables that are defined "outside"? How can you evaluate such expressions?
It will only increase the price of parked/squatted domains
A distributed spam attack across the public Matrix network
Ballmer -> Nadella shows that it is possible.
Agreed. It's really disappointing to see the discussion devolve into activist yelling about evil companies instead of an intelligent debate about how to move forward realistically.
I am also not sure why they allow thumbnails outside of the video content anyways.
The executives at Verisign and ICANN need more money.
Typically hiring, promotions, transfers, and annual performance reviews are written in a Pro/Con form across the different LPs. As an employee/candidate you need to demonstrate your abilities with respect to the leadership principals, and your peers will provide growth/strength feedback based on them as well.
It is part of the engineer's job to anticipate age and maintenance (or lack of maintenance) when they're designing their structures. And it is the engineer's moral responsibility to uphold public safety above all other concerns. We may see changes to the code to prevent another catastrophic failure like this one.
Klein Vision AirCar completes 35-minute test flight in Slovakia
How-To Seed a DynamoDB Table
This would feel less self-serving if they weren't making the changes in the midst of:

1. Being concerned about literally running out of people to hire. https://www.businessinsider.com/amazon-warehouse-turnover-wo...

2. A growing, bipartisan consensus in DC about the need for new anti-trust legislation, and also Amazon's concern about how 'mean' FTC Commissioner Lina Khan is (lol). https://www.theverge.com/2021/6/30/22557456/amazon-lina-khan...
What is the real yearly cost of managing each .com domain?

To put it differently, what would be the profit margin for a .com registry maintainer that operated at reasonable efficiency (which might or might not reflect Verisign's own efficiency)?

A related question: what would be the base, fixed costs for running a reasonably efficient .com registry and what would be the additional per-domain costs?
> The 2FA craze is overblown, for most applications a random password with length 16 would be completely fine.

There isn't a 2FA craze. There is a slow and painful acceptance from companies that 2FA is one of the more effective things they can implement. It is slow and painful because the login logic is threaded throughout most organizations. Moreover, it requires changing how all users work, and that always meets a lot of resistance.

Despite all that, it is still growing. That is because password stuffing and password stealing are rather effective, and the number 2 cause of most infections (with the leading issue being phishing mails). 2FA, in one stroke, protects against these measures. It means password re-use by your users (which is inevitable) is a much lower risk. It means shoulder-surfing and keylogging are much lower risk.

2FA is one of the most effective security controls.
Injecting your own vs someone else's is big liability difference. Especially on Twitter it was mentioned that link is pretty shady. Also why only on google SMS, I am sure he is also getting a lot of SMS from other companies.
Some Clojure frameworks and libs do provide REPL support for things that we would otherwise expect to be CLIs, such as running migrations, (re-)starting services and so on.

The startup time criticism is valid, but in context of development you typically don’t restart it except you pull in deps (very rare) or something terrible happens (rare).

Then, there is also borkdude/babashka which is a Clojure powered scripting tool with fast startup times due to GraalVM.
Elsevier had/has also a profit margin at about 35%.

As a small structure you can achieve that but at a very large scale, this is effectively the sign that natural competition is not working as expected.
The change in leadership has nothing to do with that - by all accounts it's a miserable place to work.
I remember mailing a check to Network Solutions to pay for a domain name registration.
If the tech industry crashes I'll be spending a lot of money buying tech equities
Cider (the clojure plugin for emacs) has a variant that prompts you for the the values for those variables.
Could you combine copilot with an updated linter or similar? In Visual Studio the intellisense does a pretty good job of converting my manually-typed old way of doing things code into a newer, simpler version supported by newer releases of C#.

Example:

using (var reader = new StringReader(manyLines))
{
string? item;
do {
item = reader.ReadLine();
Console.WriteLine(item);
} while(item != null);
}

becomes:

using var reader = new StringReader(manyLines);
string? item;
do {
item = reader.ReadLine();
Console.WriteLine(item);
} while(item != null);
$12.99 for a .com registration is a hilariously overpriced ripoff.
Exactly. Capitalism stifles innovation by taking resources from society and concentrating them into the hands of a few. If society was more equitable and if social safety nets were larger, we would see more people taking chances and innovating. Instead we have a society where people work under the duress of losing food and shelter, not exactly the best way to drive creativity.
> I wonder if that's due to congestion at the phone-to-tower level, congestion at the tower-to-internet level, or due to newer wireless tech just having higher peak performance at optimal physical conditions (e.g. line of sight) that are becoming increasingly hard to actually accomplish in practice?

I believe this is entirely configurable by the carrier. As others have pointed out, the primary driver of each successive generation is to support more clients. Increasing individual client bandwidth is a secondary motivation.
cloudflare sells without profit
You can essentially give values to global variables with same name as those outside variables.
I mean, isn't that sort of their whole job? I'm sure all lobbysists do it.
I'm interested in industry history, so I wonder if you can comment on how much of this, if any, came into Google from Metaweb. There are no Metaweb-connected people among the authors (that I can tell) but Warren Harris is acknowledged. Was it a language that was in development before the acquisition, or was it needed mainly after?
How does a company with a monopoly on something like this and a net profit margin of 46% on a billion dollars of annualized revenue justify an increase in an already very high wholesale price?

https://www.nasdaq.com/market-activity/stocks/vrsn/financial...
The term for this is "rent seeking". https://en.wikipedia.org/wiki/Rent-seeking
I’m starting to think this is the direction I want to go in. The butts-in-seats culture is strong here in Sweden though (strangely upheld by the butts in the seats themselves). So I’m a bit worried it will be a “dead end career wise” and not sustainable until retirement (I’m 43). Any thoughts on this? How do you find work and what makes you think you will continue to find work for 10, 15 or 20 years?
Oh nice. That's one place where Clojure beats Common Lisp then..
>If you are willing to do a lot of work yourself and value your time a $0 and aren't in a hurry, probably.

I wish I could vote you up more than once. If they are taking advantage of economies of scale they should be able to obtain for higher quality materials (and in looking over their materials this is not stuff they are buying at Home Depot). Couple that with the advantages of building all this stuff indoors, sheltered from the weather while under construction and that they can afford to create specialized jigs and tooling to not only speed the construction time but also produce far more consistent and higher quality results they should be able to do things that you simply can't do on site in the field.

Transportation of prefabbed housing has always been the major issue, which is why they spend so much time talking about how they are solving that :)
> I don't agree with the article that you should always select a relational database up front. Should Calculator really use a relational database to persist configurations? This is exactly where YAGNI applies.

I don't think this is where yagni applies at all. Either way, if you want to start storing data, you will need to evaluate it. Yagni stops us from saying "but what if, but what if, but what if!"

To decide whether we should allow storage to be a yagni exception, we need to look at what we do first. So the question is, how often are we writing Calculator, and how often are we writing an app to help organise a business?

I think the balance is on the latter side. So when we're trying to decide how to store our data, if we have strong reasons to prefer a simple text file, then we should. But by default, we should go for sqlite or something bigger.
At Bugout, we don't use docker. We deploy our code directly to machines over SSH and use systemd to coordinate deployed services, run timers, etc.

Building the go binary is not a problem, but determining how the go binary runs, what it needs in order to be functional, etc. is where systemd comes into our setup.
> By law, nobody could compete with them, whether it was economically possible or not.

Why not just fix that law now though. OP is stating that it is a profitable business. If they fix that law wouldn't there be new entrants, fixing original problem.
They might rest on their experience that, if it comes to it, they're going to be the ones doing the worst to other people.
Why does the world allow the USA govern the domain space at all? Some months ago the USA seized the domains used by Iran's IRGC, in addition the .org was almost up for grabs a while back, and now a sudden pricehike of the .com tld.

Obviously the internet has grown way beyond the powers of a relatively tiny non-profit that is ICANN so why not upgrade it into something more proper that is governed worldwide.
In contrast, check out netflix's corporate culture principles.

The first few slides call out that Enron's main 'corporate value' was integrity. https://igormroz.com/documents/netflix_culture.pdf
Horsepower Is Overrated
XBar, the BitBar Reboot
Is there a way to adapt time-series products like this to analysis of categorical data, in my case audit logs. I'd love to be able to suss out patterns/clusters/sequences but most of the stuff I've looked at requires you to do unnatural things like flip the categorical content into distinct dimensions with a calculated rate metric.
Best Buy isn't immune from this either. I tried to buy a TV from them last year - after a few days I emailed them to ask where they were and they replied to "check my account for the tracking number." Three days and another email (this time unanswered) later, I received an email stating that my order had been cancelled because they were out of stock. The same item was still for sale on their website with no mention of any delivery delay.

I would call it an anomaly but the exact same thing happened when my sister tried to buy a Switch from them a few months prior.
What is the most frustrating aspect of cybersecurity?
The religion is capitalism. Millions of people believe in it with such fervor that any criticism of the idea feels like a criticism of them personally. Any criticism of deities (billionaires) or their church (business) is dismissed as sour grapes, because our deities are always benevolent.
In that case it’s subsidized by their other offerings.
You have that everywhere, but yeah I think without a safetynet more people fight harder. So as you do not have the extreme upsides(but also not the extreme downsides) I guess we will never have the facebooks or googles here. It takes some kind of battle. Or being rich from birth and being able to hire people like that. Personally I do not enjoy that very much.
I honestly never copy-paste from StackOverflow. I go there for general pointers or look at the code snippets and will only use what I think I figured out, and then write code myself.

Even that cannot really protect me from missing things like the security implications that this blog post talks about.

In this case, I probably wouldn't have fallen for the stuff CoPilot (or an equivalent SO answer) suggested, as I learned about these kind of injection issues a long time ago, but there are certainly a lot of areas where I would fail miserably to detect subtle (security) bugs. APIs are full of subtle and often non-obvious pitfalls, and even algorithms can be, where the algorithm seemingly works except for non-obvious edge cases that you might not have considered.