skysight-inc/HackerNews huggingface dataset:
What you suggested is definitively a good idea and closer to the spirit of the free market.

But lets take a closer look at the Comcast subsidy. Why is that not a solution based on the free market? It's because there is no reason for Comcast to actually provide the value it promised. It's a monopoly and if there must be a monopoly then it should be in control of the government. Did the government become an investor in Comcast and receive voting shares to steer the company on the right path? No? You just donated money to the owners of that business. Don't expect anything in return.
Sounds perfect for Rust. :)
I think it's very good that you have them, so at least a select few people can get a second chance. Instead, you should get rid of ridiculous penalty stacking and plea deals, an often obviously unjust justice system, and a penal system that systematically violates the most basic human rights and standards of decency.

No offence, but most of these pardons make perfect sense. Unfortunately, Snowden, Ulbricht, and Assange were left out.
Does anyone know why lockscreens in Linux have been such a joke? I remember trying Ubuntu couple years ago and when waking up my laptop it would show me my entire desktop with all the information displayed right there in the open for about 10-20 seconds before suddenly engaging the lockscreen. All you had to do was close the lid and open it again and you could just copy whatever was on the screen before the lock screen appeared. I guess it's because the lockscreen was a separate process that had to start up? Still, what an awful awful design.
> Or are you suggesting the second we know the winner the previous president should be booted out?

I think GP is asking why it's 2 months instead of something like 2 weeks.

> Or are you suggesting the second we know the winner the previous president should be booted out?

It's not a terrible idea to prevent them from signing new legislation or doing anything else of massive importance. If it was worth doing, it should've been done before the election so that voters had all the information before casting their votes.
AirPods Max teardown hints at secret feature Apple didn’t tell you about
Fuzzing ( https://en.m.wikipedia.org/wiki/Fuzzing )
Steve Banon has been pardoned. Stay tuned…
I kinda take issue with his complaining about referring to Dijkstra's argument as being an argument from authority. Dijkstra makes a pretty solid case in his writing, it's not just about him being Dijkstra.
Just shows that you didn't understand their paper then, if that's your disingenuous take on it.
SpaceX acquires former oil rigs to serve as floating Starship spaceports
Fun analysis.

I would've assumed maternal aggression would come with vocalizing + threats, but here it says not?

It says this:

>Maternal aggression in rodents, like predatory aggression and unlike social aggression, is _not _accompanied by a cortisol response, elevated arousal, or social signaling (threats).

But I've seen plenty of videos of animals being territorial where people say "oh they're guarding their cubs, stay away". But maybe they're talking about conspecific aggression? It feels like maybe an over-broad generalisation to me. I wish I knew more about animal behaviour that I could judge for sure...
Not always, I've used bytes to store indexes to arrays of 256 elements. The length doesn't have to be the same narrow type as the indexes.
The clients would just send ajax queries with range headers to get the parts of the database that they want.

It is going to be read only.

Locking wouldn't be problem because in the eyes of the
sqlite running in the browser it would have it's own read only copy of the database.
Ask HN: What is this scam and how to fight/prevent it?
Hi,

I found out that multiple websites claim that they are owned and operated by... my own company!

All of them are webshops selling clothes/jewellery.

Obviously I have nothing to do with them but unfortunately my company now is associated with these dodgy websites... some of them use Shopify and others use a thing called Shoplazza.

It looks like many other companies are affected by this scam, just google "not a returning address" and you will see...

What's the best way to deal with this? Any help would be appreciated!

Thanks
I have been invited to one of these “team” zoom games with my fellow devs and other teams.

While everyone seemed to enjoy the game, I felt bored and that I was wasting my time. I didn’t want to break their fun by quitting the game so I had to play for a whole hour.

It was a bitter and ridiculous experience and not joyful at all.
> This is really the first moment Windows got protected mode support, although none of the user processes actually saw the larger address space.

What about the 286 protected mode support. Did that come later?
Isn’t that a one sided expectation though? Timnit Gebru publicly tweeted about this second activist losing email access. By calling Google out in such a public manner, I feel like Google is forced to respond publicly, to set the record and prevent the early viral spread of these activists’ one sided take/misinformation. Otherwise what happens is journalists like Kara Swisher source entire stories from these activists, plaster it across their platforms, and Google then faces another manufactured outrage PR issue.

Edit: another comment here also claims that Google’s statement was made because Axios reached out to them regarding this story after Timnit Gebru’s tweet. So there you have it.
It isn't built on top of a Debian or a rpm based distro. It is a separate distribution itself: https://nixos.org/

But you can try it's package manager nix and it's package set nixpkgs in any other Linux distribution.
Time to make a joke about Windows lock screens? Or perhaps not...
Bad design in X11 which can't be fixed.

https://news.ycombinator.com/item?id=25801693
There were massive amounts of cheap (and cheaper) labor elsewhere. What happened to those places?
Can someone explain why it's useful? Normally I start a new MC server in a minute on a bare metal machine with Java installed. This includes starting a new Tmux session, copying the template directory and editing server.properties.
I'm also only commenting on what the parent wrote to be fair. My point is that being disappointed not to be involved in a death - as that comment suggests - is a level of callousness that goes well beyond accepting the cost of progress.
>people protesting
>terrorists

Pick one
Dismissing researchers as mere activists is a criticism made from a place of ignorance. Maybe you should learn a bit more about the topic before spouting off?
> It works mathematically better with some of the most common operations on array offsets

The problem is that for every formula or calculation best suited for 1-based indexing, there is another which is better implemented using 0-based indexing. Regardless of which indexing mode you are using, peppering your code with +1 or -1 is eventually inevitable. It's why I think the choice is a matter of preference and has little to do with technical reasons.

Overall I still prefer 0-based indexing - a few bytes of RAM is cheap nowadays, when the calculation can be simplified using 1-based indexing, deliberately not using [0] and pretending that the array begins at [1] is often an acceptable option (the trick was originally invented for porting Fortran code...)
>Anthony Levandowski, 40, was sentenced in August to 18 months in prison after pleading guilty in March. He was not in custody but a judge had said he could enter custody once the COVID-19 pandemic subsided.

That's the part that caught my eye, not Trump's pardon.

So that's how rich people are treated by the court system...
So? With 0-based indexing, the length of an array falls outside the domain of the index type.

The number of times either of these properties has mattered for me also cannot be represented in the domain of 1-based indexes.
> I think what’s happening is the author tried a web URI that had an ampersand in, Bash then background the process and the author panicked thinking the Go runtime was parsing the ampersand rather than his or her $SHELL.

Yes, this is exactly what happened.

The author says this is one of their first Go projects, which explains their misunderstanding. They still have a lot to learn, not only about Go but Bash as well.

That being said, I am happy to see new programmers learn new things, especially in one of my favourite programming languages.
It works in the movies
Automated Trading Strategy in Python?
I think I will always struggle to understand the popularity of the term serverless.

From the two definitions found in https://www.sqlite.org/serverless.html

classic serverless --> "embedded database" exists and is often used

neo-serverless --> I suspect that this is a marketing term used to attract cool people to new cloud offerings (like "jamstack" for services such as netlify). There is no good replacement here because the term was tied to this new kind of infrastructure really early. But anytime I hear someone repeat "of course serverless does not mean there is no server!" I die a little more.

Naming things is hard but at least we ought to try to come up with terms that are not blatantly misleading.
Great work! I like it!
I remember the tweet from him mentioning the "Hacker news haters" when we dared to discuss doubts about Theranos here.
> distinctly at odds with his own usual profile

This is a picture from today.

https://x0.ifengimg.com/ucms/2021_04/C5A7B512BF72106A6497177...

Same event from 2019.

https://static01.nyt.com/images/2019/09/10/world/10alibaba/m...

He upgraded from sweatpants to khakis. I think people are over reading the situation. All the usual factors that gets someone disappeared is not present with Ma's current faux pas.
So we start adding sqlite.
Then comes some sort of small framework for templating.
Then we add session storage.
Then we add an api endpoint so we can serve a SPA.
I think after that it's really time to create a VM in sqlite so we can emulate linux and run somethings else in the 'serverless' endpoint
Is a lambda easier to configure and set up? With Elastic Beanstalk and flask (and the sample code they provide) I can get an api running in a few minutes..
Hacking (in the modern 'computer' sense) has been used since at least the late 50s and early 60s and used to mean experimenting with any technical machine or system. It wasn't until the 70s when it primarily became connected with programming.
In middle school long ago, I was using one of the library search computers. They ran Windows XP and were locked down to the point where you couldn't open anything except the software that was running and you had no access to the desktop. One day I was rapidly mashing the "Search" button in the native book-searching software they were using - for no reason at all - and it suddenly opened an Explorer window out of nowhere showing everything in the filesystem. I could reproduce it easily with rapid-enough clicks. I still have no idea why that happened.
What Drives Polkastarer (Pols) to Rally Five Fold Since December
Skyrim Can Run at 60FPS on PS5 with One Simple Mod, Doesn't Disable Trophies
Indeed, months are 1 based, but it's never been a problem to eg compute which month it will be, say 9 months later: just sum and subtract 12, no need for a real modulo computation. It's probable I've never found it annoying because I don't need to perform this computation with more than 12 months.
A while back, I wrote a blog post elaborating on point 2 and inclusive/exclusive indexing and slicing, but it didn't get any traction on HN: https://nyanpasu64.github.io/blog/the-gridline-mental-model-...
I truly hope that most laws have some basis in ethics where getting people killed is unethical.
I that actual backslashes I spy in there?

Jeezus.
The Guardian at it again: The title is obviously trying to hype the gay angle while the rest of the article, from the beginning, has nothing to do with that.

A better summary of the issue (still from the article):

"Many Indonesian social media users were furious, saying the graphic designer was showing off living and working in Bali without a proper visa, and encouraging travel during a pandemic."

...

"Her tweets referenced her e-book costing $30 and a follow-up consultation for $50, indicating she was working without a business visa. “She is suspected of carrying out business activities by selling e-books and put a rate for consulting [about] Bali tourism,” Manihuruk said."
do you have metamask installed?
Reddit ELI5 – Why is light alwaysmoving
"Dog whistle" is a term bat-shit-crazy people and opportunists use to mark whoever they like on anything they can drum up.

"You think what he said was inoffensive? That's because it's a dog whistle!".

It's not that some dog whistles don't exist (e.g. upon secret societies, etc). It's that it's used as a weapon with the flimsiest of excuses.

It's the 2020 version of "Have you stopped beating your wife?" question.
Because X11 is such a joke. The problem is solved by wlroots and layer-shell, other Wayland compositors probably have similar things. Swaylock works 100%ly reliable until now (For me). I had problems with every other X11 screenlocker I used in the past. My unusual setup with a docking station and two monitors on it often caused crazy bugs.

Edit: For me stuff
X11 design flaws you say?

https://github.com/swaywm/swaylock/issues/162
https://github.com/swaywm/swaylock/issues/158
https://github.com/swaywm/swaylock/issues/10
I'm interested but rather reluctant to give my email address to a website that doesn't show at least a sample of what is offered.
If you looking for a niche feed, you might want to check out a general purpose feed generator rss-proxy [0]. It even supports JavaScript rendered pages.

[1] https://github.com/damoeb/rss-proxy
correction:

> other mainstream languages
I wonder if the 2021 version would have much different; were there known "re-education" camps then, etc?
Except social sciences aren't 'purely' theoretical. It's why it's sometimes called human science. There is a prominent human, and humane, part to it. It's a study of the human condition to some extent and it can't be separated from it.

As for your second point, that's true, but it's also why research is always open to criticism. Casting social scientists and ethicists in this case as activists feels like a political swipe.
Also a fun read, the abdicated Spanish king Juan Carlos secretly fled to Saudi Arabia, because he is investigated for money laundering/tax evasion back in Spain: https://www.dw.com/en/spanish-former-king-juan-carlos-i-pays...
What this argument misses is that the supplier should be paying its adult employees living wages that are sufficient to pay for the upbringing of the employees’ families. This is especially true when the customer is the richest company in the world that likes to engage in virtue signaling on various other topics.
And if you make the okay sign while posing next to celebrity Steve Bannon, it's up to you how you control your messaging, and it's up to the audience to make a judgment call on receiving your message.

On a more lighthearted issue, Ray Bradbury once abruptly left a guest lecture because students wouldn't agree on themes for his novel. Does a man own his own words? And does a man's meaning belong to him as well? Or is it like sand through one's fingers?
I've seen Windows do that too. It's not just Linux.

My guess is that these lock screens are all bolted on afterwards rather than being in the design from the ground up.
Even in the kindest philosophies, forgiveness is conditioned on some kind of regret for the crime (if indeed a crime did happen). Almost none of the people on this list are repentant for their actions - if anything, many are defiant - and I see no reason to forgive them. It may be a kindness to them, but there is also a problem of kindness for their victims.
I store all my data (including photos and documents) on a encrypted external drive because I don't have enought space on my machine. With Beyond Compare I sync all files that I need from this drive with my machine.

This harddrive is backed up a few times in a month to another encrypted harddrive via a Raspberry Pi Server in the LAN. On that Raspberry Pi also Nextcloud is installed to allow syncing specific files with other members in the house.

The first harddrive that is connected to my machine directly is also backed up to another drive once or twice a year.
ok well when you say X does not get to determine Y it implies that there is someone who gets to determine Y. I had difficulty imagining anyone who should be allowed to determine Y in this case, unless it was some theological concept, so I wanted some clarification of your position.
Why, sure they are.

They censored the president under phony pretenses. They've censored Senator Hawley's book. They censored other government officials from even uttering the name "Eric Ciaramella", even though he was certainly not a whistleblower and even if so, not legally entitled to such a level of privacy.

But to be more accurate, they're censoring non-liberals. This is evidenced by the fact that actual dictatorial regimes with many many violent deaths on their hands are allowed access to those avenues of communication without a fraction of the editorial control than was the President of the USA.

Other politicians, who have the "D" by their name (the government equivalent of a blue checkmark apparently) are allowed to spread hoaxes and lies for years and call for harassment and violence towards their political enemies, and big tech allows it to stand. Because they agree with it.

One only need to see the Googlers crying in the hallways after Hillary's defeat in 2016 to know why. They got their feelings hurt and vowed to never let it happen again, by any means necessary. And they are people with significant means to control what you may or may not say in the digital public square, if they don't simply decide to unperson you entirely.
I've also tried full-text-search in worker by pre-indexing the content, works very fast even with a JS engine - less than 5ms to make a search in 5MB of text.

It runs out of CPU-time at 6MB of index though.

There's someone that made a WASM for full-text search too, it's definitely faster and can handle quite a lot more text.

https://github.com/wilsonzlin/edgesearch
That's true but since danbooru relies on manual uploads by fans who liked the pictures anyway, it isn't much of an issue.

There are other sites with more female users (eshuushuu and zerochan iirc) but danbooru's data is better because of a combination of 1. not allowing horrible poorly drawn fetish art or selfposts 2. ignoring the fact that most of the good artists don't want to be posted in the first place.
>A tolerant society means no tolerance for terrorists.

Ex CEO of Mozilla and current CEO of Brave has been removed from Mozilla for donating his private money to some conservative same-sex marriage organisation.
I think this is more of a hello world demonstration rather than an example of where these tools are useful.
slock has never surprised or disappointed me.
Empowering Analysis with Online Public Sentiment Data
If all these people are worthy of pardons, doesn’t that mean the justice system is fundamentally flawed?

How can it be that Presidential pardons are correcting miscarriages of justice?

And if these cases deserve reversals of miscarriage of justice, then doesn’t that mean that all over the USA thousands and thousands of other people deserve the same?
That's some hilariously vacuous reasoning. What's your thought process there? People are complex, just because you don't like them doesnt give you the right to judge their every action in the worst possible light. That's intellectually unsound.
0-based indexing with closed intervals is better for slicing. This shouldn't be controversial. It's because you can represent a zero interval cleanly: [3,3) is an empty interval after slot 2, representing a single cell is [3,4).

This has two nice properties. One is that two slices are adjacent if the beginning and ends match, and the other, far more important, is that the length of the slice is end - start.

That's the one that really gets us something. It means you can do relatively complex offset math, without having to think about when you need to add or subtract an additional 1 to get your result.

I use Lua every day, and work with abstract syntax trees. I mess this up all. the. time.

Of course you can use closed intervals and stick with 1-based indexing. But for why you shouldn't, I'm going to Appeal To Authority: read Djikstra, and follow up with these.

https://wiki.c2.com/?WhyNumberingShouldStartAtZero
https://wiki.c2.com/?WhyNumberingShouldStartAtOne
https://wiki.c2.com/?ZeroAndOneBasedIndexes
Since I don't know the man, I prefer to be charitable and am willing to assume he was just being inept in his choice of phrasing rather than assuming he is evil.

I worked on the stab trim gearbox design for the Boeing 757. That gearbox is "flight critical", meaning total failure of it means a crash. I'm very proud that the stab trim system has never caused an accident in the service history of the 757. (Of course, the design was an iteration on the highly successful 747 equivalent, not anything revolutionary.)
Even if it were true that True Disruption => Illegality (it isn't), it does not follow that doing illegal things makes you a genius disruptor. Levandowski's crime was not his disruption, it was stealing code from his former employer for his own personal gain.
Monopolies form because there is no upper bound to how big a company can grow. Eventually it will be as big enough to serve the entire market.

In a free market you can still have the government as a market participant of last resort. You don't have to mess with the market itself. If only one company is needed to serve the entire market there is no reason for the government to not own a large share in it and steer it. The threat of government control should be a good incentive for companies to not grow too large relative to their competitors.
> When's the last time you've seen high quality karaoke on fansubs?

Killing fansubs was worth it to stop people from adding "creative" exploding lyrics all over episodes that didn't come with them in the first place.
It's on Windows, so yes, path are displayed with backslashes.
Recording Industry Association of America. It doesn't represent artists, it represents organizations that publish and distribute music.
Fire brigades didn't stand by idly studying from the 17th century until now to act against fires.

Ethics is an old field, and also one that's been applied for a long time. It changed too. For the better even -- since social Darwinism was seen as ethical to some extent at the start of the 20th century.
> Your (1) only affects compilation time, [...]

No, it mostly affects execution time. Whether the effect is meaningful, however, depends on various factors.

> [...] and even this is assuming a particular implementation of arrays (which is not a given).

Eventually, all arrays boil down to pointer+offset memory accesses. Well, if your programming language internally implements "arrays" as hashmaps, then you've already lost performance-wise, of course.

> Why would you need to use "modulo and division into round/ceil/floor" on array offsets?

Whenever you're working with 2D/3D data in manually managed memory.

> How often you do it?

When you're writing web services? Probably not so much. When you're doing image manipulation or 3D graphics? All the time.
> As it turns out, such a thing is no more possible than flattening an orange peel, because color perception is inherently non-Euclidean. To put it another way, the ratio of perceptually distinct steps around a hue circle to those directly across through gray is greater than would be expected as a circle in an ordinary Euclidean space.

What if instead of cramming the non-Euclidean space of perceived colors into an Euclidean space and interpreting straight lines there as gradients we used geodesic curves in the original non-Euclidean metric? Are there efforts to explore this area?