skysight-inc/HackerNews huggingface dataset:
Stop abusing (virtual) animals when teaching programming
A more comfortable way to smartphone
It's bizarre that we're still marking up code with comments like it's 1960. We need some sort of standard to include comments in code like footnotes, margin notes, and so on, that allow us to better explain what is going on without changing the actual readability of the code.

It would require us to move away from strict file-and-text-editing as the end all of programming, which makes many uncomfortable of course. And you get into lock-in issues.
Dual N Back is a test of memory. Where is the evidence that practicing does anything besides decrease the accuracy of the test?
For irrigation the debris should be no problem. I'd guess it would also be easy to filter it out.
OTOH, if you have a reliable distribution system, it's cheaper for you yourself if you can deliver your goods as soon as possible. Every bought item sitting in the warehouse is occupying space that you could put something else in your inventory.

At least, that's what it seems like to me as a layman.
This seems like an obvious troll comment.

But I'd like to point out that "the scope of the variables is broken" doesn't make any sense: prior to ES6 JavaScript only had function scope -- which is not broken but also not what most people are used to. ES6 added let/const which are block scoped (and thus more familiar). Neither of the two is broken, nor did the addition break anything.

The only oddity I can think of that would provoke such criticism would be a misunderstanding of non-strict-mode JS's behaviour with regard to implicit globals, e.g. what happens outside strict-mode when variables are used without being declared or what the "with" statement does (which is heavily discouraged). But that's like saying PHP is stupid because its array literals look weird.
I'm conversational in Swedish. Started with duolingo.
Ring count doesn't matter when everything is the same ring.
Notice how you didn't use the term server to describe "The Cloud"
How to get press for a startup (2015)
Remind me why they're using Li-ion batteries, which have a primary advantage of being light, when they could use cheaper, heavier, and less flammable alternatives?
802.11n/802.11ac is a lot more complex then previous standards, and unlike Linux, OpenBSD has a single-digit number of developers working on drivers. If you've followed the past year or so, Intel wireless support is materializing.. we gained iwm(4), 802.11n in 6.0, MIMO (MCS 0-15) in 6.1. All in addition to new hardware support, fixes for quirky firmware bugs.

https://www.openbsd.org/60.html

https://www.openbsd.org/61.html

Not every project has engineers from Intel with internal datasheets, this came up before with USB 3.0 xHCI, which had Linux drivers long before the specs were public. There weren't even devices on the market!

OpenBSD is developed by volunteers.
Obviously too little too late but a phone call to the OB would have had the note prepared for you, possibly even sent to your employer after the fact. My wife received one when she had her IUD removed that was for the day of the procedure and 1-3 days after (obviously they could have extended the dates if she was in a great deal of pain).
Backpacks for Men and Women Online – The Best Uses
Nope. I have a shadowbanned account on Reddit. They're still shadowbanning real users.
That nobody had any idea was sketchy or un-oversighten until recently. It was not a choice to run their website/infrastructure/etc on sketchy services at all.
Oh that's true, I forgot about those. But do they fit in a laptop?
Where are you getting O(sqrt(n)) space from? The linked article says O(n) for compact dynamic arrays.
Just started using Spark https://sparkmailapp.com for Mac and iPhone (couples of weeks now) and quite like it, generally overall positive experience and great UI. PS., I am not working in the company, just using couple of their products.
Another option is https://www.getlektor.com of Armin Ronacher fame.
I feel you, brother. There are too many people using crappy languages. If only everybody saw the light and used the only good language out there, Oberon-2.
Geez. Completely wrong direction (and probably just marketing) with underlying sexism.

Female here. Just want to state that it is not nearly as bad for most women most of the time. And effects vary quite a bit, quite a few even get an energy push around day one. (Disclaimer: Your or your friends' mileage may vary.)
Im not saying its humane, or just, or right. Its business.
The reason you point out is exactly what has happened in the past. In fact my mum used to work for a company that straight up fired any female staff in the secretary pool which got married to protect themselves from exactly the losses you speak of.

Luckily we don't live in that world anymore (40 years ago). And we are working to reduce the dis-incentives of hiring women over men. Im living in the UK where recently paternity and maternity leave are inter-changable and can be split between parents. entitling men to equal leave to women to reduce the incentives of hiring men over women.

There are all kinds of times when people become less productive. Im never advocating never hiring a woman, only that whatever benefits you apply to one act as a hiring dis-incentive unless applied by law to both.
Its economics, not ethics.
actually dual n back skills are also non-transferable.
Successful Business Leaders Focus on Preventing Employee Burnout
At the top of the page..."This project is silly and exists only to expand Atwood's Law."
Is states very clearly on top of the page: "This project is silly and exists only to expand Atwood's Law."
>Does not something wrong enough times doesn’t make it correct.

This isn't true in natural language. Do something enough times -- 'wrong' or 'right' -- and it becomes a part of the language. Like it or not.

Crack an Oxford English Dictionary sometime. Look up your favorite word. Notice that there will be tens of different definitions, including a historical trace of 'first uses' through semantic changes, for the single word.

>People make grammar/useage mistakes not because they consciously want to change the language but because they don’t know any differently

Consciously or not, they are changing the language. Language isn't a fixed thing with unbreakable rules. It is mutable. A language is however people use it; it isn't a thing to know in its entirety before using.
While there already is a bunch of "why" type comments in this thread, it's worth noting that in the description of the repo it does say:

> "This project is silly and exists only to expand Atwood's Law."

So maybe take it with a grain of salt, and just enjoy a neat project for what it is.
I made a sample code to place a 3D sphere with ARkit. it differs from the official demo by detecting not only horizontal surfaces, but also feature points (for example, vertical walls). But so far I wasn't able to achieve the same kind of accuracy as shown by the ruler video and few other demos.

The ARKit api is very simple, I don't know what else I can do to improve the accuracy.
I once implied that Microsoft was targeting HN as part of that astroturfing campaign, and was threatened with banination.
Sometimes I wonder what it says about our business culture that "hustle" describes both earnest effort and scamming people. Maybe it's nothing, but it seems a little odd.
Yes, they're nuts. And that's so because they're so small, relative to fiat markets. So it doesn't take much to push relatively large amounts into them, or drive them out.

But whatever. I just use Bitcoin because I can easily make it as anonymous as I like. Price spikes are sweet when they happen, and crashes can be an inconvenience. But that's just what's so.
Recovering data from a disk encrypted by #NotPetya with Salsa20
The article seems a bit hyperbolic to me. Expecting a major Russian cybersecurity company not to have any business with its own government is a bit naive. Not all government business is spying and unlawful activities.

From what Bloomberg is sharing with us (I couldn't find those emails), Kaspersky is developing a software solution with defensive and offensive capabilities as well as providing consultancy services to the FSB in hunting down criminals (Bloomberg says Kaspersky is "banging down doors").
For Germany your Eco-friendly Wooden Beer Mug is only a third of a beer ...
I thought HIP was an incomplete translation. Their documentation said something about HIP doing 99.6% of the translation and one developer doing the rest in a week. Unless they've improved this, i'm not sure how much value HIP brings.

edit: I just keep wondering why AMD doesn't put money into developing an OpenCL version of CUDA/CuDNN
I'm running OpenBSD on a Skylake-gen ThinkPad E560. There was support recently added for Skylake graphics to -current snapshots, nvme(4) is quickly replacing SATA on newer machines and is ready for 6.2. If you have a spare laptop, follow pitrh and give installing OpenBSD a shot.

https://twitter.com/canadianbryan/status/867484974953508867
Math education: It’s not about numbers, it’s about learning how to think
This is hilarious!

We ran across @kornelski yesterday asking about some old babel code (1.) and were wondering what the angle is. Kornel's an accomplished coder: he did pngquant and imageoptim.

The author himself calls it the "stupidest project I've ever done". But it's probably a nice way to get 90% of the way there when converting PHP fns (such as validation et al) into the browser. Also, and perhaps most importantly, it's a great exercise in writing Babel plugins.

I really enjoyed this. Thanks for writing it, @kornelski.

1. https://twitter.com/kornelski/status/884485913627295744
I get all of that. You're spot on.

My point was just addressing the main theme of the article which is trying to make out that if we just got rid of these companies, we'd cut emissions by 71%. Well yeh sure, but then the world wouldn't continue to function as normal.

As individuals, we have the same methods as we always have. Don't drive when you can walk, use renewable energy, get an electric car, shop local, etc.

And of course, regulating both "ourselves", such that demand goes away. E.g. banning sales of diesel cars. And regulating businesses so that they aren't polluting unduly on our behalf e.g. carbon capture in power stations.
Gold, which is possibly the oldest store of value used by civilization, is just as volatile.

The inflation-adjusted price per Troy ounce of gold went from a high of around $2400 in the the late 1400's, to a low of $200 in 1919; then, it rose in fits and starts until it peaked at nearly $1600 in 1980; it then declined, again in fits and starts, until it bottomed just below $400 in 2002; then it rose to nearly $2000 in 2012; and since then, has dropped to just over $1200, today's price:

1490 1919 1980 2002 2012 2017
----- ----- ----- ----- ----- -----
$2400 $200 $1600 $400 $2000 $1200

The price of gold is unstable over shorter time frames too. For example, since the start of last year, the price has oscillated between just over $1000 and nearly $1400 per Troy ounce.

This kind of volatility seems normal for assets used as a store of value.

Sources:

[1] http://www.zerohedge.com/news/charting-price-gold-all-way-ba...

[2] https://en.wikipedia.org/wiki/Gold_as_an_investment#/media/F...

[3] http://www.kitco.com/charts/historicalgold.html
Defiantly not totally true, I have multiple accounts on the mac store and I've never once been asked for a credit card, I download free apps via the store at will.

If that bothers you, you can always just download the app from the dev's website and not bother with the store completely.

What probably happened is that you have an existing expired CC on your account, so just remove it and continue on...
I think the difference is that PHP's built-ins were originally created as a "toolset" and thus often do more than one thing in fairly specific combinations. I believe PHP has improved on that but it can still get hairy because of the sheer number of functions living in the global namespace (and horribly outdated community-provided examples in the documentation).
Machine Learning for Policymakers [pdf]
> It's bizarre that we're still marking up code with comments like it's 1960. We need some sort of standard to include comments in code like footnotes, margin notes, and so on, that allow us to better explain what is going on without changing the actual readability of the code.

Actual comments already do that if the editor hides them by default; you don't need different syntax or abandoning pure-text representation, just the right editor features to do what you want.
Public API documentation is very definitely a part of what I was meaning; but most code can also benefit from liberal explanation of how and why certain things are as they are.

Many comments that are written could be better handled by restructuring the code they reside in the midst of, but many code comments can’t be done otherwise, and to attempt to do otherwise would be convoluted.

To take an example of some code I wrote today:

// Object.values is from ES2017 and Overture uses it; anything that has it will
// have the other things from ES6 that we need, so we don’t need to add the
// weight and load time of core-js for them. Browsers that thus need core-js
// are approximately: IE, Safari≤10.0, iOS≤10.2, Chrome≤53, Firefox≤46,
// Edge≤13?. No up-to-date browser needs it (for better or for worse).
if ( !Object.values ) {
dependencies.O = [ 'core-js' ];
}

This comment is about explaining why a thing is as it is. Self-documentation by naming tends to only take you as far as what; for a case like this, it would have led to something like this:

var needCoreJs = !Object.values;
if ( needCoreJs ) {
dependencies.O = [ 'core-js' ];
}

This wouldn’t have explained why core-js is needed—or why I considered Object.values a suitable test.

I tend to draw a distinction between single-line comments which are only sentence fragments, and prose. Prose is beautiful in code.

A part of the illumos codebase was linked to elsewhere in these comments, and I think it satisfies my point also: https://github.com/illumos/illumos-gate/blob/master/usr/src/.... 600 lines of documentation up front is more than I’d typically expect, but it’s well done in this case. After that, there’s liberal application of explanatory comments where they can help.

The rustc borrow checker is another example that I like: https://github.com/rust-lang/rust/tree/master/src/librustc_b.... What is now README.md used to be somewhat shorter (though still long and involved!) and in mod.rs. Look at both files. The documentation here is all about implementation detail; without this extensive prose, I’d say: good luck understanding borrowck. With it, it’s involved, but quite attainable, and you can approach the code without needing excessively deep and intricate understanding of everything about rustc.

Comments can be done badly, but they can also be done really well.
There is no shame in that, given that it is well defined. For instance. In almost all sports you have a male and a female devision. Just based on pure strength or something.

Call it what you want. There ARE differences in various humans. Some are male, some are female, some have kids, some don't, some have two legs, some don't, etc.

Want to give them all equal chances? Listen to what they can and experience and get them to listen to each other for mutual respect.
As with anything I suspect that this is to do with economies of scale. Delivering a 100MW battery installation in under 6 months is challenging. Being able to achieve this using their current manufacturing base is impressive.

That's not to say Li-ion batteries are ideal, but right now, at this moment in time, this is probably the only way of achieving a solution in under 6 months.

I believe the newer Glass batteries [1] will be the long term solution for this type of installation, but they are some years off, and South Australia has a problem that needs solving this year.

[1] http://spectrum.ieee.org/energywise/energy/renewables/does-n...
have you lowered your bid on mobile and tablets? Not sure if you can do that on google shopping, but adwords you can. You can set your bid on mobile to be something like 5%-50% of your desktop bid. mobile sucks at conversion compared to desktop.

you might look into advertising on amazon also.
> If Alice pays Bob to procure a tuna sandwich for her, and Bob chooses a means of procural that kills Cathy as a byproduct, common sense dictates that Bob is again a felon, while the amount of responsibility born by Alice depends on the extent to which she was aware of what Bob was going to do.

Right. (In this case), Alice is now aware, they are both felons for future transactions.
You're straw-manning here. A lot of rhetoric about pollution implicitly or explicitly paints a picture of evil corporations polluting for fun and profit, but any successful scheme to reduce pollution has to acknowledge that corporations are just one part (even if they are a very large part) of a broader human system. We can't move forward by simply pinning everything on corporations; that's a good strategy for making ourselves feel righteous but not a good strategy for effecting actual change.
Whatever next? Have American AV companies been "Working with American Intelligence"? That would be just as shocking... ;)
Probably because Li-ion batteries don't have much of a memory effect and don't discharge on their own much.

I don't think there is such a thing as a less flammable alternative, ultimately you're storing a lot of energy. Energy means potential for fire.

Finally, I doubt these have the same chemistry as what they're putting in cars. There are a lot of Li-ion chemistries that are suited to different applications. It's more of a class of chemistries than a single specific one. Some Li-ion chemistries are cheaper and heavier than others but have longer lifetimes.
Generally, small brands benefit from being associated with larger, successful brands. Having Facebook & Google as login options is probably better from a branding perspective, unless the audience is systematically averse to them.
Here's a couple more details that were omitted from the story. My boss at the time was an extreme evangelical christian and my OB is Planned Parenthood. I am an atheist and I was not open about that at work because I was afraid that telling the truth would hurt my chances of promotion. Bringing in a note from Planned Parenthood to my extremely traditional boss would not have gone over well. Even though Planned Parenthood offers so many more services, a lot of people only see it as an abortion clinic.
Not to diminish your point, but there are cases where running application development is very easy on a mac, and linux comes as first and subsequent stages of the CI pipeline.

> working dev environment need to be done ONCE

good point, I personally would rather integrate everything into the development platform (i.e. front end http server would be just another npm package/middleware, but not NGINX, everything gonna end up under a load balancer anyway on prod/test).

In regard to different machines/OSes, issuing everyone a mac really takes away a lot of headache for organisation, at a relatively small (compared to engineering hours) cost.
The very first serious internet campaign I ever noticed was Britney Freakin' Spears. When her first album came out, she, in her little school girl outfit, were in literally half the banner ads you'd see in an average day. TV, magazines, etc. She was EVERYWHERE. I got the same impression with this Rick and Morty thing. After months of it, I finally watched about 5 minutes of it, and proved to myself that there was no way it was even remotely organic. I mean, come on! It's not even in the same league as Bob's Burgers! ;-)
"completion by December 2017". Is Tesla able to produce this many batteries in such a short time when they are also currently trying to ramp up production of their cars?
You left out the fact that the proposed legislation was fake too. This whole thing was simply to draw attention to a politician that nobody knew. It's scummy to the core, but the dumbest thing they did was write a post about how they did it. That kinda goes against what their client wanted and probably against their own best interest as well.
Interactive programming with Hydrogen, Atom, Python: instant feedback
Interacting with a long-running child process in Python
I feel very sorry for you and others in your position to hear that.

the UK has some very forgiving policies on sick leave (https://www.gov.uk/taking-sick-leave). in fact you don't even have to provide a doctors note if you take just a couple of days off.
Yes, the free market approach is unlikely to succeed here, but that's why we have elected representatives.
Yes, here they are:

"SMT in Verification, Modeling, and Testing at Microsoft"

https://link.springer.com/chapter/10.1007%2F978-3-642-39611-...

"Efficient evaluation of pointer predicates with Z3
SMT Solver in SLAM2"

https://www.microsoft.com/en-us/research/wp-content/uploads/...

"Tools for Verifying Drivers"

https://docs.microsoft.com/en-us/windows-hardware/drivers/de...
Why waste time on finding a perfect colour scheme, when you can simply put sunglasses on? Same with shampooing, put on a hoodie. That's a true hacker mentality.
And with Li-Ion battery capacity predicted to increase about 10x by 2025, as everyone and their dog starts building a battery factory to serve the EV market, prices for Li-Ion batteries should drop several fold by then. So it makes sense to start adopting Li-Ion batteries into your utility infrastructure.
This year is the year of the Linux desktop though...
i visited improve.ai- presumably some cookie there is catching me.

that's not to say I haven't had some super weird "how do they know..." moments with Facebook ads lately...
There is not even a comparison here. One is how you make money, the other is how you find happiness in whatever form that takes for you. I'm not responding again, this is an unbelievably stupid comparison.
Show HN: WatchOwl – SaaS for monitoring your cron jobs
7 of the Best Digital Marketing Strategies for Startups
Are you a human or a corporation? Because if you are a human it should be a matter of common sense to see that it is quicker and more effective to regulate the emissions with a law instead of hoping that enough good willed people take their time and start boycotting every single company that does not care about the environment.
>> Now Google and Facebook offer the news from NYTimes for free.

But they don't. They offer links to the NYTimes. Well, actually they probably get paid to offer links to the NYTimes.
With all due respect, blue and white seem like terrible colors to pick if they are supposed to be clearly distinguishable.
>root is a real user

Is this uncommon enough to need specifying? I've heard something along the lines of Ubuntu having no actual root user for security reasons, but I got no impression that this was a common approach. If root isn't a real user, what are your options when your main user is compromised?
I feel your sarcasm. Lets be real though, V8 is a fast implementation but javascript as a language itself separate from implementation is a POS. ES6 and ES7 is proof that ES5 was just plain bad.
> I never said that

Perhaps that isn't what you meant, but it sure looks to me like that's what you said.
Here is the most comprehensive review of the DnB experiments I have ever seen:

https://www.gwern.net/DNB%20meta-analysis
WordPress has had one-click updates for years and makes it easier than any other CMS I've seen. It's been doing a fine job and powering 25% of all pages on the net and growing.
It's hard for me to believe that you can't just pay Reddit, Inc., directly, for whatever manipulation you want. It probably just costs more, and needs to be done with more discretion. But then, I lean cynical and conspiratorial that way.
You don't need germ theory to notice that washing your hands before performing surgery improves outcomes.
Οι Άνδρες Επιλέγουν Το Sex Με Escorts Στην Αθήνα – ESCORTS – ESCORT ATHENS