skysight-inc/HackerNews huggingface dataset:
stonk = stock in memespeak
There are a lot of really useful use-cases between not using regexp and using regexp to parse email addresses.

For example, our system needs to handle container numbers[1] as part of an official form, and we check them for correctness to avoid rejection of the form.

As far as we're concerned the container number consist of four letters and seven digits. However the user is allowed to submit a container number with a hyphen or a space between the letters and the digits.

Writing a regex that checks for a properly formatted container number is quick, easy to understand and a lot less convoluted than most alternatives.

[1]: https://en.wikipedia.org/wiki/ISO_6346
Looking at the code in the DNS service in Firefox, it kinda looks like this for localhost:

1) If IPv6 disabled in prefs or caller explicitly requested IPv4 only, 127.0.0.1.

2) If localhost explicitly listed in the IPv4-only domains list in prefs, 127.0.0.1.

3) If caller explicitly requested IPv6 only, ::1.

4) Otherwise both 127.0.0.1 and ::1.

See nsHostResolver::InitLoopbackRecord in https://searchfox.org/mozilla-central/source/netwerk/dns/nsH... and nsDNSService::GetAFForLookup in https://searchfox.org/mozilla-central/source/netwerk/dns/nsD... for the key.af calculation that goes into that, as far as I can tell.
STL Iterators and Performance: Preincrement vs. Postincrement (2008)
I see a lot of “libertarians” on HN and SV in general.

Edit: Ok now I am getting downvoted because I called them libertarians when they’re libertarians.
And just like that, big tech becomes an oligarchy.

That, or Europe becomes further disconnected to the rest of the world.
> The guy at the end of the bar was the leader of the mob at the time (his name escapes me) but he nodded to them and bought them a bottle of wine.

Nicodemo Scarfo, aka Litle Nicky
I'm a below average driver for sure. I'd say somewhere around the 33rd percentile.
This is my favorite kind of headline. The kind that screams, "No matter what you do, it's wrong!"
In hindsight, it probably would have been better to define standard prefixes, let people just sort of register their own for non-standard ones in whatever manner is suitable for their particular top-level document type, and if somebody, somewhere out there did finally manage to stomp on each other, let that particular type of document where that happened deal with it.

While technically suboptimal compared to what currently exists, it would match people's expectations better, and in practice, I can't speak for everybody, but I just don't see a whole lot of documents with hundreds+ namespaces such that collisions are a realistic possibility. And when I do see documents with a lot of namespaces (XMPP, for instance, or XHTML+SVG+some other thing), there's still a top-level type that could keep its own registry just fine. A bit of guidance on naming extensions probably ("don't call it e:, work your name in somehow like with the initial of your company or something") would have 99.9% solved the problem.

Prior to seeing what happened I'd probably still have argued for the current namespaces spec. In principle it doesn't seem that complicated to me. But I'm obviously wrong in practice, because, like I said, I can hardly cite an example of them being used correctly at all.

(Likewise, in hindsight, entities shouldn't have been able to be recursive, and if we were spec'ing out the next generation of XML I'd straght-up remove them except for the ones necessary to XML itself, &lt;, &gt;, and &amp; because UTF covers the major use case of entities now. I'd discard the "terrible, terrible templating language" use case entirely.)
Thanks! This is definitely one of the use-cases to have an SQL abstraction of many resources. Also the idea is to be able to define rules in cross-account, cross-apps - For example: making a rule/notification that depends on information in Okta and in GCP/AWS (This is pretty simple with SQL join).

Regarding Custodian - This is definitely a great tool with it's own advantages. Some of the dis-advantages that lead me to start cloudquery is that it has a proprietary query language that you have to learn and as such is more limited than SQL (The example above won't be possible out-of-the-box).
There is a lot of right-wing content rabbit holes to fall into. Most people aren't inherently looking to understand what others are going through. It can make you think that others are lazy or ungrateful, and that events, even if they span the whole country - in every state and major city, that these events are just overblown.

Which they obviously are not.
This argument would be valid if the arrested journalists were in fact breaking the law, but it's not the case - the vast majority of the arrests ended up with prosecutors declining to press charges as the detainees were not breaking any laws. https://www.nytimes.com/2020/11/19/us/protests-lawsuits-arre... has some overview, of course the actual pdf linked in the original article has more detail as well.
You know that dang is employed by ycombinator to moderate hackernews?
The problem I see is that Neverware was filling in a gap where Google has failed to provide extended support. That wasn't something Google couldn't do before... it just didn't want to.

So this acquisition likely means a return to old Chromebooks being ewaste because Google bought out the company that was providing a longer lifecycle.

When Google's team decides a computer is too old to support, do you think their other team is going to be allowed to step in and support it?

Google is likely interested in CloudReady for it's newer uses on Windows PCs, I've seen an employer ship a brand new HP laptop with CloudReady on it instead of the OEM Windows license included. But long term support is likely going to suffer.
Well known since at least 2004
https://web.eecs.umich.edu/~genkin/teaching/fall2018/EECS598...
https://www.nytimes.com/2004/12/12/magazine/acoustic-keyboar...

More recent one that works well over VoIP:
https://dl.acm.org/doi/10.1145/3365366
How many of the arrested journalists "stepped beyond" their duty?

It appears that the police harmed journalists during the journalists' regular course of duty: https://www.usatoday.com/story/news/nation/2020/05/31/journa...
This is extremely cool!
Its Grafana, HA grafana isn't very hard. Just store state in RDS and you're done.
Ok, I will probably get downvoted for this. But I will still speak my mind: I am an EU citizen and I don’t think that’s the right approach because it’s distracting from what really happened: We missed the big Internet bus because we were so much focused on keeping things the way they were. Now we try to regulate us out. It makes me unbelievably sad.

And it continues. The car was invented here but it takes an Australian visionary to push our car companies into the future. I am sure we will want to regulate Tesla soon too.
I was thinking "why would Google buy the developer of the Tony Hawk games?" but that's Neversoft. Oops.
Honestly, I went out to Marin Headlands this morning to photograph the sunrise, brought my 60mpix fullframe camera and some amazing lenses. But while waiting for the best light or long exposures I snap off a couple pictures on the phone. And I was just thinking, if I'd just post to Instagram and not print, I probably wouldn't even bother with the fullframe camera - a nice hike without 20lbs of gear and as great photos if you don't need the resolution/detail. HDR+ and the other computational photography goodness makes for great photos straight out of the phone and a tiny bit of editing then goes long way.

I bet if you showed 20 non-photographers 2 images a phone screen, one from the phone and one fullframe edited, most wouldn't appreciate the difference.

That said, I wouldn't give up my camera for many shots but I can understand why many people do. Post-processing camera raws is definitely more cumbersome than quickly editing photos on a phone.
I'm reasonably confident that this capability was already available to some people in the world. Expanding that "some" to "all" is a great service. It's impossible to develop armor against a category of weapon of which you have no examples.
It depends on the police order.

Order someone to step to the side for public safety? Probably alright. Probably. Unless it's obvious that what they really mean is "Step so you can't see what I'm about to do."

Order someone to stop filming? Spot-check your First Amendment training and get back to me. Or give that order again, on camera.
Some companies (Southwest Airlines for example) will refuse service to you if you're wearing a non-standard mask. Wearing the disposable blue surgical masks is the best bet if you don't want to be randomly denied access to somewhere you're going.
Im not sure I follow your opening premise. Why is strategic tracking of license plates unethical? I am pretty sure it is not illegal. You can pay a private detective to follow someone around town taking pictures.
Thanks! This is on the roadmap, I'm not sure it will be via Insert statements but there will be an option of action/change via some level of abstraction that is not via API/writing code.
No idea but I agree.

Part of me thinks it's 'intellectual elites' here that simply can't fathom not working at a FAANG job making 250k+ and don't understand the problems most people have. And if you aren't working at one of those you must be the ultra silicon valley entrepreneur trying to do the next big thing because money.

Probably downvoted for this but whatever, I think it's the truth. When I first was on this site a few years ago I thought it was a cool forum for geeks, but it's just not that at all really.
Honestly I think if someone finds awk unreadable, they're probably cutting corners elsewhere and probably shouldn't be doing unix systems programming.

It's like all of the bash scripts that we see that don't handle failures and traps or print a usage block.
So you want a world no only with no milk but no butter or cheese or sour cream or yogurt or cream cheese or ice cream or ... ? No thanks, I think we have bigger problems and other ways to solve our environment issues, they are just a lot less popular. Plus, it is kind of silly to think about since it would never happen. Better to tax coal and gas into oblivion.
"Small fries" and 24%...

Anyway you're right but it's like, how would any of this concretely improve competition? In my experience, the problem is that giant companies steal your stuff, whether it's your code or your users, and that even when you want to enforce something like that, they can afford better lawyers than you.

Like nobody here is working on social networks, cellphones or web browsers. I bet you interact with IP law almost every single day though, and a lot of truly disruptive things have termination conditions like, "And then a giant company sues you for IP violations and you go bankrupt, even if you're in the right."

Maybe this benefits giant European tech companies, but it certainly doesn't benefit competition.
Covid over Christmas: Restrictions across some EU countries
You are correct that if you are compelled by the government to do something it's not a free market. But if coca-cola convinces you to try a new flavor through a marketing campaign, it does not eliminate the free market. It was your choice the whole time.
This is interesting timing given the FTC announcement for data collection from social media companies in the US yesterday.

I wonder if there is any connection here like some government cooperation happening behind the scenes. The two events have differences and apply to a slightly different set of companies, but they are both in the spirit of trying to control or better understand how big tech companies are operating (and especially, using customer data).
I think the behavior is timeless. Topical drive-by commenting seems to be quite in vogue on your typical modern platforms; we get plenty of it here too. Trying to put together a good context requires a lot of investment!
What is your "except maybe a very specific mask usage"? Because i thought the well studied data was clear on mask usage.
I bought a Pinebook Pro when they were last available and I was really pleasantly surprised at how good the build quality was and the display quality was excellent. Unfortunately they are not currently available - their LCD supplier bailed on them (according to the December news). Once they become available again I could easily imagine worse things to do with US$200.
Dalek cryptography: Fast, safe, pure-Rust elliptic curve cryptography
I wonder if those type of fears are something we grow out of with age, or if something else is going on there.

I really don't understand what's behind those types of irrational fears. Some nights I can't even walk from the kitchen to the bathroom without turning the light on in the corridor. I know there's nothing behind the corner, just like I'm sure you knew there were no "terrible things in the night coming to get you", yet I must turn on the light

When I was a kid, I used to think that adults are not afraid of the dark because they are adults. I'm almost 30 now, and I often wonder if I never really became an adult that's never afraid of the dark.
So, what do you propose they do, apart from giving you an easy way to find the culprits (https://osxdaily.com/2014/02/19/find-app-using-battery-mac/)?
to cloudshell?
I'm working on an open source project similar to this. It uses Twilio as an option for calling in, but DJs/hosts can use a mic or connect a mixer/turntable via USB audio interface and stream directly without using Twilio.
Hoping to make the first release next week.

There's a Raspberry Pi client for remote broadcasts.

Here's a demo where you can see chat controlled DJ room where you can cue up songs in the station's library: https://radiogbv.com/
As someone who started w/ Ubuntu, distro-hopped around for 6 years of my childhood, and has for the past 4 years used Arch: Linux describes a spectrum of experiences, and .DEB-based systems are the soda and potato chips of the gourmet linux feast. Fedora is a sandwich, Manjaro might be steak. Arch is kind of an empty kitchen with a ton of stuff in it, and Gentoo is a legendary chef on top of a mountain someplace.

tl;dr - it's fine to snack on potato chips, but don't expect people to all want to eat the same thing. Variety is powerful.
Just use Oracle...
They help even when they are worn wrong.

https://kottke.org/plus/misc/images/swiss-cheese-pandemic.jp...
There's no point in splitting them if there's still the tight integration. All you'll end up with more legal bureaucracy.
HN is pretty conservative on average.
Does this mean that your argument that json can't be a hypertext is because it doesn't already have a universal hypermedia spec?
A fairer comparison is Facebook as a community bulletin board in a public space but that is privately owned.

What the conclusions should be and whether technical, philosophical, or practical matters should take precedence, I’m not entirely sure.
Why would it? AWS was doing Chaos Engineering long before it was even called Chaos Engineering and well before Chaos Monkey at Netflix. Most historical coverings of Chaos Engineering trace back to Jesse Robbins at AWS pulling power cables from racks to simulate failure and running GameDays in the early 2000s.

See:
https://en.wikipedia.org/wiki/Jesse_Robbins#Contributions_to...
https://medium.com/the-cloud-architect/chaos-engineering-ab0...
ngl i wash and reuse surgical masks my thinking being they’re probably safer than some cloth mask some brand decided to start selling
Looks really amazing. Simple to use. Fast. Clean. Beautiful.

I just think the storage should be something less volatile than LocalStorage. Maybe the application could provide other options as SQLite or JSON, keeping LocalStorage to people that doesn't need or do not want setup a server.
It's just /etc/hosts, "localhost" is a hostname like any other. It can be changed to whatever IP address you want.
Another money grab from EU bureaucrats. Control the narrative in digital space, regulate small businesses, and get the position of Gatekeeper from big tech. It looks nice on paper.
The implicit assumption here is that those journalists who got arrested did so because they broke the law, not because of misbehaviour on the part of the police.

There seems to be at least enough evidence of the plausibility of the latter that the assumption is far too strong to offer without evidence.
Core authentication and security features in Elasticsearch have been free and not Enterprise features since last May:
https://www.elastic.co/blog/security-for-elasticsearch-is-no...
"localhost" is hardcoded to resolve to "127.0.0.1" (ignoring IPv6 for now).

The "is secure context" state applies to 127.0.0.0/8 (again ignoring IPv6). See NetAddr::IsLoopBackAddressWithoutIPv6Mapping in https://searchfox.org/mozilla-central/source/netwerk/dns/DNS...

I'm pretty sure all of this is clearly specified at this point, so browsers should end up all aligning on a common behavior here at some point, if they haven't yet.
There's only so far you can downsize. Some of the people being kicked out are lower income and already live in modest homes.

I guess you could also make the argument that you must relocate to cheaper areas, leaving behind your friends and family.

The real question is any if that is "right". Should we force people out of a home that they own or make them move out of the region they lived in, in some case for 30-50 years?
The Duke study this article is highlighting has been refuted due to poor testing methodology.
Ich stimme zu.
i don't doubt the use case you brought up.

For your use case, are you going to pixel peep and compare RAW file formats differences? As if that knowledge would somehow materially affect your Instagram photo result.
Good analysis on how to reduce the carbon emissions of cows: https://www.ucdavis.edu/food/news/making-cattle-more-sustain...

Basically feed them seaweed and try to manage the land in a way that sequesters CO2 on balance
It's the most consequential change in the past 244 years, as a free press is the cornerstone of democracy. The death of journalism is the opening of the door to autocracy.
I have a solution, if corporations are just voluntary associations of people, then all the people voluntarily associated with the association should be responsible for the corporations actions. So if the corporation is caught breaking the law, all shareholders become personally responsible and face jail time. No more shielding from personal responsibility with limited liability etc..
Not to get too meta, but I think rich people and SV have always tended toward authoritarian; it's not like rich people get hassled by the cops that often. Recall also that SV got its start by selling tech to the military[1]. It's not something sudden.

You have to remember that HN is by and of a very specific part of wider society.

See also: https://en.wikipedia.org/wiki/William_Shockley#Views_on_race...

[1]: https://en.wikipedia.org/wiki/Silicon_Valley#Military_techno...
> Android was motivated to compete with Apple.

So was MeeGo, maybe we would be using that now if Google couldn't just throw its weight around.

> The Play Store and Chrome Web Store

Ah vendor locked in store fronts, nearly as innovative as the company store in mining towns. The promise by Google to completely pull the rug out under any Android manufacturer trying to get away from it only ads to its clear innovative superiority .

> Many other Google products would likely struggle as startups, requiring massive scale to become profitable, if even possible.

Yes, the last decade of venture capitalist funded loss companies like Uber has shown that no one could reach that size without Google to guide them.
It's not, which is why you see people arrested this way getting released without charges.

It's an intimidation tactic, and the officers face zero consequences for employing it. "You may beat the rap, but you can't beat the ride" and all that.
My advice; stop reinventing the wheel, and if you must reinvent the wheel, make sure its at least as round as the last one.

I've been using FF since Netscape, and it used to be a few settings and we're off. Now, you have to edit policies.json to get updates stopped, autoconfig.js and firefox.cfg to disable telemetry, legacyUserProfileCustomizations to use userChrome.css to get anything like a proper menu system.

'Lockwise' has dumbed down the login system so much you can't even change field names, making many sites incompatible. Nor can you import logins from file or even point to installations to import. The add-ons system is like traveling back in time ten years, bugs and fewer alternatives than ever, still can't figure out how to stop Tree Style Tabs from stealing mouse focus from the page onmouseover like a widget. -And these are problems that were fixed before they were reinvented.

For the first time in 16 years I'm seriously trying alternatives.

-these were my views on 83, i hope to hell 84 fixes some of them.
Masks work.

If everyone is wearing a mask, there are at least two masks between you and an infected person.

Masks don't provide 100% protection, but nothing does. However, masks are important, because they enable people to safely perform essential activities like grocery shopping, and most jobs.

We don't need to stop _every single transmission_, all that we need to do is make sure that each infected person doesn't infect more than one person on average. If each infected person infects two people, for example, that's a chain reaction of spread where everybody eventually gets the virus. However, if each person has a 50-50 chance of infecting somebody else, than over time infections will go down, and Covid will eventually be gone.

Wearing a cloth mask is not difficult, and is a very tiny tradeoff in favor of a significant decrease in transmission chance.

https://tomaspueyo.medium.com/coronavirus-the-swiss-cheese-s...

https://www.mayoclinic.org/diseases-conditions/coronavirus/i...
Yet another "eat the cockroach protein, peasant" message from our lizard overlords. Thanks for sharing guys.
Andy Ngo doesn't throw rocks or participate in other "riot-esque" actions.
Dreamy cover of champagne problems by Taylor Swift (headphones for full effect)
As a user of their services, I'm really happy. It's the only bank I have used with no bureaucracy, zero fees, good phone app, fast and reliable customer support. It's no wonder they have grown so much.

I've also only heard great things about the company culture, specially in the engineering side.
The other option for a developer-targeted, cross-platform app is TUI/curses. I did a recent search to see if something like that exists and the closest I could find were command line todo apps.

I’ve wanted something Kanban-ish that could be project-specific and store its data locally within the project’s directory, ideally with git integration on a dedicated branch so that existing cloud options for git could be used for simple synching.
how it help, from the picture it shown that virus particle are smaller than mask pores.

Masks: The Science & The Myths : https://www.youtube.com/watch?v=9RaBLKKXJt4
Disturbing the peace is a valid law, however, if the police unilaterally assert that someone filming police actions is "disturbing the peace", that's simply a fabrication that as no disturbing the peace has actually been done by that person.