skysight-inc/HackerNews huggingface dataset:
Years out.
Ask HN: Have You Ever Found an Explicit Use for JavaScript Closures?
"Frankly, you can’t get very far with JavaScript without learning about closures."

"If you can’t answer this question, you’re a junior developer. I don’t care how long you’ve been coding."

https://medium.com/javascript-scene/master-the-javascript-interview-what-is-a-closure-b2f0d2152b36

Ever since reading this dramatic (and, in retrospect, idiotic) statement, I have been kind of obsessed with figuring out the actual use for closures. I will grant the "mimic private field/property" and the module pattern. Past that though, any intentional use of closures seem limited to "if I loop through a set of dom elements and assign an event, the event will be assigned incorrectly", e.g.

var buttons = document.getElementsByTagName("button");
for (var i = 0; i < buttons.length; i++) {
buttons[i].addEventListener("click", function() {
console.log("My value: " + i);
});
}

// Each button will state "My value is 3" (Instead of 1,2,3)

So, after reading chapters in three books and a ton of articles and stackoverflow posts, I ask you HN - have you ever used a closure intentionally? If so, please share.
Here's the Lancet paper: https://www.thelancet.com/journals/lanpub/article/PIIS2468-2...

Though the BBC title only includes low-carb diets, it'd probably be more correct to say what the study concludes:

"Both high and low percentages of carbohydrate diets were associated with increased mortality, with minimal risk observed at 50–55% carbohydrate intake."
Move Fast and Break Things – How It Works
Then again, MJ never had a 2011 Finals. He also never had his counterpart at the same position when FMVPs. Jordan was the best in every single finals he showed up in. Jordan was pretty much the best in every playoff series he played in, where the couple exceptions might be Shaq or Larry Bird.

And MJ has the highest career playoff scoring average along with being tied with Wilt for career scoring average. Opposing players feared and respected Michael Jordan in a way they don't Lebron.
A British source? I distinctly recall American sources like the New York times & NPR acting as court stenographers during the period. I can still hear Bob Edwards' voice talking about the pending Iraq War as though it were the most sensible thing in the world and there being absolutely no criticism of its justifications.
Brings to mind "The fisherman and the businessman"

http://paulocoelhoblog.com/2015/09/04/the-fisherman-and-the-...
An agency I worked with handled this liability via a support contract.

It was structured as, pay us for N hours a month of retainer, we will keep your servers patched and secured with updates and maintain all of your credentials.

Otherwise, we don't want the liability of having access to all of your systems, so we need to expire our access and hand it over to someone on your team.

Sometimes the company had an IT dept that had no idea what to do with the info, but would be in charge of keeping it. Or they would be happy to pay for us to stay on top of things.
Tesla seems to be doing pretty great for being "destroyed".
Looks like it's usually prescribed for dementia. I wonder what its effects might be on someone with normal cognitive function, while they're awake...
tl;dr

Resents authority
Feels misunderstood
Needs a parent figure
Awkward around women
Concentration problems
Obsessed with sci fi
So you don’t need to drink it as a tea? I tried and it was the nastiest shit I’ve ever tried to consume. I could not force it down.

Perhaps with Miracle fruit I could drink it but no way on its own.
In general the media only does fairly short reports on the unemployment rate. The Bureau of Labor Statistics (BLS) regularly publishes a much wider range of data, including the "labor participation rate" that you're talking about.

Labor Force Statistics from the Current Population Survey: https://data.bls.gov/timeseries/LNS11300000

Data broken down by age: https://www.bls.gov/emp/tables/civilian-labor-force-particip...
Wouldn’t that tend to encourage faster more volatile trading?
Firstly, note that art is considered stolen if it's outside of it's place of origin, regardless of whether it was paid for or not.

So:

https://www.si.edu/collections

"The Smithsonian's collections represent our nation's rich heritage, art from across the globe, and the immense diversity of the natural and cultural world."

In other words, the Smithsonian has plenty of stolen art.

But what about real "other" cultures ?

http://en.chnmuseum.cn/tabid/520/Default.aspx?ExhibitionLang...

Yep, China does it too.

https://independent-travellers.com/malaysia/kuala_lumpur/nat...

So does Malaysia ... plenty of Chinese and even Western objects.

Can't easily find too many others, but of course in the middle east the collections also contain much stolen art.
Federation myths
Are you dismissing the server market? It's entirely Intel, and mostly not windows.
Wouldn't be very smart reasoning on their part, but let's assume true. Supports the up-thread assertion that they are not able to do it for political reasons however.
>It saves a lot of typing

Are you getting paid by least amount of characters typed?
How a tiny hospital used AI to lower costs and improve patient outcomes
Probably the best live training I've ever attended for data warehousing.
Apple's Mac Mini hasn't been updated since 2014. I suspect the performance / power consumption ratio is even worse on these as a result.
> It is dangerous to see bias everywhere.

They are everywhere and even the experts are not immune to them.
You're probably in this group: https://arstechnica.com/science/2015/12/certain-customers-sp...

Sorry (and welcome)
Now we really need (non-Qualcomm) SoC makers to get on board with actually making laptop/desktop-grade chips. Rockchip RK3399 and Marvell Armada 8k are big steps in the right direction, but we need more power (and PCIe lanes).
My only real issue with Wayland is that I don't think anyone has given real thought to heterogenous graphics card configurations, GPU hot plugging, Optimus, etc. X11 is not much better, but people have at least built hacks for it at this point.

It does seem like heterogenous DPI with multimonitor will be possible to a degree so that's nice.
Similar situation for the Popo Agie River near Lander, Wyoming. Only it resurfaces soon after going underground.

[1] https://en.wikipedia.org/wiki/Sinks_Canyon_State_Park
When they transitioned to Intel they even said they had internal Macs running on Intel for years waiting for this day.
Maybe there would be a chance these experts would answer an email, some of them at least.. the problem would be, of course, to identify them.
> even pain

Lucid or not, I realized a while ago that I don't experience physical pain in my dreams. I have started to wonder if this was a general experience. Experiences I'd expect to be painful (like getting shot or carried away by a wall of fire) simply startle me awake.

It's interesting to hear you do feel that. I've experienced all kinds of things emotionally - embarrassment, fear, anxiety. But never physical pain.
But wow, what a beautiful place to end your life in disgrace.
Incredibly clean online “TeXdowN” (mix of markdown and latex) editor
TrustZone is more like x86 System Management Mode than the ME or PSP.
Yeah, they could have tracked the arguably fascinating series of digital formats, from P2P low bitrate mp3, lossless WAV, FLAC, M4A and whatever the big streaming players are using these days. Not to mention the wild and wooly world of wireless encoding via Bluetooth and others.
"computerised tunnels and online bypassing systems"
Or are you?
OTOH never rule out how KISS is the enemy of billable hours and don't underestimate CDD's ability (consultability driven development) to come up with solutions to non problems.

YMMV, the BDD implementations I've seen so far did not convince me of its value to put it mildly.
Statistical discrimination is higher than socially optimal or Bayesian rational
The author links to a statistics course.
To piggyback on this, MJ played in a very different NBA. Today's NBA is much more offense friendly. No hand-checking, much less physical play allowed. Jordan would be shooting 50 FTs a game if he played in today's NBA.
How is the math unlike anything used now? I have a BS in mechanical engineering and the math in this looks entirely standard to me. Then again, I did get a heavy dose of similarly theory as an undergraduate, and that's rarely taught outside of fluid dynamics and heat transfer. Part of this seems pretty similar to that.

The math might be unusual for a CS graduate, but my impression is that many CS graduates seem unjustifiably afraid of continuous math, probably from a lack of familiarity. Often the continuous case is easier, so being familiar with both approaches can be useful.
Desktops and laptops are largely flanking verticals to help defend the real money maker, servers. Even if they start to lose laptop/desktop market share, it'll still take a while for someone to loosen their hold on the server market.
Admonitions Scroll was cut by the British Museum, then someone said the European thieves protected the artworks by stealing. LOL
Have you tried looking for offending processes with powertop?
Probably didn't help to hack the company that makes the laptop he was using to hack.
Missing a key analysis - note this sentence:
"Side effects were more commonly reported for both the 4 mg dose (p = 0.039) and 8 mg dose (p = 0.057) compared to placebo"

It's highly likely that participants were unblinded by side effects, a common problem in many placebo-controlled trials that is rarely addressed. If you're a lucid dreamer, and interested enough to participate in a clinical trial, you might be more apt to report the outcome of interest during active drug (= side effect) periods. Note that this need not be a conscious decision, just an unconscious bias.

Many RCT's include some language about asking participants to guess treatment assignment - but this result is rarely reported...
Haha. Love it.
Paraphrasing a quote from Al Perlis:

“there is no formal way from informal to formal”
yep - I think that is the problem. He has to push hard b/c if he did not the established companies would have crushed him by now. Slow growth wouldn't work. Its extremely difficult to gain traction in this industry today. He is also pushing the industry to change radically (and very quickly), challenging/threatening certain aspects that were considered staples (dealership model, the massive service revenue from frequent maint of ICE vehicles, parts etc ) -- this is a threat to the current status quo.
In the article, they illustrate a poor design choice. Or probably more likely, a continuation of the programming practice utilized elsewhere in the kernel. That being, slap a lock on any resource contention. That practice is necessitated solely by the need to support a linear calling interface. Even if this particular issue were to be fixed through queuing instead of locking, the existence of locks elsewhere will still become an issue in a given use case.

My point is, by design, an operating system that has a fully async interface can dispense with locks altogether. Resource contention is then properly resolved through queuing. The OS can then strictly enforce a priority scheme on its various queues, preventing an opportunistic thread from dominating the system. Or enabling higher priority requests to be serviced first. But that decision is made intelligently, not as a result of optimizing to minimize context switching.
Mp3.js
Composableanalytics.com might be the tool you are looking for then....
Note that if you use open source models, it’s orders of magnitude cheaper. In my own tests, an off the shelf face DNN-based face detector [1] ran at 20 FPS on a 16 vCPU machine (Google Cloud). With our hand-rolled distributed execution engine [2], we processed around 40 million images for about $2000, which is 14x cheaper than the cheapest figure cited in OP. I don’t know the accuracy difference, but it sounds like OP will cover this in the next post.

[1] https://github.com/davidsandberg/facenet/tree/master/src/ali...

[2] https://github.com/scanner-research/scanner
I think it's amusing to remember that ARM started off in fancy 32-bit high-performance desktop machines: https://en.wikipedia.org/wiki/Acorn_Archimedes
Facebook is stopping researchers from accessing its data
If you have the knowledge, you could add it. It's likely not disinterest, but lack of insight.
I have been to many major memuems in China and I don't remember seeing large sections of precious artifacts from the populations you mentioned. Can you name some of them? Also technically they are all within one country, it's different from what we are talk about.
Prof Gives Away His Anthropology Course. Saves Dept. Raises Controversy
I think stories like this are a very good argument that the US needs to drastically improve how it issues identification documents and verifies identity.
this sounds like an approval of moral licensing.

I am a big fan of Musk however I think that simply because he appears (and in many cases is) to be doing great things for society does not license him to also make the short sighted decision that he did.

full disclosure: I hope the company goes private and think it could do much better if it was not beholden to shareholders or stock market speculation. I think he wishes he never took it public and left it private like Spacex
Aung San Suu Kyi never even acknowledged that there is a genocide going on.
> Believe grandparent is talking about Xlib, etc.

They mentioned "the old protocols". Xlib is not a protocol. And it's not a framework either.

> And as mentioned elsewhere targeted at 80's and 90's hardware.

Yeah? And?

The DEs that are targeted at 2010s hardware have compositing-latency issues, slow animations, and seem to have trouble making it clear what can be clicked on. I know because any time an article about the Windows 9x UI comes up, Hackernews goes on a nostalgia-tinged, but justified, rant about how great that UI was and how easy it was to read what can be interacted with and how. Maybe the 80s and 90s got a lot right in terms of UI, and constant UI churn just isn't necessary.

Besides which, if you can build a UI that could be run on a 90s PC, it takes up far fewer resources than do the UIs of today, and that's compute that you could devote to better programs. And Xorg accelerates the old X and newer Xrender primitives with the GPU anyway, through GLAMOR, so it's not like you're not taking advantage of it.
Starts at $499

> Maximum continuous power: 85W
https://news.ycombinator.com/item?id=17780477
Ask HN: Is there a resource to excelling at Analytical Interview Questions?
I've been interviewing for a while now, and I have a FB interview coming up. As a people manager, I've been out of touch with getting comfortable solving questions based on "Data Driven Decision making" such as interpreting charts, and case studies.

I am realizing now that I perform poorly on these types of questions. It could be due to the pressure, or plain incompetence, but I'd like to get better at it for my career's sake.

How do you guys prepare/study for Analytical interviews?
X today is a different beast than it was 20 years ago
Roman slaves were still slaves in that they could be raped freely by their masters (regardless of age, gender and martial status) and ones spouse and kids could be sold at will by the owner. If this made you angry and you tried to kill your master, then all slaves in the household would be killed as retaliation. Slaves did not have any kind of legal rights. Sure some of them could have high ranking jobs (and some was able to save up to buy their freedom if the owner allowed it), but the vast majority performed hard manual work on farms. I don't know what you mean by "imprisoned", but if slaves tried to run away they would be tortured and probably killed in gruesome ways like with crucifixion. There were multiple slave rebellions because it was not generally pleasant to be a slave.

I wouldn't call this "extremely progressive".
Joy (programming language) interpreter in Prolog
Recover Expired Messages from Signal Desktop
I've lucid dreamed a few times, and every time I am able to summon a "debug menu". Sort of a drop-down menu with all of the dream parameters. I can never think of anything more interesting to try than Physics>Gravity>moon.

I turned off collisions once, and spent like twenty minutes just putting my hands through walls and giggling.
I had a dream where I was in my bedroom and noticed that it was arranged in an old way that I had since rearranged a month ago. I suggested to myself that I was in a dream and tried to wake myself up. I woke up into yet another dream where the room was in its current arrangement. I woke up shortly after for real this time, into reality.

I woke up to the sun beaming through the window into my eyes. Maybe I was more lucid/aware than usual for that reason.

But I have no way of knowing whether the control/awareness I had in that dream was any different than the illusion of control/awareness and decision-making I have in any other dream.

It seems like quite a leap to assume I was in control just because I dreamed I was.
Don't check the cryptocurrencies price manually, Cryptcher bot do that for you
Are you a cryptocurrency investor? Or someone who is interested to watch the price changes of cryptocurrencies like bitcoin, ethereum, etc...?

In the world of Bitcoin investors, if we want to watch its price changes, we should check out it from websites or mobile applications manually. and it is easy!
For example, I use the [1] Preev site every time I want to check the bitcoin's price. but what if we want to check the price of more than 1 cryptocurrency? Yes, it would be hard to check them every minute from different websites and mobile apps!

Besides that, has anybody time to check the price changes manually every minute?!

It was a long time since I couldn't find a good enough application that watches the price changes the way I want, so I created the [2] @cryptcherbot Telegram bot!

Let me introduce it. the @cryptcher bot watches the price changes you are carrying about and notify you the way you want!
When you join the @cryptcherbot bot you will see a "Watcher" button which has the options to add the watcher/watchers for the cryptocurrencies you would like and also watching your current watchers.
Now the bot will text you the moment your currency hits your customized notification points!!

Join the bot and let me know how much do you like it!
Any feedback will be appreciated!!

[1] http://preev.com/

[2] https://t.me/cryptcherbot/
In Detroit the buried rivers are called the ghost waters. There has been talk on and off about resurfacing some of them where practical. Can you imagine a gondola ride in the Motor City? Something that I'd sure like to see in my lifetime.

http://www.modeldmedia.com/features/ghostwater413.aspx
I know what you mean. I want to say I've had both types of dreams, but as you're pointing out, how could I know for sure?

I will say that when I'm having a genuine lucid dream, after I wake up, I know without a doubt it was a lucid dream. With regular dreams, I look back on them and don't exactly identify with my "dream self." That guy didn't realize how absurd the scenario was. He resembles me, but he wasn't me.

With a genuine lucid dream, I look back at the dreamer and can say, "yeah that was 100% me." Also, I find that becoming lucid always sort of pulls the dream into a more realistic scenario. It goes from chaotic and weird to just plain normal life (only, the rules have changed now).

So I guess what leads me to believe that I've had these "pseudo lucid dreams" is that I look back on them after waking and don't identify with the dreamer the same way I do with a genuine lucid dream. It feels more like I was watching someone else, like a recording, than as though it was a real firsthand experience
Will we be able to run our own Linux kernels on these laptops? "In January 2012, Microsoft confirmed it would require hardware manufacturers to enable secure boot on Windows 8 devices, and that x86/64 devices must provide the option to turn it off while ARM-based devices must not provide the option to turn it off.[15]" (https://en.wikipedia.org/wiki/Secure_boot)
This pattern is fairly common when there is karstic geology, but also happens in other cases: https://en.wikipedia.org/wiki/Subterranean_river

I don't know how common seasonal variation is (per the other comment about the Danube doing a similar thing to the French river).
It gives you an idea of the sort of gains you might get with a proper JIT. if it had turned out that tracing only gave you a 10% boost then maybe a JIT isn’t the best place to put your time.
Apple has an architecture license. I don't know what the terms of the license are but it allows Apple to develop architecture compliant chips. They were one of the original developers of the original ARM and held a large stock position in ARM Ltd.

https://en.wikipedia.org/wiki/Acorn_Computers
Ask HN: Who are the next FAANGs?
I think it's as vague as it sounds. But the stereotype is probably something like translating rows to columns; or normalizing a column; or creating a composite column
> If annexation by force is no longer a legitimate means of acquiring land, then it is reasonable to say that it was never legitimate. If it is, then going to war to take territory is still possible. But there really is no fair way to declare a fixed epoch and say that forceful annexation was only legitimate in the prior era, and is now unacceptable in the following era.

There's something to be said for systems that, more-or-less, are practical and work without making perfect logical sense or being perfectly self-consistent.

Building a perfect legal regime has a lot in common with building a perfect software application.
My impression is that every time ARM release a new big core (e.g. A73, A75) they project massive improvements. And then what's actually sold shows half the expected speedup, due to the design not clocking anywhere near as high as ARM projected. Given that history, why is everyone so willing to take these latest numbers at face value?
> way less secure

First you argue that the device is secure. When I point out that it is not, you switch tack to argue that when you take other factors into account, it's still "better" than doing it some other way because of some other factor, so overall security is good.

You also want to conveniently forget aspects of your original argument at your blog, such as the defect with OTP that a phone can be stolen. A phone is much, much, much more secure than u2fzero.

You're also insisting that your particular use case for needing a backup is the only and best use case. If you want to design a system for your individual desire and needs, that's great, but this doesn't generalize. I'm guessing most people will not want their device baseline to be insecure so that they can have a 2nd insecure backup at hand.

As I hinted, the best solution is likely a cloud based token. This can be simulated with u2fzero by using a method similar to what @ecesena proposed. With either knowledge of an authorized external transport key, or by sharing a transport key, the atecc508a can share key material securely. I won't work out the details here, but basically you just need a single initialization-time secret that you store in the cloud. With that, you can take an arbitrary fresh unprogrammed u2fzero and initialize it to look like the one you lost. It has to be done this way (at user's direct control) because if you buy u2fzero's pre-programmed all security is lost.

The secret blob can be stored on your [secure] phone and backed up in a safe on a piece of paper, or any other storage scheme which a particular user may require to meet their needs. Personally, I would store it in icloud.

or if you used publickey, closer to @ecesena's proposal, you don't need to keep a secret. (at the expense of having to prepare the backup devices ahead of time.)
I use it for jetlag. It's pretty good really. I guess people put up with the risk of odd side effects as it normally works ok.