skysight-inc/HackerNews huggingface dataset:
> Additionally: The core problem wasn't the existence or the reliance of dependencies. But simply the fact that the package was no longer available.
Which is - no matter how big the packages are - a huge problem.

This really misses the point. Every dependency is its own point of failure. When you explode your dependency tree into 1,000s of individual dependencies, you vastly increase the odds of something going wrong.

Making package publishing immutable won't save you. What happens when the dev of one of those 1,000 packages you rely on has his or her account hacked and a malicious point revision is pushed? Even if you pin all your dependencies, do all your 1,000 dependencies pin all of theirs?

Micropackages like left_pad and is_array had hundreds of dependent packages and a tiny handful of watchers on the repo itself. The NPM community is lucky that the first major consequence of their micropackage-insanity was only a brief outage.
Her achievements are no doubt singular and impressive. But still, did she really have to lend her artistic credibility -- and her "signature, voluptuous design aesthetic" -- to a 619,000 square-foot convention center and performance hall named after this guy? Whose family continues to run Azerbaijan as their personal fiefdom; and whose son (and successor) has been compared, in leaked U.S. diplomatic cables, to a mafia crime boss?

As head of the KGB's branch in Azerbaijan, Aliyev ran an anti-corruption campaign as a cover for purging his opponents.[15][16][17] Following the purge, he became the undisputed leader of Azerbaijan. During this time, Aliyev acquired wealth and prestige by developing prominent ties with the Azeri mafia. With its help, he amassed profits from the sale of various commodities, including Caspian Sea caviar, Sumgait oil, fruit, vegetables, and cotton—and from his involvement in Azerbaijan's border control (customs) and transportation industries.[15][16] In order to remain the unchallenged leader of Azerbaijan, Aliyev bribed Brezhnev with lavish gifts—such as the so-called "Sun King" diamond ring, worth an estimated 226,000 rubles, described above.[15][16][17] After two Moscow prosecutors investigated the Azeri mafia, one was tried and expelled from the Communist party, and the other was convicted and executed.[15] Aliyev became a candidate (non-voting) member of the Soviet Politburo in 1976. He occupied this position until December 1982, when Yuri Andropov promoted him to the office of First Deputy Chairman of the Council of Ministers.[15]

https://en.wikipedia.org/wiki/Heydar_Aliyev_Center
Trope averted! Although he still talks to R2 in English despite being fluent in over three billion languages.
15 bytes. Sheesh :)
Great! How will you improve the quality over other boards?
Favorite quote: "An intelligent algorithm (strong AI [66], among other names) should be able to reveal hidden knowledge which might not even be discoverable to humans."
That all applies when there is no Vice President to act as President. None of it applies to the scenario here, which is wholly covered by the 25th Amendment.

"In case of the removal of the President from office or of his death or resignation, the Vice President shall become President."

No caveats.
XNA, managed C++, C++/cli, c++/cx, Silverlight, WinForms, WPF, WinRT.

C# and .NET will endure in one form or another, but all these transformations waste developers' time and make their skills obsolete. No thanks, I'd rather learn something and use it more than a couple of years without having it change under me for no good reason.
The Sharing Economy Meets ATVs, Jet Skis and More
I use Dapper with F# both on Mono/Linux (test/prod) and on Windows (dev/build/test) and it works great and I've never had an OS porting issue in three years. There are extensions that make it more composable, but haven't needed them yet.

Type safe solutions, in terms of using code expressions that get translated into SQL, exist too. However everywhere I look people complain about how horribly inefficient and frequently buggy the generated SQL is. This is true in LINQ, EF, Scala's SQL generator, etc. Stackoverflow obviously created Dapper for a reason. So I've thus far avoided these "too clever by half" solutions; Dapper is perfectly fine.
Why not just move forward to realizing some sort of distributed/decentralized internet?

Something like a combination of Freenet, TOR, BOINC, blockchain etc. technologies, using the current "legacy" internet as a backbone, where anyone can voluntarily offer their computing and storage resources to the network at varying levels of participation.

Say you could offer your laptop as a simple discovery/directory node to simply help others connect and find stuff, and your desktop as either a static-content serving node or as a computation node that can host distributed applications, like SETI@home or web apps like Facebook.

Maybe even reward cryptocurrency to those who offer the most resources.
upvoted for solidarity.
Practically there's no difference, the consequences of a canary or blowing the whistle is the same. But the interesting thing is canaries require the government to order someone to lie, whereas the other just compels them to not tell the truth.
Walmart’s first-ever revenue drop
They're using SQLAlchemy as a database abstraction layer which supports MySQL out of the box.

So, you just need to set the config param SQLALCHEMY_DATABASE_URI like this:

https://github.com/airbnb/caravel/blob/1b4e750b2aa111445703d...

The configuration guide explains it further:

https://github.com/airbnb/caravel/blob/master/docs/installat...
While the joke is relatively amusing, it would be better to seem more useful solutions contributed to the ecosystem like depscheck [1] for Go.

[1]: https://github.com/divan/depscheck
Lots of love happening for Schwab here - but it's more or less the same with Fidelity, Morgan Stanley, etc - ATM rebates for any ATM, no fees, free checking / checkbooks, etc.

A cheat code is a nice way of describing how refreshing this is in comparison with the standard bank business model of offering some fairly limited basic checking account as a loss leader, then constantly trying to upsell you on every other kind of product / account imaginable, trying the overdraft protection scam on you, ATM fees, checkbook fees, etc, etc.

It's a wonder they can stay in business.
I am confident that knowledge exists which is not only undiscoverable by humans, but also beyond our intellectual capacity and impossible to grasp.
Council endorses $1B Gardiner East rebuild, advances new transit plan
> And what a bad GUI it is.

IMHO every GUI (Win, Mac, Gnome, KDE etc.) is bad compared to any decent CLI, if you are trying to complete non-trivial tasks. The real problem is, on Windows you don't have a simple way to switch from doing things in the GUI to doing them on command line. You can, but it's sort of second-class citizen.

> you can't simply brush off the threat of malware as I do on Linux

Uhm, as a former Linux-only user (for about 2 years, circa 2011-2012) I would advise you not to brush it off completely.
The idea that Civilization makes you, personally, a tyrannical psychopath is not worth discussing. There are vaguely related topics like the one you bring up here that might have some conversational value, but the comment with the downvotes is attributing a positively insane level of mind control to video games.
> The core problem wasn't the existence or the reliance of dependencies. But simply the fact that the package was no longer available.

I figure the social dynamics bundled with a micropackage model matter. If you have a few big packages with lots of owners, central dependencies are less likely to be deleted by unanimous consent of owners than the same software divided up into many packages each with a single owner.
Eh, that they said "elected" and not "eligible" in the 22nd amendment makes me think there is plenty of room for lawyering on this point.
Forcing people to lie is bad.
It's true that a 49/51 split makes it easier to cheat undetected. But it also means the public was almost equally in favor of both candidates. When 98% of the electorate get their wish either way, it doesn't seem quite so important who wins.
> But there is actual value

OF course there's value. There is also a cost to adding another dependency.

> But every less line of code I need to write saves me time.

It saves you time now. The recent left-pad brouhaha is a very good example of how it can also waste a lot more time. This focus on only the initial development time without any consideration of the maintenance cost always creates problems in the long-term.

Maybe this attitude is popular with programmers on short contracts that won't be around to maintain the project? It sounds plausible, but I'm not sure. At a minimum this shows the human tendency to be very bad at evaluating risk.
Quantum Shorts – Winning Stories
To be fair, I've always thought that warrant canaries were extremely questionable legally. If the government can legally say "You're not allowed to spill the beans about this", then using a warrant canary is directly subverting that order.

As a result, I always assumed that anyone that had a warrant canary in place would get a court order to keep it up regardless.

I would be shocked if they stood up in court, and I don't find the outlawing of it any more disturbing than allowing secret warrants in the first place. (Although secret warrants are pretty damn disturbing.)
Canaries are primarily a form of protest, drawing attention to the surveillance, the conscription, and the gag order all at once.
Are you seriously saying you'd prefer the US president be allowed to lie?

If that is not what you're saying, please phrase it clearly and directly, and not by implying.
Specifically, SQLAlchemy includes dialects out of the box for: Firebird, Microsoft SQL Server, MySQL, Oracle, PostgreSQL, SQLite, Sybase.

http://docs.sqlalchemy.org/en/rel_1_0/dialects/index.html
Sorry.

I really was capable of seeing nuance, once.
0 A.D. Alpha 20 Timosthenes
Huh? ECC is necessary for anything but toy applications.
Intel SGX
There was also Component Pascal. And Franz Lisp, if you accept dialect names. Also, OCaml used to be called Objective Caml, if I'm not mistaken.
I wonder why this is downvoted. Industrial and white collar crimes are generally orders of magnitude worse, in terms of physical destruction and financial loss, than street-level property crime. Why aren't the sentences (and enforcement, and prosecution) proportionate to the impact?
left-pad.io was shortsighted from the start, everybody knew that, but nobody in the echo chamber wanted to admit it. Now that left-pad.io's unicorn chances are all but smashed, perhaps we can look forward to SF rents finally coming down!
I recommend everybody to watch the documentary COWSPIRACY.

If I just tell you the bottom line of the documentary I get downvoted too much because of unbelief, so watch it first.
Google Cardboard Plastic
I propose center padding. Why does the padding need to be at the end of the word? That's just an artificial limitation imposed by the rent-seeking incumbents in the padding industry.
It doesn't need to "trickery". It could be as simple as someone asking if you've received any warrants, and just not answering.

The government shouldn't have the ability to compel people to lie, that's the issue. As far as I know they don't have that ability, and there is nothing illegal about this.
It's not a NYT-quality chart, but I've created a visualization of the problem here:

https://www.uscleanenergyfund.com/blog/visualizing-the-calif...

Spoiler alert: this "catastrophe" is a minor blip on our nation's overall greenhouse emissions.
Theoretically an order compelling speech, especially false speech, scares courts more than prohibiting speech in certain circumstances, which happens frequently.
I've found Opera Mini in turbo mode on mobile especially good for that use case. It's my default browser anytime I'm traveling with just a few hundred megs of cell data to last several weeks.
The first headset for actual reality

Pretty cool. Announcement here: https://googleblog.blogspot.com/2016/03/cardboard-plastic.ht...
https://en.wikipedia.org/wiki/Embrace,_extend_and_extinguish

worked in the past, they hope it will work now.

The fact that ubuntu laid in bed with them is extremely scary.
Researchers identify when Parkinson’s proteins become toxic to brain cells
Eventually I guess we'll have persistent Twitch-like lifecasting services using glass-type wearables and someone will open their correspondence while using the service and open an NSA with people watching. It will probably be the CTO of that company, since always on recordings would be something the anti-terrorism guys would go nuts for.
I've used both, but I'm forced to use VS at work. I think that its changes are for the better. It's definitely a strength. There are also very cool tools for source control; code reviews, continuous integration, bug tracking.

In addition, you can see a reference counter above your classes that offer a quick jump to where your class is being referenced from. It is majorly helpful.

The down side is when Visual Studio breaks. Sometimes, it caches files, causing strange functionality. There is this thing called MsBuild that can break your package management. It defaults to an auto-merge, which is the worst possible thing to do to your team mates.

I don't find VS ugly at all, but I guess beauty is in the eye of the beholder.
The road is a surface street -- a 30 or 35mph divided arterial which goes over a freeway. The ramp is an offramp from a freeway. But yes, there is no protection, which is normal.
Atom editor and Asciidoc: html creation and extensive documentation – made simple
"The obesity rate doubled" means literally nothing because "obesity" is a
threshold. Under the right circumstances a 0.01% increase in weightlifting could lead to a 1000x increase in the "obesity rate".

Makes for a great headline though. And it's a great marketing technique. Want to make your numbers seem arbitrarily fast growing? Find a threshold for engagement that lots of people are moving back and forth across and wait
for an up month.
What terrifies me is not the potential data leak, but that the NSA may be obtaining their TLS certificates, bypassing the threat (to them) of "https everywhere".
That's clever... but a totally different situation.
I hope tesla's model 3 is not april fool's!
This really makes node a first class citizen of linux. I am sure moving node modules to the kernel will greatly increase their speed. :)
A contract is not protection from a lawful order by police. e.g. you cannot make a contract with the mafia, agreeing to never speak to police about the business you conduct, and then expect the law to say, "Oh, OK. You have a contract, of course we can't ask for those records! Sorry to have bothered you."

In short, when a court orders you to turn over information, it is not a felony to turn over that information, and in fact it is your legal obligation to do so. You can argue under what terms (e.g. in sealed documents that will not be disclosed in public records of the trial), which the court may or may not agree to.

I oppose NSL letters, to be clear, but armchair lawyering aint gonna make you or anyone else immune to them. As long as they are the law, you and I are subject to them, no matter what terms of service we post on our websites.
For context ioctl is considered this ridiculous grab bag of a syscall that people overload (abuse) rather than add new syscalls. Used a lot for a lot of things, but the literature doesn't speak highly of it.
Composing from small modules has worked great so far. Yeah, npm had a flaw, but people are mixing modularity with a package distribution issue.
Watch Carl Sagan Discuss Aliens in This Wonderfully Animated Radio Interview
Cool! Yeah I poked around the druid site and didn't find anything originally, but this looks pretty promising. It's hard to tell how full-featured it is without getting hands-on, but I see something like this making Druid much more usable in a lot of analytics environments.
To throw out an open source one: Metabase http://www.metabase.com https://github.com/metabase/metabase

Disclaimer: I work on Metabase.
WebVR works on Chrome for Android too, it's just gated behind chrome://flags
The problem here is that Wine is buggy, not that application developers aren't all rewriting everything.
What was that random comment about how Linux dosn't break userland Abi . Was this a early April l fools joke ?
So planets that host sentient life are a form of life themselves.
Since this is such an important system call, I am sure we will see it in the kernel in the next release.
It's pretty clear that Hacker Dojo isn't the strictest about accounting. Just look at their membership fee -- $100 / month, pay if you want.

That said, Hacker Dojo doesn't work because recurring revenue > expenses. They work because of the tremendous goodwill they've built up in the community and a devoted base of supporters who are willing to help.

Organizational controls should be aimed to strengthen that support -- too much formalization around process risks killing the goose that laid the golden egg.
> Bulletin - Airbnb for Retail

A marketplace to setup popup shops is something new.

It looks like they're augmenting that with something like their own Etsy, but with less homemade and more well designed objects.
If you don't assume compromise when a canary is tripped, then it defeats the entire purpose of a canary. At the very least, someone could ask the site owners about it, and they could deny it. If thu don't respond at all then they definitely have been ordered not to talk about it. Either way you can get the truth with certainty.
Message app + Bot will change search forever.
I would imagine that companies and people would also be prohibited from making these claims.

But I do believe that is going to be ineffective for the future. Progress would be very slow if there is nothing to claim on Mars, or another celestial body for that manner.

A very interesting discussion, as I do see this treaty changing in the future, but whether it will be country oriented or market oriented will be the big question that defines humanity's voyage outside earth
This is great. It was so easy to set up and get working and the explanation was great as well. Thanks!
Too early to say, but unlikely in my opinion. I expect VS code to continue to gain features and language support, one day we might even see a R# plugins for it but I don't expect it to bring Windows heavy features like WPF/xaml and Winforms across. Apparently C# and F# story on VS code is already pretty solid for server side apps
For more context:

ioctl means "We made this object's API file-like, but there's something we need to do with this object which we can't express in terms of the normal file operations."

Setting terminal options is a classic use of ioctls: You have a file descriptor which connects to a terminal or, more likely, a pseudo-terminal, and now you need to ask the user on that terminal for a password. By default, the low-level code will echo every character back to the user, so they can see what they just typed, but that's insecure for passwords, so you need an ioctl to tell the low-level terminal handling code to not echo.

Plan 9 removed some of these warts, but it's hard to see a fully, truly elegant way to handle something which is mostly-file-like but has some un-file-like attributes programs need to frob.
Editing of a comment is only possible for 2 hours after posting. This is to prevent people from trying to "rewrite history" at any time in the future.

But in a case like this, dang may be happy to let you edit or delete the comment.

You should email hn@ycombinator.com to request this.
No, silly, you just reverse the string, leftPad, and reverse the string again.
The people are the most powerful part of the legislative process in a democracy. They, and you, may have forgotten that by not voting and attempting to justify the positions taken by public officials who are sworn to protect the constitution.

> Which I think is a perfectly rational thing for the FBI to do in the absence of a law stating that they must do so. I don't think it's the best thing for democracy, but...

I've seen a lot of this "understanding" in the news and online. It is not how democracy works. We have the power, not them. We can literally vote them out of their jobs.
The message is dated as Apr 1st. At several places it's past midnight already.
There's also an in house cost in maintaining vendor software and integrating it. That's on top of the 20% usual maintenance fee.

Building a community can also help distributing the costs. But more importantly it's a labour of collaboration instead of a client/vendor struggle.
Facebook Makes Disconnecting After a Tragedy Even Harder
I apologize if I am missing something in your answer but "NSLs are bad, mmkay?" does not seem to be very responsive. We knew about NSLs before warrant canaries. If that is the only utility they provide it seems like they are not very useful to me.
Despite the world having too much food, there are still many people who don't have enough food to eat or are forced to eat very basic diets.
S3 can scale with traffic all by itself, so you don't necessarily need a CDN. The CDN just distributes your assets around the world, and also does a few other things like caching to help those assets load more quickly.
npm != unix, don't conflate the two.

The bar for publishing needs to be higher because there is too much broken, incomplete shite out there. Usually because they just pushed the internal quality, undocumented, untested garbage they just wrote. Don't test arguments, don't set constraints. Tag on a sentence of hurried description, done.

I don't understand the half-assed mentality that does that. That's how one makes the world a worse place, not a better one.
There's a lot of ways to store energy if you're basically getting it for free, and these are generally more efficient at scale. It would be great if a utility could help buffer this for you.
April 1 for some time zones
Best Linux laptop for web development?
Looking for a solid recommendation of a reasonable, reliable laptop for daily development work in Linux (any distro). 15"+ screen, 16gb+ RAM, good keyboard, good trackpad. Preinstalled Linux or Linux-compatible--basically, looking to move on from Macbook Pro and fully embrace my Linux love.
Well, it's never black and white, so, strictly speaking, what I wrote was wrong. But I still like my exaggerated version. It sounds a lot more dramatic.
The Moon Treaty explicitly forbade private property on the moon, but by implication it means that private property is still possible under the Outer Space Treaty.

Also, the United States did not ratify the Moon Treaty. It is in force for the 13 signatory nations, but none are space powers.

More: http://www.popularmechanics.com/space/moon-mars/a3358/426432...

http://papers.ssrn.com/sol3/papers.cfm?abstract_id=1025529
What is journalism for if not that?
This is a testament to Miguel de Icaza and his team's ability to take on the insanely tough and often thankless task of creating a cross-platform SDK. You have to keep up with the changes in three native SDKs and develop your own APIs, too. It will be interesting to have this code base available as open source. I'd read it just for the comparative anatomy of native APIs.
Rebuilding SpaCy.io with Modular Markup Components, Using Jade/Pug and Harp
> > So your process will never shrink in memory usage

> But it should at least stop growing (unless my understanding about non-moving GCs is off, which it could be).

As long as there isn't a bug in the GC :P. I'm currently debugging a Docker problem that looks like a bug in the GC, I'm not sure.