skysight-inc/HackerNews huggingface dataset:
That should be `date(y, m, d).intz("Europe/Rome")?`. If you want to get UTC from there, then add `with_time_zone(TimeZone::UTC)`.

> Jiff seems like a step in a right direction but the syntax is sometimes weird. I guess I’d wellcome something more predictable

Can you say more? How can Jiff be better?
If a virus has infiltrated the system to such an extent that it can crash a kernel mode driver then it's already game over.
Who uses ls anyway? I tab-complete until it lists the files I need.

Just kidding. But on a more serious note, why does he claim ls is not maintained anymore?
A smart detail was that the DN10000 had both VME and ISA slots.
And if they decided to only support official clients, plenty of other people would complain why their favourite third-party client didn't get anything.
totally. i have a macbook air m2 and it performs better than my work m1 pro because of the bloatware.

my zsh config spawns in ~90ms on my macbook air m2 while it takes 600ms in the m1 pro.
You're accidentally providing a great counter example to your own argument. Cancer is not one disease but thousands - with complex multi-factorial causes, progress and prognosis. 'Curing' cancer in one patient with a novel treatment would be an interesting data point. 'Proving' the cure was due to a given intervention (rather than say experimenter error, spontaneous or temporary remission, or the body fighting off the cancer itself) is a completely different order of problem. Generalising that treatment to other patients, testing its safety and then mass producing distributing it would be a multi-year perhaps decade long process. Inevitably, the high variance in types of cancer and responses to treatment would result in an efficacy significantly lower than 100% (I hope my understatement is clear here).

In this case ABA treatment is already well known, and there is significant experimental research into it's efficacy. It's demonstrably not effective in 'curing' austism in most people and has measured, known 'side effects' including anxiety, depression, or other mental health problems.
Think viral infection and high body temperature. Not the same
At least it was a pleasant surprise that it’s not about the Humane AI Pin.
Not necessarily from Crowdstrike CSIRT, but I have experience of security calling me back within 30 minutes of changing system security impacting file to verify that it was done by me and not something else.

Probably because they had already looked at the modification which was benign so slower escalation path in absence of other indicators.
Frequent security updates are a good thing, frequent security auto-updates are not, at least when it comes to situations like this. Technology that runs 24 hour services such as airports and train stations should not be updated automatically just like that, because all software updates have high potential to break or even brick something. Automation is convenient and does saves money which would have to be paid for additional labor to do manual updates, but in cases like this, it should be understood that it's better not to break the airport and roll-out update manually in stages.
I wrote down why I do it years ago: https://github.com/BurntSushi/notes/blob/master/2020-10-29_l...

You may not agree with me, which is fine, but you should now understand.
Nvidia preparing version of new flagship AI chip for Chinese market, sources say
https://archive.ph/UEm3w
This is why I only experiment with machine learning in the winter.
All of these are just strings. But if you have a function that requires that string to be of type VerifiedMail, your type checker or compiler will either warn you about the misuse or not even let you compile the code (like in Rust).

This is good, because you as the programmer can rely on the fact that wherever you see a string of type VerifiedMail, that it is indeed a string containing a verified email adress, you don't even need to check, because you know the conversion between the different types had be done explicitly.

You can of course extend the whole thing and have a OnboardUser with a ValidatedMail and only convert the OnboardUser into an actual User once there is a VerifiedMail etc.

You get the idea. Whenever you find yourself wondering if a variable is actually holding the expected information, it is a good idea to leverage the type system to replace wondering with knowing.

But you are right: unchecked email could as well just be a string.
> My main problem with them is that they all turn into leaches when they are successful

And now imagine how bad that problem would be if they knew that the only way you could walk away would be by giving up your TLD, to which very likely at least some marketing materials - potentially the whole identity of your company - is tied.
Finalizers, Guardians, Phantom References
Whatever the definition, I am confident wild hogs and squirrels are not megafauna.
Thanks for the link. Learned something new.
Strange Intelligence, Strange Philosophy
Another use of std::monostate is as a special "unset/don't care" value for a template parameter. eg

template<typename T = std::monostate>
class C
{
...

if constexpr (!std::is_same_v<T, std::monostate>
{
// T-related behaviour here
}
};
Html, css, js and react are the worst solutions for graphical user interfaces, except for all the others thought (The only exception is perhaps immediate mode guis).

React is bloated, slow and over-complicated now days, but unfortunately the only sane way to work with retained mode UIs.

In my experience working without react devolves to reimplementing react ad hoc.
>It used to be a legitimate thing that a few people legitimately have.

It used to be only a few people for different reasons. First it was thought that you grow out of it, so if they missed your diagnosis as a child, because you weren't hyperactive, then they didn't diagnose you at all. And on top of that we just know more about it now, so we can be more detailed on the diagnosis. Which makes it sound like "oh now everyone has adhd". No, that's not the case.

And yes, there are lots of people that pretend to have ADHD, because their attention span minimized because of social media and whatnot, but ADHD is more than that. A lot more. It's not only being unable to focus, it can have severe physical sensations too and is just a very very broad spectrum. Yes, ADHD is real. Yes, we get more diagnosis now, because we know more. No, it's not that easy. Same with depression.
That is not my experience at all. It’s very rare that libraries unwrap. Beyond example code and tests I rarely see unwrap.
There's already commandlinefu.com
It has been a long time since I used stremio, but IIRC it used to have a max cache size for torrent plugins. The default setting was something like 10GB, which means older torrents eventually get deleted after you stream a certain amount of other content.

I suspect stremio seeds torrents in the cache directory, so if you increase cache size, you can potentially continue seeding torrents for more time after the initial download.
Daily BioML Papers
Unconditional Cash Study: first findings available
GoToGate is what booking.com flights actually are (at least last time I booked). So probably.
This guy doesn't know what "breeding" means ^
Try dashboard > libraries > display > Display a folder view to show plain media folders
usea's argument is clearly not that but only that you can't literally think something is "not worth discussing" while you are actually discussing it.

The person who was explicitly defending non-GPL licences was rahkiin. I don't know how they'd respond to your challenge, but here is how I would:

"The freedom to deny the freedom of other people" is impossibly vague, because "the freedom of other people" can mean zillions of things. It's also confusing to talk about since we have two separate freedoms here, so let's talk about the freedom(1) to deny the freedom(2) of other people.

Suppose we put "the freedom to kill other people" in the freedom(2) slot. Most of us think that isn't a freedom people are entitled to, so the freedom(1) to deny that particular freedom(2) would be a good thing.

Suppose we put "the freedom to breathe the air" in the freedom(2) slot. Most of us think that is a freedom people are entitled to, so the freedom(1) to deny that particular freedom(2) would be a bad thing.

In the present case, what goes in the freedom(2) slot is something more complicated and less clear-cut -- it isn't a Super-Obvious Fundamental Human Right like the right to go on breathing, but it also isn't a Right To Do Very Evil Things like the right to murder.

It's something like "the freedom to read and modify the source code of a particular piece of software". We demonstrably don't presently have that freedom as regards many widely-used pieces of software; the world's legal systems pretty much unanimously agree that if you put this in the freedom(2) slot then the freedom(1) to deny it is worth having.

Why? Well, the usual arguments would be (1) that creating something gives you some rights to limit what other people do with it, and (2) that giving creators some such rights is a good thing overall because it increases the incentives for people to create nice things.

Of course you might disagree! (And, also of course, even if you agree with #1 and #2 in the abstract you might think that "intellectual property" law as currently implemented across the world is a very bad way to get #1 and #2.) But I hope your reasons are a matter of thinking carefully about the tradeoffs involved, not just of saying "yay freedom" and therefore denying every instance of "it's good for X to have the freedom(1) to deny Y's freedom(2) to do Z".

Not least because you literally can't consistently do so in every case -- if you say no one should ever have the freedom(1) to deny freedom(2) to others, whatever specific freedom(2) may be, then what you are calling for is precisely to deny that freedom(1) to others.
Functor is one of the worst offenders IMO. In C++ lingo, it simply means "callable object".
And even then, redistributing money will inherently make the organization have political issues. Choosing who "deserves" it is just hard work, takes time, needs an internal political alignment and strategy where the people working on this project are just doing it for fun on their free time.

In fact their decision is pretty mature and nice : they have enough to support the project costs but they don’t want the project to become their job and that’s exactly what money flowing over a hobby does : changing it to a job.
When I used it a few years ago it was still possible to use without an account if you knew the exact extremely-hidden-behind-dark-patterns steps, much like making a local account in Windows these days. But from the other comments in this thread I get the impression that even that tricky process is no longer an option.
so "std::nothing" was taken? or "std::none" ? or anything else that would make it obvious this type is a fancy way to say void?
Localization Testing Best Practices
“Don’t click a few buttons in your router UI to forward a port and setup a dynamic DNS client in the same way that has worked for 25 years. Instead use a bunch of other 3rd party shit that builds a VPN and tough shit if people are using a TV.”

What you’ve described is a pain in the ass from a setup perspective. I think what you were trying to say is “be careful about jellyfin vulnerabilities”, but that’s definitely not what came out.
Virtual credit cards are an established financial technology.

https://en.wikipedia.org/wiki/Controlled_payment_number

IP addresses are a tradeable commodity.
For some reason it became the norm to think that if some piece of software isn't updated regularly that it's inherently out of date.
See for RFC 9557 document history: https://datatracker.ietf.org/doc/rfc9557/history/

I believe java.time also uses this syntax. I'm addition to Temporal.

It enables lossless round-trips of zoned datetimes. See: https://docs.rs/jiff/latest/jiff/_documentation/comparison/i...
An "ideal" diet will maintain energy balance, avoid high doses of certain toxins, and include sufficient essential amino acids, fiber, and micronutrients. Beyond those basics there is no such thing as an ideal diet once you get into specifics. We simply don't know, and most human nutrition research is junk science barely worth publishing. Anyone who claims they know what is ideal is simply ignorant or trying to sell you something.

As a practical matter, if you really care about optimizing your own diet then conduct your own n=1 experiments by adding or removing certain foods. Do you feel better? How do your blood sugar levels change? Does your athletic performance improve? This isn't really scientific but good enough for most people.
I don't understand why they even care about not paying for development. Is paying for development somehow immoral? Of course not!
Do I need to provide my Instagram password to use this tool?
No, you only need to log in to your Instagram account through the tool to access the follower and following lists. Your password is not stored.

I’ve used services like this before and each time have had accounts temporarily banned by Instagram.

User beware
Is it like a singleton without any method ?
It could have been different, we could have gone down the Curl path https://en.wikipedia.org/wiki/Curl_(programming_language)
Or "unit" in ML-derived languages and Haskell.
I've never had a problem searching on Namecheap.

But unless you're buying an expensive TLD, just buy the domain immediately and turn off the renew option. Peace of mind for the sake of the price of a drink or two. You can always let it/them lapse if you don't use them.
I think the author misses one of the main advantages of react: transformation of application state into ui is a pure function. I've worked with a lot of different UI frameworks (mostly in gamedev) before switching to web development, and I've ran into a million issues that occurred because of procedural approach to UI.
Author himself is torn between common sense and the urge to monetize. Like a purple minion!
Only comment I upvoted so far. But just want to clarify that I never said it doesn’t exist. Just the majority of people don’t have it. I’ve only met 2 people who really have it and they could barely function without drugs. But I’ve met multiple dozens of people who say “oh I have adhd” like it’s fashionable simply because they get bored at work. It bothers the hell out of me knowing there’s people who truly have adhd and suffer to various extents.
This isn't about correcting for minor imperfections, but converting the image from the wrong kind of lens.

See https://m.youtube.com/watch?v=6toiNmZ_e4I for the difference.
I'm happy you found it helpful, medical studies don't pop up all too frequently here at HN so I try to assist when confusion arises.
I want to see some proper accounting on what percent of company budget, percent of compute and memory, percent of employee time is spent in the name of security. Is it more like the usa on military 1-3% or like 10-20% ? 1% seems like a reasonable number. I suspect places that have crowdstrike installed are closer to 10-25% closer to military dictatorships.
I instead like what they did: they were transparent about their finances and told their supporters that there are others that would benefit more from their support at this time. They were under no obligation of doing this, but it likely felt them like the right thing to do.
This was of course an example to illustrate the concept. So whatever makes sense in reality will differ depending on the usecase.

I assumed there is a typical registration process. Future users of your application input a text in a field that is meant to be a reachable email address. So the first step would be to filter out garbage or typoed text that your mail-sending function would not be able to handle. And because you don't know how long people need to click on a link in their mail you need to store and work with that validated-but-unverified email address till they do. And for this having your own type that cannot be mixed up with the verified email addresses can make sense. Depending on how complex your application is.
The saving grace is that this situation was salvageable by mortals.

Imagine the world where black box AI systems are deployed, and humanity gets too cozy and complicit with the amenities it offers--too lazy and too convenient to care. Then suddenly, a BSoD-equivalent happens. And nobody knows how to reason with it--or worse, through it; and nobody knows how write a 'hello world' nor to fire up a debugger any more.
This game is "Endless Running And Jumping Game" clone, similar to those typically placed in YouTube Shorts to hold visual attention. But how one of these games - completely blank in terms of novelty and unreasonably expensive for its quality - could start being used as a cure is beyond me. It is an absolute discredit to both doctors and the FDA as a whole.
If all you have is React, everything looks like a SPA.

I honestly think the real problem is that we have a whole generation of web devs that really only know react.
@watt there's a big difference here.

eBPF is a bytecode that is interpreted in the kernel, with the explicit goal to allow writing code that executes at the kernel-level in a safe way. Any kernel panic (again, short of pid1 kills) is considered a bug, and could even potentially be exploited to gain capabilities in some cases. Here, the kernel explicitly says "this is safe", so any problem within is a bug in the kernel.

In contrast, a kernel module/driver is just some third-party code that is loaded in the kernel. Here, all bets are off: it is up to the third-party to do their job properly and make sure their code is correct.

In this case, CrowdStrike explicitly opted into writing a kernel module, and then failed to, as you say, "handle their null check". The segfault wasn't in Windows code, it was in CrowdStrike code that lives in the kernel. Crowdstrike should have handled their nullcheck, failed, and that will lead to a BSOD.

To be clear: the only way microsoft could make the kernel safer here is by disallowing kernel modules entirely. While there is an argument to be made that this could be a good idea, it is a bit beside the point.
Demystifying cookies and tokens
For people reading this and trying it for the first time and going through nix problems (well I did at least), check your distro package repo instead for eza. You probably already have it.
Trump assassination attempt - no discussions on HN, Biden was told to step down - BREAKING!!!
Not my experience at all. I feel exactly the same as people with ADHD describe the effects. Why gatekeep such a miracle medicine?
Seems almost intentionally confusingly written. Why not use void if monostate is like void? Ah, because monostate is actually entirely unlike void. void has zero values, mono state exactly one.
I used to have similar problem till I started using hardlinks because of arr apps now I have pretty looking file and folder structure for jellyfin.
IMHO Namecoin/.bit was the only blockchain technology that could actually have been somewhat useful. Didn't catch on and now the blockchain have got so much bad optics that it probably never will.
That’s like saying a gas pump is customer service. That completely dilutes the meaning out to “the customer uses the product”, which is not what people mean when they say “customer service”. https://en.wikipedia.org/wiki/Customer_service
The type of elements and the number of elements are two orthogonal aspects. You might need at least one element, or you might need at least two elements, or you might need an even number of elements, and so on. This is independent from whether you need the elements to be of type a (or some other condition on the element types). Ideally, all these conditions could be expressed in the type system. But the requirement "all elements must be of type a" by itself does not imply "there must be at least one element", nor does it necessarily imply having to special-case the empty list.
Most airlines have partnerships with booking sites, provide an API, pay the booking site a commission, and have a pricing structure that lets them profitably sell tickets at the advertised prices.

Ryanair doesn't pay a commission to booking sites, and their pricing model is to advertise $15 flights but making booking an obstacle course so plenty of passengers find themselves paying $60 instead.

They therefore don't provide an API for the booking sites to use.
What's this then?

https://x.com/ChorzempaMartin/status/1796649970335994067
It's meant for kids so parents would be the ones paying. Obviously they're trying to profit and it does seem a bit overpriced (though there are extra logistical costs for anything to be medically approved, so it's not comparable to a normal game). But I highly doubt there was any intent to take advantage of people here.
But then you have to tax the donation as your income; after that, you can redistribute and the receiving party has to tax it again... that's what charities are shielded against.

By donating directly, there's one income tax layer removed.
It's useful whenever you want a variant with a default state which is different from any value you'd actually put it it, to differentiate between e.g.

std::variant<int, whatever> v;
// v is zero

and

std::variant<int, whatever> v = 0;

And don't want to pay the space and time overhead of wrapping in an std::optional which will use a whole other byte at least for not good reason
You can have as many monostate objects as you want.
Opportunity vs. Risk of Open Sourcing My Project?
Hello everyone,

I've developed a library that I'm incredibly passionate about. It's reached a point where I can't help thinking, "If only I could use this at my job... it'd save us time and simplify so much."

Ironically, I can't recommend my own obscure library to clients, as I always advise them to stick to "proven tools and methods" rather than venturing into unknown territory. Moreover, my client's project is massive, with over a hundred engineers, so I don't feel comfortable using it as a high-profile use case for my library.

I'm drawn to the idea of finding a role where I could dedicate myself to developing this library professionally. In the spirit of full disclosure, this is a significant part of my motivation for considering open sourcing. I'm passionate enough about this project that I'd even consider a lower salary for the right opportunity.

However, I'm wary of potential downsides:

1- Managing an open-source community can be draining.

2- Community pressure might divert the project's roadmap away from my vision.

I'm seeking advice from the HN community:

Should I proceed with open sourcing? Why or why not?

If yes, how should I go about it?

What pitfalls should I watch out for?

Has anyone been in a similar situation? What was your experience?

Any insights, personal stories, or words of wisdom would be greatly appreciated. Thanks in advance, HN!
Ah, it was an L, I thought it was an I (eye). Thanks
Japan's copyright rules draw AI groups – and alarm from creators
Yes, you could also make hydrogen when the sun is shining. (Or you could make methane.)

Instead of doing direct carbon capture, you could also spend some energy to grind olivine rocks fine enough for something called 'enhanced weathering' to indirectly capture carbon.
SaaS Activation Hack
I developed this tool after discovering in my other SaaS (SteelSync.io) how effective sending a welcome LinkedIn DM was for activating new SaaS users.

Welcomessage.io helps SaaS founders automate personalized LinkedIn messages based on in-product events: signup, subscription, churn, custom ...

It's a very tiny use case I guess. However, for SaaS founders, it brings a lot of value.

Quite "hacky" but we're on Hacker news, right?
I recently ordered ticket from Ryanair, if you simply look for the "next" button nothing is a mess. The only somewhat messy thing is the content of what you buy, for example a family package has only one large suitcase which is unusual, and that Ryanair are super strict at the airport- I saw someone taking out socks to remove extra 300 grams from their suitcase.