skysight-inc/HackerNews huggingface dataset:
My favorite example of this confusion is JS and (original) Java dates:

> new Date()
Wed Aug 24 2022 ...
> new Date().getFullYear()
2022
> new Date().getMonth()
7
> new Date().getDate()
24

So 2022-08-24 comes out as (2022, 7, 24). One-based indexing for the year and day, zero-based indexing for the month.
Accurate emulation is extremely hard, even for ancient hardware. See this article from 2011 for example: https://arstechnica.netblogpro.com/gaming/2011/08/accuracy-t... It takes a 3 GHz CPU to emulate the SNES accurately. You can do with less, obviously, but you will notice differences in some games.

With modern hardware, I don't think perfectly accurate emulation will ever be possible. We don't have that for the PS2 and XBox, maybe on the original PlayStation, but I am not even sure. Emulators for modern systems are all high level, emulating API calls instead of the hardware.
Sounds like a Chromium bug, not a Debian bug--it's an insidious way to keep Google search as the default.
To answer "who removes the ether":

The value in a staking account is calculated on the blockchain as "amount staked minus slashing penalties", and this violation is automatically recorded as a slashing penalty, so the answer is "everybody"
In some languages/environments, the array is literally the same as the pointer to the first element.

Other languages are more sophisticated (like humans are!)
and can say that position 0 does not exist. An array of size 0 has no elements. An array of size 5 has elements 1at through 5th. An array of size N has 1st through Nth, inclusive.
I replaced the glued-down baggie-cell batteries in the laptop I'm currently using. It was a giant PITA, and I was very wary of burning my house down the entire time. It would absolutely be worth the cost difference to secure and protect the batteries in any other way.
This gets close. Local cable plant is ever changing and sometimes records are inaccurate.

https://broadbandnow.com/report/fiber-optic-availability-map...

https://broadbandnow.com/research/data
> ... home prices increased faster in the prior 15 years ...

Only because the averages get pulled down in places where people don't want to live. Plus effective inflation going up (you know, the inflation including housing and education, not the made up government inflation number)

> I'm not interested in debating the meaning of "direct control", but one rather direct control they have is the federal government could repeal the mortgage interest deduction. That would immediately decrease the financial incentive to buy a home therefore decrease demand and lower prices.

Repealing it would create a big advantage for investing in homes rather than buying them to live in them. This sounds to me like the opposite of what you want. But maybe I'm an idiot.

Reality: for any resource there is supply X and demand Y, in specific markets.

X > Y: it matters a lot less what the exact policy is.

Y > X: someone will be very, very unhappy.

Rent prices, what we really care about, are not determined by who owns a house. They are determined by the amount of houses.
Of course.

You've got a list of countries and are pulling each country's national flower, national bird, largest port city etc.

Without outer joins, Liechtenstein with no ports doesn't show in the list at all. Sad news for people who want to know all countries, or Liechtenstein's national bird (eagle).
I started programming in assembly, then Fortran, Algol, COBOL, etc.

0 based index makes sense to me. The memory location is offset 0 bytes from where the first data byte is stored (without getting into endianism).
Right in the beginning: "Two astrophotographers have teamed up to produce an out-of-this-world photo of the moon, capturing over 200,000 shots to create a single image."

I'm no astrophotgrapher but I'd imagine 200,000 shots takes a long time to go through.
Not sure what this has to do with my comment.
You need one more output column. The specifics will vary by RDBMS because SQL isn't that standard. The most portable thing would be to do this:

SELECT x.a, y.a IS NOT NULL, y.b
FROM x
LEFT JOIN y ON x.a = y.a;

assuming y.a is a NOT NULL column, or a PRIMARY KEY column, since PKs are supposed to be non-nullable.

In PG you could:

SELECT x.a, y IS DISTINCT FROM NULL, y.b
FROM x
LEFT JOIN y ON x.a = y.a;
You can always rip a page out of C++’s playbook:

for (size_t i = length; i > 0; i--) {
// ...
item = array[i - 1];

(This is how reverse iterators work in C++.)
The R statistical language has a large asortment of libraries and accompanying documentation.
> Mineable cryptocurrencies inject the new money to whoever mines them, which could be anyone

While true in theory, is it true in practice? Those with the most resources to mine will mine the most and thus receive the most, allowing them to mine more, and the cycle of centralization continues.

That's true regardless of PoW or PoS, isn't it?
Your argument would make sense if all I used my internet connection for was consumption of streaming media. Regardless of whether I'm streaming media or not, I'm also going to be working, chatting with friends and colleagues, playing games, buying and selling, browsing the news, etc. My streaming content just also happens to use that same communication channel.
Yeah, I would say I paid about half of their original price.
> I find that static typing means I can be more productive, because type errors are caught straight away

I agree completely. I feel like there’s a pretty common arc among programmers:

1. learn to program using verbose statically typed languages

2. discover fun dynamically typed languages, eschew statically typed languages

3. discover dynamically typed languages are a shitshow for large real-world projects

4. re-discover fun/less verbose statically typed languages that make working on large projects tolerable
The first floor in a USA building is not where a European would expect.
It's not like there's a shortage of artist-drawn/rendered yiff for all tastes to fill the gap.
Something I don't see mentioned is how over the last century manufacturers chose to use colors that would disguise the staining and discolouration caused by tobacco smoke. This is especially true of products designed for office use. The Commodore 64 is a good example.
Hope they are offering substantial equity!
I'd be more accurate to say it's becoming common for providers that compete on price to give IPv6 a price advantage. I don't use Vultr, but they seem to occasionally have $2.50/month instances with IPv6 only. Hetzner charges you $0.50/month for an IPv4 IP for cloud instances, and $1.70/month for one for dedicated servers.
Fedora did this for a while to inject the word "Fedora" into the User Agent. They eventually stopped because users were similarly spooked.
I've personally noticed that the collective upvotes start right after someone posts "why downvote" rant like gp did.
Who knows, maybe one day, all of the tensions (wars, etc.) between countries that is rooted in access to oil reserves disappear because of this.

One can dream…
> Yes, this was ad-hominem because it seems obvious the OP is not asking this in good faith.

There's nothing here that was done in bad faith and I should not need to defend myself for asking a question in a tech forum. Assuming I'm not asking in good faith is bad faith.

The reason I asked was a description pasted a short while ago:

https://news.ycombinator.com/item?id=32535409

https://news.ycombinator.com/item?id=32535912

Which included this line:

> Slashing is not meant to profitable, and the whistleblower reward is quite small. We don't need a million slashers, in fact, we could operate with just one... expect the Eth Foundation to run them, among other large players who can spare the resources.

Which sure sounds like a decentralized process that is ultimately just centralized around the ETH foundation at the end of the day.

Honestly I've learned a lot from the responses here. And I think people who assumed I was doing anything other than just asking questions because the idea I was asking about offended them are asshole. So yeah. Go pound sand.
There will be. They'll just be outside of your country's jurisdiction.
They blamed us cyclists then.

Now they just run us over (source: me, my wife, others).
That so people in this thread argue about the higher-level language (missing the point) shows that few people found access to the underlying machine code.

Which is sad, because all code is still executed as machine instructions even when the developer does not see it or does not want to care.
It’s hard to say, since I was writing the blog post in parallel as I was making the app. But not too long, maybe an hour or two? I’m not a Python/Flask developer, so I guess that’s not too bad.
What Every Brit Should Know About Jaywalking (2007)
Wow, that is cool. How do you do code coverage? Console.log() every function call?
It is my understanding - and correct me if I'm wrong - that a-listers have the leverage to move their entire catalogue over if they wish.

Could they have, en masse, done this over to Tidal? Would that have broke Spotify?
If anyone wonders why many "regular people" are uncertain about doing anything with cryptocurrencies, look at the top of this article for the reason. It's not that people are incapable of understanding the subject, but that the purveyors of the subject constantly coin new words and meanings.

* Ethereum is moving to proof-of-stake! The transition, known as The Merge,
must first be activated on the Beacon Chain with the Bellatrix upgrade.
After this, the proof-of-work chain will migrate to proof-of-stake upon
hitting a specific Total Difficulty value.
* The Bellatrix upgrade is scheduled for epoch 144896 on the Beacon Chain –
11:34:47am UTC on Sept 6, 2022.
* The Terminal Total Difficulty value triggering The Merge is
58750000000000000000000, expected between Sept 10-20, 2022.
* Note: as announced earlier, the Kiln testnet is being sunset. Operators
will shut down on September 6, 2022.
Dart feels like a lite version of C#, so it shouldn't take you too long to learn.

Performance wise Flutter too has room for improvement. Although, I don't know how Flutter's performance compares to Avalonia.

Flutter, being young framework itself, is probably more mature than Avalonia, Uno or MAUI. Also, Flutter has very good documentation and learning materials and bigger community.

When I'm working with Flutter I do miss more powerful C#, but I for sure don't miss XAML.
Any alternative to SQL has to transpile to SQL in order to gain traction.
Stack Exchange seems broken when submitting a question
Trying to submit a question and none of the buttons working. Anyone else seeing this?
I.e., a ridiculous objection that demonstrates wholesale incomprehension of the topic.

This is an example of why I expect the language may still fizzle.
Go MultiModule Workspaces:The Easy Way to Build and Run Code in Multiple Modules
If he took them while he was still President it was perfectly legal to do so in any manner he chose. His mere act of doing it made it official policy because that was his unique Constitutional power. The next President can create new policy, re-classify information, etc. The only real risk is if Trump perjured himself or something about the docs when asked. All of his property is secured by the secret service. The idea that anything at Mar-a-Lago was stored in an insecure way is preposterous on its face.
Sounds like it applies to all loans currently in repayment at the time this goes into effect, so if yours are in repayment, they will probably be eligible. (Or I guess, would be in repayment without the current pause.)
So I go to college. The real cost is $8000/year. That's $32,000 in cost for 4 year degree.

Then I pay $1461.40 in taxes a year for 40 years (we'll control inflation at 0%, otherwise both my income and tuition rises) while I'm working, assuming I retire at ~62 which is fairly typical. I just paid $58,440 for $32000 of college. This is a good deal why? I was better off when no one was helping me.
nope, still other alternatives requires some invest in integration and onboarding
I think that's a different article than the 10x article. Different pictures.
If I care about apples (for my lunch, or my store), I care about the difference between having 0 of them and not having bothered to count yet.

0!=null
YouTube to show ads educating users about fake news
Author here. I hope the article didn't come off as me claiming SQLite is underrated. I find that it's a great piece of software for understanding database internals. There's not a lot of moving parts or abstractions in between the API and the raw bytes on disk -- at least not compared to other databases.

Technologies have waves on HN. A couple years ago there were a ton of Go articles. Lately there's always a Rust article on the front page. Right now, I feel like SQLite is a refreshing escape from many of the complex deployments that have been in vogue lately.
I agree!!! this is my pet peeve as well, and I sometimes fantasize about ripping into PostgreSQL and adding column-minus.

One wrinkle: computed columns would interfere with query optimization. That said (and here I speak heresy) there are times when syntactic convenience trumps performance.
You're missing the point: until you have typed the FROM TableName t in your IDE, SELECT t.<press tab> can not do autocompletion. That has nothing to do with whether SQL supports querying metadata (the ANSI portable way would be through INFORMATION_SCHEMA btw, not DESCRIBE). It's a consequence of the brain not responding to think-ahead queries by the IDE.
> I don't have a Google account. I don't have a Facebook account.

They have shadow profiles of you.
That comes from C’s standard library (and presumably from somewhere else before that). Classic bad design, took a very long time for people to figure out it was unhelpful and dangerous.
I can only speak about render.com which I've seen recommended several times. I was thoroughly unimpressed. Heroku is my go to when I want to spend no more than 5 minutes getting a microservice deployed. Otherwise I would use DO. Render seemed to be the longer and clunkier experience of DO without the benefits of DO.
Yes, and this is why this one-graph-for-everyone makes so much sense for forums.

The Donald was genuinely popular. Some people didn't want it to be, but it was. I believe that this contributed more to its banning than any incidents relating to it.

The problem you're bringing up isn't really a solvable problem unless you have a human secretary as intelligent as yourself, and then it would be as appropriate for you to be the secretary for the person you'd have as a secretary.

Curation by some entity is going to involve being manipulated, which is very dangerous.
my understanding of helmet studies is that wearing one might help when you fall, but makes it more likely for someone to hit you.
I have an exceptionally hard time with the value proposition here, for either streaming or cable.

$90/mo is about $3.00 a day (streaming) and $80/mo is about $2.66 a day (cable).

I have a life, I don't have time to watch something every day. So maybe every other day, or every 3rd day. That has me paying $5 or $6 to watch maybe an hour every other day. There is nothing they can show me that's worth that - my time is too valuable. And really, I watch something maybe 4 times a month, and that breaks down to $22 a view. WTF.

So I have Netflix DVD, and that's it. I watch a movie every once in a while, and the rest of the time am out and about which I'm fairly certain is a way better use of my time from just about every perspective.

My questions becomes, why would anyone pay this much?
I think you underestimate the number of iphone/ipad users who would switch browsers if there was a meaningful choice.
Make Poker Fun Again
I don't think it's necessary incorrect to start at one there. If someone asks you to count out 3 seconds, you're going to say "one one-thousand, two one-thousand, three one-thousand" and only at the end of the "three one-thousand" will you have considered the 3 seconds to have actually elapsed. Basically you're already accounting for the time it's taking you to say it. Which to me seems better because if you do it the other way because it gives a better heads up as to when that second has been reached.
Reporting that there is a policy is no bug, but maybe there should be a way to signify that it's customized by your software vendor (i.e. signed and keys are compiled in) and that it just sets the default search engine.

Chromium does change the message to "This device is managed by <google workspaces domain>" if attached to Chrome Enterprise.
What kind of society allows someone to use an incredibly noisy and obvious tool like an angle grinder in public, then ride off on a bike? Does everyone just walk by because they're afraid to get involved?
I meant electricity cost, on average, is ~ 5k USD. I didn't factor anything else, like cost of hardware, rent/location, living expenses etc.
Money is fungible. Forgiving someone of a $10K or $20K loan is the exact same thing as sending them a check for the same amount. At least some of them will go out and buy a car, boat, RV, or something else that has the same payment as their student loan and feel (rightly) like the government just bought them a new toy. You can pretend that it won't have any effect on inflation, but it will.
Quick correction for anyone searching: it's `tokio`, not `tokyo`. [0]

[0]: https://tokio.rs/
You can make a case for the idea that if art is not paid for then you’re eventually stealing from content creators.
Preparing for the wave of open source funding
As a not well off person with a gaming computer with power included in my rent, I don’t have 50,000$.

Shrinking the number of people with the financial means to contribute doesn’t seem like it’s going to result in decentralization.
You seem quite certain of your opinions, especially that Rust will fizzle out. I'll bet $100 that in 2025

- it's still used at Meta, Google, Amazon and other large companies. Once a language gains critical mass at a large, profitable company it will be maintained one way or another.

- It will be used in the Linux kernel as well.

If you have any other objective measures of usage/popularity/usefulness, I'd like to hear it.

> In any given week, more people pick up C++ or Javascript to use professionally than the total number now employed to code Rust.

If you can tell me how you measure this I'll take a bet that this is wrong as well.
Mozilla's never been the same since they started putting bugs in Chromium
The US can't even provision 100% capacity because of BANANA, let alone over-provision.
Which car companies aren't ready for this yet? The writing has been on the wall for some time now.
Something akin to this is coming in ios16.
> It's illegal to assassinate even mass shooters in the US. It's only legal to kill them in defense during an active situation.

A drone strike feels like a pretty active situation no?

I'm not being pedantic, just pointing out that there is a ton of grey area that your statement doesn't account for, and we'd need to dive into the details of this situation to determine whether the assassination was justified or not. Even then, it would mostly be a qualitative judgement.

For example, let's say you had credible information indicating someone was going to bomb and elementary school, and you saw them running down your street towards one such school. Would you shoot?

What if, same situation, but you saw them riding a bike or driving a car toward the school? What if you had no idea where they were, but someone told you they'd be in a certain location before the attack and you could only get a drone to the location in time?

I'm not saying the gov was wrong or right with Anwar, just that the arguments presented here fail to account for real world complexity.
I'm getting: 404: NOT_FOUND
You are assuming that everyone who is having student debt forgiven/paid off by the government has or would have earned the money in question and can now put it into the economy. If that's true then the very reason for absolving the debt, that these people cannot afford to repay their loans, was a lie. More likely they really don't have the money, we're bailing out financial institutions (yet again), and the people who couldn't afford to pay their loans still won't be able to afford to generate enough economic volume to offset this.
Most of them are by the same author, who created the litestream.io project and has since been hired by fly.io to continue working on the project.
Yes, but there are layers of badness.

An update might break the feature I need, or change something my workflow depends on (more common). I'd rather wait for blog posts with workarounds/fixes. As it tends to be extremely time consuming to fix it myself (as it's often outside my domain).
If the goal was $300B in consumer spending, then they should've just given a tax rebate to everybody below a certain income. Instead, this penalizes students who paid off their loans and non-college graduates who might've taken out loans to setup a service business like electrician or car mechanic.
I used to read articles about areas where I knew a lot and say to myself, "man, every detail in this article is wrong!".

Then I would read the other articles in the same paper assuming they got everything right about those subjects I knew nothing about!
Why would you ask Hacker News commenters instead of just reading news sites?

Nobody here on HN has any special insider knowledge from the Biden administration that isn't being reported publicly in the news.
To get 100k random rows in T-SQL it's:

SELECT TOP (100000) * FROM tblNm ORDER BY newid()
In windows its just

right click on desktop>Display Settings>scroll to bottom>Advanced Display Settings

Then select your monitor in the drop down and the refresh rate. Which is negotiated by the monitor and the video card. I suppose unplugging and pluggin the cable back in may help. But ive changed cables, bought new ones, tried adapters to change the type (ie: hdmi to DP etc).

Its just something with the display. And Im too lazy to bend over and unplug/plug it in, so i just do the refresh rate trick.
Or don't turn of the reactor so the reactor can power itself.
Because otherwise you would be wasting a perfectly good number for no reason, which means you need to use more bits to do the same thing.

To write 4 numbers (including zero) you only need two bits

0: 00
1: 01
2: 10
3: 11

To write 4 numbers if you avoid using the number zero, you need three bits

1: 001
2: 010
3: 011
4: 100

If you extrapolate that a little bit, you'll realize that you'll need two bytes (1 Byte + 1 bit from another byte) to store the indices of an array with 2^8 elements, which is just dumb.

Some of you might be thinking: you don't need to store it the same way it's written, you can just substract 1 from whatever the user typed and convert it behind the scenes.

Yes, you could subtract 1, but then you would be making the whole system more complex, opaque, and unelegant, while hiding information from the programmer for no good reason.
Implementation matters for performance, but even beyond that, the interface matters for users. 0-based offsets are convenient for users doing math on indexes.

A pointer is just one kind of array-like indexing scheme. Good pointery languages will distinguish Address from Offset from Integer.
> Something has deeply deeply changed in society for a fertility rate to go from 6 to 0.8 in 60 years, the living memory of a single life.

Industrialisation.

The UK began industrialising in the mid-to-late 1700s. Western Europe and North America got going in the early 1800s. Central Europe and Japan followed along, while Russia didn't really industrialise until the Soviet Union. China and Korea, by contrast, just started in the 1950s-70s, easily within a human life time. Their societies made the leap from subsistence farming to CPU design _so_ much faster than most of the developed world, it's unreal.