Hacker News new | past | comments | ask | show | jobs | submit | yesbabyyes's comments login

I guess calculating the Levenshtein distance between the sets would work somehow?

Edit: scratch that, just intersect the set of available pieces with each set. If there are fewer than n--or m%--missing pieces, suggest those.


I thought Huawei's only competitors in telecommunications are European, though?


I'm not in the telco space anymore, but Motorola, Cisco, Alcatel Lucent (or whatever they are now) are all a mix aren't they, Euro/US


I think it’s Ericsson and Nokia (which bought Alcatel Lucent I think) that are the main competitors.


This is something I and a few of my colleagues have noticed, as we asked several models to draw ASCII art of a wasp, which is one of our logos. The results are hilarious, and only seem to get worse as you ask it to do better.


Tell me you're from the US without telling me you're from the US.

Jokes aside, I had to wait years for Framework to finally allow shipping via a friend in Berlin. I think they ship to Sweden now—they seemed to have an unfortunate misunderstanding that they needed to produce a Swedish keyboard and translate their website before shipping here, which of course is poppycocks.


I am pretty sure that if you have reached the point that you are ordering a laptop online from a brand unknown to the general public, it means you are past the point you need the actual physical keys to match your keyboard layout on your OS settings. You could just have blank keys.


To be fair, some international keyboard layouts actually have variations of key shapes and locations. The shape of the Enter key and the cluster around it is the main example. So it's more than just the labels.


I own both ISO and ANSI keyboards on different laptops and use the same software keymap. I don't think it is such an important factor as I switch from one to another without thinking about it.


That doesn't seem to be an array at all, if the idea is to check whether a number is within a range. Seems like an interesting data type though, a combination of a range data type and a map/associative array.


I was thinking of a sparse array but any name will do. obj[~42] ?

One may have a bunch of key ranges each associated with a value or one may have a key that should be "rounded" to the nearest key or retreave the one below or above it.

It feels like something basic enough to have in a language and I found it oddly complicated to write myself. Comparing it with all values doesn't seem like a very good solution.

Not that I know many languages.


I had a similar reaction to the borders of Western Sahara, where it seems like most of it is part of Morocco in this map.

Apart from these issues, it's really nice, well done!


If there are multiple roosters on a farm, living in the same coop or different coops within hearing distance, they will trigger each other to crow earlier, like it's a competition.

Especially young roosters will try to establish themselves by being first. The big old rooster who knows he is the rooster in the henhouse can afford to wait, with his big testes energy.


Yeah, my roosters get started 1-2 hours before dawn, and they'll crow now and then throughout the day for various reasons, usually something like, "Hey, stay away from my hens, buddy."

Hens are pretty quiet. They'll do some clucking after they lay an egg or when one of them finds a worm, but you'd have to be a very sensitive neighbor to be bothered by their nose.


I agree. I'm pretty sure jashkenas got it from Ruby, which got it from Perl, with the `/x` flag (for extended regular expressions).

Later languages have added support for the `x` flag, including C# and Rust. There is also a stage 1 proposal for JavaScript: https://github.com/tc39/proposal-regexp-x-mode


Nice roundup, and thanks for sharing that proposal!


Notepad++ has /x mode as well.

I probably use regexes the most in notepad++


> There are other systems in the world (namely the scandinavian countries) that don't allow individuals to accumulate that amount of wealth.

This is a common misconception. The Scandinavian model has changed rapidly the last few decades. Sweden now ranks higher than the US in number of dollar billionaires per capita, even if none are at Ellison level yet.

Edited to add: in fact, the Scandinavian model has always been more about equality of income, rather than wealth. There are, and has been throughout the 20th century, wealthy dynasties as well as industry tycoons who has largely been left alone by the social democratic system, and indeed viewed more as an important part of the system than anything else. Since the 90s, though, it has changed rapidly, such that today there is no tax on wealth, inheritance, gifts or real estate, as well as a low corporate income tax.


Thanks for explaining some intricacies about taxes, however this does not disprove my point.

1. Scandinavian countries impose higher taxes on their rich VS the US. It does not have to be a wealth tax. Think effective tax rate. 2. Income inequality is lower there compared to the US.

It is a very different system than the US, it's frankly strange to have to argue that.


A good friend of mine did this; not so much cheese I think but loads of cream, butter, and meat. He ended up with cardiac arrest, followed by sepsis due to an operation. He's mostly ok now though.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: