skysight-inc/HackerNews huggingface dataset:
For some reason I never ran into any problems with lifecycle methods of class components.

I mean, for testing, having too many class methods is clearly annoying so I try encapsulate as much functionality into small and separate functions.

But yeah, apart from that I never saw the need to use hooks. I mean either I write a functional component without state or I write a class component. That's it.

I hope they don't deprecate lifecycle methods. Such a great interface!
Thank you for feeding them, as I occasionally enjoy eating well fed squirrels in my own neighborhood. Keep filling them up with peanuts, please!
The same way something like "we can tell you, but then we'll have to kill you" would be against the spirit of the Freedom of Information Act.
I had to log into my HN account just to say HOOORAHHH!

I've been SEOing for 8 years now with endless debates with dev people about AMP. I pushed to have it simply because "if google says jump, you say how high".

There's a bunch of insane tactics with the Ads model. For example the Ads quality score which is a totally ambiguous rating out of 10. They will then rate the page based on a whole load of variables and determine the rating - if you get 4/10 you are going to be paying more for your bids due to being penalized for low-quality BUT they will still allow it.

Now trying to figure how to improve and get it up to 10/10 is an entire process in itself. There's going to be people coming out of the wood work saying that the Quality Score is easy and so on but to me is just smells of unfair practices to exploit each cent out of advertisers.
I like the idea that someone can't just say a thing on HN that has no known basis and make it a justification for their argument. Instead, here, any counter claim that Assange is decent, or was guided by good intentions, attracts instant downvotes without any counter argument or reflection whatsoever, but the notion that he's some deep state operative is perfectly reasonable.

I agree though with the implication that he isn't an American patriot. Clearly he's Australian/Swedish
Sikh Priest Dies by Suicide, Leaves Note on Farmer Protests: Officials
Yep. I dabble in orchestral music, and was floored that this thing had simple articulations. Entry-level chorale libraries sometimes only have bare vowels, and this thing just... works.
The fact that Facebook is open and proud of its end-user hostility in service to the business interests of advertisers is surely a turning point.

What kind of professional integrity would allow someone to continue working on a product that doesn't even pretend to serve the best interests of its end-users?

I seriously worry about the number of technology standards boards and governance groups that purport to represent the interests of end-users but are actually made up of (and lobbied by) people with this kind of "integrity".
A lot of smart TV apps are already HTML and JavaScript webviews. You can create a webview app on Android, iOS, Windows, Mac, a ton of proprietary devices like cars or TVs. What benefit would Firefox OS bring here, besides creating another kludgy abstraction layer over the vendor hardware?
Oh man, this is super specific and I am sure will apply to almost no one but - I was a kid in the late 80s, early 90s France and a popular comedy trio had a skit about a cult with a leader referred to as a grand guru named Skippy.(Grand guru when said fast in French sounds even more like kangaroo). My brother and I had that joke 'Grand Guru Skippy' for years! We got the grand guru <-> kangaroo part, but never knew there was a show with a Kangaroo named Skippy. That makes it even funnier.
(The video won't make sense if you don't speak French, but in case there are others like me here) https://www.youtube.com/watch?v=k_3hIoUGbls
If anyone has a Raspberry Pi and is interested, check out rpitx[0]. It bit-bangs a GPIO pin to transmit arbitrary radio, turning your Pi into a messy SDR transmitter. By connecting a wire to the GPIO pin you can transmit for tens of meters.

I attached a low-pass filter to the GPIO pin and was able to control my ceiling fan with my Raspberry Pi.

[0] https://github.com/F5OEO/rpitx

Edit: This generates square waves which have harmonics. You will transmit signals on unintended frequencies if you don't use a filter.
The coronavirus may sometimes slip its genetic material into human chromosomes
Could your issue be related to this SF post?

https://serverfault.com/questions/954844/chroot-gpg-agent-an...
For sentencing, almost anything can be presented to the court to enhance/decrease (aggravating/mitigating circumstances, in legal jargon) the sentence, regardless of if the thing presented has been proven or would even be admissible during a trial. The rules of evidence do not apply to sentencing/disposition - the court often considers things like remorse of the convict, the convict’s history, and can also consider other allegations made against the convict even if those allegations have not been proved in court. An example of this is when the dozens and dozens of victims of Larry Nassar spoke at his sentencing, even though he was not actually convicted of abusing them all. Judges have broad discretion in what they consider at sentencing.

And, unfortunately for Ulbrecht, the crimes he was convicted of carried high maximum sentences. I think the minimum he was facing was 20 years. The whole thing is ridiculous.

Edit, for clarity: the ridiculous sentencing of Ulbrecht is ridiculous, not a judge allowing so many of Nassar’s victims to speak at his sentencing. When I re-read my comment I realized it could be construed that way...
Ok i understand
I love idea of VR but...

Sure, I would love to buy VR headset but there are things that are stopping me, and until they are fixed, I will wait before buying, it is not a crucial piece of technology after all (like robotic vacuum cleaners are :D )

- I will not vendor lockin myself into some store "Hey, buy xy monitor and you can only use software for it from xy store".

- I will not pay for the VR substantially more than good monitor (of normal size)

- I will not pay extra for games that I have already bought as non VR

- I will not upgrade my whole hardware just to be able to use VR (I do understand why hardware requirements are as they are but I will just not do it)

- I will absolutely not buy anything subscription based.

- I will never buy it from facebook (,google,...), I dont consider them a trustworthy company and I am not buying anything that is positioned in home from those.

- While watching tv, playing playstation whole family can have fun, for the same price, not just one

And once I go trough all the points I dont think that here is any VR headset that fits. And to me all those points are showstoppers. Maybe buying new computer hardware can be left out as a showstopper, it is just a huge annoyance.

Bottom line the VR technology is not even a problem at all.

Everything around is.
Indeed we're running CentOS on the cluster at work. I always wondered, why not Debian ?
And it works perfectly on the phone too.
When the children are babies or much later? If they're above 4-5 years old, it's simple: don't devote all your free time to your children, and suffocate them in the process...
Fun. I wonder how Google decides what projects to choose, the artist behind Blob Opera made something similar back in 2018: https://www.adultswim.com/etcetera/choir/
Why did he arrange to get people that didn’t exist killed?
There's one other use for it - and maybe this qualifies as PR - hiring.

Super-intelligent folks are the target of google's hiring.

I suspect these types of people can work anywhere, they get to pick and choose.

If they can pick and choose, they will have other motivations, like being able to make a difference, and not blindly create a dystopia for everyone on the planet.

So... having an Ethical AI group lets people join google, look themselves in the mirror every day, and know their employer is trying to do things right.

I don't know what the reality is of an Ethical AI group. But having a good one that works might make the difference hiring exceptional people.
I am interested
> This is now in the official style guides of several major media outlets.

It's not particularly new; labels used as names of racial identity groups have been capitalized for a long time; “Black” as a proper noun or proper adjective in that context has been capitalized for a long time (used as a common adjective describing skin color it isn't, and the usages can be hard to differentiate otherwise.)
Bitcoin price will hit $1M by the end of the decade: My prediction
I have no idea why this matters. Timnit gave an ultimatum (i.e. do this or I'll leave). Google agreed to her condition of parting way.

This is like I go to my boss and ask for a $1 billion dollars. Otherwise, I'll leave. Then, my boss decides that I should leave since the boss can't give me $1b. Then, I keep telling my friends that "well, I'm actually fired.". huh?
Wow, really cool, thanks for the pointers!!
I was always thinking in these terms but never explicitly looked for other people's takes
SL died some time ago.
I think PL is progressing just fine. If we look at major advancements in the past decade: LLVM, WASM, async/await, Typescript, Golang, Rust

The more interesting question is "what's happened to IDEs?" -- they're basically unchanged over the same time period. I think they feel "unglamorous" relative to PL and thus attract less passion projects.

I want to see an IDE focused on hybrid code/data systems (say Postgres/Python). Keep your schema, your data, and you glue language in one spot, edit it all together. Set up unit tests by specifying an initial "mocked" Postgres state by writing test data in columns, see it percolate through your code, etc.
Scientific Linux has been abandoned in favor of CentOS.
Yup it’s just clickbait. Same for the report from “people familiar with the matter” that trump was considering an Assange pardon. It works but it’s not reality, its certainly not news, it’s more like fan fiction.
Even the small things, like the eyes going into a hypnotic trance when the blob is keenly following the blob to their right (our left).
> Way more people watch movies than play games.

I don't believe that is true, any evidence for this?
Okay, so who made that edit? Was it someone in a position to speak in an official capacity?
In a nation with more prisoners than any other, on earth, in history, presidents (and governors too) certainly should do thousands of pardons at a time.
I as a parent can understand that, but what it was asked is how to read a lot of books if you have kids

I think the answer is: you have to decide what activity you want to trade for that.
Yeah, the attention to the little details, and developer comfort, is what makes Vercel great.

I was a little disappointed, though, when they released the new Image component and it didn't seem to support AMP sites out of the box :(. I had to write my own wrapper function.
Funniest thing, Alibaba was just recently denied its merger attempt in the grocery delivery market.
AI professor embroiled in Twitter spat over AI ethics and ‘cancel culture’
AWS is an investor in Weaveworks where the implementation (Cortex) was first created. Weaveworks had two Prometheus maintainers on staff at the time.

In the announcement it says AWS have a commercial relationship with Grafana Labs, where several Prometheus maintainers, community managers, etc. currently work.

(I work for Weaveworks)
Thank you, what are you seeing on those charts are real risks, that would reflect on your balance statement.

Very useful if you are comparing two competing investments eg:

https://chartbehavior.com/app/v/IWD,%20IWF/2019/2020/cy_4!25...
It was so mundane and psychotic.. Literally from line to line just error logging servers and talking about ordering half million dollar hits.

> being blackmailed with user info. talking with large distributor (hell's angels)

> got word that blackmailer was excuted, created file upload script, started to fix problem with bond refunds over 3 months old

> reconfigured nginx to not time out. almost all errors have disappeared.

> sent payment to angels for hit on tony76 and his 3 associates, began setting up hecho as standby, very high load (300/16), took site offline and refactored main and category pages to be more efficient

https://www.wired.com/2015/01/heres-secret-silk-road-journal...
Just Linux doing what Linux does.
They don't but it also made HR (in some shady places) a lot more prone to logging minor "mistakes" as ammunition to be used in case they want to terminate your contract.

Personal example: First few weeks on a new job, I had my headphones on and Spotify open in one of my 3 screens since it was a loud open-space.

A few minutes later I receive an email from HR -with all the chain of managers CC'd- saying that I'm costing the company too much money to be listening to music while i'm supposed to be working. Formed as warning in a very formal language. It felt that they just wanted ammunition on me "just in case".

I left that toxic place as soon as I could!
It’s close between books and video games, depending on which examples you choose. If you chose a best seller from 2020, say A Promised Land, it’s $25 for approximately 15-20 hours of entertainment. I think most books are at a $/hour or less.

Single player video games are also in that range - 30-40 hours of gameplay for $60. But where it gets really crazy is endless games (Sims, Factorio, Simulators) or free to play games (League of Legends, Fortnite) where you could be entertained for thousands of hours for a couple of dollars. I personally played a free to play game for 2000 hours while spending about $40 total on it.

Even movies are pretty cheap, considering we most of us watch what’s included in our monthly subscriptions of Netflix/Amazon/Disney. Even buying/renting movies works out to about 1$/hour.

Conclusion - we’re in a golden era for entertainment where the options are nearly unlimited and dirt cheap.
I’m not any kind of web developer.
That issue genuinely doesn’t come up often. I’ve ran into it once in a year of using FF containers and even then, that was because of a weird DIY SSO solution I’m running on my home LAN (certainly not something most folk are going to run into).

Don’t get me wrong, the issue was highly annoying but it’s definitely not a frequent bug bare.

There are existing extensions for managing some popular cloud platforms and that goes a long way in terms of convenience.

The bigger annoyance is sites that intentionally cross talk (like “deploy stacks” buttons where 3rd party sites can run Cloudformation scripts against your AWS console). But in those cases it’s an annoyance I’m willing to manage considering they’re blocked by Temporary Containers doing exactly what it’s intended to do.
Like a squealing pig
Yeah but like... so what? Should the suit be thrown out just because it was conceived by people you don’t agree with? If so, do you think someone else should be allowed to open a similar case based on the work of a “right-wing think tank”? Should we just let Google exploiting it’s position forever because republicans don’t like it?
So need to be careful
Air Force uses AI on military flight for first time
There’s nothing wrong with asking. I’m just explaining that as a Google employee, sharing such details is poor form.
Air Force Flies AI Copilot on U-2 Spy Plane
For the parents interest can we please delete his post...don’t want to see him get into any issues
My dad's house is on Wikipedia, and we didn't find out until half a decade after he'd bought it. Reason being it's on the historical register, nothing spooky. But, boy, was I jazzed to see a picture of the house I was sitting in with a little map under it on Wikipedia. I felt so documented.
Agreed. The reason is more "we are running supported software in a supported combination of hardware, OS and application". That's what auditors are looking for. I've yet to see a real benefit beyond the paperwork advantage.
You either generate pages at build time from the data or you build a static page that will fetch the data from the client.

This means you have zero server side rendering, you're just serving up static files, which of course is faster and can utilize CDNs and such.

SSR is also still possible, that would basically give you a classic model of fetching data on request and then rendering the page. My impression is that this is meant more as a transition than a preferred option.

The SSR features are also optimised to the point that the data fetching and rendering is decoupled. So a client side (JS) navigation only needs to fetch the new page's data. The DX around this is super smooth (just expose an async function...)
> - I will not vendor lockin myself into some store "Hey, buy xy monitor and you can only use software for it from xy store".

Steam VR games, the largest VR market, have no vendor lock in AFAIK

> - I will not pay for the VR substantially more than good monitor (of normal size)

A Rift 2 is $300 right now. Many of the windows ones are also in the $300-$500 range. I don't know what your range is. To me it would be unreasonable to limit the price to $100. I've bought monitors for $800, $1500, $4000, $200, $400.

> - I will not pay extra for games that I have already bought as non VR

you don't want non-VR games ported to VR. They suck

> - I will absolutely not buy anything subscription based.

I know of no subscription based VR except porn and even though you're paying for access to their libraries and you download unencrypted mp4s. Your subscription just gives you access to new content.

> - I will never buy it from facebook (,google,...), I dont consider them a trustworthy company and I am not buying anything that is positioned in home from those.

Agreed though sadly, in my experience, they do have the best experience ATM (I know others disagree...) I hope that changes meaning I hope the experience elsewhere becomes better.

> - While watching tv, playing playstation whole family can have fun, for the same price, not just one

Not sure what your point is here. you're comparing apples to oranges. That's like saying "I'll never buy a snowboard because my car carries 4 people"
Mysterious Monolith Appeared in Katrineholm
I think hooks and effects are really good. You can test them separately. You can write global reactions to state changes very easily.

I find hooks/effects better than mobx or redux. hooks/effects, redux, mobx would be my preference order. Although redux works so well that it can be used with hooks/effects.

For global state I would just use a React.Context with it's own effects. Most components do not have any async effects.

I do admit that when jumping into a new codebase with hooks/effects I often find people have just butchered the concept. But I find that when I jump into codebases with mobx and redux too.
The butchering that people do with mobx is much worse, with massive module importing of global stores, misuse of `name?: type` inside stores because they want to initialize the store at a later time.
This comes up every time secret information is dropped and applies equally when it's more covertly released.

The obvious reason is they get to choose what information, when, and how its disclosed. For example, hack both sides, release one at a damaging time and blackmail the other into compliance.

Indiscriminate releasing of information can put people in immediate danger (like embedded spies).

You can also drop misinformation into a dump of legitimate information. Or a similar technique where you exaggerate true information because admitting to the truth is embarrassing; like claiming 1,000 civilians were killed when the actual number is closer to 600.
A huge percent of Twitch revenue is from desperate young men obsessing over (and throwing money at) scantily dressed female streamers, so literally from simps. It makes sense that Twitch would ban people for mocking this pitiful behavior. Mocking is a good method of social norm enforcement, and every simp set straight is less money for Twitch.
They won't matter for long if they only target internal markets.
I don't know about twitch, but from my experience with other internet places, often the least mature people who you are sure must be some 15 year old asshole, turns out to be 40, and some of the most mature members turn out to be surprisingly young. I don't think we should assume all trolls all teens.
See existing discussion: https://news.ycombinator.com/item?id=25452567
Show HN: A major breakthrough in ORM theory
I also never use chemistry knowledge for anything, ever. But I find it quite interesting to know a little bit about how matter works, and how it combines into things that make up my body and (hey, let's go there) mind. I had to take an intro class in college to learn to appreciate all that, though; high school chemistry class was pretty dull and useless for me.
I built my startup around one of the few uses of blockchain tech I see that really has utility — timestamping without a trusted source. I'm not anti-crypto, and I own a small amount myself.

That said, all these posts are absolute horseshit. We've had John McAfee anticipating million dollar Bitcoins for the last few years, we've had Novogratz spewing more unsubstantiated price predictions, and now someone writing a blog post is doing the same. Maybe it will happen. Maybe. But there's no point speculating on it like this. I could do the same with nearly any other asset or idea, like virtual reality or artificial intelligence or some other buzzword.

This just fuels FOMO and hype and does little to advance the cause of decentralization and cryptocurrencies.

This is not to mention Bitcoin's biggest problem, which is its distribution. People like Roger Ver and Brock Pierce will not (and probably should not) be the richest people on Earth.
Interesting question, wondered that myself as well. My statistics are a little rusty, so doing a quick simulation shows that the range is about .25-.29 (code sample 1). However, things like operations aren't completely random, and you might be more correct by looking at something like a Poisson process, resulting in a range of about .14-.44 for this sample size (code sample 2).

All in the end to be taken with a grain of salt of course, as the planning component of operations eliminates most statistical properties :)

```
operations = np.random.randint(0, 365, 980000)
pd.Series(operations).value_counts().sort_values() / 980000
```

```
x = np.random.poisson(.0089, 1000000)
x = (pd.Series(x).cumsum() / 24).round()
x.groupby(x).count().iloc[:365].sort_values() / 980000
```
Heroku was acquired. I'm not sure there were any major issues.
The point is the amount of "touching". Applying security patches to RHEL is still a change, but it's significantly less risky than upgrading a faster-changing system where you might not even get security patches at all for the versions of software you're using unless you switch to a newer major version.
...his detractors would beg to differ.

Bullshit. I've detracted Trump since I learned of his existence in the mid-80s. I would never vote for him for any office. I would not change the channel to hear him say something. He is a worse human than he is a President, and that's a very low bar indeed.

Still, the idea that he and any Russians worked together on his election has been extensively investigated, and no evidence to that effect has ever been made public. Confused people will cite the "Mueller" report, but those documents also contain no evidence to that effect. If there were something there, we would have seen it by now.
Yeah, that makes more sense. I've used it before too, but when I was writing that, my brain just completely failed at remembering it :)