skysight-inc/HackerNews huggingface dataset:
Unwrap is just the same (or better) than expect(""). The cat is out the bag with expect. What is needed, is good documentation, style guides, example code etc to guide users towards understanding the trade-offs and making informed decisions. I suppose unwrap could have had a more scary name.
No problems finding it in Belem 6 years ago. +1 on the "a little sip" - but I think that's true for any alcoholic beverage one drinks for yet another effect than the ones induced by alcohol (e.g. Absinthe).
Here's a small historical curiosity: In HTTPS Everywhere, the functionality used to be call "Block all HTTP requests" but when that functionality was changed (back in 2016 [0]) to not block connections to non-HTTPS hidden services, it was renamed to "Block all unencrypted requests".

I just checked, and indeed Tor Browser 11.5 does not block non-HTTPS connections to hidden services, even when in "HTTPS-Only" mode. Thankfully.

[0]: https://github.com/EFForg/https-everywhere/pull/4370
I’ve found that eating a small amount will drastically up my hunger. So I’ll easily consume a huge meal.

But if I eat a small small amount, wait 30 minutes the hunger fades and I will feel full.

So basically a 30 minute delay between being full and feeling full.

That’s a huge window for a lot of calories.
I have the same problem with raw vegetables, but there's different types of food, some food stops your hunger for like 30-60 minutes (e.g. ice cream) whereas other food can last for several hours, both having the same amount of calories. The "trick" is in my case to find food that satisfies my brain and makes me full for many hours, then eat such food in 95% of times.
São Paulo resident here as well... You may find it in several restaurants around Paulista avenue.
Exporter with massive asterisk. They are exporting electricity during summer, when it is cheap and nobody needs it and importing it during winter when it is expensive.
But are the people of Sri Lanka not going to suffer immensely in a different way and thus also need our aid, assistance, and attention?
Have you tried a local hookah lounge or cigar bar? Many are under utilized during the day and may be fine with an arrangement like this as long as it doesn’t interfere with their core night hours.
Not that I've ever seen. Smurfs are all just new accounts starting with no rank
You can enforce this with a clippy lint: https://rust-lang.github.io/rust-clippy/rust-1.62.0/index.ht...
The army of Russia has explicitly been kept underpowered just for that reason and generals get rotated around a lot. A strong army is a threat to Putin. Source : CSIS.
I'm short CEL token and it's taking it's time to collapse but I agree with you there's not much value there. (You can short on FTX futures in case anyone is inspired - not investment advice).
A new study refutes widespread idea that woodpeckers have shock-absorbing heads
Violent crime is not what makes me unsafe. Violent negligence is: 8.35 per thousand as of 2019[0].

If you want to demonstrate that NYC is less safe (and it may well be), focus on the high risk factors, not the salient ones.

[0] https://www.statista.com/statistics/191720/traffic-related-i...
I am not credentialed, I am a Bad Person (I have my own Thoughts); as for "intel", I have none either.

I find these given cause-and-effect chains in defense of the sanctions and other actions largely to be magical thinking and hysterical (they'd be less so if they were actually backed by the proof-of-work of deploying to protect Ukraine).

Like, I don't care about the Ruble in itself. I was told that it would be flattened in two weeks. Well it wasn't, so we failed there. Okay, so next goal post is to pretend Ruble going up and down has helped Ukraine's strategic or operational capabilities or hurt Russia's, materially altered the course of the war. Well that's magical thinking, they were supposed to run out of missiles in two weeks somewhere around March, and it was like day or two ago they made their largest missile strike (which have been more or less continuous).

A NATO deployment would alter the outcome of the war, and that single action is not coming.
Fantastic question, which is some way down on my to-do list after the steam engine. The discussion this prompted is a real goldmine, so thank you.
"Being hungry" has different definitions and corresponds to two very different body sensations. If you eat at a regular time every day, you'll get "hungry" around that time, whether your body really needs it or not. But if you skip that meal at some point the cravings disappear… so it wasn't really physiological then, just a mind trick from hormones. The other "hungry" you can feel it like a vacuum in your stomach and is painful.
Yes, and when the famine (https://www.reuters.com/world/asia-pacific/we-are-going-die-...) hits in a few months, we should - and probably will - assist. We're just not likely to intervene with the protests going on right now.
Subjugation.

Almost the entirety of the human population has been under some form of servitude or bondage since the beginning. Only a handful of experiments in democracy like the USA managed to exist for more than a few hundred years. And those owed their existence to either slavery or the oppression of women. For every James Watt, there are 10,000 people just as smart who spent the entirety of their lives toiling to make someone else rich.

As long as we view progress through the lens of our own merit, nothing will ever change. Which is perhaps my greatest disappointment with how the 21st century has played out vs the original vision of the internet as a great equalizer providing knowledge and resources for everyone in an egalitarian fashion. We all got sold a bill of goods by the wealthy financiers who own everything now, including HN which was quickly coopted sadly.
This is explained in much detail in the very first link, in the very first sentence of the post :-)
It is! :)
Perhaps the name could have made it more obvious: e.g. "get_or_fail"
Love that tidbit about formiga. Same in Italian: formica (ant) and formicolare (“to ant” or “to tingle”).
I feel like the author is only thinking about high-quality production code. Often you're just writing a 30-line snippet of throwaway code to test something out. And then unwrap() is a bit nicer than expect("").
Access to trial transcripts in many jurisdictions is often behind complex paywalls/distribution agreements or some really archaic time consuming process to get official copies. It's not unheard of for an interest group to reshare these materials relevant to their objectives.

Its similar to the situation with scientific papers and the sci-hub site trying to remove blockers to access; people have tried before to make sci-hub clones for trial transcripts/court decisions/published legislation but there is huge money in this industry for companies like LexisNexis etc who often litigate to shut them down. Legal firms who need access to these details just see deals with companies like LexisNexis as standard cost of doing legal business - much like you might need a github account for every software engineer, lawyers will usually need individual accounts for services like LexisNexis to get latest court decisions and legislation.
I seem to remember that some part of poetry's slowness is due to how the python index works and is therefore a problem shared by all such tools.

That said, I've used both pipenv and poetry, and I had projects where pipenv would simply time out when trying to resolve packages. I haven't seen the same behaviour with poetry (indeed, that was the reason I migrated one project from pipenv to poetry after I just had to give up with the former).
Looks like fun to use and it was fun to create.

I don't see a use case for myself. I use cd with TAB autocomplete and I'm set. I'm old enough and lazy enough.
There is so much content saying “calorie counting doesn’t work!”, but actually it really does. If you eat less than you burn you will lose weight.
"Our traditional diets changes our genetics, so who you are will determine what is healthy for you."

That's my point - traditional for the individual based on their ancestry.
After struggling with the sluggishness on a Mac for a long time, I am super excited that 1.2 finally works super smooth for me on an M1!
Jim Thorpe reinstated as sole winner of 1912 Olympic gold medals
> Seems to line up with my experience, am always burning up (until I turn on the AC and freeze)

I can't gain weight but I also love the heat... I don't have the A/C on right now and it's 84F inside.
its weird how people who have nothing always have to take care of the bill
the unreliable source in question is not a person, but a site

does the site have a track record of reliable fact checking from their editorial team which reviews submitted content?
Check out Russian state TV. They've been very explicit in saying they don't think 'Ukraine', Ukranians or even Ukranian language actually exists.
+1 for GOG. I don't play games much anymore, but I still collect some of the older ones I enjoy on GOG knowing that there is no DRM. I tried steam and purchased a few games, but honestly I prefer to just have the game flat out without needing a "client" to get them, so while many people praise Steam... I'll pass.
> I would define Stripe as B2B2C.

I agree; this is more accurate.

> And by far the number 1 request from customers is usually PayPal.

Do you have any data on this? I'm genuinely curious. Not only do I have a long list of negative experiences with PayPal that skew my own take, but I also have no idea where to look for this kind of industry-wide data on B2B2C customer-demand.
Thanks for writing this (and teaching me what an eggcorn is) - it made me laugh.

However, I think I'll chalk my use of "queue" rather than "cue" to it being 1 AM when I wrote the comment. :)
A house of cards collapses with one card first.
Show HN: Setup daily team stand-ups in under 2 minute
But "Russia has been treated so unfairy" and "European Union is the biggest foe of the United States" not Russia or China...So let's listen to what that clown(Trump) says next, right? Germany's dependency on Russia's energy has been well known for decades.
Frankly, I think it's embarrassing that such a large part of Europe is still so dependent on natural gas. It's being portrayed as a problem now due to economics, but global warming and making yourself dependent on authoritarian regimes has been an issue for much longer than that. The switch should have happened much sooner, but I guess the money was always more important and Russian gas was cheap enough to forget about the external costs.

And it's not only about finding other energy sources, it's also about using the energy in a smarter way. Better insulated houses and heat pumps work well here in northern Europe, why hasn't this been a priority the last ten years at least?

I'm paying much more for my electricity now even though we hardly use any natural gas in this country, because we're exporting electricity to countries that do, driving up our prices. Their shortsightedness is costing me money and adding more CO2 to our atmosphere. If it was only because of the war in Ukraine I wouldn't mind as much, but come winter and millions of people in other countries are going to burn expensive Russian gas to heat poorly insulated houses leaking heat like a sieve.
Why not just pledge not to exec?
> If you check out the code

That's why you need an "about" blurb.
"Looks like you're having problems enforcing no unwrap. Would you like help? [Yes][No]"
I feel mixed on this, it's kinda like arguing that the Hello World for Java needs to include classes because it starts people off on the right foot.

Unwrap is admittedly a stupid tool, and if you're starting off in Rust it becomes one of those "when all you have is a hammer, everything looks like a nail" situations. It's like a can-opener for fussy functions that want you to write semantic code, and it's admittedly quite good at what it does. Too good.

Like the author highlights, simply appending '?' to the end of your line is a better way to handle 90% of unwrap cases, and the 'panic' macro should cover most of everything else. Unwrap should really only be used when you disagree with the library developer about error handling. In all other cases, you should probably respect the error propagation of the program. Explaining all that to a new Rust user is hard though, so I don't really nitpick with it until people are comfortable with the memory model and control flow of Rust.
Clippy has a lint that will check for `.unwrap()` calls; https://rust-lang.github.io/rust-clippy/master/index.html#un....

It is allowed by default, but you can turn it on in the configuration file.
Terrorizing in what sense? I'm pretty fluent in the region, and read Ukrainian and Russian news, but I've never seen any evidence beyond the laws promoting Ukrainian language. That's pretty far from terror imo
> on domestic nuclear rather than foreign energy

What a statement.

> It's really been the German greens hellbent on holding back nuclear across the EU

The German Greens, stalling investments into nuclear energy across the world. A powerful cabal.
Thing about JSON is the ease of reading and writing it, regardless the size of the document. Compression deals with the rest.
Yeah im a huge poetry fan for dep management but i never use “shell” or any of its virtualenv management features
Wrapper classes should be equally good once Valhalla (jdk) lands, without introducing another pointer indirection.
Is this not an emergency?
Track down the Graphics Gems series of books, it's what most of the game devs back in that era used to get tricks like fast square root, etc. https://www.realtimerendering.com/resources/GraphicsGems/
It’s still useful in cases where you’ve already handled the error case. For example:

if res.is_err() {
// Do something
return;
}

let res = res.unwrap();
It really runs the gamut, from bugs in included software to "why are we dropping packets" (usually misconfiguration) to an update broke our existing config or an update failed to install, etc. I saw one ticket that was "missing build dependencies" where they couldn't build their own code because of a package difference, and while Red Hat didn't fix their code, they did give them some helpful pointers.
`unwrap` is fine. As the author mentions, it can be converted into `?` without much hassle if the function return type can be changed easily. And `?` looks cleaner than `unwrap`, so the incentives are aligned to nudge developers towards that instead.

`unwrap` is plenty explicit, and developers know exactly what it does (and that it might panic) once they've spent a few hours with Rust. It's not the subtle footgun the author is making it out to be.
Our ProtonMail Adventure – A Five Act Drama
Show HN: Engage followers – Reduce range dump, Increase meaningful discussions
I think that most of us spend our time on Twitter usually in rage dumping because we're forced to interact with random people without common interest.

I believe if we could interact with people with common interests on Twitter then we can build meaningful relationships with them.

Fortunately we do have access to people on Twitter with common interests - Our followers; But it's currently not easy to spot what connects us with our followers as we might not follow back all our followers and even if we do there's no guarantee that we'd see all their tweets or those tweets which matter to us.

Hence I've created 'engage followers' and it works by,

1. Monitoring the tweets of our Twitter followers.

2. Classifying their tweets according to our chosen topics of interest.

3. Sending the list of tweets which matches our topics to us via an email digest and/or Auto liking them(So we can check those tweets in the likes section of Twitter).

I've seen good results over the past week since I've launched engage followers, Getting to know about some like minded followers on my personal & product accounts. I hope you'd give it a try and tell me how it can be made more useful.
Empathy is what distinguishes us from being just angry monkeys. But then, there are of course very selfish goals like long-term survival and freedom to live as you like outside of yet another authoritarian prison of nations. Which would be less likely for at least a significant part of Europe should most not care now.
It's possible to run Doom inside of Doom
It's wild how close this is to true, but by my measurement the shortest distance between the US mainland (so not counting Puerto Rico) and the nearest point I can see in the Amazon [white outline in 0, for lack of a better reference] is ~1,650 miles, and there is nowhere in Brazil that is more than 1600 miles.

[0]https://en.wikipedia.org/wiki/Amazon_rainforest#/media/File:...
Could be food related. Feeling hot stopped when I did an elimination diet. Basically my body was constantly reacting to food.

Eventually diagnosed with an autoimmune condition. Food is one of the primary ways I keep it under control.
Sorry, don't get what this is about, and I'm an ex BBC Micro user. Enlighten me?
They killed most of the population of Mariupol that wasn't able to flee, shell civilians continuously, have deported millions of Ukrainians to Russia so far where children are taken apart from their parents and the parents are taken to "filtration camps" where many are shot and the rest relocated to the Far East.

On top of the rhetoric that Ukrainians as a people shouldn't exist.

There is no doubt that it is genocide and termination.
Vim Colorschemes
Haven't used Inkscape in windows, but I believe it's built on GTK. There maybe a GTK config setting on windows to use the native picker.
This sounded interesting but I was confused by what you meant by "the book." Looks like that's how it's commonly referred to https://www.rust-lang.org/learn
J cough?
Why is that? I've always heard that you can eat a lot for breakfast and your body will somewhat adjust it's calorie needs down for the rest of the day. My grandfather needed to gain weight as he got older he would eat ice cream or drink a beer before bed and it helped him gain weight. My understanding is that metabolism drops during sleep, making it more likely that the calories are stored rather than used.
Hence 'SUPPER' <-- supper was always common, and typically (in my neck of the woods) "Dinner at ~4:30PM" or so.

Dinner was if you had guests.

---

I have two strong personal takeaways at this post:

A)

* I have long had sleep issues, with the jerks and what not (I have them literally every other day, to this day)

* I recognize that many people ITT are high-IQ/thought-producing-workers

* The fact that REM does a basic "mental-wash" over your cortex and brain in gen, thus to solidify (calcify) memories into system. Such that if you experience poor sleep - you have a poor memory. This is TRUE for me.

B)

* Diet is a huge factor. And intuitively enough, just yesterday I was feeling that my internal sodium/potassium pump was off... I could feel it.

I eat a lot of bananas, but a close person to me is a Cellar Somm at TFL, who has 19,000 bottles of wine in the catalogue, and she constantly berates my poor memory ; but she literally eats a banana every single day on way to work, and has the ability to fall asleep in seconds, and when asleep - sleeps like a mummy.

ALSO partakes in smoking pot - which is commonly referred to when talking about memory loss, but jer memory is impeccable even over a decade, the details she can recount... (Dont make a fool of yourself at TFL).

The weird thing was I was literally thinking about the importance of the potassium sodium pump, and that I could feel an imbalance in my own body on such (my focus was on meditating on the health of my kidneys) but knowing that its also related to sleep and, more importantly for me, memory ; and the REM WASH - I am convinced this will be next step in restoring what was perviously a photographic memory when I was 15...
With all these fees, how tf do you make any profit?
> Well, that puts regex compilation in the same category as array indexing in my mind, and means that the default regex compilation function should panic on the user’s behalf

I like the Go stdlib idiom for this: many functions have a version with a "Must" prefix that has the behavior of panicking rather than returning an error.

e.g. for regexp: https://pkg.go.dev/regexp#MustCompile
...and the 'Elite' disc seems to be in the drive by default!
You can replace this with a match statement to avoid the unwrap.
Such issues are solved with proper regulation and effective antitrust laws. Unfortunately, if you lose the moment and allow the companies to gain enough power, it becomes incredibly difficult to push back against that. That's basically the state of things in the US
China also installs more renewables than anyone else
Bram Stoker's Dracula is an allegory for international timezone coordination
AWS Customers Can Now Order a Free MFA Security Key
Ah, but if we don't care about Ukraine, why would we care about your country?
This seems off-topic for HN.
This is not really about "willingness". Modern Western tanks are a logistical nightmare, and Ukrainian logistical capabilities to support them are limited. In order not to overextend them, everyone concentrates on doing what is most effective.

In the case of this war at this very moment, it is long range high precision artillery. HIMARS eats rockets like crazy, it needs to be supplied constantly.

Once those supply chains are fully built and safe, they can talk about adding tanks to the mix.
I'd also be happy if it was removed. It's too easy to use it rather than going up the learning curve of ?.

? Is one of the main benefits of rust.
Absolutely love this. I have a whole bunch of similar tools for importing stuff from different services into SQLite but I never got up the courage to take on Jira!

Here's my github-to-sqlite tool which imports GitHub Issues https://datasette.io/tools/github-to-sqlite - being able to query them in a local SQLite database is super-handy. I run a demo instance of the resulting database here: https://github-to-sqlite.dogsheep.net/
My thoughts exactly. Without panic people (myself included) would just write expect("") when we want the behavior of unwrap().

I have some Rust code that I'm the only user of; in those cases I'd rather investigate an error when it comes up than spend time upfront thinking about errors that may never happen.
I'm using Tresorit instead of Drive since about one year. Working fine. So far not considering leaving that service.
Windows does seem to have strategy-shifted a lot since the 2000-2010ish era. I recently installed Windows 10 the official way on a fresh PC, it allowed installing with no license key. It allowed installing with a local-only account.

The installation appears fully functional. It's not prompting for any key or licensing.

They finally just seem glad that someone is using their software...
While Chinese people may have a low obesity rate, they aren’t significantly healthier in other respects. High cholesterol, blood pressure, and type 2 diabetes (white rice) are a big problem.
Also short - the insiders have probably sold a lot of CEL for real US$ and are now in a position to buy some CEL to prop the price up. But eventually it's probably going down.
> AJAX form submission with a redirect at the end, for example, is very common.

Why does that AJAX form need to pretend it's a link to a specific URL?

A button would have no problem, and a link that stays on the page would have no problem.
https://en.wikipedia.org/wiki/The_Report_from_Iron_Mountain
Thank you for this recommendation, I'm on a DynamoDB contract job and... really learning to think hard about key structure and designing for efficient querying, rather than efficient storage.