skysight-inc/HackerNews huggingface dataset:
The HTML email regex validation [1] is probably the best rule to use for validating an email address in most user applications. It prohibits IP address domain literals (which the emailcore people have basically said is of limited utility [2]), and quoted strings in the localpart. Its biggest fault is allowing multiple dots to appear next to each other, which is a lot of faff to put in a regex when you already have to individually spell out every special character in atext.

[1] https://html.spec.whatwg.org/multipage/input.html#email-stat...

[2] https://datatracker.ietf.org/doc/draft-ietf-emailcore-as/
POSIX and PCRE are arguably redundant. They both support backreferences, which puts very significant constraints on their implementations. PCRE is at least functionally a superset of POSIX, whether or not there's some quirky thing POSIX supports that PCRE does not.

re2 adds a legitimate option to the menu of using NDFAs, which have the disadvantage of not supporting backreferences, but have the advantage of having constrained complexity of scanning a string. This does not come for free; you can conceivably end up with a compiled regexp of very large size with an NDFA approach, but most of the time you won't. The result may be generally slower than a PCRE-type approach, but it can also end up safer because you can be confident that there isn't a pathological input string for a given regexp that will go exponential.

This is one of those cases where ~99% of the time, it doesn't really matter which you choose, but at the scale of the Entire Programming World, both options need to be available. I've got some security applications where I legitimately prefer the re2 implementation in Go because it is advantageous to be confident that the REs I write have no pathological cases in the arbitrary input they face. PCRE can be necessary in certain high-performance cases, as long as you can be sure you're not going to get that pathological input.

RE engines don't quite engender the same emotions as programming languages as a whole, but this is not cheerleading, this is a sober engineering assessment. I use both styles in my code. I've even got one unlucky exe I've been working with lately that has both, because it rather irreducibly has the requirements for both. Professionally annoying, but not actually a problem.
3 things in life are certain. Death, taxes, and Nintendo emulators.
The MRTs in Taiwan run very tight schedules with high frequency. Commutes are relatively short. Most folks go out with their kids and get food together (Taiwan being known for their night markets).

> However, the groceries will also be far more expensive

It's counterintuitive, but groceries and food are actually very cheap in Taiwan.

Seeing is believing.
> I wonder if you could make a completely offline location service by correlating the results of a local 3d scan of the ground to the global model?

It's possible, see https://news.ycombinator.com/item?id=39507267
What is so hard to believe? Technology evolves rapidly. I can't imagine that anyone investing big money in compute technology wouldn't have expected that.
3 Body Problem Final Trailer [video]
Agreed, it's more about quick and dirty ad hoc capture than full-fledged parser though (like when you want to extract certain object when scraping).
IF you live in a city with enough density that public transport beats the car most of the time, and IF your job is in that same area too, then yes, going car-free can save time. But you need several hundreds of thousands people in the same-ish spot for both those assumptions to hold true for most people. And probably also some badly designed roads.

I live in a town of 125k people, where I can reach any spot by bike or public transport in about 30 minutes. Perfectly commutable. It has a few jobs for people like me, but not enough for a decent amount of variety.
Elon Musk on Why Hate Speech Won't Be Removed from X
Used obsidian for a while but had too many pains with it. Eventually migrated to SuperNotes and couldn’t be happier.
No, a line is defined as a sequence of characters (bytes?) with a line terminator at the end.

Technically as per posix a file as you describe is actually a binary file without any lines. Basically just random binary data that happens to kind of look like a line.
Here, "somewhere in Europe", you can order groceries online and get them delivered to your door for cheap. This kind of service really took off during COVID and then stuck. I guess people found it convenient.

We usually still go to the store, but use this service when we have a large amount of shopping to do as it just is... convenient. Instead of driving to and running around in the store looking for all the stuff we need and then carry it out to the car and into the home, we just gather around the iPad in the comfort of our living room and order what we want. The day after it shows up at the door. It's fantastic.
But this is obviously not scalable/sustainable. If everyone wanted to eat grassfed beef that lives in free range fields multiple times a week, we'd very quickly run out of space and other resources. Not to mention you're still contributing heavily to climate change, unless "bio-regenerative" also means restoring the atmosphere for a zero carbon impact.

At the end of the day, we all need to eat less meat.
Or rather, the others don't have preexisting agreements due to previous grievances.

For OpenAI this would be the first violation of regulations about news content reproduction. That would be lengthy court case with an uncertain outcome. But Google already went through such a court case (before Gemini was a thing), settled, and now with Gemini violated the settlement agreement. Showing that they violated the settlement agreement is much easier and quicker, so that's the news you get today.
But without \r how am I supposed to print to my typewriter over serial cable? Only half-joking, that's the setup my family had in the early 90's.
I hope so, cause I'm 2nd-amendment on porn. I'm hoarding it for the end times.
Cows do an outstanding job turning grass and other inedible things into a foodstuff that not only has extreme nutritional value, but resonates with me on a cellular level.

It'd be cool if we can grow steak in future, but I think it'd be very hard to replicate an actual cow without adding toxins, and I worry that they'll make some ridiculous low-fat or low-cholesterol version based on nutritional "science".
Poison? More like extremely nutritious and very cheap. Maybe too nutritious. Thanks to modern technology, even the poorest among us can afford to look like King Henry VIII. Would you take that privilege away from them?
> How can you have an immigrant who was born inside of Sweden? They are no longer an immigrant then.

Not every country has jus soli/birthright citizenship. Sweden appears to be jus sanguinis/inherited citizenship only.

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

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

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

> Swedish nationality law determines entitlement to Swedish citizenship. Citizenship of Sweden is based primarily on the principle of jus sanguinis. In other words, citizenship is conferred primarily by birth to a Swedish parent, irrespective of place of birth.

> In general, children born in Sweden to foreign parents do not acquire Swedish citizenship at birth, although if they remain resident in Sweden they may become citizens later on.
Pornhub Pulls Out of Seventh State
POSIX regexes and Python regexes are different. In general, you need to reference the regex documentation for your implementation, since the syntax is not universal.

Per POSIX chapter 9[1]:

9.2 … "The use of regular expressions is generally associated with text processing. REs (BREs and EREs) operate on text strings; that is, zero or more characters followed by an end-of-string delimiter (typically NUL). Some utilities employing regular expressions limit the processing to lines; that is, zero or more characters followed by a <newline>."

and 9.3.8 … "A <dollar-sign> ( '$' ) shall be an anchor when used as the last character of an entire BRE. The implementation may treat a <dollar-sign> as an anchor when used as the last character of a subexpression. The <dollar-sign> shall anchor the expression (or optionally subexpression) to the end of the string being matched; the <dollar-sign> can be said to match the end-of-string following the last character."

combine to mean that $ may match the end of string OR the end of the line, and it's up to the utility (or mode) to define which. Most of the common utilities (grep, sed, awk, Python, etc) treat it as end of line by default, since they operate on lines by default.

THERE IS NO SINGLE UNIVERSAL REGULAR EXPRESSION SYNTAX. You cannot reliably read or write regular expressions without knowing which language & options are being used.

[1] https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1...
And by AMD (Accelerated Processing Unit, their term for CPUs with good integrated graphics like what Xbox and PlayStation consoles use).
I have the same feeling, growing up in Paris and then moving to Switzerland. Paris seems more and more dangerous and dirty. And people seem to become less and less happy.
Fishing in the wild without restocking the fish population is simply a form of poaching.
Melting Away Winter Woes: The Dawn of Self-Heating Concrete
I mean the entire tech industry is predicated on a continued exponential growth of computer power. It could be this 70 years and next couple dozen are a blip of what will be millennia of linear returns.
Boeing launched an uncrewed SLS exactly once in 2022. It was planned for 2016, and then delayed 26 different times over 6 years. And uncrewed launches are held to much lower standards and requirements than crewed. You don't go from that to 'definitely safe enough for a human' (let alone with NASA's risk aversion) on anything like a reasonably short timescale.

Initially there was never any plan for multiple launch providers - commercial crew called for a single winner. It was only after it became clear that the winner was not going to be Boeing (kudos to NASA) that the rules were changed to allow Boeing to also win (and receive vastly more money than SpaceX as well). The whole stuff about redundancy was just after-the-fact messaging to cover-up what's been ongoing and overt corruption.

SpaceX have never 'bet the company' except in the very earliest days of SpaceX when they were a startup with basically no capital. Since then, they've not only constantly iterated on the Falcon 9 but also designed/developed the Falcon Heavy, and now the Starship. And I see little to nothing to critique about their execution. I suppose the timeliness could have been better, but I think it's forgivable given that these were all completely revolutionary developments.
Thank you! This was something I was desperately looking for when I started using Obsidian. Already paid for the lifetime license :)

It's unclear to me what happens if I run this on multiple machines. I have a few different machines that I use throughout the day but none are on "24/7" so I'd love to install this everywhere so it's always syncing. I'd love for that to be possible but I think either way it might be useful to document whether I can/shouldn't do that :)
I might be wrong, but buy a game, dump the keys, sell game?
Sweden is a jus sanguinis jurisdiction.
Rome may not have invented the apartment block (insula) but they sure were fond of their high density residential/commercial space...

https://en.wikipedia.org/wiki/Insula_(building)
I kind of like that it flows with how real conversations go. But I can also see how it's annoying if you're hoping for in-depth discussions.
Can somebody provide a code snippet that would be an example of something you definitely don't want these addons to run? Or is it, like, any general C / Python code?
Single disadvantage? There are a few. Cities are more expensive to live in than anywhere else, have higher crime and more restrictive laws, and almost literally no privacy. Having to own a car is an expense but it is far cheaper than the difference in housing costs alone. Big city life is best for the rich or people with high-paying jobs and no kids.
In general, I'm against govt interventions like this, but in the case of housing, I agree with you. For a society to function in a healthy way, it can't be divided in social class "gettos". It is the responsibility of the State to spend public funds to avoid that. This is not about fairness and equality. It's about the long term survival of a society.
The streaming behavior of the range operator is weird though. This is tested on PowerShell 7.4.1

> 0..1000000000 | % { $_ }
# Starts printing out numbers immediately
> 0..1000000000
# Hangs longer than I had patience to wait for
> $x=0..100
> $x.GetType()
# IsPublic IsSerial Name BaseType
# -------- -------- ---- --------
# True True Object[] System.Array

It's an array when I save it in a variable, but it's obviously not an array on the LHS of a pipe.
He works under his own brand though, I would argue that batteries made by the guy down the street have a higher brand awareness than "COCO" batteries which might also sell under name "BOBO", "AOAO", "AKKO", "LMYW", etc.

I am only pointing out that I would be concerned regardless of the source, chinese or local but suspect the local guy has a greater incentive to maintain his brand than the imported brand from china.
Carbon Credits at a Crossroads
They would be paying far more if chips suddenly stopped coming out of Taiwan in the future and the U.S. had no onshore capacity to make their own.

It’s more of an insurance policy than a subsidy. Intel needs a reason to build in the U.S., and grants tip the ROI scale on their side to make it happen.
This is almost certainly not true. Outside of heavy metals there are very few things that "accumulate" in the body and I can't find any papers mentioning nut toxins having this effect.
Here's my guess. Government bureaucracy is probably very high for anything space related. So "based on the military's AN/UGC-74" could have helped get it through approvals. It would have ticked a lot of boxes for ruggedized parts, use in harsh environments, and so on.
One should just stop eating fish as far as possible. Between all the worlds ocean ecosystems being in trouble and the risk of ingesting heavy metals it is just not worth it.
I disagree as an American who moved here. Many things are closed on Shabbat, including public transport! Nobody is driving on Yom Kippur. There is nothing like that in the world. Also that what in the diaspora we consider religious holidays are national holidays here. Israelis are used to all this and consider it part of their national culture, so maybe religious is not the best word. The Jewish identity has a big national component. Hilonim might not define themselves as religious still possess a profound Jewish identity which can come off as a religious identity to an outside observer.
Amazon packages labeled recyclable? They go to the landfill
Puff piece or not, give credit where credit is due.

Google fostered the environment that enabled that paper.
I don't reside in the US, but I highly doubt it is 99%. There are always ways of getting organic or poultry food.

At the very least in the EU there is no shortage of it and the legal restrictions are strictly enforced.

Anyway, you are doing yourself a favour not ingesting mass-production. There is a very very good reason virtually no country wants to import US-chicken.
While I always knew that sugars where the main culprit for body fat thanks to a highschool biology class, I have never understood why fat is less of a problem so thank you. Could you link me with sources or search keyword in order to know more of what the body is doing with excess fat ?
It is a double-edged sword. The short impact, depending on an industry, is that the Russian government will have slightly less money. This is net good short term because this money finances the war among others (but also education, hospitals...). However, in the long term, this means increasing the divide between the two worlds and, economically, the Russian government trying to reproduce the missing markets locally and partly succeeding, at least for non-hi-tech sectors.

What would I call the most important front of this war? A call to ordinary Russians. Explaining to them how wrong is this war. That Putin has been lying to them for decades. There were no Ukrainian Nazis who were persecuting the Russian population in 2014. Russia wasn't forced to start the war. NATO doesn't "expand" as a self-conscious organism or by the will of the USA (heck, Trump would even happily back out of it!) - on the contrary, individual countries join it so that they don't share the fate of Ukraine. If all Russians understand what happened and Putin has no support, there will be less reason to continue this inhuman activity, also by his successors. But if Russian themselves are supporting the war, there is no hope of stopping it.
I don't care if companies buy back stock - but if they can afford to buy back stock, they don't need or deserve my tax money to operate.
My Macbook Air 2015's SSD failed and I had it replaced. And at the same time had its battery replaced for the second time.
>Our data shows a statistically significant correlation between PFAS in the blood and harmful blood lipids linked to cardiovascular risk.

Fast food consumption is also associated with both. Was this controlled for? How about BMI?
> In the past 15 years Intel has spent almost $100 billion on stock buybacks.

This is the main reason that I dislike stock buy backs, they reduce R&D investment.

If you want to give your investors a prize, pay a dividend. Otherwise, invest in your company!
But they don't work at Google anymore, so what's in it for Google?
PPP doesn’t utilise ground stations, and to achieve cm accuracy, you need to utilise phase information and solve the ambiguity problem

1mm accuracy almost certainly relies on ionosphere and troposphere observations at high temporal and spatial frequency. The process of post processing is essentially correct, but there is a point at which the ionosphere solution won’t get better without an increase in density of observations
If they were born in Sweden, they didn't migrate. There seems to be a confusion between immigrant and foreigner.
The top reddit answer in wrong in the most irritating way. And Higgs boson has nothing to do with gravity. And Higgs boson interaction only accounts for 1% of the mass of matter.

According to relativity, energy IS mass and Higgs field gives non zero energy to Higgs boson.
Yeah, there's definitely a sparsity cutoff where it stops working so well.

Possibly a climate one too although Londoners and Parisians manage fine.

I get the impression our experiences of car free living were at different densities. Public transport is a slower, more difficult compromise at one end and car travel/ownership is a burden at the other.
Yes...but hunting/eating further up the food chain is a timeless way to demonstrate that you are further up the human social pyramid. Similar for more heavily processed & elaborately prepared foods.
You will also get rid of any trust from foreigners and, thus, any future foreign investment.

Sometimes keeping your word is more important that attainment of ideological purity. China can survive such a loss of trust, because it is a Behemoth of a nation and can live somehow regardless. Honduras much less so.

(I am saying this as a citizen of a small country who doesn't like all our commitments either, but the alternative of just going back on our word would be fairly detrimental to us long term.)
Congress is failing to deliver on its promise for research spending
Sure you can, but the thing about ideologies is that they are almost always pseudo-religious philosophies, and those entities that make them their foremost identity typically seek out supporting facts while ignoring contravening facts. Expecting this behavior is reasonable, almost all ideologues engage in it to some degree. Thus additional skepticism/verification is warranted when the source is an ideologue and the purported argument contains facts that supposedly validate their ideology.

Even Trump says something correct about the border every once in a while, but you'd be a fool to take him at face value.

By contrast a more neutral source that lacked said motivation could be taken more at face value. By putting your agenda out in front, you're implying that you prioritize that agenda over everything else, including most likely the actual truth, because agendas become less and less politically attractive the more nuance they try to convey.
That itself is an evokutionary pressure. Whatever allowed them to get missed would get amplified by reproduction. Only if it's entirely utterly and only random chance and not something like the method doesn't target certain cells would it not be applying pressure
How is GDP per capita relevant, especially not adjusted for purchasing power parity? For Austria the GDP per capita PPP is at $67-69k depending on the estimate, which would put it somewhere between 27 and 33 place of US states, so roughly in the middle.

If you compare the Quality of Life Index, Austria is 9th, USA is 15th. Freedom Index - Austria is 93, USA is 83. HDI USA is 20th with 0.927, Austria is 22nd with 0.926. Another fun one is Cost of Living index which shows that Austria is significantly cheaper to live in compared to the US (66.8 vs 72.9 out of NYC).

I can go on, but it's frankly ridiculous that you think GDP per capita is relevant, or somehow directly impacts the lives of Austrians and invalidates the good choices Austria and Vienna have made.
This deleterious effect is a factor in computing. We deal with it every few years: kids graduate, having ignored the history of their elders in order to focus on the new and cool - and once they hit industry, find that they really, really should have learned POSIX or whatever.

Its not uncommon. As a professional developer I have observed this obfuscation of prior technology countless times, especially with junior devs.

There is a lot to learn. Always. It doesn't ever stop.
> And soviet style of building wouldn't have happened without totalitarian control.

Todays new developments are done in roughly the soviet style. Blocks of flats. With minor adjustments like parking (also underground), lifts that go to ground level for accesibility and border fences to increase the sense of security, top level huge flats with huge terraces for the rich, thicker walls for acustic and thermal comfort.

I think at least 90% of newly created housing in post-commie city in central Europe is built this way. It just makes sense.
US sending $300M in weapons aid to Ukraine
Not Paris but NYC:

> For many New Yorkers, the most desirable jackpot is not the New York Lotto, but to be selected in the city’s extraordinarily competitive affordable-housing lottery. Tens of thousands of people, and sometimes many more, vie for the handful of units available at a time. Since 2013, there have been more than 25 million applications submitted for roughly 40,000 units.

Central planning has been tried over and over and has failed and led to more scarcity. It's like fitting climate change by regulating thermometers. Maybe this time is different?

https://www.nytimes.com/2020/06/15/nyregion/nyc-affordable-h...
The quest to legitimize longevity medicine
If you cannot audit it and supervise it, do not offer a point-and-click way to install it. Do not rely on end-users experience and sanity nor the good intentions of random people online.

Installation of Gnome extensions or KDE themes (unless official package from distribution's repository is used) always seemed as unnecessary risk to me.
I don’t think it reads that way either. Inclined to think they didn’t read it.
There is no 3rd without the legal problems with Nintendo.
Where I live, there's only one beer brand that does not have glucose syrup. Sad.
Phase-change concrete melts snow and ice without salt or shovels
It's expensive in terms of opportunity costs.
It’s models all the way down.
Pixel perfect: Engineers' new approach brings images into focus