skysight-inc/HackerNews huggingface dataset:
> As someone who answers quite a few quesitons on SO I'd really like to see posts that were perceived as wrongfully closed to see if I agree (haha) and also to see how to fix the system.

This person[1] was getting unexpected results when calling is_integer. According to the duplicate, the solution is that they should call is_integer... which is what they were doing. The original close voter commented 'sorry I didn't read your question properly before suggesting the dupe', but it remains closed.

The question was answered in the comments: this surprising result was due to floating point error and rounding done by the print function. However, it could not be posted as an answer, because the question was closed. I voted to reopen, but the vote failed.

[1]: https://stackoverflow.com/q/49847677/331041

EDIT: The share link I posted takes me to a different question when I'm logged in than it does when I open in an incognito window. WTF.

EDIT2: Apparently serving completely different pages to logged-in users and logged-out users is by design. https://meta.stackoverflow.com/q/271077/

Here's a link to question [1] that should work for everybody: https://stackoverflow.com/q/49847677/331041?noredirect=1

EDIT3: It doesn't work. Sorry. I tried my best, but only logged-in users will get the correct page from the links I posted.
Oh, definitely. Just thought it was something you should check out and I didn't see it mentioned anywhere.
With capitalism the value of a product or service is equal to its value to the customer. Communism on the other hand is based on the notion that work is inherently valuable. Hence, with communism the value of a product or service isn't defined by its value to the customer but by the work put into it.

While communism might appear to be more just at face value it tends to create inefficiencies, false incentives and shortages.

If a busboy gets paid the same as software engineer there might not be enough of the latter to meet the demand. This leads to stagnation and less wealth, which in the end affects everyone, software engineers and busboys alike (even though admittedly it probably affects the software engineer's employer the most at first).

Is it even just if a highly qualified person with valuable expertise gets paid the same as someone whose skills have less value?

These aren't simple problems and questions. The modern welfare state has been an attempt to alleviate these issues while at the same time keeping capitalists incentives. It's not a perfect solution but for the most part it works.

To really solve these problems once and for all we probably have to arrive at a post-scarcity situation first, where products and services are available in abundance at little to no marginal cost.

A capitalist system - perhaps ironically - might be our best shot at getting there.
If you sandbox, can you actually guarantee completion?

Some more complicated commands might depend on the contents of a file, or the permissions of the file, and an environment variable at the same time to find valid options.

Others may require accessing a list of processes running under the active user, which could only be accessible when running as the user in some circumstances.

Tacking on any kind of permission system will probably break thirty-odd years of programs, and would likely be a hack because of how POSIX is expected to behave.

Duct tape it certainly is, but backwards compatibility isn't something to hate either. We run code all day everyday. That completion runs code shouldn't be a surprise, and you need to judge whether or not you trust it before using it.
Great post! In the last part of your blog you've mentioned:
"To scale out we can increase number of partition in kafka topic and add more clockwork nodes."

Above has a limit. In general, more partitions in a Kafka cluster leads to higher throughput. However, one does have to be aware of the potential impact of having too many partitions in total or per broker on things like availability and latency.

How do we handle too many kafka partitions?
> As far as I can tell, this is basically the 32.32 fixed-point

That's exactly how I described this trick in code-comments.
I just started to pick up assembly for a fun project. Would this help to strengthen some muscles?
Take a look at this old classic 256b legend: https://news.ycombinator.com/item?id=20115022

3D, Raytracing, fish-eye effect, movement.. its fascinating!
> And I've never seen the '->' look odd in any font I've ever used.

Funny; I'm reading this in a HN android app; I don't know which font it uses but I swear I'm staring at such a misaligned example.
ok Bay Area salaries with Indian prices
I'm amazed nobody's mentioned BBC Good Food yet, literally the only recipe site I use.
"Dear Sir, I wish to complain in the strongest possible terms (...)"
> afaik it’s not formally proven that, say, there isn’t an efficient algorithm for prime factorization

Correct. AES or something is also not proven secure, we just don't know of an efficient attack on it. Since loads of people tried with significant resources, since there is often parallel discovery (so if the NSA discovers a flaw, it's likely that someone else figures it out as well), and since an algorithm is usually weakened before a complete break is found, the security community is quite sure it's secure. But it's not proven or certain.
https://github.com/axi0mX/ipwndfu/issues/141

I've been poking at this already, and I'd venture a guess that the T2 will be breakable. The reason I think the XS and later are hard is pointer authentication codes, but that's more conjecture as I don't have a SecureROM dump from an XS. Plan to examine other parts of the boot-loader like iLLB, assuming they are not encrypted, for the ARM branch with authentication instructions...
You mean, exactly the same as in any other large enterprise, private or public?

If you think everyone in the private sector is 'profit-driven', and you don't mean 'personal gain driven', which is the larger the company the less likely to be aligned with or incentivized by the benefit to the enterprise, I'm guessing you never spend time in such environments.
Well it is also burning oxygen from air which you don't carry on the helicopter.

Let me see how much high school chemistry I still remember...

CO2 = C (12) * 1 + O (16) * 2

So 1 lb of C from fuel => 3.67 lb of CO2 out

Suppose AvGas is just Octane, C8H18

C8H18 = C (12) * 8 + H (1) * 18

1 lb of octane => 0.84 lb of C => 3.09 lb of CO2

So yeah, you get 3 lb CO2 from 1 lb of octane.
I've made this point several times on HN. As soon as you suggest that this is caused by the 249 NASDAQ-traded companies insisting on being within shouting distance from each other, the downvotes come.

North America is vast and largely empty. This is a planning issue in that cities allow this sort of demand to grow unchecked.

https://news.ycombinator.com/item?id=20834469
yes, if you do freelancing
You pay once for cloud based sync instead of annually
A huge problem is salinity caused by a combination of deforestation and irrigation. The ground water is saline, and trees keep the water level below the surface. Once the trees wearere removed, the groundwater rises, irrigation water sinks down and brings the salt to the surface. Once there it's impossible to grow anything.
I find it rather ominous that they are coordinated in this too.

Not big on shadow world gov conspiracy theories but that seems rather...strange
Encouraging people to live attached to a subway and then incentivizing their usage of it, regardless of distance in almost any circumstance, is a huge transit efficiency boon for the economy.

If you price people out of the trains so they start driving cars again or even taking busses you are suddenly losing a huge amount of volumetric efficiency in your transit system.

Optimal cities can get almost everyone anywhere either walking, biking, or riding train all the time. Any requirement for road bound vehicles is an infrastructure failure of city planning. There are exceptional circumstances (moving heavy items that can't be carried) but they should be just that - exceptional, and rare.
I've been a fan of LaTeX for some time, but I've mainly switched to using Chromium instead.

Yes, it seems a bit strange, but browser engines have become mature enough to replace most of what LaTeX can do, and there are even work-arounds for things the browsers can't do natively. For example "Paged.js" is a polyfill for implementing CSS paged media extensions.

Using various Javascript (or webassembly now) libraries, I can directly render Math, SVG, musical charts, all sorts of quirky text directions etc.

There are even knuth-plass implementations in Javascript. I hope that someone smarter than me figures out how to marry that algorithm to the new CSS Houdini API!
I don't know - the news around Tesla has been about his efforts to raise capital and efforts to cut costs before the money runs out, so it sure sounds like they haven't found the path to profitability yet.
I once built an image comparison feature into some webpage that had uploads. What I did was scale down all images (for comparison only) to something like 100x100 and I think I made them black and white, but I am not sure about that last detail. I'd then XOR one thumbnail with another to compare their level of similarity. I didn't come up with this myself, I put together a few pieces of information from around the web... as with about 100% of things I build ;).

Not perfect, but it worked pretty well for images that were exactly the same. Of course it isn't as advanced as Imagededup.
We've been using Bitwarden at work, the Teams plant, paying $15 per month, or $180 per year for 10 users. The only reason for why I picked it is its open source nature, otherwise I would have gone for 1Password Teams.

The pricing is odd. For example you can't self host it yourself without paying for a license. The code is AFAIK open source, so you could maintain your own fork with the required code branches removed, if you wanted to. I do hope the author doesn't pull a bait and switch, after enough users go down this route. Don't get me wrong, I'm actually not looking into hosting it myself, I'm glad to pay for a hosted service, but with open source I want that possibility to be there and I don't want licensing per user for self-hosting either.

And currently I like what the author has been doing. Adding some code in there that makes it require a license, but that you can remove, is totally fine. But I'm seeing more and more open source apps turning proprietary nowadays and I don't look kindly to such bait and switches, because I end up using those apps because they are open source. Like it is the case for Bitwarden, otherwise there are often better proprietary options available.

From a usability standpoint, Bitwarden is unfortunately inferior to 1Password in every way. But it works fine for our purposes, for now. And Bitwarden is better than LastPass in case you're wondering, even if it has some missing features.

The official servers are slow. I just had multiple login failures. I'm assuming that it's experiencing issues due to being featured on HN right now, but this isn't the first time that it's happening.

But as long as it is _open source_ and as long as it does a reasonable job, then I'll keep supporting it. Because I'd rather pay for open source solutions.
I don't believe Almquist ever incorporated tab completion. Korn did, so a number of more limited shells may support it, but probably not ash.
Is the browser extension configuration owned by root? I thought that would be owned by your user. So the malware could modify that configuration.
You're giving them too much credit. She said she'd prefer not using pronouns at all. They said if she avoids using pronouns, she's just as guilty as using the wrong one. Then they fired/de-moded her based on her stated preference, assuming she would not follow the future rules.

They also did this at 6 pm on a Friday. She's Jewish.
The heteropatriarchy defends itself: Evolution, sexuality, and the West collide
I think many miss how dark this scene really is, just because it is so silly at the same time. I can understand people not finding it funny, and you are not necessarily missing the point the Pythons are making.
You're either at the table or you're on the menu.
You'd have to pay me to play that game.
So sure it's hardly the whole logistics story (volume, volume, volume)... but Australia is actually closer to S.E Asia (where a large volume of e.g. electronics goods are made or assembled) than the U.S.
No we brought it back because people are greedy and forgot what it did.
Wow thanks for this.

I admit, that's terrifying and somewhat mind blowing. The landing gear collapsed while it was 'parked' - ultimately killing a person a block away with the blades.
> You've said a few times that "No one is arguing for disrespect of anyone", but the case you quote does argue that point explicitly.

> He knew his stance would cause offence and even harm. His argument was that his employers should ignore that because of his convention rights to religious freedom.

Knowing that what you say may be offensive is not the same as arguing for the disrespect of someone. The judgement also does not contain the word disrepect and it is not part of his defence that it is his intention to disrespect anyone. Much as I disagree with why he's doing it, he is being compelled. Again, to compel has a well worn definition, if you will be fired unless you do certain things you are being compelled, so I disagree with your description.

I have nothing further to add.
FYI, I think that your comment has merit, but I simply can't bring myself to upvote comments that ask to be downvoted.
A Good Man Is Getting Even Harder to Find
Who would have thought that organising literally all of human knowledge in a linear Q&A format would have been so hard?

/s
The price has never been the major factor, although ridesharing certainly was cheaper than cabs in the beginning and almost always is today.
On Stack Overflow? A good question contains a reproducible problem (or at least an understandable question) and it's worded such that people with the same problem will find the question and answer by googling.

Better than that is better, but that's the threshold between bad and good.

So include error messages instead of just typing "I got a certificate error when …", because people who get the same error will paste their error message into google. Some of then paste it into bing. None type "I got a certificate error when …" into google.

Stack Overflow is about building a knowledge base where people find answers. SEO is essential to that.
Is there a library you use for the clipping, or do you have to write a custom piece of code for each site you can clip from?
Writing “open letters” always feels incredibly passive aggressive. It’s shameful to see it used as a tool of government policy.

If democratic governments want to force Facebook to keep files on their citizens for law and order purposes, pass a law that says that explicitly.

This whole “nice social media business you have there, would be a shame if something were to happen to it...” is extra-democratic bullying.
Sure. But social justice activists aren't unique in that.

What puzzles me greatly is how differently things are developing online vs in meatspace. Maybe it's just an urban vs rural dynamic.
The problem is that governments themselves undermine this argument by constantly expanding those limits until everyone is subject to surveillance at all times.

Surveillance powers that are introduced to fight terrorism or child exploitation end up in the hands of local authorities for their war against fly-tipping and dog fouling.

https://www.theguardian.com/world/2016/dec/25/british-counci...
China built its entire commuter train network in the last ~20 years from almost nothing and now have more track laid than any country by far while doing it for magnitudes less than the US.

If a country that was suffering a self-implied famine killing tens of millions just half a century ago could go from that to high speed rail across half a continent then maybe the foremost superpower for going on a century could think about building a high speed train line anywhere in this century.
At my company we're using https://camunda.com/products/cloud (non-cloud version: https://camunda.com/products/).

Some of the stack is open source.
During the summer here I was cycling in at 30c just fine. Yes you get a bit sweaty but that's hardly an issue. I think people just need to harden up a bit and bring a change of clothes
Microsoft and Google Will Become Allies in the Future
> the people who give them money

What do you think "constituency" means?
> The US Constitution explicitly makes calls to violence illegal.

Um, no it most certainly does not.
Caching and DNS.

When I was a kid, we had 721-1700, a local number that you could call for the current time. It saved you from the long-distance call to the NIST (https://www.nist.gov/pml/time-and-frequency-division/radio-s...). That seems like the local phone company was doing caching.

If I wanted to call a business (or, in many cases a person), I could call 411 (or, in a different area code, 555-1212); they would take my query, give me the number, and connect me to my intended party. Seems a lot like DNS.

So then I guess the phone companies would also not be Title II?
We live in a society based on and shaped by law. Laws and regulations are everywhere. As such it does seem reasonable to me that everyone should have a modicum of understanding of the law and legal matters work.
It really annoys me that people think child abuse is a consequence of the internet.

It's existed at a huge scale for hundreds of years, child porn production soesn't noticeably bump the needle.
That would be mid day though. The times people are commuting by bike are mostly a lot cooler.
That's not quite right. Click the link in the first sentence you're referring to for context:

> Americans who receive the earned income tax credit, one of the country’s largest anti-poverty programs, are audited at a higher rate than all but the richest taxpayers. The new data shows that the trend has only grown stronger.
assessed against what, not like they have your employment history written in stone somewhere
A few months back I took the IELTS(International english language testing system) exam. There was nothing in the entire syllabus, or sample tests I took, or the exam I appeared in, about all this. In fact I did a fair bit of practice on listening, reading, writing and speaking tests. Worked my way through some 7 - 8 workbooks. Had a good score in the exam too.

This entire thing is so confusing to a point it almost requires a fair degree of exposure to politics, sub culture and social narrative cutting across various issues just to be able to ask some one to serve them a cup of tea.

I'm surprised a language proficiency testing system, with may be tens of thousands of people taking the exam, with books, and training material designed with may be a century worth of experience from English speaking cultures across the world doesn't have anything on this. Or doesn't train us on this. There is no right way, grammatical or cultural accepted across the English speaking world to get this right.

It so confusing. At this point in time its like I have to run a rule engine inside my brain just be be able to say 'Hi $title, $name, Did $pronoun take the book from my desk'

Try filling in $title and $pronoun and see how it goes, especially when $name has a gender attached to it over entire known human history.
This sounds similar to a more recent Zachtronics game, Shenzhen I/O. How does it compare?
> which one are you going to get?

that does not really matter as long as it is consistent. If I'm doing cout << q I'm certainly just debugging or writing to some log, am most certainly in a hurry and just want to see if I'm going to get (NaN, NaN, NaN) or not.
With Bitwarden the personal account is separate from the shared Organization account.

If a user forgets his/her password, then you can always create a new account. All the collections belonging to the organizations will be there. The personal stuff is lost, but you can argue that the personal items don't belong to the organization.

Also the same user account can belong to multiple organizations. The model is different from say 1Password, where the app can login into multiple accounts.
Usually you dont own a $3m car, your LLC in Montana (no tax state) does. No need to worry about premiums, in case of a crash you use another LLC to buy and insure a new one.
In theory yes, in reality it just serves to surface the duplicates that aren’t duplicates of the question at all.

In the absolute ideal these questions would be answered instead of closed as dupe but right now it just means following a trail of dupes and closures to maybe find the answer before giving up and going back to the search results.

Instead of that, give the user the wrong answer straight away so they can just back up one to the search to continue digging
> surveillance - even and especially the very limited, court-approved, kind - is essential to law enforcement

This is a meme that keeps getting repeated by proponents of dragnet surveillance, but they're all palpably quiet after each terror event. Because it wasn't caught despite perpetrators already usually being persons of interest and subject to said dragnet surveillance.

We are far past the point of diminishing returns in terms of counter terrorism efficacy vs. surveillance cost and impact. 'Think of the children' and 'think of the terrorists' are quantifiable, provably, bullshit arguments.

There is a very real cost to widespread surveillance, including financial. You can't justify that cost with preventing maybe 1-10 deaths per year when the same marginal increase in healthcare resources would save 10k-100k per year.
This is absolutely wrong.
Could this be used to order a large set of images by similarity?
Really? To mine it sounds like a compound describing how someone with a Java EE certification just defecated all over our code base. ;)
What the US really needed, and could have been using for 30+ years now, was a reorganization away from a military industrial complex war machine for 600 billion a year to a civilian engineering corps to build up the country and provide a guaranteed jobs program for an order of magnitude less money.

I can't imagine how much nicer this country would have been with ~8 trillion invested in infrastructure over blowing up mud huts in deserts with "collateral" causalities in the millions while destabilizing third world nations into our next terrorist threat to point that 600 billion dollar tumor at next.

We should have seen everything from public development of high rise high density apartments in high-demand urban cores to high speed rail networks connecting major metro areas across state lines to dozens of recent-gen nuclear plants funded from the federal level down. We got none of that except a burgeoning debt and thousands with lifelong PTSD and crippling injuries from a war machine to make defense contractors rich burning taxpayer money.