skysight-inc/HackerNews huggingface dataset:
It's more like the young man telling the beggar that he can come cut the wood from his land for free. Then one day the young man stops letting the beggar cut his wood for free. He's not taking back the wood that's already been cut. The problem is if the beggar wasted the wood he did take, and took for granted the assumption that he would always be able to get more.

Relying on something continuing to exist on the internet, without making your own backups of it, and you're going to have a bad time.
It only works once. My usual response to such practices is to not return to the store again (and probably buy online). They lose in the long run.
Do you also wonder what it gets us to be able to inline pictures in webpages?

Because that is the main benefit: Being able to inline graphics in an otherwise mostly textual interface.

There are a great many situations where I want to work on the command line, and I mostly want to work on text, but occasionally would like to output graphics. X forwarding is great and lets me opt to spawn an image viewer instead, but it's awfully limiting. For starters, it means you have text one place and the image somewhere else, which is fine if they are fully separate, but annoying if the image and text are providing context to each other and especially if you want multiple images. Being able to augment tool output with simple graphics, to me, is of similar utility to syntax highlighting and other colour use in the terminal.

E.g. consider being able to easily list a directory on a remote server and inline thumbnails without having to start a file manager via X forwarding.

I'd loathe for people to start writing graphics heavy applications as terminal apps with graphics, or for people to start requiring a pointing device for them, but there's a lot of small uses that can make the command line a lot more pleasant.
> The procedural version have less files, and less functions/methods. This indicates that many functions in the original code were called only once, so we might ask why they were broken up in the first place.

Readability, testing? What seems odd is that there are now fewer functions, but the same LOC count, therefore apparently more code/statements. This looks like he had to actually add code to replace the original structure, which seems superfluous.
Why I switched to Android after 7 years of iOS – Progressive Web Apps
WikiLeaks reveal that Schauble was afraid of the collapse of eurozone
Trademarks: even more understood to modern programmers than C++ multiple inheritance.

Trademark owners - especially registered ones - can ask you to treat their mark any way they like. Legally, they can only try to enforce the basics of trademark law, but trademark litigation is typically expensive and risky.

USPTO Pro Tip: links to their search are session-specific. You have to use the blue TSDR link to share:

https://tsdr.uspto.gov/#caseNumber=86930821&caseType=SERIAL_...
I'll join the chorus of people who've done something similar. In my case it was the database of a small e-commerce site, where I'd taken a backup and then formatted the database server to reinstall it.

What I hadn't realised was that the backup script was set to dump to the OS drive, so in the process I'd also just formatted the backup. Thankfully one of our developers had a recent copy of the database locally, but it definitely wasn't my finest hour.
I imagine advance knowledge of the timing is desirable if the project involves many volunteers going to a beach to herd turtles at night. Allows for planning, doesn't require anyone to monitor the webcam at night, etc.
That awkward moment when Apple mocked good hardware and poor people
Shit happens =)
1. Don't smoke, it causes deadly diseases.

2. Don't be immobile and stationary all day.

3. Don't buy food that comes in a plastic wrap or a cardboard box. Make your own from primary ingredients (vegetables, meats, grains).

You are talking about details. This study, if taken at face value, suggests people are ignoring the obvious fundamentals.
Oh man oh man.... This hurts just reading that, or UPDATE without WHERE.
Why Legacy UX Design Will Doom Your Product?
The Uber Model, It Turns Out, Doesn’t Translate
The study's method by definition places an upper limit of 40% of the population meeting all 4 requirements:

"Using the average of the 2-day HEI scores, participants at or above the 60th percentile (ie, top 40%) of HEI scores in the population were categorized as adhering to the dietary guidelines for consuming a healthy diet."

Regardless of how healthily people do or don't eat, you only have the 'healthy-diet' characteristic if you're in the top 40%.
Google is retiring the Chrome app launcher
Newspapers, by definition, cover reports that are newsworthy. "People are all healthy" would be the more surprising headline for any paper today, so I would assume that would be picked up at least as well.
Amazed by some of the choices YC made. A social network for colleges??? in 2016? Random phone calls with strangers? Notification (spam) platform? The freakin Uber of birth control?

Oh my... the majority of these startups might not survive 2016. I think they should be more picky and not necessarily pick a team first. Yes you can pivot to another idea anytime and reuse the same people but I bet you a lot of the rejected applications could be worked around in the first place if the idea is really cool but a single founder. etc. (I've never applied BTW).

Thought, I have to say that they have 2 great ones like by-the-glass wine delivery and the personalized beauty products. That's what I'm talking about. Can't wait to see Day 2, hopefully it'll gradually go up in quality. It has to...
Show HN: My Meteor web app; use it before placing bets to filter the bad ones
NPM is a for profit, so they're a SPoF from lawyers and governments seeking to control others.

The other issues is a lack of distributed package/artifact replication which makes it possible to take down an entire ecosystem by unplugging a few servers.
I can concur with this. I actually have responsibility for two teams at present in a way - one team I can fire all of and the other that even people three levels above me cannot it appears because of contractual relationships that are stronger than anything else. Even though someone had one of my team members fired, he couldn't fire everyone because both of the teams I have some responsibility for are different contracting companies.

The team that I can't fire is the team that I consider a net negative amount of work performed because I or another person I delegate has to do their work for them repeatedly. They have shown no capacity to learn (we have to write runbooks for them still to the detail that we should just write a shell script with the time spent, so now we have unreliable humans that are executing bash scripts).
From the article:

* Measurement of Physical Activity

* Measurement of Dietary Behavior/Healthy Eating Index

* Measurement of Smoking Status

* Measurement of Body Fat Percentage

I would say number 4 is a bit odd, since it depends on the other ones. But I guess it is easy to measure.
Investorlist.co – A crowdsourced list of investors
What is the difference between a branded drug like Tylenol and paracetamol?
Filter Products by Manufacturer in the PrestaShop Back Office
I'd be shocked if the 60th percentile American diet is healthy, for any reasonable definition.
oh geez.... welcome to trademark law

Google.

(why is this getting frontpage HN coverage?)

a trademark is a globally enforceable right (madrid agreement) and one has an obligation to protect ones mark from "dilution" from others in the same category:

i.e. if you are selling "apple" garden shovels, you needn't worry about crossing into "apple" computer land, but I guarantee you that they already registered that mark for "home electronics" etc.

Most countries require formal registration of the trademark (they are searchable in online databases)
and most will go on a "first filing" basis.
but several, including the USA, go by a "first usage" basis and require you to prove your use of the mark in public...

it's a long shot, but you can always look of that company has, in fact, registered that mark, and in which country/territory are they claiming usage rights.

(for example, they can't be a local computer shop named "apple computers" that only sold to locals since 1854, that suddenly sells computers on the global market, as there is already a global entity with that name registered)
> A single standalone class is equivalent to a basic struct passed to functions.

Not exactly -- a struct is equivalent to a class with public fields. If you have a non-anemic model class then you can guarantee that the object's state is within some boundaries (defined in the mutator methods).
> Someone else in the world reported the problem back in September, and aside from some random person asking a totally useless question, nothing had happened on the thread.

It's a special kind of horror to find, after hours of high-end-googling, the one thread where someone reports the same problem you are experiencing, and it's just the question, and then one other person asking if the problem has been solved because she/he is having the same problem.

The one thing that is worse is if the OP then makes another post that simply says "Solved it! =D", without giving any explanation on how they solved it.
Global Mentors – Toptal
Absolutely, cljs is a top-shelf way to work in JS. And core.async is fantastic.
Spitting discrete parts of functionality into separate functions, even if called once makes the code more readable even if they only get called once.
You don't clutter the would be calling functions scope with variables only needed within the would be in-lined functions body.
When you read the code you the function name and return type can describe what is being done rather than trying to grok the body of the function code itself.
Everywhere I've worked has had a local install of Nexus or Artifactory which acts as a caching proxy in front of Maven Central, as well as being a location to store internal builds. Artifactory's pro version can sit in front of pretty much any package repository known to man (NPM, Docker, RPM, APT, Maven, PIP, gem, you name it it's probably in there).

NPM makes it quite awkward to use a non-standard repository, and often builds will download stuff from GitHub on-the-fly rather than hosting all their sources in NPM. It's not my favourite package manager :(. But you're going to need to put your own packages somewhere, and there's little reason not to make that somewhere not also cache your external dependencies.
You've somewhat contradicted yourself with #3. Many primary ingredients are sold in cardboard or plastic packaging.

Also, #3 requires enough wealth to have the time to spend on it.
your post reminded me of two cool stories about "Windows on Windows"

1. Microsoft has reimplemented the NT kernel and services as a userspace LibraryOS called Drawbridge (http://ssrg.nicta.com.au/Events/summer/16/baumann.pdf, slide 21)

2. Microsoft teecchniiccaally also already did this in SysWOW64

First story is much more interesting than the second one
No, due to full userspace codesigning.
Socialism’s History Shows Millennials Should Think Twice Before Supporting It
> to decide at which point something might be considered "reasonable doubt".

As far as I know this is a mostly done problem (google "statistics").
Love Van^Gogh in combination with a Munch cache. Recently went to the Van^Gogh conference where they had a great talk on this topic. [0]

[0] http://www.vangoghmuseum.nl/en/whats-on/exhibitions/past-exh...
The Wilds of the Local Group
best thing I've read all week
Perhaps you might want to consider open-sourcing it
We get popular results with Banksy, though come to think of it, not sure if anyone knows who our programmers are...
Free data recovery software for Windows
Pinterest Works to Pin Down Path to Wider International Audience
A spectacular failure just waiting to happen.

For example, RubyGems it's possible to sign them, but it's not used as much as it should be because option security never gets used. Waxseal is a gem to sign other gems.

Generally though, it's a worse vulnerability than bitsquatting because it gives quarter to silent, advanced, persistent threats by definition. (Dynamic, untrusted code modification either in-flight or at-rest in difficult to prevent/audit ways.)

The primary way for change to happen is for some company to get hacked, but then it will only change for that one platform because most people are reactive not proactive. Changing this proactively seems painful, but it's less onerous than the risks of the alternatives. The key point is to make end-to-end verification and public key management mandatory and simple.
Worth noting too, that there is a strong community movement AWAY from the thorough vetting process and TOWARDS an unvetted, open system modeled after npm et al.
Standard Tylenol is paracetamol (aka acetaminophen)... But the article here is talking about Tylenol PM, which is a different formulation. From Drugs.com:

> What is Tylenol PM (acetaminophen and diphenhydramine)? Acetaminophen is a pain reliever and a fever reducer. Diphenhydramine is an antihistamine that reduces the natural chemical histamine in the body.

It's explicitly the anticholinergic diphenhydramine that's being looked at in things like Tylenol PM. Standard paracetamol isn't being questioned, I don't think.
Ah yes, my bad - the "value types go on the stack" simplification is a bit sloppy. It's a useful way to describe it to make the comparison - but definitely not for understanding C# in this case.
We've all been there. Shit happens. That's what backup is for.

OT: It's probably bad form to publicly blame someone for it, even if it's done by him. It's suffice to say, we screwed up but on our way to recovery. It's better to follow the practice of praising in public and discussing problem in private.
Last week I deleted a large portion of our pre-production ldap. I use jXplorer ldap client and for some reason the control d (delete) confirm dialog defaults to "Ok" instead of cancel. I'm use to hitting control f (search) and then enter to repeat the last search and when I hit d instead of f I deleted a bunch of stuff. The silver lining is I patched the problem in jXplorer and submitted it. It's my first legit contribution to a project.
That would explain why the texture is wrong then. Best word I can find is "slimy", and is too sweet which is quite an achievement in a product that's 80% fondant.
Git has crypto for a reason.
Every package manager must have it too.
Technical reasons alone don't clarify what's happening. Everyone's explaining basically why "Rust is awesome", which is not what was asked.

It's popular because Rust fans are heavily promoting it on HN as the solution to certain classes of programming errors. 2016 is probably going to be the year of Rust on HN, generally there's a new language every year such as Ruby, Javascript, etc. This year Go is a strong competitor and Elixir was looking strong but it fizzled out. :-)

It's controversial because users of other languages (understandably) don't want to rewrite their project, or they don't want to learn an entire new ecosystem that does exactly what the previous thing did, except in a safer way. Finally, some of them have enough experience to recognise that a new tool is never perfect, and we just haven't had enough time to figure out what the pitfalls and cons of Rust are.

The facts that Rust is quite young, has no shipping hero project as a case study and there are basically no jobs available are adding fuel to the fire.

Programmers are suckers for a good programming language story and love thinking that there's a language that is truly a joy to program in and will fulfill all their wishes. PL topics are always under heavy discussion.
responsible behavior is on a sliding scale, he had the rights to do this, but he could have been more responsible by first publishing a notice he was going to do it in a week, and even more responsible if he figured out the big projects using his code and sent them all an email ( but that would be a lot of work, hence the greater responsibility undertaken - I mean I sure wouldn't go through that trouble)

Was he irresponsible? That seems a bit much, I think he was at responsibility level average - he did what he had the right to do and with good reason after NPM treated him badly and published a good document outlining the reasons, which I guess was helpful for people seeing why using NPM at all might actually be irresponsible.

But he could have been more than responsibility level average.
I've gotten into the habit of enabling transactions by default in my .psqlrc. And before I do any maintenance, a good:

abort;

begin;

Just to be doubly sure. Then notice the number of deleted rows, and select from the table afterwards.
I have a very strict habit after once or twice doing this: always start all DELETE commands with "--" (that is, comment it out) until I have written a where-clause.

My command in the buffer might go through these steps:

1. "Delete from"
2. "-- delete from"
3. "-- delete from table where condition limit n;"
4. (Generally either ask a co-worker or make a Jira with the exact command I have at this point, so there's a sanity check and/or permanent record, but for very low risk/especially mundane/especially time critical updates, do it)
5. Delete the "--" and run it.
6. Think hard about adding some functionality in the app for doing it in app code unsteady of in database code.

Generally do the same for "UPDATE".
Good question. Under something like GPL or Apache, npm (or anyone, really) would have a clear legal reason to continue using and redistributing the code; there's nothing the copyright holder can do about that (unless you actually violate the license terms).
Under WTFPL, that's certainly the intent of the license, but I haven't heard any court declaring a case based on WTFPL, so you don't actually know what the courts would make of it. But in general, yes, I'd bet a court would let people do what the f* they wanted once they got some code under WTFPL.

The separate question is: ethically or business-wise, do they want to continue publishing code from an author who explicitly tells them not to? Legally they (almost certainly) could, but as a FOSS business, would they want to?

Software Licenses are pretty easy for the basics - after you read the whole thing.
Disease, allergy and sensitivity.

My friend has celiac, my co-worker is mildly allergic to wheat, I'm sensitive to gluten.

Too much gluten makes me gassy so I avoid large quantities, but that's pretty much it. My co-worker breaks out in hives. My friend is in for a world of hurt.
My very first job - ~25 years ago.

Destroyed the production payroll database for a customer with a bug in a shell script.

No problem - they had 3 backup tapes.

First tape - read fails.

Second tape - read fails.

Third tape - worked.... (very nervous at this point).

I think most people have an equivalent educational experience at some point in their careers.

Edit: Had a project cancelled for one customer because they lost the database of test results..... 4 months work! Their COO (quite a large company) actually apologised to me in person!

Edit: Also had someone from Oracle break a financial consolidation system for a billion dollar company - his last words were "you need to restore from tape" and then he disappeared. I was not happy as it was his attempts at "improving" things were the cause of the incident! Wouldn't have been angry if he had admitted he had made a mistake and worked with us to fix it - simply saying "restore from tape" and running away was not a good approach.
Another perspective on a software engineering apprenticeship
Same person who got bullied by Kik's lawyers into renaming NPM packages.
Meta: please don't upvote for agreement if facts are asserted that you cannot corroborate. And please carefully consider whether you only believe or actually know something is true. A lot of patent falsehoods are being asserted and upvoted in this thread.
Improving your health is a very personal thing though. These sorts of studies tend to be about populations, not individuals. Even with external help, you'd have to work with them over some period to figure out what works for you.

You're just going to have to do your own leg work if you're serious about getting healthier.
Unpublishing bower packages is temporarily disabled
Erdogan knew it was coming: https://www.rt.com/news/336769-erdogan-warning-brussels-atta...
All good. Also, thanks for alt-composition and stateless.
http://xkcd.com/979/
Why do you dread going to the gas station?
Indeed, Hormel once sent nastygrams about their trademark to the ASF over our Apache SpamAssassin software. Trademark owners can ask everyone to use or not use their own names. Actually going to court - or actually winning - is far far rarer.
Why university might not be the best choice for tech careers
I remember trying Hershey's chocolate on my first trip to the US, not expecting quite how nasty it was.
Beware of This Microsoft Licensing Trap
>It is nevertheless reasonable for you to sue someone who copies it - "they won't sell it to me" is not a defence against patent infringement.

Personally, I think it's ridiculous that someone could create something "obvious", refuse to sell it to you and also restrict you from making it yourself. The world shouldn't work that way. I hope courts agree.
I wasn't planning on passing a non-string to my function. The type-checking only needs to happen because this is a needlessly generic function
I am a bit less convinced by this practice. The general consensus seems to be: "oh you can SELECT around after you've done your update and before you commit; the update." But while you're doing that, you might be holding row locks on all the data your update touched, and meanwhile the lock acquisitions in your app are failing, along with whatever that entails. And if you're not doing that and immediately commit;ing, are you gaining anything?
You can also start all of your commands with "BEGIN;" (at least in Postgres) to ensure you're in a transaction you can easily rollback.

Another trick it to start all "DELETE" commands as a "SELECT" to ensure you get the "WHERE" part correct, and then swap out the "SELECT *" with a "DELETE".
It's very exciting to see inline plots in terminal but I doubt it will ever get mainstream popularity since it's not supported by most terminals.
You are probably correct. It's been a few years but I do recall not being super impressed with the questions after the hassal of a bit of phone tag and a scheduled call. He likely picked up on my disinterest. I could have sworn though that there was this ackwardness based on my responses. Like he couldn't reconcile my answers with my profile.

My not be considered a "phone screen" in the process but if it walks like a duck and quacks like a duck.. :)
Yep, I've never done it, but I've definitely been aware of how easy it can happen. When I'm in this kind of situation on a production DB without easily restorable backups I usually try to remember to put all my delete/update queries in a transaction. Then commit after I see the appropriate number of rows have been effected.
Hi HN, we originally developed this for internal use over at StopLight, and realized that a lot of the tech could be re-purposed and re-packaged into a nice little complementary tool for anybody working with Swagger. Thanks for taking a look - happy to answer questions, and eager to hear any feedback!
What's better, putting off a small, previously unknown risk of a condition you might either not live to develop or may have developed regardless, vs incapacitating and potentially deadly asthma attacks?
Sadly, there's nothing insane about 1000 entries when it comes to npm. That's the reality of pretty much any non-trivial project, especially with React and Babel.
I think this is the original study: http://archinte.jamanetwork.com/article.aspx?articleid=20917...
Well, with Dropbox the default setting is to keep local copies of all files in every computer connected to the system, so it probably wouldn't be catastrophic.