skysight-inc/HackerNews huggingface dataset:
Java would also refuse to compile using an Optional<T> where T is expected.

Java and Rust are practically the same regarding the differences between Optional<T> and T (java), and Option<T> and T (rust). Optional<String> in Java has the `.get()` method which corresponds to the `.unwrap()` method in Rust. And in both are different different types than String in their respective languages.

But in Java you can have an Optional<String> that's null, not just empty. So that's three states - null, wrapping null, or wrapping a value.

I'd say the big difference is that in Rust you can have places that refuse nulls (e.g. using T instead of Option<T>), so you have well defined points of control/checking. That, combined with the difficulty in recovering from a panic (the equivalent of a null pointer exception when trying to unwrap a value that's missing) and the Result type, are Rusts real strength wrt. missing values.
I seen exactly same thing happen in one of my groups of friends where no one ever had any interest in IT before that point. For a month or two before crash they was talking about their crypto investments daily even though before this all they was interesting about are some extreme sports, woman and cars.
This is improper training. (Former WSI here) Especially in the ocean. The Salinity in the ocean makes it very easy for a well trained swimmer to float. People who sink on their back haven't been trained to maintain enough air in their lungs and/or use minimal arm/leg effort to assist. Also they are probably not leaning their head back far enough. (Head position being a massive component of the problem for non-swimmers.)

Anyone who is a "swimmer" can float prone or supine with minimal effort and work out a foot or stomach cramp. I couldn't even count the # of times I've had foot cramps while swimming and stopped and floated and massaged the cramp out. Floating prone is always the better solution for working out a cramp.

I taught adults in private lessons who had this "problem". It goes away with training.
I guess the assumption is you sweep up/vacuum afterwards. That is the way I handle it. It’s not a giant quantity of salt involved.
I just want a hand-sized general-purpose tablet with a 5g modem I can plug in when I need a phone. I like the 'security by isolation' aspect of physically unplugging my cellular connectivity. Otherwise I piggyback on Google Voice for texts/calls. Also bring back physical slide-out keyboards like the Motorola Sidekick.

:-)
> Parasite gives one the same degree of insight about Korean culture as Raising Arizona does about American culture.

http://sensesofcinema.com/2017/cteq/raising-arizona/ and https://www.theatlantic.com/entertainment/archive/2014/09/30... discuss this well.
https://www.jstor.org/stable/10.5325/studamerhumor.3.1.0001?... looks to be interesting, but is paywalled. Either way, Raising Arizona seems to me to be some great cultural commentary.

> A thread about the subtleties of Korean culture revealed in Gangham Style? Read a book.

That too sounds like an interesting idea: https://www.amazon.com/Theological-Reflections-Gangnam-Style...
If you're arachnophobic, be forewarned about the giant spiders; some of the most disconcerting I've encountered in a game.
If I create several objects and then one of them fails, the ones that succeeded get destructed in reverse order, and then my callers get the exception that killed me. I don't need a handler unless I know what to do about it or I'm doing something weird that doesn't work with RAII. And I can't even try to use an object that didn't properly initialize.
I find Paul Graham to stand out even among the smartest people whose work I follow. He's prone to regular and incredible insights. Like a great stand up comedian, he frequently notices things most of us manage to miss. He has his blind spots and faults, of course, like every human ever.

And there is truth to the charge that his current popularity is inflated due to him being an investor. Many investors receive an undeserved amount of attention and adulation. After all, their entire job is to hand out millions of dollars. That tends to incline people towards paying attention.

But I, along with many thousands of others, have been reading Paul Graham's essays since long before YC. That's how he launched YC (and Reddit, and Hacker News). This is proof that he was genuinely compelling long before he was an investor.

His Lisp books were also great. So he was a successful book author, successful founder, successful essayist, then a successful investor. Not an example of someone failing upwards, as is disappointingly-common in The Valley.
I think one of the problems is that many reddit users deploy downvotes against people who have a different subjective opinion than them. That is the lever that drowns out dissent from the majority. I have been thinking about that for a while now, what is the proper time to use a downvote? My MO is that it is only to be deployed against those who are arguing in bad faith or being disrespectful. Differing opinions should be allowed to exist.
The director has mentioned that the rich family were also parasites, although you're right, maybe he didn't make their parasitic behavior explicit enough. Although some examples I noticed:

- They got rid of their loyal, long-serving, housekeeper instead of caring that she's sick/supporting her through it.

- They "forced" their helpers to show up on Sunday.

- When the driver (the poor dad) was reluctant to run around as a Native American, the rich dad showed anger and said "You're getting paid extra for this!".

On the topic of work ethic, I didn't really see the rich dad or the mom working hard, the mom doesn't even work! Just like many of us in this forum, the dad probably got lucky to end up in a high-paying position, luck doesn't mean work ethic!

You're probably a believer in the meritocracy https://www.youtube.com/watch?v=bTDGdKaMDhQ , and watched the movie with a little confirmation bias.
From what I understand, he thought he was the only person who could save the country from Trump, and surely saving the country is worth any amount of money to someone who cares.

Turns out he's not the best person to save the country from Trump. Who would have thought?
You seem to think that "wealth" is a real thing. It is not. That's the whole problem with your reasoning. Guns are a real thing: if you point a gun at someone and pull the trigger, they will be shot and likely die. Wealth, on the other hand, is basically mutual fantasy. The only reason Michael Bloomberg, for instance, is "wealthy" is because a bunch of other people agree to his claim that a bunch of financial instruments he owns (money and stocks) are actually worth something. This only works as long as there's a functioning economy. Periods of hyperinflation in history have shown that this isn't always the case.

What motivation do people with guns have to support people with money? Only the agreement that that money is worth something, and also that that person's claim to the money is something they all agree on.

>As you can see from today's situation those people with wealth learned from the past. They know where to push and where to pull in order to successfully keep power. ... And the civilized world has been managing to keep going this way without using a gun

Have you forgotten WWII? That happened under a century ago, and one thing that happened in the 30s was the Nazis rounded up all the Jews, stuck them in death camps, and seized their money.

Money only gives you power as long as you get enough other people to agree to this. The true power lies with the people who have guns and are willing to use violence.
It's such a tiny amount of salt it's negligible. Having owned one, it was a bummer when we ran out of flies. Totally worth it.
> I wouldn't let a small child I am responsible for go into a pool alone

You would. Let me give you the scenario: you're home alone with the three kids, you've been chasing them around, doing laundry, cleaning up spilled grape juice, telling Jenny to stop cutting Tommy's hair, etc. Finally, you think everyone is down for a nap. You turn on the game. 5 minutes later, 5 minutes, you think "It's too quiet...". You get up and walk around for a couple minutes to find 4 year-old Sally's door open. No Sally. Where's Sally? Sprint around the house, run down to the kitchen, look in the back yard, and she's face down in the pool. You immediately get her out, desperate. You realize you have to separate from her to call 911. She's been unaccounted for by now for 12 minutes.

The paramedics get a breath back, but anoxic brain injury has set in. She dies, tubes in every orifice, 3 days later.

I have seen this play out more than once. My parents had a pool. I was a lifeguard, have made rescues. I was also on swim team, I'm in the Navy now, and I'm a physician. I surf, I dive, I do open ocean swimming and triathlons. I've helped rescue a diver in pulmonary edema. I think I wouldn't leave my kid unattended, but I know I might.

I've met the parents. They wouldn't let a small child go into a pool alone either.
I met the inventor at a party once as we had a mutual friend in common. He's a really interesting guy! Very low key. I wasn't sure that there would be an audience for it, but apparently there's a big one. Good for him!
The Kubernetes logging operator 3.0 release is out
Knowing that sub, there's a really good chance that the person you responded to was not joking.
Isn't REST just a glorified SOAP at this point?

Predefined schema, generate classes from schema, interact with it via HTTP.
Does this work properly on mobile/without headsets for you?

Our problem was that we had way too much echo/reverb, especially when people were not using headsets. Just having one non-headset user killed it for us. IIRC even one user talking into their phone normally (i.e. no "loudspeaker" setting activated on their phone) killed our conversations because people heard themselves talking. I've tried finding a setting that would be OK to use when no headset is available, but I just couldn't get it to become bearable.

I'd really like to use something self-hosted, but I can't control what devices people use, and users are way too used to simple interfaces. I've also tried a self-hosted Jitsi meet instance more than a year ago, which for some reason has much better echo reduction, but it sometimes didn't work for one or two of our colleagues for unknown reasons, maybe because most of us have Firefox, not Chrome, or mobile browsers.
The android app didn't work on my Sony Z1, but I've since changed phones and it seems to work now.
How do downvotes even work here? I've been posting here for years and (as far as I know) am in good standing and don't have the option.
Well, unscrupulous advertising and marketing is. I get the sentiment, because we are flooded with it. But there is honest and respectful advertising too... unfortunately, most companies gravitate towards making a quick buck instead of investing in earning trust.
Some performance tricks with .NET strings
I wonder if that will hold as people use cash less often... if you grow up only using credit cards and have no association with paper money having value, will this study no longer be true? Most adults at the time the study was done probably were still using cash for most purchases for most of their life, making that association stronger.
Here is one simulator you can use: https://briansimulator.org/

Generally it is not known to my best knowledge how or whether the brain uses backpropagation (knowing that would be a huge result). However, several papers have been written on that topic with varying approaches. I encourage you to do a literature search if you want to dig deeper.

On this topic it is worth mentioning that it is not even known why the brain uses discrete signals (spikes) for communication.
"people need to improve constantly"
No they don't. Plenty of people happy to be as they are. When you're constantly running on this treadmill of self improvement, you'll probably get depressed real quick.
It's disappointing that so many comments are deriding the results of this study. I think this study is actually underestimating the effect of social contagion through social media, not just for emotional states but political views as well.

While I think this type of social contagion happens through all forms of media, social media is highly individualist so I think the effect is slightly different. I don't think it's a coincidence that the explosion of identity politics over the past ten years lines up with rise of social media. This individualism is especially obvious with post-modernist leftists - just think of how many Twitter bios start off with listing someone's gender identity, mental illnesses, ethnicity, etc. Leftist social media is more of a subculture than an actual political movement, with no discussion or debate before ideas are treated as wrongthink.
It is a question of scale. Vaccination is usually a light, kind, touching moment between a nurse and a patient; vaccines have been behind the attempted eradication of several species. Gardening is often seen as a quiet, pastoral, contemplative practice; crop selection has permanently altered the global climate (via disruption of water and nitrogen cycles) and invasive species have permanently altered local habitats.

I have yet to meet the Jain who has studied cellular biology.
Completely different use case and purpose.

Cypher is a graph query language.

GraphQL is an API query language to query tree like structures (trees...), nothing to do with graphs actually.
Exactly. Quora has the same core business model as BuzzFeed: pay for content and serve ads next to it. Imagine if BuzzFeed let someone write thousands of pieces of content for them over a period of weeks on the promise of payment and then decided not to pay them. This doesn't feel intrinsically different to me.
Reddit does pretty well for the "random collection of locals". I follow a subreddit for:

- my state
- the nearest metro area of my state
- politics in my state

It seems like most of the posters are actually in my local area, so it's fairly easy to kick off a discussion about some local issue. The downside is that there's a significant leftist bias (true for most of Reddit), but it's fine if you take that into account.
> or the sea

This can be surprisingly non-obvious.

A 5-ish year old walking around and splashing at the beach. In shallow below-knee water. With shallow above-knee surf. No worries.

Gets knocked down. Repeated wave impacts, unstable sand, water hitting face, struggle to breathe air and not water. They're unable to stand up again. Keep trying and falling. And then not trying.

The parent was a couple meters away, watching, interpreting this as play. Bystanders stepped in. Intervention was trivially easy. Parent criticized kid for fooling around. So even afterwards, it was non-obvious they had been watching their kid drown.

Perhaps if you don't have experience where the challenge to breathing isn't absence of air, but the presence of too much water mixed into it?
They're famous for not explaining themselves. Nominally, they're trying to avoid getting bogged down with explanations and counter-explanations. Trolls will happily troll moderators with interminable arguments.

I hadn't heard them accused of doing so just to avoid paying out. I wouldn't put it past them, though it does seem like Hanlon's razor would apply -- that it's stupidity rather than malice.

In the case of Quora Partners, the program attracts large quantities of very repetitive questions with little guidance on which ones cross the line from merely boring ("Who was the star of movie X?") to unacceptable ("What fruit starts with A/B/C/D...?" "What is 74+1? What is 50-3?...") Even if I knew their questions, I couldn't tell you if they'd find it acceptable.
5 Hertford Street
Eh lost me at "boring monotony of the suburbs". I have zero problems with the burbs, I don't like these insult everything at the new place I go to pieces. I wish the guy luck though, I read the conclusion of the story.
> Is there some reason why an introduction to SerenityOS GUI

> programming cannot also be an introduction to SerenityOS

> programming as a whole?

It could be, but it's vague. The original title was very much to the point, I don't understand why 'GUI' was dropped.
I think there's even a theory that one of the reasons BSD is a small niche OS and Linux powers the world is because BSD was tied up in litigation for a while.
This is the first spam message I've ever seen on HN after using it for several years, which is quite impressive really.
I can’t tell which of the ideas you think are crazy.

- 18 months in low risk savings (not invested) - seems like overkill.

- I personally think any money spent on a wedding is overkill - we went to the courthouse and saved a ton of money by having a smallish reception (in fairness we were in our mid 30s and on our second marriage)

- 401K - I have no opinion either way. I haven’t thought about the pros and cons.

I don’t trust financial advisors. Unless you have a reasonably complicated situation the standard advice you can find from reputable sites like Vanguard would take you a long way.
Show HN: Notebook to compute CO2 emissions from Google Location History
There usually are different Ali suppliers that are either more b2c or b2b focused and offer variable balance between free to cheap single user upwards to enterprise. APIs are priced similiarly.

Also utility is physically providing wherein the distribution of an api is already existant.
You didn't state a theory; to the extent that you implied a theory similar to the one I described the available data does not support it at all...
Volkswagen says goodbye to natural gas cars
Agreed. Their prevailing opinion is good on average and is probably better than someone with absolutely no knowledge about personal finance winging it.

But, like the infamous Air Force "Average Pilot" program [1], there are many things that will end up being wrong for the individual.

1) https://www.thestar.com/news/insight/2016/01/16/when-us-air-...
Ministry of Education of Luxembourg| Statistician | Luxembourg City | ONSITE | https://govjobs.public.lu/fr/postuler/postes-vacants/employe...

The Luxembourgish Ministry of Education is hiring a Statistician. The job posting is in French but I'll highlight the most important points:

- You need to be an EU citizen

- You need to be able to speak French, German and Luxembourgish at Niveau B1, B2, C1 (you can choose which is which). That said, if you have a good command of German, you can get Level B1 in Luxembourgish within 10-20 days of 1-2 hours of practice each day (I did that).

- Mission is to use all the data (they have a lot, but sometimes of questionable quality) to gain insights on how to improve the quality and outcomes of education.

- You'll work in an international team and hear 4-6 languages daily, the team is very open-minded, young and from a lot of different backgrounds

- Salary is exceptional for European standards, especially if you factor in Luxembourgish taxes. Starting salary is 80k gross (52k net assuming unmarried, no kids) and you'll reach 90k within 3 years. The sums are higher if you have kids, prior experience, a PhD, ...

My eMail is in my profile
I think he found out that while the establishment (neo liberal Dems and neo conservative Repubs) don’t like Trump, they dislike Bernie more and are willing to go through Trump II if they avoid Bernie-style soc-dem. So they’ll put an over the hill Clinton clone up for the presidency. He’s like a weaker Bob Dole candidate.
Not at all. Alerts serve a different purpose.

One of the most important things a team needs over the long haul is a feel for their system. Many people refer to this as mechanical sympathy. And the way you develop that is long-term exposure to rich data.

Alerts are the red and yellow lights on your dashboard. But you get mechanical sympathy by listening to the sound of the engine, feel of the road, and the smell of things when you take a peek under the hood.

There are a lot of ways to achieve mechanical sympathy, of course. And information radiators are easily misused; you have to have the right information shown in the right ways for people to develop a correlative, intuitive understanding of what they've built. But nobody develops mechanical sympathy by looking at dashboard lights alone.
> As a service provider, I love using usage-based pricing models as it means I can focus all my energy and effort on what I do best: running a service. It lets me focus on the quality of my service above everything else. Usage-based pricing also allows me to scale my service’s revenues without hiring a large fleet of sales reps.

> Usage-based pricing with automatic volume discounting incentivizes both parties to grow and win together. Neither party is in an adversarial position with the other.

As someone who runs a company with a pay-as-you-go, automatic-discounts pricing model, these points resonate strongly. We are always aligned with our customers and our metrics and incentives are very clear: do things that make it more useful for the customer.

We have had to add enterprise options because of customer demand, though. Enterprises really don't like unpredictable pricing and so we've had to create various flat-rate options for them.

We've found the pay-as-you-go freemium to be a great compliment to enterprise plans, though. People within a company can try out Geocodio for free or very cheaply (i.e., no PO required, just throw it on their boss's P card), make sure it's what they need, and then make the case internally. As a result, we don't have to do any outbound sales. The pricing model does it for us.
I once asked my college professor about operator precedence in C. He had been writing C code in industry for decades.

"I have no idea" he told me.

He said many programmers try to make their code as short and pretty as possible, as if there was some kind of character limit. Instead of falling into that trap, he just used parentheses. And the order of operations never was an issue.
https://medium.com/otherlab-news/how-do-we-decarbonize-7fc2f...

"There is enough wind in the world to supply the entire world’s energy needs. Solar supply exceeds even that by many times and is by far the largest renewable resource. In reality, wind is a second-order effect of solar energy anyway — the sun differentially heats the oceans, atmosphere, and land, and these thermal differences create the wind. This wind, in turn, makes waves; while there is, in fact, a lot of energy in the waves of the deep ocean, there is very little nearer to shore. Even if we captured all of the waves hitting every coastline on the planet, that’s not enough to meet humanity’s demand for energy. The ocean is a fragile ecosystem and capturing large portions of wave energy would negatively affect the oxygenation of the oceans, among other effects."
What software engineers can learn from journalists
How does your process look like? You take your notes in notion, and move (some parts of?) them to Anki?
I've been earning interest on my DAI quite nicely. The only thing that concerns me since the bZx fiasco is... how attack-proof are all these smart contracts? At times it feels like putting your money in a house of cards.

We need better insurance in the crypto space. Nexus is fine but it doesn't cover everything and you could still be denied as it's not trust-less.
Is Desktop Development Dead? Or Still Worth It?
Perhaps, that's a vast area for that though.. interesting.

( It's most obvious using the viirs 2019 overlay on lightpollutionmap.info )
As a legal immigrant, I can assure you, it's not open door. It's difficult, expensive, long and Kafkaesque. You really really shouldn't describe an experience you clearly don't understand.
That's slighty better, I guess. It's still quite misleading if you are self-hosting a matrix homeserver, though.