skysight-inc/HackerNews huggingface dataset:
Strangely I think this is the rare case where public's goal is more aligned with Apple's goal than one might think: no more labour violations, no more headlines. But... be careful what you wish for. Robots. When all iPhones are assembled by robots there will not be any labour violations anymore. But exactly what problem will we have solved in the end?
Ooohhh i have an idea:

Put a bunch of actual police plate numbers on bumper stickers...

(Recall police plate numbers never contain letters) just numbers.

Put these numbers all over your bumper and see if you get a tocket going through a toll

(Keep your actuallly legal plate and tags on the car, just tesf which ones they pickup first)
MMIX has a "SADD" instruction, which does popcount(x&~y). (You could use this to count trailing zeros with two instructions, each taking only one clock cycle.)

I thought JavaScript ought to have a built-in popcount function for the new integer type, but last I checked, it doesn't have. (It would be faster than writing JavaScript code to emulate it.) (I can think of uses for popcount on arbitrary length integers. Of course this won't work with negative numbers (I don't care what it does if the input is negative, although they should define what it does in that case), but for nonnegative numbers would be good to have.)

I have also used the __builtin_popcount function in GNU C. I did not know that it can detect an implementation of popcount and replace it; I have just used the built-in function.

I also did not know of all of the uses mentioned in the linked document (but I did know of some other uses).
Cast iron skillets are heavy and one should avoid for deep frying. For deep frying you need something that retains less heat so it responds quickly when you turn the gas to low.
I’d appreciate if they defined recently. That feature has been there for months for me.
The Mad Museum
The Art of War - Sun Tzu
Storage capacity has been increasing much faster than new CD volume is being created (relatively speaking), so if it isn't true today it soon will be.
Great list! Did you/do you work at Amazon at some point? I feel like the Amazon LPs might have influenced some of these?
> The fundamental unfairness of employment is that your masters skim off the top of your labor's true value

Sure, that's why we see so many pilots selling direct to consumers, right?
It's been mentioned before but meditations is great, but I would also like to add
"How to live on 24 hours a day" by Arnold Bennett https://www.gutenberg.org/ebooks/2274

In fiction Sherlock Holmes and the Three Musketeers is some of my favorites.
I don’t see much of a problem as long as the company is still making a profit. The striking workers could strike until they’re receiving all the company’s profit, at which point it would be as if they’re receiving the actual value of their labor. Not that crazy of an idea.
Video chat needs to support a pretty small “viewfinder”, otherwise the other person on the call wouldn’t be visible!
If you can spare some computation time when creating the trees you can simply generate recursive hashes (like git does), then you can immediately see if a given tree exists anywhere as a subtree of a larger tree in O(1). Of course you will pay for this with O(n) time complexity and storage for creating and storing the hashes.
There’s a lot of commentary in this post about storage size, but outside of serialisation (for file storage or network reasons) the actual byte count is typically not what you want.

What you want in your UI is the number of glyphs that will be presented to the user. Which means it is correct for it to change across OS or library versions, as new emoji will result in a different number of rendered glyphs.

There are very few places in program UI that want anything at all other than the actual glyph count - emoji aren’t even the first example of this, there are numerous “characters” the are made up of letters+accents that are not single code units/points/whatever (I can never recall), for which grapheme count is what you want.

The only time you care about the underlying codepoints is really if you yourself are rendering the characters, or you’re implementing complex text entry (input managers for many non-English characters). The latter of which you would pretty much never want to do yourself - I say this having done exactly that, and making it work correctly (especially on windows) was an utter nightmare.

Then once you get past code point/units to the level of bytes your developer set divides neatly in two:

* people who think the world is fixed # of bytes per character

* people who know to use the API function to get the number of bytes

But for any actual use of a string in a UI you want the number of glyphs that will actually be displayed.

My assumption is that that logic is why Swift gives you the count it does.
I did a Masters in Biophysics, the topic was diffusion of proteins in cell membranes, they usually show random walks (albeit restricted to compartments or showing distinct speeds (bound/unbound?)). That graphs does not look like a random walk, so the Riemann Hypothesis is false?
Update on Wikimedia site and system outages
The number theoretician Edmund Landau said that number theory was a very practical application for getting a Ph.D. in mathematics.
Things to Read This Week – 09th Set 2019 – That’s a Bug
Selling $5 bills for $1 is, unfortunately, not a business model
Essays by Montaigne
"It all centers on Zhengzhou, a city of six million people in an impoverished region of China. Running at full tilt, the factory here, owned and operated by Apple’s manufacturing partner Foxconn, can produce 500,000 iPhones a day. Locals now refer to Zhengzhou as “iPhone City.” ... Foxconn is Apple’s largest supplier. Apple is Foxconn’s largest customer." https://www.nytimes.com/2016/12/29/technology/apple-iphone-c...

> While overtime is allegedly often required, most workers want to work overtime to make more money, according to an anonymous diary written by a CLW investigator in the factory.

So it is ok to force me to do overtime if my colleagues want to stay? Does not matter if I am overstressed, have children or any other circumstance?

https://www.telegraph.co.uk/news/2018/01/07/suicide-chinese-...
Thus Spoke Zarathustra - Nietzsche (esp. Walter Kaufmann preface edition). It's an energetic, angry, poetic, and often rambling tour de force on mankind overcoming its smallness. Halfway through you'll start wondering if Nietzsche is a genius or a lunatic, and the answer is Yes.
Mandarin and Cantonese are both widespread enough to have dialects of their own. For example, Dalian Mandarin has different tones and some syllables that don't exist in Standard Mandarin: https://en.wikipedia.org/wiki/Dalian_dialect
Is it maybe a sign that the system is fucked up when you have to go out of your way to emphasize “legal and ethical”? Implicit in that statement is the fact that there is an incentive to do things that are illegal and unethical in pursuit of that goal.

Also it’s disingenuous to say that an owner benefits from treating their employees well; an owner benefits from treating their employees as poorly as they can without impacting their productivity.

Actually this owner person sounds like a parasite on the rest of the business, why not just make the employees into the owners?
Les Misérables. First read it when I was in elementary school. It was a beautiful, touching piece. Not only did it tell a story, but also it presented the whole cultural background upon which the story occurred. Every time I read the book, I learn something new. In elementary school, I was mostly moved by Jean Valjean's resilience, calmness, and competency. Later on, I started to appreciate the humanity shown in other characters as well. Then, I read into the culture. It was most interesting to compare this book to A Tale of Two Cities.
R/Sino, please, a massive dump of ccp workers and sympathetics.
Indeed, Tesla has always had a superior BMS, and I keep hearing that they have a custom electrolyte or something that Panasonic uses for their cells? They seem to get 2-3x the lifetime out of similar cells. The Leafs don't have liquid cooling, and that's the only reason why I won't buy one - it's both bad for battery life, and fast-charging (Leaf owners call it Rapidgate).
Apple can do math. Apple can look at what they're getting and what they're paying for it and run the figures and see what that comes to in terms of pay for hours worked. At a certain point, asking for X and putting down rules that make X impossible or highly improbable isn't getting conned, it's trying to get to plausible deniability.
I don't agree with you. There are several tools used in the creation of ECU firmware (and writing it). The software used for detection of car on rollers or road (diesel scandal) was one such tool for example.
The drunken man is moving away from where he started (any point in time can be labelled as "start") at a speed of about the square root of his linear speed (speed from his point of view). And the direction is random. This can also be 1D motion. Actually in 1 and 2D it is likely that the drunken man hits his starting point again at some point, it goes to 0 fast in 3D.
You are confusing philosophical ethics with morality a bit.

Ethics includes systematization, description and criticism of moral thought, although I'll admit that, in the real world, it often doesn't draw on science as much as it should.

You might find this interesting for instance:

http://emilkirkegaard.dk/en/wp-content/uploads/Joshua-D.-Gre...
https://news.ycombinator.com/item?id=19233706
Remove “the latest” replace “law” with “laws” and then add “ever since forever” and that would be more accurate...
When you start learning more about philosophy you realize it forms the bedrock of the accepted ideas in our society. Down to some very common sayings you often hear repeated. It makes its way into daily life all the time.
>> "When dealing with politics, avoid it, but have right folks vouch for your work" -- this one is not specific enough for me. "Avoid politics"? Who are the "right folks" -- how would I know whether I had asked the right folks to vouch for the work?

It is very difficult to avoid politics unless you operate in a total isolation. Every time I need to talk, to get consensus, to request, politics is involve. It gets much more difficult when folks are not in agreement with what you want to do.
True, however you understimate the role of software in current automotive design (ICE).
Met San Quentin Inmates Who Code, Left with Questions (2017)
The difference in lifespan that I mentioned occurred in packs of similar sizes, for all manufacturers but Tesla. Tesla is in its league when it comes to battery lifespan.
well microchips are small compared to turbo fans. Turbo fans are also hollow and inflated via some crazy trade secret process which the Chinese haven't figured out yet, hence them not making their own engines.

So the anode or cathode on a battery, or even a whole AA size battery cell, is more on the scale of a microchip than a turbofan blade I think. plus the battery won't have to be subject to the same QA process of x-raying to ensure there are no microscopic cracks or defects. If one cell in your battery pack isn't as good as the rest it will just be managed around instead of subjecting all the cells to insane QA.
PhD programmes are 3 years in Europe because the education beforehand is much more focused. You've pretty much chosen what you want to do at at 16 and from 18 years old onwards you only study one subject. To be admitted to a PhD programme usually requires either a masters degree or a lot of reserach experience. Then the actual PhD programmes themselves are just research, no classes or teaching.
Wouldn't someone who is replaceable be overpaid until they were compensated little enough such that no-one else would work for that amount?

I'm not sure if you subscribe to the notice that it's OK for the worker to max out their compensation while it's not OK for the owner to do so, but I think it's a pretty common stance. Admittedly, the reverse is also true (as I'm hoping to point out).

Ideally, I would hope that negotiations were conducted in a way that is mutually beneficially to both parties. I'd rather we didn't resort to getting as much as we can at the expense of the other party.

Of course in a dog-eat-dog world, what can we expect? All of those bastards on the other side are going to do it to us so let's do it to them first.

But is there an advantage to living in a world that isn't dog-eat-dog? Is it possible to encourage a society where neither side "does it" to the other and neither side thinks of the other as "bastards"? I really, really hope so.

(Possibly not related to your actual position -- your words just made me think of that)
The problem with the answer is it is wrong. The question is about identifying start-tags in XHTML. This is a question of tokenization and can be solved with a regular expression. Indeed, most parsers use regular expressions for the tokenization stage. It is exactly the right tool for the job!

Furthermore, the asker specifically needs to distinguish between start tags and self-closing start tags. This is a token-level difference which is typically not exposed by XHTML parsers. So saying "use a parser" is less than helpful.

I have elaborated a bit in blog post: https://www.cargocultcode.com/solving-the-zalgo-regex/
Sounds like the person who wrote worked for Amazon or similar company. Almost all of this was official Amazon guideline for engineers.
That I expected, actually. (It seems common enough to me, that it would be implemented like that.)
> Your software is your product. The primary cost of software is NOT the initial development: It is the ongoing maintenance. When you cut corners, you are taking out a loan against your future sanity and time. Higher quality code bases and better practices lead to stability, ease of extension, and more money.

I want to agree with this attitude, I really do. But with how crowded the indie game market is right now, I understand the urge to move fast and loose. Games already take years to develop and are incredibly expensive, and hiring additional developers is incredibly expensive. Considering the tiny chance your game will be successful and make its money back, why would you spend tons of time frontloading work to avoid future maintenance? In all likelihood, nobody will play your game and it won't matter! And in the off chance it does get popular, you can go back and clean things up later... definitely... right?
It has been computed for at least 10^16 steps, and it sure does look drunk, but sadly that does not constitute a proof.

https://en.m.wikipedia.org/wiki/Mertens_function
If they're underpaid, sure. (And I would assume they are) But that was the original question - what are the working conditions? If they were paid $1M a day (of course they're not), would you still say they're underpaid just because they're in demand? What about $300k a year? What about $200k?

This article doesn't say what the pay / demand is. Another one (https://www.theguardian.com/business/2019/sep/08/ba-pilots-t...) mentions BA proposing an increase that would bring "some" over £200k a year. I'm sure that's cherry-picked for PR and doesn't show the whole distribution, but it's at least one number.
> HN bans most emoji. That's pretty annoying on a post like this.

Not just "emoji" either, it bans random codepoints it doesn't consider "textual" enough and rather than tell you they're just removed from the comment when submitting leaving you to find out your comment is completely broken.

It's infuriating.
I also found out about tiered vectors only in this thread. At the time of implementation I tried to Google for something like this but didn't find.
In general I think the system is rather good. If you have a job lined up getting into the country is pretty smooth and renewals are mostly straightforward.

Probably the most common source of problems I see is the rule that you must have a longer than 1-year residence status to apply for permanent residence. The max I've seen is 11 one year renewals in a row. It really does seem random. One situation featured a couple were both employed by the same company doing the same job, came to Japan together (same entry date), were living together (same home address) and yet got different lengths of residency.

I think it's clear that an opaque system is a feature not a bug as far as the immigration office is concerned, but that does little to put the minds of people stuck in the system at ease.
Here are a couple

https://www.8devices.com/products/carambola-2

https://onion.io
I think "us vs them" mentality is the point here. To demonstrate "them" are so irrational, so deplorable, so beyond any redemption and lacking of any sense and virtue that their alienation and complete disregard for their needs, voices and concerns is justified and is the right thing to do. If somebody just wants the world to burn, you don't discuss a compromise with them that would be acceptable to both sides, you put them in jail or mental hospital. The author doesn't want to find common neutral ground with the deplorable Trump voters. He wants to convince us they are so crazy that "normal" people should just shun them, avoid them, treat them not as rational people disagreeing on politics, but as people afflicted with NFC condition that just are that way, and that's it.
how many people have died from tobacco just in the last hour? I imagine a hell of a lot more people then the 5 total people who have died from vaping.
Maybe remove “Apple” too in that case?
> This is the way of arts under capitalism, in a culture where the abandonment of government funding results in a void filled only by wealthy donors and bloodsucking companies—it’s not altogether different from when composers and musicians worked as servants for the aristocracy.

As a former professional classical musician (I kicked the habit when I became a father,) I'm always amazed at the sense of entitlement expressed by musicians. As if the state is somehow morally obligated to support their art.

At the end of the day, it's a question of supply and demand. There's a ton of young people that go to music school each year, while on the demand side there's an ever-diminishing group of snotty white-haired patrons that are willing to pay to hear a symphony orchestra live.

> Perhaps the most humiliating defeat was dealt to the Detroit Symphony Orchestra, which went on strike for six months in 2011, only to concede to an almost 25 percent pay cut.

I really don't get why musicians feel primordially entitled to a $100K job no matter the economic circumstances.
Both methods only work on integers.
So as of 2019, all languages are pretty much on par the same? Is that the conclusion?
Here in Norway the trend is toward battery electric buses via diesel hybrids and gas (not gasoline).

But even the diesels are quieter than the buses I have seen in the US and certainly a lot cleaner.

Buses in both the US seem stuck in some alternate reality where clean fuel and quiet motors are somehow impossible. I realize that this might well be an unwarranted generalization from my experience in the Raleigh-Durham Triangle, perhaps it's better elsewhere.
Check this thread, you'll know why this topic get flagged.

https://news.ycombinator.com/item?id=17763426
That would be because it's a single codepoint (U+1F926 FACE PALM).

Try out the family or flag emoji (which are composite) and you should get a different result.
Not sure why these phones are still large phones without Touch ID.

I hear they will releasing a new iPhone SE the size of an iPhone 8 in April that I'm interested in. Though probably no Touch ID in that which stinks.

Touch ID is a way better UX ..grab phone with thumb and boom phone is open. One quick/seamless step vs. Face ID...grab phone, look at it and swipe up. Three steps vs. one ..no thanks Apple! Bad UX ..making the user do more then before!
That's just the size of a chimp "nation", this is like arguing Luxembourg can never go to war because "It has a current strength of approximately 450 professional soldiers" which is obviously far too few for any real scotsmans war.
India Auto Sales Take Record Fall in 10th Straight Month of Declines
I would not be surprised if the compiler detected the second version as well and replaced it with a popcnt. In any case, it seems like you ended up with the stereotypical “bad interviewer” so I doubt it would have mattered to point this out.
Ivorunwisely = Ivor (Founder of Linn) unwisely
Ditto. I found two of them at a local flea market, indicating that there's at least one more hipster out here on the countryside where I live.

Also, mix tapes are still awesome at parties; it gets rid of the fight about who gets to connect their phone to the stereo.
Ambrose Bierce, Tales of Soldiers and Civilians

O'Henry, the Gentle Grafter.
Source: https://www.cdc.gov/media/releases/2019/p0906-vaping-related...

CDC’s actual recommendation:

“What the public can do

While this investigation is ongoing, people should consider not using e-cigarette products. People who do use e-cigarette products should monitor themselves for symptoms (e.g., cough, shortness of breath, chest pain, nausea, vomiting, abdominal pain, fever) and promptly seek medical attention for any health concerns.”
People are monsters. https://m.youtube.com/watch?v=dNDKyjRz__c
Asking for a way to falsify a theory is crucial. On this case I think we need to look for falsifiable predictions the theory makes that then can be disproven. If a theory makes no falsifiable predictions it's useless. So slightly backwards, it seems in this case, asking for how to proof it is closer to asking "what predictions does this theory make?".

A theory that's not disprovable isn't valuable. See Russel's tea pot.

Edit: phone auto typo.
Agriculture was invented fairly recently, around 8000BC. Homo Sapiens have been living in groups for tens of thousands of years before that. One of these group leaders would no doubt have ordered the death of a competing group. No doubt that is what GP wanted us to revolt against.
This "guilt by association" fad is a mess. What if... someone was on the verge of discovering a cure for lung cancer... but stepped down because of something like this? Knowing people who've committed crimes doesn't mean you condon the criminal behavior. You might have been so focused you didn't know about it.
I tried it according to many of the video tutorials and it doesn't really work. It just smelled up my kitchen with oil smoke, and made my pan look amber-ish but not non-stick. Also whatever coating that created, it gets ruined by cooking.

Just use some oil and high heat before putting things in. And use a Teflon pan for more delicate things that don't need to be seared.
Yeah, who could have thought...
Former Boeing official subpoenaed in 737 MAX probe won’t turn over documents
Sherlock Holmes and the Three Musketeers

I wish that was one book.
Please contact me. Email in profile.
But we use proxy effects like polls to simulate the actual event. On this case we haven't even been able to do that.
This is the content I like to see at HN most of all. Good article, thanks for sharing.
This is why you always want to know where your salt is, and your fire extinguisher too.

I had a room mate do the same thing once. The flame must have been at least 4-5ft tall, hitting the ceiling. She grabbed a box of salt and started pouring it on the oil. This killed the fire rather quickly, before even a smoke detector went off or it created any damage.
My prejudice is that any "audiophile" (see Linn) and anyone associated with them is a bit ... interesting
How to Choose ECommerce Site Search Technology?
I see your point but blood does not wash so easily as milk.
This belongs on Reddit along with the “I bought some Pringle’s and almost all of the chips were broken” posts. Call the bank, cancel the charge and report it as unauthorized. End of drama.