skysight-inc/HackerNews huggingface dataset:
Unless I'm mistaken, that's not true. The hash is computed from the full path and the prefix is the first 32-bits of the hash (or 48-bits if using Safe Browsing).
Yes, but your example is less efficient than the new code.

Remember: every variable is an assignment into a dict, and every lookup a query into a dict. Reducing name lookups and assignments can yield good speedup in tight loops. For instance, caching os.path.join, os.path.split into local names can significantly speed up tight loops iterating over a filesystem. For example, os.path.split is potentially 5 dictionary lookups. Checking locals, nonlocals and globals for os. Then another to find path, and a final one for split. And this happens at runtime, for every invocation.
I know, it's popular. Many people find actual value (just not me) while some shoppers assume "It's Costco, it must be a good deal." When that's not always the case.

Regardless, it's popularity in this way makes it a negative UX for me. It can be jam packed at the local supermarket but I can scan items as I shop and do self-checkout and skip the 20 minute lines.
> You wouldn't sign a job contract where if you got fired or quit you would face unspecified financial and personal penalties

It's only like that in the US and perhaps some other Western countries. Other societies put up front the cost involved in case of divorce in the marriage contract itself.
Lawyers are expensive. Divorces are doubly expensive for the same reason that the Civil War saw the most dead American soldiers.
A wise company with secret sauce wouldn't give it away.

If our corporate culture is pathologically short-term-obsessed, that's on us. It's not on the 'bad guys' who lifted hundreds of millions out of poverty.
On the flip side, Chrome can ram through implementations before their standardized and people will start using them.
> Is Ionity structured and capitalized in a way to ensure long-term success even if/when a few partners pull out a few years down the road?

It doesn't matter if Ionity fails. Other CCS networks already exist.

You're stuck in this closed network perspective. It's like panicking over what will happen if AOL goes bust. The answer is: who cares? There are plenty of other internet providers.

If it helps, here's a Tesla Model 3 and an Audi e-tron charging on an Ionity 350kw charger:

https://www.youtube.com/watch?v=PPrVZtzAqX4

Ionity's open to everyone. When will Tesla open its chargers to other EVs?
Friendster bombed hard due to high growth and bad code.
Sidecar is an obvious OS feature that I've wanted since the original iPad, and the third-party attempts/solutions from VNC to Remote Desktop to Air Display to AstroPad to Duet to Luna were not great and some of them added very annoying bits like subscription pricing (seriously?) or clunky/expensive hardware adapters.

I also considered how easy it is to have your iPhone screen show up as an video source in QuickTime Player, just by plugging in a lightning cable...

I'm deleting basically all of them (possibly excepting VNC, which has a few different use cases) and switching to Sidecar.
> I'd like to see all the sensors permissions lumped together behind a sufficiently scary name ("Permission to spy on you"?)

That might be a renamed JavaScript toggle.
Yeah well, sometimes js library isn’t compatible with js library either
As per HN guidelines[1], "please submit the original source". This article is just a summary of the BuzzFeed article: https://www.buzzfeednews.com/article/alexkantrowitz/apple-ch...

The original article was extensively discussed a few days ago:

https://news.ycombinator.com/item?id=21231191

[1] https://news.ycombinator.com/newsguidelines.html
LÖVR 0.13 Released
But it does have a method to sort containers in its standard library, `sorted`, that C++ doesn't have. And it's trivial to use it to sort lists, sets, and dicts...
I considered using something like this, but as I explained in another comment (https://news.ycombinator.com/item?id=21254984), I think visual matching beats other approaches. I think the few seconds it takes to think about which app owns the window, or what text could match the window, will be longer that directly looking and visually recognizing your window. Again, this opinion is not supported by research. You may want to experiment on yourself. It is also not only about speed but the comfort of each work-flow may differ for different people.
Everyone knows that you can step on the brake to stop a car, even with the cruise control on.

At this point, you're not saving face by arguing with fact.
well they said they would so no surprise here
WeWork says it found cancer-causing chemical in its phone booths
This sounds like another Woodward (or Mach) effect drive proposal, or is it something different?

https://en.m.wikipedia.org/wiki/Woodward_effect
> I wonder if there's a way to replace command tab with it instead of control tab

Check out my reply in another comment: https://news.ycombinator.com/item?id=21254933
What is wrong about our Chinese food? I quite like it but I can't compare with other countries. Do bear in mind that Dutch "Chinese" food is really a combination of Chinese and Indonesian food, it's not really a real thing that exists anywhere outside of NL.
I had a liberal arts BA and wrote my first line of _any_ code a year after graduating. When I got my first DS job, I only had 5 years of (non-DS analyst writing SQL) experience.
It's the same topology as long as string lengths are equal
Came from a working class rural background. I was in gifted streams but they finished when I was 12. My high school was more focused on keeping troubled students in line than helping gifted ones. Finished school and got a trade. Never felt happy.

At age 30, started comp sci at uni. Best decision I ever made. It fixed the "mistakes" I made in my life choices
Advice to parents: Don't tell your kids their IQ. There are good reasons not to whether it is low or high, plus it doesnt mean that much. My parents offered to tell me my first year of high school after a big science fair win, but I didn't want to know. At the time I think I needed to believe I had the hardware needed to keep chewing what I had bitten off. A few years later, I had the luxury of still feeling like my achievements were born out of patience and passion rather than talent. I didn't finally ask until I was in grad school and knew myself well. Im grateful to have been given that choice.
Note that Redux Starter Kit is built in TypeScript itself, and `createSlice` makes it easy to write all the logic for a given slice in a single file. Then, combine that with our new React-Redux hooks API, and it really gets easy to work with Redux in your components:

https://redux-starter-kit.js.org/tutorials/advanced-tutorial
That's air temp, not water temp. We are discussing water temp.
Though not a language feature per say, I would love if the language would take on the packaging ecosystem and deliver a ground up approach that isn't just a kludge on a kludge on a kludge.
Yep, agreed. The biggest missing capability there is being able to _respond_ to dispatched actions, which thunks can't do. But, most apps don't immediately need to do that anyway.
Have you tried archive.org?
The point about not having models is a very important point. Psychology is so sure that the mind exists and has certain structural properties, but to what extent is it empirical?
Why not something like this:

def f_iter(many, args):
while True:
m = f(many, args)
if m:
yield m
else:
raise StopIteration
...
for m in f_iter(many, args):
# do stuff with m

This way you’re isolating all the initialization logic, error handling, etc. And you can focus on your domain logic in your client code.
Thanks for sticking around :) I know it's frustrating to see so little action over such a long period of time. We're slowly rolling out a bunch of stuff which we really should've added years ago... We have some other wish list items we're working on at the moment, but a "user dashboard" is on our roadmap I promise! :)
>Do you actually believe this, or are you using it as an insult?

I believe this, and mean it more as a matter of fact in a literal sense, and not as an insult.

>This hurts your comment so badly, especially as a leading statement.

To each their own. I know my audience. I lean conservative on a heavily west coast populated forum. I'm usually pretty easy going, but did draw a line in the sand on this. If every SE community trends this way, I'll pursue other interests.
Totalitarians have used anarchists to achieve their goals in the past. Anarchists themselves may believe they're fighting the Man, but they're just being useful idiots.

When the general populace gets fed up with anarchist antics and rioting they start clamoring for tougher law enforcement (and stronger leaders). That's when totalitarians come in.
> There are no e-mails involved

That's not obvious from the sign up dialog, and like the top post I closed out of the site as soon as the dialog appeared.
Tree Interview Questions
Publix is a god send. Some of their bread actually rivals non-American bread.
I'm not _entirely_ sure of most things, but am unsure how I am to reply with anything of substance if you don't give me a little more to engage with. _Why_ doesn't it make sense? I'm approaching it from a sociological point in this case, rather than a moral or theological one.
I agree about sitting at your desk, but a quick lunch is great for me because it allow me to take a proper lunch break, I can swallow some food then go for a walk listening to an audio book for half an hour.
Could a malicious macro generate code so that the compiled program would e.g. access /etc/password?

Will there be some verification that precompiled macro binaries come from their published source?
Hence https://joinpeertube.org/en/ existing and growing. YouTube has demonetized & banned LGBTQ+ mentioning videos[1], and continues to tighten the noose around those that make it a viable platform.

1 - https://news.ycombinator.com/item?id=21110752
Grats on 26 years! I'm with you just because I can't imagine the mental overhead of having to keep track of individual property after marriage. My husband and I act as one in all things - and being unified in goals and finances has has given us advantages over our peers in many ways. Marriage is a hard contract to fulfill for some folks, but when it works it is an amazing thing. And it does require those involved to design it to be a lifelong thing. Pre-nups, even if rational, do go counter to that design and it's hard to not think that it would weaken a marriage if that was always in the back of your mind.
Wow.

This means it will be extremely risky to have any business in China, as it allows any intro-company email server to accessed.

Since it is unofficial state policy to provide foreign company know-how to home grown competitors, this will be an amazing fireworks show.
I used to think I needed a third-party app for window switching in macOS, until I discovered Command + ` (back-tick) shortcut- which switches between windows of the sane app. Now I use it combination with Command + Tab and my workflow is so much easier. In fact, I wish Windows had this feature sometimes, but I do think Windows’ window switching is better and more intuitive.
That would be “nonlocal”. https://www.programiz.com/python-programming/global-local-no...
Their unofficial policy is to provide the source code to local competitors. They can just rebrand, and compete. Happens all the time now.
Most users probably want security update.

I believe it is hardware vendors that don't want to support update. It is a lot of works (costs) for them with little and no return. It might even be negative returns since a phone with updated OS might delay that user purchase a new phone every 1-2 years.
> Should Chinese citizens have lower access in US companies? At universities?

If they can be compelled to act as spies by their government, then Yes, they should have restricted access. It is unfair to an honest person to be judged by the actions of a few in power in their country, but such is life globally (even for US citizens... especially lately).
Not to be the Devil's advocate - but what's the difference between a hacking video and an educational hacking video?
>That general feeling that the screensaver is like an app/overlay that is invoked only once the desktop is active

That is how it is implemented (in X11)
AI-Powered Robots Are 3D-Printing Entire Rockets
Sudo works by being setuid root. You need some way of becoming root to set that in the first place.
As an Australian I was very confused the first time I flew British Airways while I was on my way back home from the Netherlands to find that they proudly advertise their buy-on-board menu as the "Marks & Spencer on-board menu".

Having never been to M&S but having a vague awareness that they exist, I didn't know what to expect, other than to think that if I saw Qantas advertising a new menu "co-created with David Jones" I'd be rather suspicious. I've since been to a M&S and discovered their rather extensive food section which is rather better than the average Australian department store.

(Of course, BA, like all other European airlines I've experienced, is distinctly average at best, and having to pay for M&S prepacked sandwiches is definitely part of that.)
Anyone care to comment on what "fika" is?
CVE-2019-14287: sudo user may run a command as root when Runas spec disallows it
IMHO, one that discusses concepts and tools versus just a step-by-step tutorial. But the distinction probably doesn't matter in this case.
Amazon, Apple, Google and Facebook has huge number of non corporate employees - if you exclude them the FANG club is more exclusive. Nobody boasts that they work as a picker at Amazon or content reviewer at FB.
Serious question: how is this enough calories for lunch?

Assume you need 2,500 calories/day. Suppose you need a third of those at lunch, that's 830. (And given the traditional light continental breakfast, I'd expect an even larger lunch to compensate, so probably closer to 1,000.)

A single sandwich with three layers of bread and three single layers of cheese or meat, can't be over 400 calories.

I'd be starving and unproductive all afternoon. What's the secret?
Use a ligature font!

https://www.hanselman.com/blog/MonospacedProgrammingFontsWit...
Pretty good?
Norwegian living the U.S. here. It's pretty different when you consider the average supermarket.

The breads you get in your average American supermarket (Giant, Safeway, Shoprite and so on) are either the pre-sliced, packaged kind, which are largely flavourless and full of preservatives and sugar, or the stuff in the bakery section, which tend to be Italian-style white bread rolls, bagels and so on. You can find better bread — and sometimes very, very good bread — in many bakeries, or in high-end grocery stores like Whole Food, at farmer's markets, and so on. But it's not the norm.

Scandinavian supermarkets generally don't have separate bread and bakery sections. There's just a bread section [1], where you'll find all freshly made bread. The whole grain content is very high, and the breads feel rustic and wholesome overall. You'll be able to find plain wheat bread and French baguettes, but these are the exception. You'll also find some pre-packaged breads, but they are typically sold specifically for their longevity.

While I can get great bread in the U.S. if I seek it out, I still miss the easy availability of good bread, and I feel bad for all those who think that pre-sliced package bread is all there is.

[1] https://bdn-norge.no/wp-content/uploads/2016/11/grovhet.png

[2] https://www.polarbrod.se/no/vare-brod/havre/
Shortcut to cycle through multiple (non-minimized) windows of one app, in either direction:

cmd + <

cmd + >
as a kid I once jumped off a dock into a pond during winter on a dare. I know exactly what you mean by "whatever makes my lungs work didn't work anymore". I can't really out words to it, just instant complete overwhelming shutdown.
Wouldn't tencent, having a list of politically undesirable domains, already know their hashes? Now the browsers that visit them phone tencent to let them know. This is useful when the actual http(s) transfer is under vpn wrapping.

Maybe it won't matter anymore.
Incorporating Fine-Grained Events in Stock Movement Prediction
Fine. Where did BASF get their money from? How much, in your esteemed opinion, should it cost to develop a therapeutic Ab from a drugable target? How should my industry pay for pipeline failures?
Networks complicate things by reducing demand elasticity.

For example, look at Maricopa County, Arizona. It's like 100km across and includes both a major capital city (Phoenix) and several suburbs with 6-figure populations (Mesa, Chandler, Glendale).

Many of the marketplace health plans* would have networks which focused around central Phoenix. If you wanted to see an in-network doctor or urgent care and lived at the fringes of the county, it was a 30-minute drive or more.

This meant people in the fringes had to pick the few plans that covered nearby facilities, even if there was a significant price difference.

* This was during the first few years of the marketplace. By 2017 or so they were basically down to a single insurer, so even that degree of consumer leverage was gone.
Here you go: https://github.com/tonsky/FiraCode
Given time, resources, and education, certainly Chinese people can come up with functional solutions to any problem. The same is true for people of practically any other country.

But it seems that for one reason or other, technology theft is attractive enough to be a primary method of "innovating" in some places.

It's really a matter of degrees. People copy anything they see that seems like a good idea (better than the idea they previously had). It's just a matter of how much original effort is put in vs how much detail from the other party's effort is acquired and used to fast-track the development.

In complex projects like this, just seeing provides limited benefit. But in other simpler cases, just see another's working model can convey enough information for the newcomer to quickly come up to speed and compete.
As an American who has eaten two pieces of cheese with two pieces of bread And a piece of fruit for lunch for at least a decade now, I was happy when I saw an article on this a few years ago. I started telling people I wasn’t weird, I was just Scandinavian.

After the fifteenth article on the same topic, I’m sick of it. I didn’t even read this one.
Probably roughly "coffee date."

https://fikacafe.net
Yup, the only problem is the limit on the number of filters, which many people think is way too small.
This is the safe, nice YouTube you've been asking for. Hope you enjoy it.

Remember when we were saying that it was going to end badly when the mainstream media were pressuring advertisers to have a moral stance on the content their advertisements are shown with? Well, this is exactly what was bound to happen. YouTube is (gradually, to reduce backlash) becoming Disney-VEVO-Time Warner tube, and that means they're going to have to find cost-effective ways to destroy all marginally-concerning-looking content.
Link for the lazy: https://patents.google.com/patent/US9000660/en

First, note that to fill the patent you don't need a working prototype. It's just a piece of paper.

The patent has the same idea, but it uses other device to move the particles. It looks more difficult to implement than the device in this article. (And the patent has a weird discussion about a maximal velocity.)

My previous comment applies without changes to the device in the patent too. It's just another very inefficient photon thruster.

If the author forgets to consider the momentum and energy carried away by the electromagnetic waves / photons, then the device appear to break the laws of physics, like the conservation of momentum or the conservation of energy. When all the effects are considered it's equivalent to using a laser as a thruster, or worse. (It's equivalent to use a normal flashlight, but a laser is more cool.)
Given my only exposure with any depth is Christianity (still superficial) I’m using this as my reference. If you read any of the really well-regarded spiritual authors (like the doctors of the church for example) you will read plenty about how your family (or you, of course) could easily be damned to hell. In fact, seeing relatives in hell is probably inevitable. Something even more discomforting to discuss is that, being that you’ve made it to heaven, your will is united to God’s and you would in fact marvel at God’s justice while you watch your relatives suffer in hell.

Eg
http://www.newadvent.org/summa/5094.htm

It’s not clear to me that these are especially comforting things to think about, at least superficially.
What a coincidence. I watched your video on Preventing the Collapse of Civilization just yesterday. (Mostly agree with things said there, with the exception of the part about Smalltalk. Ironically, the video was recommended to me in a Smalltalk chat channel.) Seems relevant.

>Some of the points you raise are matters of style (I have files that are 10k lines long and think they are better that way

It's true that line counts are a matter of style. However, some coding styles tax cognitive bandwidth and immediate memory capacity more than others. This causes people to skim over specifics and miss bugs. Even if you are comfortable with a 10K LOC file you wrote, whomever reviews your code will probably be overwhelmed until they fully comprehend its structure. Grouping related things into smaller files is a way to focus their attention and communicate intended relations between code units.

> also I don't think unit tests are as useful as claimed

In general, I agree. Not a fan of TDD zealotry. But in this particular case some unit tests would be beneficial. There is a lot of stuff going in some methods.

They do seem to run PVS-Studio static analysis, which is somewhat reassuring, but I don't think that's enough in code that is so important, complex and widely used.
This applies to many software projects as well :).
That's a great point actually - that jumbled user agent string is a great jumping off point for tracking iMessage shares.
(i) It is not static. It actually changes very frequently.
(ii) You would get a fair amount of cache misses, so a proxy if anything would be a better approach.
(iii) The providers do not allow it (source: have tried to work with at least one of them). I am not sure exactly why they want IP, but the sense I got was it did have something to do with training their models.
Pretty sure browsing _one_ url won't give too much useful away.

Without digging into details myself, I'm under the impression from recent reporting that Safari is sending 32 bytes of a SHA256 hash of the (canonicalised somehow) url. So there's 2^24 possible hashes that you might be wanting to check in the returned list. Presumably some small percentage of those will actually be on the list, what I'm not sure about is how many of them are plausible and completely innocent urls.
I would love if they added "?" to the list of valid characters for names, so I could write something like `valid?()` instead of ``is_valid()`.
Those are air temperatures, not water. Being fresh water, the liquid water is not below 32F/0C.
Remember to learn something everyday. There are people with 20 years of experience who have only learned 1 year repeated 20 times.
Well, Gosling's version of the story is backed up by the court cases he mentions and the business people he worked with.

Stallman's version of the story is backed up by... Stallman.
> NASA engineer's 'helical engine' may violate the laws of physics

So it's magic?

Except as the article says there absolutely nothing that violates the laws of physics.

Especially given it's theoretical so I'm not sure how using a simulation it may violate even the current laws of physics.

Why is a magazine like New Scientist pushing magic?