skysight-inc/HackerNews huggingface dataset:
You want the "?" operator.
Is Inkscape better than Adobe Illustrator for working with vectors because Illustrator may be the most unintuitive piece of software ever made.
I tend to agree.

You can use "unwrap()" on an Option, but you can't use "?". You have to write something like

let val = v.ok_or(anyhow!("Error message goes here"))?;

which is a bit unwieldy.

fn square(v: &Option<f32>) -> f32 {
Ok(v.unwrap()*v.unwrap())
}

becomes

fn square(v: &Option<f32>) -> Result<f32, Error> {
let val = v.ok_or(anyhow!("None value sent to square"))?;
Ok(val*val)
}

A default message would be useful.

Bailing out of the middle of a map expression's closure is complicated. In that situation, "?" causes a return of the expression in the closure, not the whole map. There's a clever way around this.[1] It supposedly gets optimized so that the iteration quits early, and an array of Result types is not generated and then flattened.

You never really need unwrap, but the "right way" can be verbose.

[1] https://stackoverflow.com/questions/26368288/how-do-i-stop-i...
Would it be more fun to run a live cd webserver only? piece together an old computer, with an old live linux installation, and either run it unupdated or patched and carrying updates it can only apply w/o reboot?
Well they already have these pretty neat butcher block surfaces, but I did do one floor in polished concrete and it’s pretty rad
Apple M1

Chrome

JS: 2900

WASM: 13000

Firefox

JS: 5000

WASM: 16000

Safari

JS: 5500

WASM: 18000
It's the difference between storage of data and consensus.

You could have a centralized DB that believes X is true. You could have a distributed DB that believes X is true - or even that reflects that a bunch of people involved in the network believes that X is true.

But what if X isn't true according to the consensus of the local societies you live in? Then it simply doesn't matter what sort of DB you use.

In this "network states" discussion there seems to be a simple problem here: a network that crosses political boundaries can't solve certain things. So ok, it "crowdfunds territory around the world and eventually gains diplomatic recognition from pre-existing states"

But... is that actually even realistic at all, or is it all fantasy? And even if you get there, your problem of border defense is INCREDIBLY difficult in your geo-distributed state. Traditional states appear to have some massive advantages in cases of any conflict.
... and then M. Musk realizes he never send those tweets...
Actually it's quite normal in American English to describe garlic as hot or spicy, especially raw garlic.
No. The cache is at the block layer, not the file/directory layer. So the filesystem will look up the directory structure, which will be cached.
Good list. It's a little surprising that Google still can't bundle a better chat application in Google Workspace.
Additionally someone was able to talk to the two other “gold medal” winner’s families about their medals beung changed to silver so that Thorpe could be changed to sole gold medal winner. The previous silver and bronze winners retain their medals.
"the cost for most people". -- I disagree, it just takes some planning.

A Big Mac menu goes for 10+ dollars where I live.

Sirloin steak, which is reasonably lean (you can go leaner and cheaper with something like London Broil, every 3 weeks it is sold at 2.50 t0 3 dollars per pound), when on sale (this is the planning I was referring to) can be bought for 3-4 dollars per pound. One can buy 20 pounds for 60-80 dollars.
A big bag of frozen vegetables, enough for 10 meals, it's sold at Costco for 10 dollars.

A whole day of abundant eating (2 pounds of steak and vegetables) can cost less than a Big Mac menu.
You can throw in some potatoes and eggs and pay per day what you would pay at MacDonalds or equivalent per meal.
We'd need an even more unholy name for `unsafe { foo.unwrap_unchecked() }`!
I see now there's a setting in Inkscape to use either the native open / save dialogue or the GTK one. The GTK picker has / as the shortcut to start typing a path.
The biggest problem I find is that it seems to be pretty "outdated" to keep redirects in place, if you move stuff. So many links to news websites, etc. will cause a redirect to either / or a 404 (which is a very odd thing to redirect to in my opinion).

If you are unlucky an article you wanted to find also completely disappeared. This is scary, because it's basically history disappearing.

I also wonder what will happen to text on websites that are some ajax and javascript breaks because a third party goes down. While the internet archive seems to be building tools for people to use to mitigate this I found that they barely worked on websites that do something like this.

Another worry is the ever-increasing size of these scripts making archiving more expensive.
>* so supply meets demand at a reasonable price*

You have no idea of what "price" means.

`I killed your mother in front of you because she was attempting to stop your father from doing X... but at what PRICE?`

Put a price on your [everything]
I agree. Offline backups are more important than ever.
There are some good ideas here - I especially like the magnetic bit rack. Not a fan of peg boards and general wall hangers or an insulation foam wall hanger (seems fragile and messy) but they probably work for some people.
Cool to see this on HN
I mean lots of other people I respect hold him in high regard (e.g. Andreessen), he has achieved some measure of success in business, and I've watched many of his lectures and think that he's quite intelligent. I don't find many of his ideas around crypto stuff compelling but I still think he's got a brilliant mind.
It depends, I have a really big sweet tooth, but it is a self-reinforcing craving. There are people that really do not enjoy sweet things, and a lot of that has to do with those people not consuming sweets as a part of a regular diet, so there is not the rise/crash cycle, which is ultimately what makes it hard to get away from sugars.
It's really on Reuters. That was a truly shitty headline.

See the HN guidelines, it's allowed (and encouraged) to substitute or edit titles in the case of clickbait. Usually I'll suggest something in the text itself, occasionally the <title> tag itself has a better version. Here I sort of threw up my arms when I'd emailed dang. As his comemnt notes, the fix was adding new language, something HN generally tries to avoid.

(There's a fair amount of drama and conflict over titles, and HN actually does change quite a few for numerous reasons. Reading dang's reasoning can be illuminating: https://hn.algolia.com/?dateRange=all&page=0&prefix=false&qu... https://hn.algolia.com/?dateRange=all&page=0&prefix=false&qu... )
It looks very much like a prototype... i.e: the sensors appear to have been added as an afterthought
Me too. We could start a webring! I just need about 27 more USB floppy drives.
Looks like an expect there would be an improvement. Do you write that line often enough that adding an error message is a problem?
Read that again folks:

"a very reasonable but basic check would be to check each domain and verify that it was online and responsive to http requests. With only a million domains, this could be run from my own computer relatively simply and it would give us a very quick temperature check on whether the list truly was representative of the “top sites on the internet”. "

This took him 50 minutes to run. Think about that when you want to host something smaller than a large commercial site. We live in the future now, where bandwidth is relatively high and computers are fast. Point being that you don't need to rent or provision "big infrastructure" unless you're actually quite big.
This is of course the correct answer. It just felt like shaving a big yak at the time.
You can use a "?" on an option if the return type of the function is also option.
"discourage" more like "termination for ToS violation or forced upgrade to a $400/m plan", it's straight forbidding, not discouraging in every major ISP I've seen.

when I was in europe I had ISP give static IP even on home ADSL, encourage running home servers, reverse DNS, IPv6 allocated subnets larger than /64..
the economics of clean energy (as they are mostly presented in media) only work when there is sufficient dispatchable (typically dirty) power available. After a certain tipping point the grid is no longer stable if you provide only non-dispatchable generation on a MW-for-MW basis. In order to avoid this catastrophe you need one of two things - you need a multiplier on your clean power generation and investments in transmission to support it, or you need storage sufficient to make a non-dispatchable source dispatchable (and of course transmission to support that, but not quite so much). Otherwise, the physics simply don't work. The trend does not extrapolate. It all breaks!

Renewable energy is absolutely essential, but the path we are going down of simply building new renewable generation, performing a linear regression on that line, and assuming that it can keep going until the grid is 100% renewable is a big flashing red warning light to anyone who understands the physics. If you want to support renewable generation, support storage!!! Build batteries, build pumped storage hydro, build transmission. The generation is the easy part!

Without planning and policy, the economics of the issue will not solve it on their own, we will end up with a mess of an unreliable power grid until such time that the incentives no longer support building new renewables and we will have the worst of both worlds.
Do you not consider an entire cup of ice cream a lot? I call it quits at one scoop personally.
I don't know enough about Japanese cooking to comment extensively on that, but I do know that there is an ingredient called sanshō that looks similar to green Sichuan peppers. That is not the ingredient I am talking about.

From my observations living in China, shopping at wet markets and eating in restaurants, green Sichuan pepper is quite commonly used. Both red and green variants are sold in dry format, but the red ones are the ones you will find more often pre-packaged in supermarkets. They do both work to create a numbing sensation, but in my opinion, the green ones get you more bang for your buck.
Mind-Blowing Stats on Appointment Scheduling
A "store of value" when talking about the properties of a useful currency implies that the value is largely stable so that it can be "stored" over the medium- and long-term. So that's actually the property BTC is worst at due of its volatility. Actually, no, 4 transactions per second globally means "medium of exchange" is the property of money BTC is worse at.

Your point that BTC was supposed to be a currency and has turned into a speculative asset is true though, and BTC proponents often dislike it when someone points that out. LN is just an attempt to make BTC better as a "medium of exchange" which is fine, but it still doesn't address the fact that BTC is a terrible store of value, it just reduces the volatility of the transaction fee (in theory).
7 (+4) Things That Don't Work in Zephyr
One of my pet peeves is CLI newbies who always have the need to cd into some directory before running a command. I learnt pretty early on that this was stupid.

Just run your command from the repo root or $HOME.
None of these have the needed properties to act like currency.
Is that actually true? Don’t most nodes hold heavily compressed pointers only while there are only a percentage of nodes that host the entire blockchain. I mean if what you’re saying is true then each node needs to have a copy of the entire internet which isn’t reasonable.
I very much doubt that there's any real need to be making decisions at that level. The money and other resources going to this IT effort is deeply unlikely to be anywhere close to the pots of money that would be considered for allocation against Russian aggression.

And given that this is in Denmark—which, while certainly within a zone of some concern, is hardly in any imminent danger from Russia—it seems to me that focusing on defending against Russian aggression, at the expense of effectively everything else, would be quite unproductive.

Or is it just that you don't think spending on maintaining privacy is worthwhile no matter what, and the Russia situation is a convenient distraction you can point to?
I think you opportunistically left out the "stereotypically" in your quote. OP is not saying they are eating less rewarding foods for them but less foods that others might find rewarding.
Hence why the Declaration of Independence was followed by a war. (Paper = stone here for all intents and purposes, it's just easier to write on.)

How many blockchain hype people are explicitly promoting wars for independence, though?
How many are placeholder pages thrown up by registrars like Network Solutions?
That you favor religion as a resource means your walk is orthogonal to any issues of faith I have. My call to serve as a pastor was hard to justify when I saw suffering. The utility of my faith just isn't a part of the calculus.
The parcel tape holding bits together is just chefs kiss
Contagion?
Then you're not recommending direnv as a poetry replacement, you're recommending direnv + pip-tools + pyenv. That's a different matter.
* Channel subscriptions via RSS (since 0.10.0)

Source: https://en.wikipedia.org/wiki/NewPipe
requests is a wrapper around urllib3, which re-implements quite a bit.
The cost of firm renewables is approaching a point where they are cheaper than fossil fuels. Firm renewables are dispatchabale because they're battery backed. Refer to the NextEra slide graphic in my comment below [1]. Maybe you need some natural gas or transmission in there to meet extreme shortfalls, but this is baked into the costs.

There's roughly 430GW of storage currently in US ISO interconnect queues wrt to your comment about supporting storage [2]. If the grid is unreliable, funds will be spent on storage to make it reliable, because the alternatives are uneconomical (Hawaii's Oahu island is replacing its last coal fired plant in the next 60 days with Tesla Megapacks for grid services, for example [3]). The demand for this is fairly evident [4].

[1] https://news.ycombinator.com/item?id=31926560

[2] https://www.energy-storage.news/estimated-427gw-of-energy-st...

[3] https://electrek.co/2022/06/27/tesla-megapacks-replace-hawai...

[4] https://www.teslarati.com/tesla-megapack-demand/
I don't see how that would work.

d[0..4].try_into()

The type of the result is something like:

Result<[u8; 4], TryFromSliceError>

How do I convert that into

Result<[u8; 4], Infallible>

As far as I can tell, Infallible is there because you're implementing a trait which returns an error, but you don't have an error to return at all.
They are definitely hoping to make millions of dollars off this tool, and then become a...
I'm autistic, and I have a whole category of recurring self-care stuff like haircuts, having a shave, doing some pull-ups, crunches, something to eat, that kind of thing. Without that, I wouldn't function so well. Never shared that before.
Maybe somewhere, but it's not a usage I've encountered. Chilis are described as hot; garlic is usually just described as "garlic".
This guy's story is really impressive. Sounds like he managed to quit his job to work on livestream developing this full time as part of a drug addiction recovery strategy. [1] That's pretty impressive, I hope the best for him going forward with that. It looks like a pretty interesting introduction to operating system development, a huge topic with tons of stuff to cover.

[1] https://awesomekling.github.io/I-quit-my-job-to-focus-on-Ser...
TLDR: Campbell's methodology is flawed, does not consider edge cases (one of which (equating apex-only and www-prefixed domains) I consider reckless), and didn't understand how Majestic collects and processes its data.

Longer version: This isn't comprehensive, but I think of two main reasons why:

- The Majestic Million lists only the registrable part (with some exceptions), and this sometimes lead to central CDNs being listed. For example, the Majestic Million lists wixsite.com (for those who are unaware is a CDN domain used by Wix.com with separate subdomains), but if you visit wixsite.com you wouldn't get anything. Same with Azure, subdomains of azureedge.net and azurewebsites.net do exist (for example https://peering.azurewebsites.net/) but azureedge.net and azurewebsites.net themselves don't exist. Without similar filtering, using the Cisco list (https://s3-us-west-1.amazonaws.com/umbrella-static/index.htm...) would quickly lead you to this precise problem (mainly because the number one is "com", but phew at least http://ai./ does exist!)

- Also, shame on the author considering www-prefixed and apex-only as one and the same. For some websites, it isn't. Take this example: jma.go.jp (Japan Meteorological Agency), which doesn't respond (actually NODATA) on http://jma.go.jp/ but is fine on https://www.jma.go.jp/. Similarly, beian.gov.cn (Chinese ICP Licence Administrator) wouldn't respond at all but www.beian.gov.cn will. And for ncbi.nlm.nih.gov (National Center for Biotechnology Information) ? I can't blame Majestic: https://www.ncbi.nlm.nih.gov/ and https://ncbi.nlm.nih.gov/ don't redirect to a canonical domain, and unless you've compared the HTTP pages there's no way you would know that they are the same website!

Edit: I've downloaded out the CSV to check my claims, and it shows:

wixsite.com 0
beian.gov.cn 0

Please, for the love of sanity, consider what the Majestic Million (and similar lists) criterion on inclusion. I can't believe it to say, but can we crowd-source "Falsehoods programmers believe about domains"?

Also addendum to crawling but I consider "probably forgivable":

- Some websites are only available in certain countries (internal Russian websites don't respond at all outside Russia for example). This can skew the numbers a little bit.
Who cares about statistics I saw it happen and finally the next presidential administration appointee hit up the prosecutor to stop on or after the third trial
> working with WPS, a domestic version of cloud-based word processing software

What did the author think was going to happen?

> tech companies’ obligation to censor on behalf of the government

Umm, there's a difference? I thought all companies were basically owned by the gov't there?
There's also the ESP32-C3-DevKitC-02 [0] which you can do the trainings with albeit making sure you mind that the pinouts are slightly different.

[0]: https://docs.espressif.com/projects/esp-idf/en/latest/esp32c...
Played this for most of a transatlantic flight with my colleague. We discussed how it might work in 3D. Then he went off and wrote Scorched 3D.
Do you have any adblocking? /aff_c are almost universally blocked because they're 99% spam, on any domain
> The benefits of simplicity in OpenStreetMap's data model

That would have been a great edit. I won't bother doing it now since it's too late to matter, but if you come up with any of those in the future, I'd love to hear about them.
FAQ for Startups Navigating the Downturn
As a US citizen, there is no way I would stand for getting taxed to pay 100% of a home improvement bill in Canada. In hindsight, brexit is starting to look pretty damn smart
It's possible you're conflating hunger/satiety with craving. If you couldn't eat another carrot, you're not hungry. Sugar (and anticipation of) gives you a dopamine boost, and we tend to crave when we have low circulating levels. Sugar consumption also increases levels of ghrelin (i.e. it makes you hungrier), and cravings.

Notwithstanding that there's more to a healthy diet than vegetables. According to research, high protein intake can improve satiety on a caloric deficit. Some level of fat intake goes a ways too; some vitamins are fat-soluble. Potato is the most satiating vegetable there is, gram per gram.

It's not well understood how nutrient deficiency influences hunger, but it's possible your diet didn't hit nutrient targets.
What’s the benefit to using archive.ph instead of archive.org (Internet Archive)? Seems like the latter is much more likely to be around for awhile.
People in Russia can swallow poverty, injustice, corruption no problem. But they cannot swallow war defeat. This tsar is weak, need a better tsar who wins.
Yes but that’s no less work than checking for null in TypeScript. The parent said:

> In your example, you still have to manually check if there's a value every time, but this is not compiler-enforced.
https://archive.ph/8M030
cc65 provides a compiler suite and runtimes for many old 6502 machines.
It really is a cool project. https://github.com/cc65/cc65

It provides some template configuration files describing different memory layouts. And provides common libraries for input/output.

There's also a LLVM fork for MOS: https://github.com/llvm-mos/llvm-mos

They've got some interesting hacks with ZeroPage memory and register allocation: https://llvm-mos.org/wiki/Code_generation_overview

Interesting if you geek out on that kind of research.
I don't have exceptional experience with either Alma or Rocky, but I've been administering enterprise Red Hat and CentOS for years.

1.5 years in enterprise time is hardly any time at all. Heck, it takes that time to approve a budget in some enterprises. Yeah, time-to-release is an important metric, but software compatibility and industry support is really the magic sauce.

In my industry, we'll be using current CentOS 7 installs until EOL, and watch all derivatives with interest over the long term - given they provide anything over current RH ecosystem (RHEL, CentOS Stream, Fedora).
Unfortunately it's not bullshit. I wish it was - read the summary of the OSCE report: https://osce.usmission.gov/response-to-moscow-mechanism-repo...

It's even worse.
Ok, that argument is about as old as Rust. With one difference that now the "?" operator exists.

So, quick code that doesn't care about errors can be done quite simply by just using "?". The real place where there is a relevant use-case for unwrap is on code examples. And I am really not sure "?" is a good replacement for those, because there is a good chance that you will hit the people trying to learn from your example with a complicated type error before they even get some code to run.
day of reckoning is coming once unemployment rate goes up to 5-6%
Immortality. We're on the cusp of the singularity type stuff where we can live on in some kind of AI form. If you zoom out on history it goes roughly big bang, planets form, biological life evolves and gets smart, bio life is superseded by tech evolution. We're privileged to be alive at the one time in tens of billions of years that it happens.

Plus the Pinker stuff - less war, more prosperity and so on. Things seem worse than they are because doom sells newspapers, cyberpunk novels and the like.
Google Search Glitch Means You're Not Seeing New Content from Websites
You might also try https://www.beekeeperstudio.io/ or https://dbgate.org/ for working with databases (SQLite and others). I really like the UIs of each and they're both open source- supported by donations if you find either useful.
I'm having a really hard time understanding your observation, or how to apply it.

What was unique about legal entitlements 1600s England that wasn't in, say, 1600s Netherlands?

Like, why doesn't the Dutch East India Company count?

Or quoting https://en.wikipedia.org/wiki/Falun_Mine#Free_miners :

> The organizational structure of Falun Mine created under the 1347 charter was advanced for its time. Free miners owned shares of the operation, proportional to their ownership of copper smelters. The structure was precursor to modern joint stock companies, and Stora Enso, the modern successor to the old mining company, is often referred to as the oldest joint stock company still operational in the world.[2]
I read a while back that Bitly the popular URL shortener replaced Amazon links with their own affiliate tag. After hearing this I ran my own URL shortener service. Seems Brave is replacing the affiliate code URL too. You could get around this by setting up your own URL shortener service.