skysight-inc/HackerNews huggingface dataset:
I seriously applaud the writer to dive into Unicode in such detail and compare multiple implementation in different languages. That must have taken a while!

He is working for Mozilla and I guess he needs to actually know all those nitty-gritty details. I could not imagine myself to even bring up the patience for analyzing it.

In some way I am really scared about Unicode. I don't care if the programming language simply allows input and output of Unicode in text-fields and configuration files. But where it gets tough is, if you actually need to know the rendered size of a string or convert encodings, if the output format requires it. There are so many places where stuff can go awry and there's only a small passage in the blog post which mentions fonts. There are multiple dragons abound, like font encoding, kernings and what not.

Imagine writing a game. Everything works nice and dandy with your ASCII format and now your boss approaches you and wants to distribute the game for the asian market! Oh, dear... My nightmares are made out of this!

How do you handle this? Do you use a programming language which does everything you need? (Which one?) Do you use some special libraries? What about font rendering? Any recommendations?
I am partial to grape seed oil for anything grilled.
https://en.wikipedia.org/wiki/Satipatthana_Sutta - Establishing Mindfulness, ~500 BC, by supposedly Siddhartha Gautama.
AppleScript to show unread emails in the terminal
There are subtle differences. What ostensibly they are both based on the calculus of inductive constructions, there are incompatible extensions to the logic in the kernel.

The majority is convertible, though. If I had to make a programming analogy, it would be like converting between C++ and D, or different Lisp dialects. The difference is bigger than Python 3 vs Python 2, but less than F# vs OCaml. Clearly possible, in a sense, and if you can read one language, you can read the other, but automatic conversion is just out of reach due to edge cases.
Probably has a big non compete with Microsoft after the acquisition though.
Worse, it's a fertile ground for "interesting" bugs, because VADDV (which sum-reduces the result) reduces into an 8 bit uint. So if you e.g. accumulate two or more quadword VCNTs into a uint8x16_t and then VADDV it, you could end up with something other than the actual overall bit count (because 2 quadwords can have _256_ bits set). Same with accumulating 8 or more VADDVs, except now individual bytes could wrap around if you don't widen in between.
The only thing that I've found to work reliably is same-sized stories, i.e. breaking down every story until you get very thin vertical slices of roughly the same complexity (not very complex at all). The refinement should be done with (some part of) the development team and the product owner present. Ideally each of these stories is at least slightly useful to a user (if not it's hidden behind a feature flag until enough related stories are shipped to make it useful), but it should be testable in production. I also find that when you do this, sometimes the product owner realises that some of the slices aren't particularly valuable and they can be deprioritised.
Any idea why GCC zeroes out eax before overwriting it?

It never fails to amaze me how smart compilers can be while also being so stupid sometimes.
> Which, given password managers' brain-damagedness at archiving and migrating passwords

What do you mean with that? I don't have a problem archiving passwords in 1Password. When I change it it's automatically stored in the entry as password history. If I retire a login because a site closed but I still want to keep my credentials / details I move it to an "Archive" vault in 1Password.
On what platform does Firefox render the emoji as more than one glyph? Firefox works for me on Ubuntu, macOS, Windows 10, and Android.

The level of ligatures requested in CSS makes sense for the site-supplied font. (I need to regenerate the fonts due to the table at the end of the article using characters that the subsets don't have glyphs for.) If you block the site-supplied font from loading, the requested level of ligatures may be excessive for your fallback font.
The potential market for this boat numbers under 1000 people or maybe even under 100 I'd say.
http://www.merlintec.com/old-self-interest/msg00259.html
No, the benefit of FOSS is that if the group developing a product does not support it anymore, you are free to fork it and support it yourself. And I am sure we will see a fair share of people doing that. What I am not sure is of anyone doing so will have the shoulders to actually support it.

Python 2.7 was released 1 decade ago. That's quite a long transition time.
> Yes you can tokenize this with a regular expression and extract the valid start and end tags.

So you need more than a regular expression, hence your premise is incorrect.
http://www.brouhaha.com/~eric/retrocomputing/rekursiv/
How to Fix Education
It‘s not decreasing it‘s increasingand i think it‘s completely intentional. Happens more and more on sites with content designed to be shared.
No, that's not what I meant, I believe it's implemented as a separate subtitle stream with a flag set to indicate it's to be forced.

https://www.jbistudios.com/blog/what-are-forced-subtitles-in...
Looks like Bloomberg is doing the same as with the "implant" rumors and Supermicro a few months ago.

Gruber has a very nice disclaimer at the bottom of posts mentioning Bloomberg now:

"Bloomberg, of course, is the publication that published “The Big Hack” last October — a sensational story alleging that data centers of Apple, Amazon, and dozens of other companies were compromised by China’s intelligence services. The story presented no confirmable evidence at all, was vehemently denied by all companies involved, has not been confirmed by a single other publication (despite much effort to do so), and has been largely discredited by one of Bloomberg’s own sources. By all appearances “The Big Hack” was complete bullshit. Yet Bloomberg has issued no correction or retraction, and seemingly hopes we’ll all just forget about it. I say we do not just forget about it. Bloomberg’s institutional credibility is severely damaged, and everything they publish should be treated with skepticism until they retract the story or provide evidence that it was true."

https://daringfireball.net/linked/2019/09/05/gurman-touch-id
I actually meant (?<tag> in order to create a named capture.
I'm also a member of a tech cooperative in the UK - indeed I've been part of two:
- Outlandish - https://outlandish.com/
- Common Knowledge (which I founded) - https://commonknowledge.coop/

I was also at the founding of CoTech (a UK network of tech cooperatives). Common Knowledge are a member.

Happy to answer any questions here or hit me up at alex at commonknowledge.coop for anything further.

In the UK the process of setting up a simple co-operative takes about a month. It's filling in a set of forms on top of a normal company registration and applying to Co-operatives UK for accreditation. Basically no sweat.
Not when it turns out vaping is even more deadly than smoking.
Shameless plug: a few years ago I wrote a little Python library with the aim to "sanitize" filenames in a cross-platform, cross-filesystem manner: https://github.com/ksze/filename-sanitizer

By "sanitize", I mean it should take as input any string for a filename, and clean it up so it looks the same and can be safely stored on any platform/filesystem. This would allow people to, for instance, download or exchange files over the Internet and know deterministically how the filename shall look on the receiving side, instead of relying on the receiving side to clean up the filename.

The length of Unicode strings was definitely one of the pain points. Back then I only knew about NFC vs NFD.

Now that I have read this article, I realise that my algorithm to determine where to truncate a filename is probably still wrong, and that I need to dig both much deeper and much wider.

If anybody wants to help dig some serious rabbit holes, you're most welcome to fork and make PRs.
The Art of War by Sun Tzu, 5th century BC
Which is further compounded by the fact that heavy vape users often have tolerances which require large doses. If the liquid is diluted, they'll potentially vape 5x the product to achieve the same perceived effects.

This is precisely why this industry needs to be regulated by the FDA .. or BATF? While I personally don't consume cannabis (it messes with my constitution way too much) there is no reason why it should still be illegal.
When you buy a cup from Starbucks you typically are only buying a single dose. If you buy a vape cartridge, you have dozens of doses. It's much harder to throw the latter away than the former.

Suppose someone bought a car, and found out that the car vents were spewing somewhat toxic that has a slight chance to kill them. If they needed to go to work in it to put food on the table, can you see how someone might say they had no choice but to use it?

Now take that logic and apply it to a vape cartridge. Say someone bought that cartridge which carries so many doses, along with paying the cost of the physical vape machine and the cost of electrically charging the machine, and spent the necessary time and emotional cost to wait for the machine to do so. Then they find it out it may be toxic. Is it really a realistic choice to take the financial and emotional burden of throwing away the cartridge, if it provides a needed soothing relief to their mind?
In April, Christian Szegedy from Google told me that he believes that computers will be beating humans at math within ten years.

From my experience the track record of Outlandish Claims Made by People Having Vested Interest in Casting Them is rather poor. In fact, I can not recall a single one that was accurate.
Firefox on Debian 9 (XFCE) seems to render it as two.
The article makes a claim about Han script information density relative to measures of length. It makes no claim about how the Han script achieves it.

If you consider this from the perspective of Huffman coding, it shouldn't be surprising that the script that gets the most code space in Unicode would carry the most information per symbol on average.
Taskbar Latency and Kernel Calls
"cigarettes will kill me with a 100% probability"

The murder victim rate of smokers is non zero, the road accident fatality rate of smokers is non zero.

And on the other side the lung cancer rate of non smokers is non zero.

So you can't really say ahead of time you will even die of a smoking associated cause, and even if you did, you can't definitively state that it was caused by the smoking.
I honestly don't believe that many will step up and take over. Many will complain, but few will do the actual work.

Even if it's just security fixes, there's still the process of testing and release management, and honestly, I don't blame the core Python team for no longer wanting to do release management of both Python 2 and 3.
I got this around a week ago and started hacking out a simple Asteroids clone. Sadly, it's right now super buggy and as someone else mentioned a lot of information is locked behind sign-up screens and so on... I only had my phone on me and tried to sign up but couldn't get the site to work, so I tweeted the official twitter account a few messages but didn't get a response. The showstopper issue I had was that it's hard coded to a UK keyboard layout (fair enough) and I couldn't work out how to type a | for an 'or' operator (shift-\ did not work!). Not only that, but the on-screen keyboard doesn't appear to have one! The API is fairly powerful, I hope they keep updating and ironing out some of the issues.

edit: I just signed up now and managed to log in, and I was expecting forums or at least a blog but I can't find anything. Hopefully some kind of community feedback loop is in the works.
I don't use ProtonMail but this seems like a fairly fundamental issue rather than a personal pet peeve. In my naivety, it also seems like the kind of issue that would cause considerable pain in developing countries who might likely have spotty internet connections, which would lead them straight into said issue.

So whilst it might have been meant callously, from my third party glance it seems quite important.
Thank you for the in depth of answers.
I still see companies working with Python2 but I am happy for this announcement - as it will make moving to Python 3 faster.
Some shared hosting providers are still offering Python 2.6 as their main offering.[1] Optionally, there's Python 3.2, probably the worst 3.x version.

[1] https://www.hostgator.com/help/article/what-software-and-pro...
That person is incorrect. I know a toxicologist who actually had one of the carts tested due to a patient with these symptoms and the high potency was accurate. Not something I can source but the data is out there in the toxicology circles.
Smoking tobacco is remarkably harmful. It would be somewhat surprising if vaping could be anywhere near as harmful.

Your link (in translation) makes some good points:

E-Cigarettes are not a medicine and are not regulated as such and so might be lower quality; there's a lot of variation in types of product and ingredients used; liquid refill ratio may be unsuitable for one machine even though it's recommended for another;

> The National Board of Health recommends not using e-cigarettes

> There is considerable uncertainty about the potential health consequences of e-cigarettes both with and without nicotine, especially in the long term. Therefore, the National Board of Health does not recommend using e-cigarettes. This is especially true for pregnant women, nursing mothers, children and adolescents.

I don't think this link is saying that vaping does not reduce harm. I think it's using the precautionary principle to say we don't know what the harms are yet, and some harms are emerging.

I do think they're making reasonable points, especially if they're providing nicotine replacement as part of smoking cessation services that are freely available.

Other countries have health services that have come to different conclusions. In the UK Public Health England say that vaping is less harmful than smoking and that it's ok for smokers to switch to vaping, but that we really don't want anyone who doesn't smoke to start vaping.
Because php has no function overloading by type system.
I am surprised I can’t find more recent photos, I would have assumed robots would be regularly sent over the years to monitor it.
Other advantages: no need to brush you teeth immediately after drinking soda to prevent cavities, lighter mouth feel, safer in a car (if you spill the drink there's no sticky residue), T2 diabetes risk reduction vs drinking regular soda, no added insulin response, and if you drink a lot of liquids you can have a few refills without thinking about calories.
Improving our homemade JavaScript obfuscator
The article acknowledges that the Swift design makes sense for the UI domain when the Unicode data actually stays up-to-date: "It’s easy to believe that the Swift approach nudges programmers to write more extended grapheme cluster-correct code and that the design makes sense to a language meant primarily for UI programming on a largely evergreen platform (iOS)."
Browsers should start punishing captive traps. There are valid use cases for SPA redirects without user interaction, much like how HTTP redirects ("Location: ") work, but... abuse should be dealt with.
> Many will complain, but few will do the actual work.

That's opensource in a nutshell.

If there are any big shops stuck on Python 2 then they will probably throw a resource or two at this. If there are big dists using Python 2 they will do the same.
We have flat salaries at Common Knowledge. Our wager is the cooperative as a collective wouldn't exist without everyone working on it, so think it is more fair if everyone earns the same.

However, a lot of other cooperatives have different rates that work around a matrix of: hours worked, skill level and life need. These are democratically decided by the cooperative and tend to also have a pay ratio - e.g. the top earner can only earn 3x from the bottom.

DEV have a nice page on how they work this out - https://www.dev.ngo/join/pay-principles/
On the other hand until relatively recently they have been bad at recognizing loads/stores of larger integers implemented using byte loads and shifts and then optimizing that into larger loads (for architectures where unaligned loads are allowed). Doing it this way allows you to completely delegate any little/big/weird endian concerns to the compiler.
What if that employee group are upper management?
"It's better than coal" is damning with faint praise. Is there anyone who is openly anti-nuclear and pro-coal?
This is one of those things that now you've seen it you'll start to notice just how bumpy the world is! I know I didn't give any of this stuff a second thought until quadriplegia meant I became a full-time wheelchair driver.

Ramps on the front of buildings and internal step free access in modern buildings is absolutely wonderful, but unless every metre of a journey from where I am now to where I want to go is accessible then none of it is accessible.

The signal cannot carry.

For example where we used to live it was impossible for me to turn left out of my house at the beginning of any journey, it did not matter how much I tried to reason with thay nine inch high curb just would not smooth out. And that is it, that whole part of my neighbourhood was cut off because the engineers putting in dropped curbs have not seemed to fully grok the reason for dropped curbs.

This kind of mapping is absolutely invaluable and has to be kept in the open source world I think, that does not mean people should not make money from it but this is one of those things where crowdsourcing could really speed up the process considering we are all carrying around incredibly sophisticated geospatial mapping devices containing accelerometers, GPS and all the other bits and bobs needed to quickly map an area.

Hit me up if any of you want to collaborate on a project like this in the UK.
OK, so the main takeaway for me for example would be that if I want write lambdas in Go (because it's awesome), then GCP would be better choice for me.

But anyway, I'm not too current when it comes to lambdas. Are they compiled everytime when cold started, or is a compiled binary stored in some sort of image?
How remarkable that the article doesn't go into cost at all.

"War is a continuation of politics by other means", wrote Clausewitz. That, if regarded as true, provides an alternative to a navy: The same money spent on other political acts to secure one's country against possible enemies. If the price of "warships, submarines and aircraft carriers" rises, then the alternatives grow better.

Germany's an example; it pays its EU partners a little over 30% of its defense budget. It is at least arguable that spending that money on subsidising french farmers and building roads in Italy has been better for German security than a 30% increase in military spending would have been.
I am one of these guys who is using K8S at home. The reason is a unified platform for work and home environment.
Happy to hook you up with someone to advise, but as people are saying would be good to know your location first.
I applied for a job working on Rekursiv in late '87 - never did hear anything back from my application...
As the parent poster quotes, drunk looks like:

> if the sequence was of n steps, almost surely its distance from the starting point would be close to √n.

Of course that raises the question "What is close?"
JavaScript: Replace/Highlight All occurrence of a string or array of strings
Yes, that's the point.

If you e.g. clicked on a link to facebook.com and had previously logged in, the browser will send the "lax" cookie with the request, so that your session is correctly tracked and Facebook shows you the logged-in view.

However, the "strict" cookie will NOT be sent, so even if by some accident you have a state-changing endpoint that accepts GETs, an attacker could still not trick you into invoking it via a link.

I agree though that if you have state-changing GETs, you'll have bigger problems, so the use-case for "strict" cookies seems a bit of a niche. I suspect the common case will be "lax" everywhere and "none" for special applications - i.e. what the default is encouraging.
I think you misunderstood him, as others have noted, however I do agree that Software Engineers tend to diminish their own skillset as not "engineery" enough. And I have a very hard time understanding why.

I work with many kinds of engineers, every day, from electrical to mechanical, and I do not find their way of working any more advanced than what I have become used to from disciplines of Software Engineering.

I look at some of their math and think magic. They look at my code and think magic. However, anything else seems pretty much the same. We do iterative development, they do iterative development, although less sophisticated and with much longer feedback loops, so they have higher incentives to get designs right the first time - but that does not mean that they always do!
Kahlil Gibran - The Prophet.

Timeless themes written in beautiful prose:

It's out of copyright (first published in 1923, so almost 100 years), someone has put a website together of each theme, here is one on work:

http://www.katsandogz.com/onwork.html

I've probably moved on from this book a little now - but it's still beautiful and sometimes gives much needed perspective.
Thank you @ngngngng, I will have a look at it soon :D
What's the cheapest you can run a k8s cluster in the cloud? I've been looking to spin one up in AWS, but it looks remarkably expensive for running personal projects.
The problem is that I'm unable to identify all wrongthink. What I'm looking for in a community is to not get banned for who I am. And I've found such a community. If I knew how to fix myself, I'd have done it a long, long time ago. Also, I think tolerance is the wrong way to frame this. What I want is to exchange ideas. I'm not interested in the identiy of whomever I'm exchanging ideas with. Likewise, my own identity doesn't matter. If an idea is bad, this can be identified through thinking, but you first need the abilitiy to discuss that idea.
Usually cooperatives have to have a base in one country for legal reasons as (sadly) they need some kind of legal recognition.

But in a sense this makes no difference from remote first companies, like Buffer, 37signals or
Automattic.
Compounding a war with an uncontrolled nuclear meltdown seems something we should definitively worry about.
Hah, sorry. I was taught that this was the correct universal way of calling this type of food across all varieties of English.
If only you could specify overflow behavior and value range separately.
I mentioned Perl 6's in-RAM storage format.

I didn't seek to mention every programming language for everything. E.g. I didn't mention C#, since UTF-16 was already illustrated using JavaScript.
This is a trivial mistake. Many people outside of HN haven't even heard "FAANG", much less what it means. A lot of very smart people commit such trivial mistakes all the time.

I haven't gone through this guide, but judging through other comments, it isn't that bad (some even praised it).
For completeness sake, it's also possible to get the number of code points in JavaScript:

Array.from('<emoji here>').length

or equivalently:

[...'<emoji here>'].length