skysight-inc/HackerNews huggingface dataset:
After some trial and error, I was able to make the following bash script, which will take the X clipboard selection (containing math operations you want to perform), run it through bc (to do the math), replace the X clipboard with the result, and paste it, overwriting the previous result:

output=$(echo "$(xclip -o)" | bc) # take the X clipboard and run it through bc
sleep 0.2s # wait before continuing or else this won't work
xdotool key BackSpace # clear the selection
printf $output | xclip -i # write the output to the X clipboard
xdotool click 2 # paste the result by clicking the middle button

I set this as Super-E on my computer and probably will use it every once in a while for programs which don't implement math input.

In other words, with this you can select text containing mathematical operations, press a key combination, and the selected text will be replaced by the result of the math.

Improvements welcome. There probably are better ways to do this.
Ask HN: What do you use for app authentication?
I am building a react native app - I am looking to see what oauth AuthN/AuthZ options are out there. I have come across and used Amazon Cognito before and AppSync/Firebase but I am more looking open source options out there.
https://en.wikipedia.org/wiki/5D_optical_data_storage
Does it though? Using a VPN for access to internal infrastructure doesn't mean said internal infrastructure is insecure or authless itself. As in, defense in layers.
Yes! Hence the "slightly" modifier. :)
Isn't that a broken window fallacy? Once the time and money has been wasted what are the actual odds the customer will just turn around and go "Let's try the same thing with someone else. It's bound to work someday!"? Most likely the opportunity is gone, and the only winner is the shoddy consultancy.
Indeed. It seems pretty clear that Russia will want another Crimea style victory, and with an extraordinarily strong ally in the Whitehouse it makes sense to lay the groundwork for that now. (I'm not exactly sure how this will work since this time both sides have strategic nukes.)

https://en.wikipedia.org/wiki/Sino-Soviet_border_conflict
The only people who lost money during the bid dry-up during that uncertainty were the people greedy enough to sell. I have no sympathy for people who try to time the market on bad news. Fake headlines is part of the bargain.

To be clear, that value wasn’t erased. The market makers just lowered their willing bid during the uncertainty.
It's a bit sad but not unexpected. I rode on two 747 flight in my life, both pretty memorable. Maybe the mourning for these planes is less about the planes but the kinds of epic flights most people would hop on them for. I rode one from LA to Auckland and back, as well as Chicago to London. Both very memorable trips for me. I'd always choose to ride one when I could. There was a sense of, maybe wrongly, safety in the jumbo having been around for so long, carried so many people safely. Yes they crashed, but most often from what I recall at no fault of the plane.
hubspot, zendesk.
Then presumably those ships doing Vancouver-Hawaii are "ocean liners" in that sense, and the QM2 is by no means "the last running ocean liner on Earth"?
... and (C) I was commenting from my phone.
It’s right in the article naming Deloitte specifically:

> “ "Deloitte also faced blowback in 2013 for an unemployment benefits system it built in Massachusetts. There, the benefits system arrived in 2013, two years late and $6 million over budget—only to be filled with glitches that erroneously cut workers’ benefits, according to the Boston Globe."

Deloitte delivered a major project way behind schedule, over budget and full of defects.
source https://m.youtube.com/watch?v=_c-E_i8Q5G0 . The video is just as horrifying as the George Floyd video
> Three examples from the front page of the NY post right now.

So does the NY Times, cf. the whole Slate Star Codex failure...
The video of this is crazy. It looks like a Hollywood movie.
The risks involved with executing code are legion, and wanting to promote cultural change in the direction of better safety isn't invalidated by pointing out failings in other areas.

> Downloading a large script and reading it before running it in bash is also hardly good security measure.

> It's much more practical to teach people how to recognize trustworthy sources, and how HTTPS works. Or you can switch to a platform like iOS where there's complete control, sandboxes and reviews.

Downloading bash scripts and inspecting them before running is definitely a good security measure, as is running untrusted software in a VM or container where possible, and generally promoting caution when running anything acquired from the Internet. Even if the source is considered trustworthy there is still the possibility that it has been compromised. npm, pypi, and even the Linux kernel source tree are all examples of this.

In this particular situation the use case is extremely weak. The problem is solved by incorporating dependencies locally, as I pointed out above.
It's not about the apology, I think. It's about the fact that in order to issue am apology, the thing you are apologizing for must be out of the ordinary.

Call Trans could issue an apology and it wouldn't help. Because they would just have a daily apology log filled to the brim.
I have just today discovered Auth0.

I have read some of the tutorials and find it very developer friendly.

Will comment later once I have actually tried it.
Of course he can. He ordered the assassination of Soleimani in Iraq that could very well have led to a war.

Wars are the result of a series of escalations. It doesn't take a lot to knock over the first domino.
My understanding is that intellij is the main IDE and other ones are “crippled” versions of a Intellij. In other words, jetbrains really only builds one IDE, but disabled parts of it to create the “sub” IDEs.
My first claim is that the side which is (basically) using human decoys/shields is morally responsible for civilian deaths, which I don't think you've demonstrated to be false.

My second claim was overbroad; I meant it in the common sense of talking about the third Geneva Convention relating to PoWs, but I concede that I didn't specify that, though I could argue that North Vietnam was effectively not bound by the Convention (thus excluding their nationals from protection).
Elasticsearch Python client now supports async I/O
I’m not a rust programmer, reading your explanation here it’s not anymore clear why some macros exist (println for instance). They very much look similar to functions in most of the cases I’ve seen (again from the perspective of trying to find a reason besides safety to learn rust) so why exactly do these exist? They are a great source of confusion for those of us with C/C++ experience (or at least me) which is the target audience.
At this point in the internet there are literally thousands of Youtube videos, Quora threads, and various other articles debunking the myth of Japanese swords. It is really just another example of the myth of the exotic Orient.

Here's one I picked at random to get you started on catching up:

https://www.quora.com/Are-Japanese-swords-overrated
What are your thoughts on newer ML based approaches like MITs "Eye Tracking for Everyone"?

https://gazecapture.csail.mit.edu/
All of this, although 30 commits is getting a bit extreme. If you can write 30 commits, each with its own tests, your PR could almost certainly be smaller while still delivering value (not dead code). But I regularly end up with 10 commits in a PR.

One major benefit is bisecting. I often don't find I've broken some automated test until I push my "finished" code for review, and incremental changes, each of which independently pass all tests, can be easily bisected to discover the problematic change.
Unfortunately actually being in a BA 747 is nowhere near as enjoyable. I'm glad for this.
> Do you think Krebs got it wrong?

This is irrelevant, how can you have a fair justice system if the mob has already condemned the defender.
Giving someone the wrong hormones is one way to induce gender dysphoria in non-trans people, so suicide rate there should be similar to that of trans people with unmanaged gender dysphoria.

Suicide rates among people who transition are generally correlated with minority stress [1,2], not transition itself: "The myth that transition leads to SITBs continues to be
used to deny transgender health care access and legislative rights, despite a lack of empirical support for this position and repeated research debunking it." (SITB= suicidal thoughts and behaviors) [3]

1: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6813817/

2: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5178031/

3: https://www.liebertpub.com/doi/pdf/10.1089/trgh.2019.0009
Could the entity who committed this attack verify that it was them via their Bitcoin wallet?
Reinforcement Learning Under Moral Uncertainty
CloudCraft has a lot of unrealized potential. Unfortunately, the feature you're suggesting has actually been on their public feature tracker for years. CloudCraft continues to squander their resources, whoever they are.
>"It doesn't excuse anything China does though"

True, it does not. But who is the judge? The idea is that you have your own backyard cleaned before barking about someone else. Otherwise you just do not have that high moral ground to speak from.
> It's not clear how so many government procurement systems are broken everywhere.

One of the two major political parties in the USA actively sabotages government projects. The other one frequently fails to wield the tools of government well. Some of the procurement details might not be clear, but it's not terribly hard to figure out where the upstream problems are.
I am not talking about startups competing for the same contracts, I am talking about startups competing with a large company in their line of business. Blockbuster couldn’t hire Accenture to create Netflix, for instance.
Some airlines fitted the upstairs as a special business class (British, United, the old Northwest). The cabin up there had almost a private jet feel.
This is a repulsive take.

It’s so upsetting for me to read this that I’m feeling unable to articulate why.

Not to mention the fact that you’ve posted this in the context of a story where a child’s life was harmed by such a nonconsensual procedure.
> with enough yuan to buy more chips than the US

Er, no. By definition a country with higher nominal GDP can afford to import more chips than a country with lower nominal GDP. That's exactly what nominal GDP calculates. This is probably why you're being downvoted into oblivion. It's also why TSMC isn't exporting its chips to Huawei anymore.

Also, there's a reason that the yuan is worth 7x less than the USD: it's because the PRC has intentionally devalued its own currency to keep manufacturing costs low and prop up local manufacturing instead of relying on imports, most recently in 2019 in an escalation of the U.S.-China trade war [1]. This helps bolster China's domestic manufacturing capabilities, but bites China in predictable ways when it wants to spend money abroad, e.g. importing chips from Taiwan.

1: https://www.investopedia.com/trading/chinese-devaluation-yua...
Could have fooled me with regard to Windows. I'm unfortunately not sure what a "native" Windows app is at this point. They've gone through so many frameworks over the years, everything is a mish-mosh.

And this isn't just a result of legacy compatibility. If you are a developer today, and you want to make a really good Windows app, what approach do you take? Is it obvious?
True, so the need for spare parts for the cargo fleet will continue for a while. But Boeing won't be making them : https://www.businessinsider.com/50th-anniversary-boeing-747-...
Are manufacturers still building giant planes these days? I don't follow the industry.

I agree with the middle seat part, after being stuck on an overseas Air India flight with babies on both sides. I just assumed it was bigger because they want to pack more in for long flights.

Smaller plane = better. At least for less close contact, which will be valued more with recent events.
Please no. Squash and merge means that when someone (maybe you) comes across a strange-looking line of code in 18 months and uses git blame to figure out why it was added, they'll be presented with a 1500-line wall of text with no context.

Commits are a tool. Learn to use them.
The BA 747's in particular are ghastly by current standards. Glad I won't be stuck in one anymore.
Retribution is needed to prevent vigilante justice and to cause fear to potential criminals. Remember the story of the drunk driver who killed several people in a crash [0]? He was "punished" by going to a club med like rehab facility where he was taught about the wrongs of his actions by horse back riding. Imagine if all drunk drivers were punished that way?

0: https://en.wikipedia.org/wiki/Ethan_Couch
Nobody does that.
That’s a pretty hot take
The W3C is just betting on that URI outlasting "cool". It's a bold move.
It was the only plane with an upstairs. I never got to go upstairs. :(
It's possible the doctor knows something the parents of the kid don't. You don't treat the symptom (high T levels) you treat the disease (the behavior disorder). It's possible there is something about the boy's medical history that made it seem like this treatment would work better for his body chemistry, perhaps.
I've worked a place where IT only worked through consultants.

IT knew nothing about nothing and wouldn't hire anyone who knew technology. All projects were big buckets of money that they would hand to external consultants. Consultants would always take the money, sometimes they would do the work. IT was always certain that whatever the consultant delivered was best-in-class, exactly what should have happened because it was delivered in an Agile methodology and Gartner said nice things.
That truth isn't allowed here
A beaver with his blueprint for a new dam would like a word.
War seems very possible.

Wars start from smaller conflicts, which come about through escalation of smaller conflicts, lies, or misunderstandings. I think all that is necessary to start a war is a geopolitical event of sufficient severity to provoke a retaliation; once the first retaliation happens, there is high risk of further escalation.

So the question is whether a deception on Twitter could trigger a real-world event significant enough to provoke a retaliation. It might be hard to do that with a single message, but they had access to multiple accounts. These tweets were stupidly obvious scams. You could create a huge amount of panic with a series of posts from different influential accounts if they were designed to be believable.
I absolutely agree. And I generally find "think of the children!" arguments to be nauseating.

In this case, though, I'm responding directly to the case being made both in the Department of Justice and in Congress, which is ostensibly about protecting kids from online predators.
>A good agile process will not have an ironclad upfront definition of what is to be delivered in a large project.

"what is to be delivered" does not have to be a rigid definition of "5,000 lines of code program with features 1, 2, and 3". A good agile contract will allow the possibility for changing project requirements but also still define how those changing requirements affect expectations and responsibilities of the consulting company.

The agile process itself can actually be a deliverable that you define in a contract, and it should spell out, for example, how new requirements are prioritized and the criteria you use for determining if it's something that the consulting company is responsible for. In my experience if you can't write out your agile requirements in a contract, then you don't have a good enough internal understanding of your own agile processes and should probably work on that, too.

Far too many people use "we're Agile" as an excuse for "we don't plan or document anything" and extend that to contracts, but that's absolutely not what good Agile actually is.
Binfmt_misc – arbitrary binary format handlers for Linux
What prevents those trusted sources from being similarly hacked once they're now the main arbiters of important information? I'd even argue this may be more dangerous especially if tech and security are not their core focus.
Significant release. Missing Dark Mode was making me to switch to other clients, now I am back to thunderbird
It seems like the context is built with a simple bag of words model. One day I searched "how to make a mousetrap", the following day I got a recommended video about statistics, where the author explains something on a mouse population, and says "mouse" many many times.
Why does Mars get so much more press than the moon? I guess it has a bit more gravity, 37% of Earth vs 17% for the moon. We can’t survive in either atmosphere. Temperature differentials on mars are less extreme? That seems like the least of the engineering problems however.
Implementing `Flatmap` in Rust
A simple implementation of `flatmap` and my first blog post!
Termites, Crocs, ants.

No doubt others.
Destroyed economies? Started a war? The tiny effect on the market lasted less than 5 minutes. Your post is bordering on comical.
Yeah, I mean I tried to make it a very moderate "think of the kids" argument - it's mostly "think of the future", rather than about any specific scenario involving kids.

But yeah, I think we need to push back on the narrative in Washington that law enforcement, rather than genuine privacy tech, is what's good for kids.
Oh, I definitely would. The only things keeping me here is my job, and my wife’s job, and my family, and my wife’s family, and my friends, and my wife’s friends, and my daughter’s friends...

Moving countries isn’t easy. Sometimes you just gotta find a part of the dumpster that isn’t on fire and do the best you can.
Barr’s not wrong. We have security assurances only from Apple, and absolutely no verifiable guarantees. iPhones everywhere should be secure as iPhones anywhere. Backdoors only ever swing the wrong way, regardless of where they are placed, where they are accessible from (and who by), and regardless of any preconditions for said backdoor access.

> Barr suggested that Apple iPhones “wouldn’t be sold (in China) if they were impervious to penetration by Chinese authorities.” He suggested American tech companies were imposing a “double standard.”
A380s have upstairs. They are being phased out too, but there are still a bunch flying, mostly on international carriers.

Always loved flying a380s
Surprising to see comments like this on HN of all places.

1) It assumes the problem is due to lack of money - that India being poor is not spending enough and throwing money at the problem would make it go away.

2) It completely disregards that the government has multiple departments who can independently make progress in varying fields.
Why does the government not have more than a handful of people at 18F? Do they think computers are a fad that will go away? Government should be staffed to accomplish its mission, and the mission requires software. 18F should have tens of thousands of permanent employees.
>>We haven't exactly seen a resurgence of the Klan of late, you might notice.

Are you serious? While the Klan may be played out new fascist/racist groups are definitely on the march. Google "Boogaloo boys" as just one example.
1Password with Duo Security is insanely great.
It costs what it costs because of supply and demand. If you paid for people’s housing no matter where they wanted to live, everyone would move to highly desirable areas and $7,500 would look like pocket change because the demand would greatly exceed the supply.
It wasn't the first, the clipper had an upstairs. It's the one we got democratisation on: it helped make cheap worldwide long haul.

I used upstairs a lot. It was nice. Side bins, and quieter.

Upstairs on a 380 is different. The nearest comparator is the Emirates lounge bar up the back.
I Structure Go Packages
Samsung is one of the worst companies. Among the BP, AT&T, Comcast, and Apple tier evils.

I'm not sure how they have survived bad press, but Samsung is not a good company.
Find nefarious politician’s new fixer, offer to post a deep fake of Biden from Biden’s account expressing grief at finding out his son had acted in bad faith and that he was withdrawing from the election.

Post deep fake from Gates account saying that he did create coronavirus and he’s going to release the antidote. No masks needed. Open the country up.

The chaos and distrust alone would be worth more than 100k.
I don't know about many. I don't know of any retail investors that do, and if I did I would have guessed that they'd be buying when prices drop, not selling.
Currently they are only making a few freighters and the new Air Force One. Passenger production ended already.
> So I just don't see any way this kind of work is going to get done and not kinda suck.

CodeForAmerica has identified the core problems with US project procurement: waterfall projects where all of the detailed requirements are defined before the contract and the programming experts (designers and developers) get involved. The person writing the contract frequently has no idea how the best tech companies organize projects. Also, they frequently pay contracts by hours worked, not by project outcomes.

CFA will coordinate with government departments to put developers+designers in a place to prototype+build a better mousetrap. The problem is that legislators and departments resist giving that autonomy to the developers+designers, so the people developing requirements are just ticking off checkboxes, not actually building an optimal feature for the end-user.
+1 for Datadog. I can't comprehend how they scale to accommodate the data we send them, let alone everyone else. Literally tens of thousands of data points per second, around the clock, for years. Thousands and thousands of unique keys. And it's all queryable instantaneously. All for about 1/4 of a developer's salary.
I had no idea about this interesting Linux kernel feature.
Twitter hack delays launch of its new API
I believe they are referring to the fact that they could have theoretically tweeted the wrong thing from the wrong account that could have caused a war. It isn't extremely likely but not comically unrealistic. Definitely within the realm of possibility.
You can do this on a technical level but on a practical one it creates pathways for abuse which defeat much of the purpose of using crypto in the first place.

And attackers like the one in the twitter attack would just choose to use cryptocurrencies where this isn't possible.
I feel like a big part most of us avoid unpleasant emotions we try to replace them or get rid of them very quickly.

Just experiencing these emotions and meditating on their cause will relieve a lot more people.
People are not looking for trusted sources of knowledge. They are looking for entertainment.
If bitcoin cult knew how to leverage technology into useful applications, they wouldn't be in......bitcoin
To experience them at their best, you have to fly international first class. I've had the fortune of doing this a number of times on the 747. I've sat upstairs (which is typically business class) and at the very front, which is usually first class. It's fantastic. You have room to stretch and you're treated very well.

Here are a few photos from my Lufthansa first class experience.

https://www.instagram.com/p/B00TFMcHA4a/?igshid=caikqjatjldk

The photos are:

- the famous rubber duckies from the Lufthansa First Class lounge in Frankfurt. They have private bathrooms with full baths that you can use.

- the obligatory outside-by-the-jet photo that you can take when they pick you up in a luxury car on the tarmac (not that white one)

- Seat 1K on a LH 747-800

- The Porsche that they pick you up in when you're changing flights or going to the lounge.
HDOT selects passenger screening technology provider for Hawaii’s airports
Third time not addressing the arrests, convenient.

Also have yet to explain why the president is asking the CIA to share intel with an enemy.