skysight-inc/HackerNews huggingface dataset:
I do the exact same thing, though my internal monologue is like 95% English (not a native speaker). I talk to myself out loud when thinking, but my wife thinks it's weird so I only do it when alone.
In the USA, if it it was a student who had commended the Intifada, the situation would be the same, except the university president would have written an email condemning him as an anti-semite and praising the Hillel students harassing him, and he may have been charged with one of the hosts of laws in the US outlawing the boycotting of Israel.
> Hospital capacity will take years to increase

No, not really. With trillions of dollars and 2 years there was absolutely plenty of time and resources to train more people and find new COVID-specific spaces. Nurses and PAs can be done in as little as two years with the current system, and people can be trained to handle just COVID patients much faster.

The problems are easily tractable, it's just poor leadership.
Well, because despite those failures, things can always be worse. This game is not zero-sum.
Yep. I’ve completely stopped using Amazon and I plan on cancelling Prime soon. The only thing I still sometimes buy on Amazon is books.

At this point I only buy things directly from the manufacturer or a listed authorized specialist retailer, and only from brands I have strong evidence are BIFL quality. So much of the stuff in the world is garbage.

The one thing I’ve yet to find BIFL quality options is daily wear clothing. At least some clothing articles do have options though.

Amazon is just a dumping ground for the worst of Chinese garbage. Almost nothing on the site is of even acceptable quality. It’s really unfortunate, I used to love using Amazon as a customer.
So, should the outside observers who noticed the mass hysteria, death and destruction in Russia, Germany, Cambodia, Myanmar, Romania, Turkey and myriad other examples during the 20th century just have realized that they needed to "reconsider their perspective"? It's entirely possible, and in fact, highly probable, that entire mass groups of people can be manipulated into collective insanity quite easily. That doesn't make them sheep, it makes them Human, and it's up to us to be aware of this aspect of our collective psychology and point it out where visible.
I agree: a company asking developers to install security monitoring agents like this should also offer company laptops. Same with mobile phones, actually, for remote wipe profiles and location tracking and things.

If they don't offer company hardware I don't think they can rightfully demand agents be installed. But if they do, and if you decline to use it then you have to accept agents on your own machine.

Not sure what OPs situation is - but I'd think it very reasonable to go back and say "if you want to install this you have to provide me a laptop"
‘Woof’, a pure Scala 3 logging library
Area 120 functions an internal sabbatical/fellowship to retain employees who would otherwise quit and work for competitors, and as a carrot to dangle in front of other employees.

The projects aren't meant to succeed.
Vaccines never assured that would stop the transmission. Specially after being designed for different virus variants.

They claimed that the effects would be much less severe, and would save lives. And in millions of cases [1] they delivered exactly what was promised. Finland had 1000 people killed. Sweden with 70% vaccinated had 15.000 deaths, so all points that vaccines really work.

[1] There are a few debatable cases, and I don't have any problem to discuss it, but the fact is that any treatment carry a small risk of being harmful for a particular genetic. People accept to take this risks all the time because the possible benefits worth it. Nobody says "we must stop treating cancer because chemotherapy has killed one in a 100 million people before".

Rules can't be effective if everybody do all that must do, but a bunch of morons playing cowbells came and spit you in the face (or into your hamburger) just for fun. Don't blame the people that made the rules for that. Is not their failure
There are other comments here making the same general point, that extendState seems like a bit of a weird, and unnecessary, use case, and at first reading the blog post I agreed.

However, it "clicked" with me when I saw how they use their usePromise hook (to me it seems like their useAsyncExtendedState hook is only really useful in conjunction with their usePromise hook). That is, it is extremely common in React to call some remote API, then update the state when the Promise resolves. You also have a common set of things you want to handle: showing that the request is still pending, handling an error, updating a part of the state with some subset of the response object when the Promise resolves, etc.

It's very possible to do this in React without these custom hooks, but you'll usually find you have top-level state variables in your component that mirror the success/error/pending states. You need to do that all over the place.

Using these custom hooks makes it easy and consistent to make these remote calls but handling the stuff about the remote Promise request is essentially "contained" by the result of usePromise. Seems like a really nice, clean way to get consistency across remote calls in all your components.
> it's just something shitty that happens to you

So you ask for people to accept some hardships in life, but somehow make a big deal with putting mask on your face from time to time?
I see this as Apple eyeing a server market segment. Unless Linux is fully ported on m1 cpus it can’t be achieved.
I use hooks the way you do for independent information, but when the states are related (like a userID and a userName for example), then it's better to have them as properties in the same object. If they tend to both change at the same time, that could cause a double re-render, as well as temporarily having an inconsistent state when one has updated but the other hasn't yet.
> It has been said that non-programmers used to catch on to APL quite quickly back in the day

Thompson and Ritchie also said their secretaries happily wrote troff.

Do people get pampered too much today or are we severely underestimating them?
Show HN: Explore Our Moon
I agree. Enough already. Isn't this covered in something like week 2 of CS 101? If you've missed that, maybe the literally decades of "ermagerd, floats!" articles would give you a hint.

As someone who's worked in science and finance (modeling, not accounting), floats work just fine, thank you very much. The modeling/accounting split in finance is a legit point of confusion, though.
> All you need to do is ensure that your calculations are in no danger of blowing past the max significant digits

If you have a lot of control of the scale of the numbers you’re computing with, you could use fixed point instead of floating point.

The situations that make it useful to have a floating point (rather than fixed point) are also the situations where addition isn’t associative.
Meanwhile, GDPR has deprived me of the right to read this article
For a long time now for me youtube-dl downloads YouTube videos at 50kb/s, which makes it impractical to use in conjunction with mpv. I need to leave youtube-dl running in the background for several hours to then watch the video in mpv.

Now from the comments I've found out about yt-dlp[1] which claims to fix this issue[2]. Will check it out.

[1]: <https://github.com/yt-dlp/yt-dlp>

[2]: <https://github.com/ytdl-org/youtube-dl/issues/29326>
Rust has probably the most batteries included, with explanation, of most of the languages that compile to WASM right now. It has a lot of tooling that takes some of the underlying pain out of interfacing with JS. There's even an online guide for it:

https://rustwasm.github.io/book/
I have no experience in Haskell, but in Go:

- if it's a builtin or in the current package, you usie it directly

- if it's in another package the identifier is always prefixed with the package
Yeah. It depends on the data structure and how you'll use/update the state. `extendState` exists for when the situation calls for it. I avoid abusing it.
> Students! Learning! (Continents!).

I’m not sure how I’m supposed to parse this. Maybe the “continents” is meant to be a correction from “countries’ laws”, but that would be a mistake because the EU isn’t a continent but rather a union of sovereign nations, and “countries’” is plural possessive so the original wording is correct.
It's the same type of problem, but much more limited in extent.

Every country has it to some degree, authoritarian regimes typically go crazy with nationalism since it's the most powerful tool they have to force their victims on the side of the aggressors against the evil foreigners.
> I believe merchants are not allowed to charge extra for visa or mastercard, but there is a hefty commission payed to them.
This is not the case in India but is the case in other markets, yes. The IRCTC (national railway company) is for instance displaying it and the customer has to pay fees depending on the selected payment option. Some actors even hide this amount until you reach the page asking you for an OTP! I don't think it's necessarily done with malicious intent, but it exists.

Sometime you won't see Visa or Mastercard but instead "Debit Card" and "Credit Card" vs "Rupay" for instance.
This approach works surprisingly well for most features, but care should be taken to remove those 'ifs' once the feature is stable/complete. Or, when implemented cleanly, they could also be left in place and used as long lived feature toggles that can be driven by configs (or user settings, ...).

The hairy part is when the new feature or change cuts across different parts of the code and then, given enough time, those 'ifs' pollute the codebase. Solution here is to be mindful of how the system grows, keeping things isolated and (perhaps counter-intuitive) favor duplication over shared logic/libraries. Regardless if it's about one big thing (i.e. monolith) or multiple small things (different projects even).
Yes, I found it funny, and the number of fatalities was extraordinary (all for valid reasons...). He should re-invigorate it with hacker stuff and ransomware demands for 2P or I trash your server - see the coin slot on your server - insert 2P - the ideas are endless to expose fools who use admin as pw etc..
I agree there's a power fantasy element to them, but they're a reflection of sysadmins' lack of real power. They're at the bottom of the pecking order and are only noticed when things go wrong, or when users want to project their own frustrations onto somebody lower in the office pecking order. They have incredible destructive potential at their fingertips yet no way to use it in the protection of their own dignity, since doing their job well means taking abuse silently when it's directed at them. Pushing back against misdirected blame and anger would go against the real power structure and would be castigated as a lack of empathy for the poor users.

Honestly, the best sysadmins are probably the ones who resort to fantasies like this. Real unscrupulous sysadmins can force people to kiss their ass before they'll do their job. If you've ever worked in an office where the sysadmin is a highly visible and highly respected person, and everyone is keen to treat them well and be on their good side, it's because they've made it their policy to do the simplest aspects of their job grudgingly, theatrically, and only after a lot of cajoling. Meanwhile at another company there's somebody doing the same job ten times better but getting treated like an intern precisely because they do the job better, without forcing people to beg. And that sysadmin is the one who needs the power fantasy.

(I was not sure whether to use the present tense or past tense in this post. My memories of company sysadmins are from the 1990s and early 2000s, and I have no idea if sysadmins like that exist anymore.)
The network effect is even worse when consider a lot of the alternative are banned in china. This makes it difficult basically impossible for Chinese abroad to communicate with their friends and family back in mainland using some alternative service.
> The original Tweet (embedded one from HunterAP) says TikTok installs OBS and uses it in the background with a TikTok front-end. It doesn’t say that they’ve illegally forked it.

It does say "illegal fork" below HunterAP's username and above the screenshot.
> And another study just showed that this new strain multiples faster in the airways than in the lungs, which would contribute to less severe outcomes

How does the part after the comma follow from the part before the comma?

"I've not got a bigger pile of dry leaves next to my shed than the big pile of dry leaves next to my house, which should contribute to lower risk of my house burning down".

"I was only using log4j on systems that weren't customer facing. Now I'm also using it on customer facing systems, which should contribute to lower risk of getting hacked".
How are they producing a website compliant with local laws then ? What if they inadvertently end up violating DMCA ? What happens then ? The answer to that is one can be reasonably sure that they aren't doing anything stupid or malicious. It's the same with GDPR. Don't use trackers, cookies, adware etc., none of which are necessary for a college newspaper. This is a simple technical problem.
My Time in Open Source, a Memoir
And the reason countries like NZ seem to be able to quickly and efficiently pass sweeping gun reform laws is because it’s not effecting any major gun producers bottom line. In America that is very much not the situation.

Additionally, even if profits were a moot point, the 2nd amendment is a culture war wedge issue that runs bone-deep for the average American.
China as a strong lobby in DC [0]. And, while admitting you're wrong should show strength and courage, for some reason, probably due to media pressure among other things, the political discourse in the US doesn't allow people to admit they were wrong and course correct or just come to a new position when new information is found. Remember the huge campaign calling John Kerry a "flip-flopper" [1]? I suspect the lobbyist money is more of the driving factor here though. If you can somehow eliminate that, our elected leaders wouldn't have the motivation for lies, hypocrisy, or sophistry in the first place.

0 - https://www.thedailybeast.com/meet-the-us-officials-who-now-...

1 - https://en.wikipedia.org/wiki/Flip-flop_(politics)
I think it acquired this name to distinguish from “git flow”, an alternative way to use git that is, put politely, somewhat of a maintenance headache.

https://www.atlassian.com/git/tutorials/comparing-workflows/...
I am less worried about our democratic governments then I am about private entities, especially in sports and entertainment bending over to various totalitarian governments for a handful of bucks. Because that is making it easier for our governments to do the same, simply because people are used to it.
Apparently nowadays you can buy a physical book but not talk about it online. Guess my conclusion still stands.
I would 10x rather see Apple helping than see Apple say they are helping.
I don’t believe this for a second. That would have been a completely daft thing for them to do (not that corporations can’t be daft).

I think the stagnation perceived with the Mac was a combination of distraction (focussed on mobile), lack of general invasion on desktop in the market, Intels recent problems, and waiting. I believe they were waiting for their silicone to get the point that they could do a proper coordinated refresh.
Exactly this. The same people setting wages are setting prices.
You sure you've been reading the same strip because the PHB and Dogbert have both been deliberately mean on multiple occasions.

EDIT: Also catbert whose whole character is about being cruel.
I've been in exactly the same situation as you. For me it happened because I was in a miserable team and company that didn't do anything significant or properly. I was constantly left without work and bored so at that point I stopped caring and was just getting away with any work.

What I did however is to use this free time to work on personal projects and to prepare for interviews for other companies. This played out nicely as I later changed job to a much more interesting company and team where I can make important contributions to the work and I care doing a good job.

Sounds to me like you are in the same situation, meaning you are not mentally stimulated and you simply don't care. My advice is either change job or if this is not an option then use this time to work on personal projects or further develop your skills/hobbies. Basically make sure you don't waste your time and put it into something productive for future gains.
It'd be nice if one could rotate the objects (I just found how to move it on the screen but not to do a full rotation)
MDR problem can be solved as you indicated. It also needs a solution pretty soon too.

EU and developed countries' banks live and finance their profits on fees as they don't make much or any money on loans and other traditional financial tools. Those fees aren't going to go away.
You don't even need to open a history book. Just open a newspaper.
Yes it absolutely needs a new name!
So there is a bug in the Twitter video download. When Twitter went to 280 chars it started showing up. 280 chars is too long for a file name (on Windows at least.) I sent YouTube-dl a pull request with a fix but not only did they not accept it, they brushed me off in a way that gave me the impression they didn't want fixes from the outside. I'm fairly old and this was my first attempt at contributing to open source. Is this the way it goes typically? I imagine they get a lot of people with b.s. pull requests so they get jaded. It's understandable I suppose.

The bug still exists in yt-dlp. I run a local copy with my fix for those times when I need it.
It’s also negligible if you block EU access. The people that own the content get to decide which approach to take.

I for one am a little tired of EU citizens telling me something doesn’t have compliance costs when I’ve been in the room when outside counsel couldn’t agree if a brochure ware site was compliant because the logs contained IP addresses.

You may wish that the regulations didn’t make the choice of blocking EU citizens the more palatable but that doesn’t make it true.
React Native Skia
> So I don't think it's unethical to work less as long as your employer is still happy with what you do.

Then tell the truth and deal with the consequences.
maybe not the book itself, but if you read the article you'll see that even weirder stuff are banned:

The government disallows the publication of any work by Liu Xiaobo, the determined critic of the Communist Party who in 2017 became the first Nobel Peace Prize winner since Nazi times to die in prison. Again, for a time last year Chinese citizens could not type 19, 80, and four in sequence—but they could, and still can, buy a copy of 1984, the most famous novel on authoritarianism ever written. Prefer Aldous Huxley’s Brave New World? They can buy that text, too, just as easily, although its title also joined the taboo list last winter.
First, now sure I follow how Orwell glorifies these embarrassments, because I think it's the exact opposite.

Second, the USA/EU is not perfectly innocent wrt to propaganda, but still... it could be much worse.
Banners without the option to decline unnecessary cookies and still get the content are a GDPR violation.
"example" doesnt mean "fiction". In means a concrete case for reference.
Google Maps reviews.
For context: Mach-O https://en.wikipedia.org/wiki/Mach-O
I don't really understand extendState because it seems like somewhat pointless syntactic sugar for:

setState((previousState) => ({...previousState, foo: false}))
I'd suggest you are doing far more damage to the reputation of the board by conflating commentary with free marketing. The comment I replied to was the latter. If advertising is permitted where critique from actual paying users is openly punished, what is that saying about the board?

As for the extremely disappointing asshole comment, coming from a moderator is quite frankly astounding. "Please respond to the strongest plausible interpretation of what someone says, not a weaker one that's easier to criticize. Assume good faith".
Not like US companies would be any better. They usually just take more care of hiding it, cause you know, cause you know lawsuits.
You will be very interested in my colleague Brad Myers' work on Natural Programming.
http://www.cs.cmu.edu/~NatProg/

In particular, one of his PhD students John Pane did a number of studies looking at how people would naturally describe the behaviors in Pac Man. It was really nice work.

You should also take a look at Programming by Demonstration. One book, Watch What I Do, is published online in its entirety by the editor Allen Cypher, see here http://acypher.com/wwid/.

Another book in this space, Your Wish is My Command, is also published online
https://web.media.mit.edu/~lieber/Your-Wish/

Both of these are collections of research papers showing how people can demonstrate what they want to a computer, and have the computer figure out what they want. There's a more recent book on programming by demonstration, but I don't recall the title.

But definitely check out the first link on Natural Programming, Brad Myers is one of the world experts on this topic.
I think I use it like you do. From my perspective, it's just much clearer when I haven't seen the code in a while and need to immediately understand what's going on. Also, I'd be interested in profiling the two different ways of managing state because I can't imagine that recreating a composite state object could be as fast as updating one value, but I haven't done that and I haven't really looked into how the spread operator works under the hood... maybe it's super fast.
Dilbert himself: no. Most of the other characters: yes (mostly to Dilbert).
Not just that but the global elimination/reduction of capital controls.
The older you get then the less relevant the opinions of others are about you. Be what you are and what your want so that you feel self-fulfilled. Don't measure your self worth relative to others as there are always more relevant people to you in the world. Ultimately we all realize that we mostly don't matter in the end.
I remember covering how floating point were stored, but I don’t remember going all that deep into how that affected arithmetic.
That's a rather common failure to understand the relevant blub details that happens a lot when functional advocates draw up strawmen to denigrate mainstream boring languages.
Always thank your sysadmin. Always treat them with respect.
Also related to the https://en.m.wikipedia.org/wiki/Middle_income_trap
Wow. Kindness, humility, and courage. What a role model.
Except the quote isn't criticizing people. It's criticizing the political party which is defined by 1 person. Not billions.

The (Chinese) people are the victims in this.
Not saying anything and helping is much better than saying you're helping and doing nothing.

By not being official, they can probably do more internally.
'We’re on the blacklist because of you': Clash between Israeli cyberarms makers
Well, you have to know something about the law to know when it does/doesn’t apply, and this student newspaper apparently decided it didn’t care to invest that kind of time. I think this is understandable for those of us who don’t prefer to study other countries’ laws. Perhaps EU subjects should seek to improve their laws.
I wonder how large is the submarket of developers aware of the need to encrypt data ... And also OK to bring a third party like evervault into the deal.
I don't know about you, but when I was at school I didn't have much luck getting randos from other majors to do free work for me.

I collaborated with some EE and ME students on personal projects, but they were 1) more interesting than GDPR and 2) friends.