skysight-inc/HackerNews huggingface dataset:
As natedub indicates, to turn a password into a key you need to use a password-based key-derivation function; PBKDF2 is standardised, sane and reasonably quick; scrypt and bcrypt get more love these days, but I think any of them would be sufficient.

A cryptographic key (unlike a password) needs to be exactly a certain length, and ideally be completely random (if not, at least indistinguishable from random): a password might be exactly that length, but it will _not_ be completely random (heck, if you can type it then certain bit patterns simply won't occur …).

The fact that '012345789ABCDEF012345789ABCDEF' and unhex('cd8fa5ecf22379c429f56fdaae511144f9b7704247a244859b943299eb57fb1d') have the same length in bytes is coincidental; they really are two very different types.
Netflix launches Flixtape so you can make ‘mixtapes’ of your favorites videos
This is vaguely reminiscent of Drakon, which has been around a long time, but AFAIK hasn't made much of a dent in the programming world, at least outside of Russia. A couple of years ago I was trying to do something with the visual language but can't say I successfully mastered it.

Interesting to me is that the Drakon editor was implemented in Tcl/Tk, a language I'm quite familiar with. I regard Tcl as a dialect of Lisp, which I've also used a fair amount, at least in the guise of Scheme.

As I'm not at all familiar with this new language can't say too much about it, though implementation in Lisp might be a plus. One issue with it, as with other efforts in this domain, may be that it's not as intuitive or obvious as its authors believe. IOW, in my admittedly limited experience with visual programming, there's more of a learning curve than advertised.

Visual "syntax" is sufficiently different from conventional text-based forms that people have learned to use, often at the cost of great effort and time. Translating the thought process to a visual metaphor isn't intuitive or easy as I've attempted to learn it.

What's odd is that I have ability and a fair amount of success in the visual art of printmaking, which one could say is an expression of a visual language itself, but one that doesn't map well at all to the visual coding of computer programs. No reason to think it necessarily would, but the observation points to an apparent multiplicity of "visual modes" embedded in our brains.
What about Manning? Snowden is not in prison and has not been tortured.
I'm not sure what you mean. Could you elaborate? I could only find references to a song, a musical band and a videogame.

EDIT: I guess you mean the phrase "Almost only counts in horseshoes and hand grenades"?
It depends on the Jekyll template. With mine the list of posts is only displayed in the top-level index.html, so only this file needs to be updated when adding a post.
It sure would be nice to get a real lawyers take on this.
So, is there not a linear relationship between practice and ability? Or at least a positive correlation?
0. Because it either don't exist or already screwed in by someone else years ago.
One of the first points the article makes is how Snowden handled his data differently - working with reporters to curate a small fraction, not actually making any documents public.
Here’s Why Your Brain Seems Mostly Dormant (2015)
This has singlehandedly made me interested in learning more about prolog. I mean, if you can do things like that that simply... Holy crap. No wonder so many lisps incude a prolog implementation of some sort.
Absolutely agree - if a campaign spouts "Destroy All Ifs" that kind of sets the tone for the discussion...
I think Obama knows history will look kindly on Snowden, and thus will look poorly on him. I think if Obama takes the 20 year view pardoning Snowden is his best chance at saving his legacy.
There's still war being waged, but it's being done using lawyers and banks rather than troops and tanks.
Pattern matching is just as explicit as an if loop. In languages that implement it for null values, it is just as explicit as typing "if (foo == null)" in an imperative language. You have to think about it, and type just as much code to deal with it, as you would in a language without pattern matching.

The only upside to pattern matching that I can see is that you are forced by the compiler to match all possible inputs and check for nulls in some languages, which can help you avoid null pointer exceptions and such. But you haven't encapsulated anything, or saved yourself any thinking or typing, by using pattern matching. You've basically turned every function into a switch statement. It's vastly overrated.
>In After Snowden, a book I recently edited, I recommended that Snowden be tried by a federal court in Hawaii where his crime was committed; that he plead guilty of misappropriating government property which he admits he did; that the government in a public sentencing procedure present its claims of all the damages resulting from Snowden’s misconduct (in camera if there is good cause); and that Snowden be allowed to present his claims for justification for his conduct, if not condonation of it.

>The U.S. allows no public interest defense to criminal charges, as many countries do, but it should be considered as a possible future reform, along with more protective whistleblower laws.

>The federal judge should then sentence Snowden according to prevailing standards for relevant criminal sanctions. It would be a public service for educational purposes if that proceeding were to be televised.

This seems like a perfectly reasonable approach, but I have the feeling that neither side would be satisfied with it. People are just too polarized on their view of him.

EDIT: And the multiple downvotes seem to prove me point. Most people here want Snowden to walk free on a full pardon yet even Snowden admits that he broke the law and deserves to face those charges in court. Meanwhile there are even more people elsewhere who feel he is a traitor that deserves the death penalty. Seemingly no one is open to compromise.
Honestly, I'd be fine with optimizing products like that if two things were true:

- close-to-perfect recycling infrastructure; i.e. all the stuff that breaks down and is thrown away actually gets reused to create a new generation of stuff, with minimum additional input of energy and material

- civilization was a stable thing; making things throwaway depends on ensuring there's always a replacement to buy - which will be sort-of the case only until the world goes to war again (and/or western economy goes seriously belly-up), at which point we (those of us who survive, that is) will be cursing previous generations for making all advanced technology break down after a year of use, often on purpose

Alas, those things are not true, and so I despair over the wastefulness of what "the market decided".
The Language Integrated Quantum Operations Simulator
Not functional code though. The aim of functional code is to be side-effect free, and affecting reality really gets in the way of that.

/snark, but articles like this really do fall into that trap...
Most martial arts uniforms are white. Due to this, it could be said that white is the color of learning to fight.
Sadly, I've found myself doing this https://xkcd.com/386/ more often than I would like.
Put Your Controllers on a Diet
I'm pretty sure this entire affair will only be a tiny blip in Obama's historical legacy.

Addendum: People on HN tend to vastly over-estimate the importance of privacy to the American populace. It's a very niche issue in politics.
Linux and Real-Time Java for IoT
I don't understand why people keep playing with infinite series like this... it's not sound math and doesn't lead to anything useful. Just a cheap way for worthless mathematicians to feel clever.
> If I had a choice, and if I was looking for asylum, I would choose the UK every time.

It depends on your previous education. If he speaked both french and english (thus, language were not a relevant part in the decision), then France would be a better destiny. Is a Mediterranean country, so there is a lot of shared context. More similar climate (in the South), familiar ingredients used in the kitchen easily available, and because France have stronger historical bounds with several African, and by extension Islamic, countries. For islamic people to be able to find food halal prepared by other muslim of their same branch is a must. Finding a suitable job out of the capital would be also much easier. There are more locations suitable in France.
There have been smaller search engines that didn't inherit their results from the larger ones... even privacy-sensitive smaller search engines with their own index. Alas, that ship sailed, uh, sank.
Your recommendations and defaults are sane, and the code looks solid, thanks for publishing.

I just don't know why you call this 'copy and paste-friendly'. This is essentially a minimalistic library, not a bunch of code examples (ie. "usage").

Stackoverflow (as awful as roll-your-own-crypto is,) is great for seeing code examples in context of a domain problem, rather than a crypographic primitive.

This is a decent wrapper for goland stdlib's crypto, but doesn't particularly help a person who's trying to understand how to apply crypto to their particular usecase, and would therefore be most susceptible to googling it.
Is this a thinly veiled instance of PG's classic "submarine"?

http://www.paulgraham.com/submarine.html
Of the projects I'm aware of (I'm sure there are many I'm not) - the one that seems to hold the most promise of realizing a working set/trade-off of these features is probably ipfs[i,f]. At it's core it's "just" about a p2p content-addressable web - but with a naming scheme and client-side public key based crypto -- it should be possible to build both an "open" and a "closed" web on top of it.

It's not there yet, though. But as I said, of current projects, that have people doing real work, and is in some sort of alpha state -- I think it holds the greatest promise.

Just getting the features there is going to take a while, not to mention stitching together a user experience and user interface that actually makes it usable in an easy and secure fashion for regular users...

[i] http://ipfs.io/

[f] The faq repository: https://github.com/ipfs/faq/issues (note a lot of discussion and open questions - ie: not all these have a clear "best answer")
> No it doesn't. Under some unintuitive definition for infinite summation that is useful in some physical calculations it does which is surprising.

It's not surprising, you can pretty much get any result you want like this.
For me, Hillary being let off changed how I view the Snowden affair. Before Hillary was let off without penalty, I thought that exposing or acting carelessly with classified information was a really big deal, that it seriously put American lives at risk - AND that others were doing a good job keeping that information under wraps, so breaches would be meaningful. Now it seems more like a political game. Hillary put us in more danger than Snowden. Punishing snowden is more about keeping info out of eyes of American public (i.e., Hillary's emails still need to be redacted, even though her server was likely hacked and info is almost certainly out there and America's ememies have it.) I hope that Hillary skating will set a precedent that will allow more whistleblowers to come forward to the public with information when needed without being penalized. Perhaps whistleblowers might use the strategy of releasing information 'unintentionally' and then use the Hillary defense.
Not really arguing against your point - however when in Powershell, as everything is an object, you don't end up using the same "string heavy" techniques that required grep with more traditional shells.
But you can setup your own mail server. Why are you suggesting otherwise?
one can spend end less amounts of time on "investing"

i like macro-economics and treat it as a hobby.

others that may have little interest in the subject could take a simple route.

25% gold/silver
25% blue chip dividend or index fund
25% property or rental
25% in your business or hobby, if you spend/invest in what you know and like will usually do well
same with work do what you have passion and ability=success

if #3 and 4 dont apply just put 20% gold/silver and 80% in 10 different good dividend paying blue chip.
why gold and silver?? because inflation protection against fiat currency. another note now not the time to by stocks, now is time to sell. buy after next correction.
Leadership communication catastrophes: Starcraft Ghost
Have you opened a dialog with AWS to see what they suggest or can do to remediate the situation?
An explanation often helps and rarely hurts. Especially online.
One of the things I've learned from this is that our security apparatus has a will of its own well beyond whoever's sitting in the White House. I doubt it will be closely tied with Obama, rather just lumped into the "Post 9/11 security state" chapter.
This balanced kind of approach would have made sense for Aaron Schwarz, who did some minor things wrong that got blown out of proportion.

But I don't think Snowden thinks he did anything wrong. He wasn't even reckless -- he allowed veteran reporters to handle the punblication to mitigate unintended consequences and act as a check on his own beliefs.

So accepting punishment and allowing the US government to have the last word doesn't make sense to me.
Thanks for your comment - it's insightful, and definitely not trolling.

> Remember that "interactive computing" was once a radical idea, the realization of which required people to spend their lives and resources fighting for it (Licklider, Englebart, and Bob Taylor et al, to name a few).

Yeah, but the funny thing is that this radical idea only sparked for a while, and then was extinguished. Present world, with all the hip languages we use on our $dayjobs[], is pretty far behind what Englebart et al. were working on. Event the present Lisp (and Smalltalk) systems are mere shadows of the "interactive computing" of the past. People are slowly rediscovering the concept again though, gently pushed by visionaries like Bret Victor.

I 100% agree with your comment about data. The most successful dataflow languages I've heard of were always tied to some particular data processing tasks - like music and general DSP. It's a good driving force that helps immediately verify the feasibility of the language and the environment.
Issues related to privacy in the digital era are going to be a huge part of humanity's future. Obama's historical legacy will be a small blip compared to the actions of individuals like Snowden.
I find CLI a great interface. Its just stuck in pre web days! Here are some thoughts on its design / UX -

- contextual help. if i write a command incorrect, it should suggest correction and link to more help.

- cloud storage of all my command history

- be more understanding. talk a bit in natural language. Eg. show my ip address -> translated to the right shell command.

- learn and grow automatically as the community builds more tools. Like, hey used this command but check this one out!

It is not feasible to upgrade all existing scripts to adhere to this but a wrapper shell that can provide this functionality should be very well possible.
The counter-argument to our fear of planned obsolescence here is the ridiculous speed of technological improvement in LEDs relative to incandescent lighting. LED's cost per lumen falls by a factor of 10 every decade (see Haitz's Law), while a user's actual lighting needs may never exceed 800 lumens for an standard A19 bulb. Any attempt to form a cartel in this market would be swiftly defeated by ever-falling unit economics. Far from a cartel, we should let the government create a standardized LED lifespan rating based on the actual needs of consumers. For example, if we know the average renovation cycle for single family houses in the US is ten years, then we should make LED bulbs that are rated for 10 years. This way, manufacturers can deliver these products at at the most affordable price point, and consumers for the most part won't have to worry about replacing their lights ever again.
"The federal judge should then sentence Snowden according to prevailing standards for relevant criminal sanctions.

The problem is that the prevailing standard in the US would be life in prison. I imagine that eventually Snowden will wind up serving a life sentence in the underground supermax facility in Florence, Colorado whether he comes voluntarily or not - Russia will eventually use him as a bargaining chip in some trade negotiation, and that will be the end of him. I think it's wrong, but that outcome is almost inevitable at some point.

Obama will not pardon him, and I don't think either of the presumptive presidential nominees are big Snowden fans. From the government perspective, Snowden did a tremendous amount of damage, and he will eventually pay for that damage with his life.
thanks! talking to customers and grinding away almost every night and weekend (started as a part time project).
An interesting perspective, but I think the "Hillary Defense" is only available to a select few.
FREE Websites for SMEs in South Africa to Start Up Smart
As far as I can tell Gladwell has "oversimplified" nearly every subject he touches, because he is more interested in pumping up his image than in doing meaningful work.

He just did a show on how going to Bowdoin instead of Vassar is eeevil because Bowdoin feeds students really well and only has 13% of students on the highest level of financial aid, whereas Vassar food (according to the show) gives students diarrhea but has a 23% number. The argument was just supremely stupid but if you don't listen too closely he sounds smart. Or I should say, he sounds smart to the naive and bad-at-math variety of socialists (a category in which I don't lump every socialist btw).
Yes but are any of the big email companies using this info?
i think its a good point too much time spent saving money is wasted time.
my rule of thumb is can i save more that i get paid at work??
so if you get paid $100/hr. you can clip coupons 3 hours and save 20 bucks or stay at work 3 hours and make $300
i am a dyi person but if i can pay someone to do the job less than my pay i just work extra hours and hire that person.
Snowden and Clinton are apples and oranges. There is a reason why we don't have the same punishments for if someone is at fault in a car accident that kills someone versus if they purchase a gun and immediately use it to kill someone.
I feel like it's in the organization's DNAs. Take like J. Edgar Hoover.
> Hillary put us in more danger than Snowden

How so? (I would wager neither put us in danger.)
It's similar to what is happening in San Francisco, but San Francisco has more displacement. You can't prevent people living in the city or commuting there, but people resist accommodating them.

Tech workers want to live in SF, but housing growth won't keep up. The tech workers usually make more money than the current residents, and simply outbid them for housing, thereby causing market rate rent prices to increase dramatically.

This is what people who protest luxury housing projects in SF are missing: the tech workers are going to live in the city no matter what. If you build luxury housing, they will take it. If you don't build luxury housing, tech workers will take the market-rate housing from the people who can't afford anything better. In some cases, they convert the market-rate housing to luxury housing, sometimes by combining units or getting rid of in-law units, which reduces the housing stock.

Of course, rent control in SF is not means-tested, so it's basically a lottery -- there are people making very high incomes living in rent-controlled apartments, and very poor people who have to live together and pay the market rate. It's an indefensible system, even if you otherwise are OK with rent control.

Protesting the Google buses is another example of shortsightedness. Who would rather have thousands of additional cars on the roads instead of a handful of buses? These people are going to get to work somehow, and they won't all fit on Caltrain and Muni.
I think Obama's legacy will only be a blip.
Eh, I like the Powershell angle here. By default everything is named in lengthy, self explaining names, but there's shorthand aliases for everything.

In reality, no one is using `get-childitem` instead of `ls` or `dir` (both of which are simply aliases for `get-childitem`).
I opened a chrome incognito window and the third google hit with the "injunction" phrasing contained a name.
I'm pretty certain some teams at Microsoft are working on react https://blogs.windows.com/buildingapps/2016/04/13/react-nati...
Glad SciAm is helping to spread correct info. I think that basically, the problem with many math videos in this style is that they tend to make uncommon, if interesting, assumptions without explaining what they are or why they make the assumption in order to get clicks. This is my comment from the last time this video was mentioned:

> "The sum of the series 1+2+3+4+5+6... = -1/12" is patently false, without a previous assertion that we have assumed the Cesàro sum of a series is equal to the series.
Even mathematicians working with Cesàro sums surround such statements with "this holds only if we interpret the infinite sum defining Z to be the Cesàro sum..." [0]
Precisely none of the times I've heard the "1+2+3+4...=-1/12" bullshit has the person stating it prefaced their statement with "this holds only if we interpret the infinite sum defining Z to be the Cesàro sum..."

> If you say that "1+2+3+4...=-1/12" without stating your prior assumptions, you suddenly allow anyone to make any assumption whatsoever, no matter how obscure it is. In your imaginary world, someone could walk into a store and claim that "this 95 cent pack of gum is free" because they just made the unstated assumption that all non-integers do not exist, and seconds later they could return it for a full refund of $0.95 after making the unstated assumption that in fact the rational numbers do exist. Numbers, and in fact the entire system of mathematics fail to work at all once you allow arbitrary, unstated assumptions no matter their obscurity. And in fact, the assumption that non-integer numbers do not exist is made far, far more frequently than the assumption that the infinite sum defining the sequence is the Cesàro sum.

> The only difference is that assuming the non-integer numbers do not exist is a defensible assumption in many, many scenarios... but Cesàro summations are only invoked about twelve times a year, in pure math or advanced physics papers.

> [0] Madras, Neal. "A Note on Diffusion State Distance." arXiv preprint arXiv:1502.07315 (2015).

My favorite post on the subject still has to be this: http://goodmath.scientopia.org/2014/01/17/bad-math-from-the-...
Cool, thanks for the info. I enjoyed playing with Quirk, it's very nice.
Your mockup reminds me of Mathcad[0]. It's used to create documents that look like math papers, except the formulas and code there can be executed "in situ". I had a semester of numerical methods on it at my university, and one thing I realized while using it is that, while cool for math expressions, it starts to get problematic when you start implementing more complex algorithms. Programming is a slightly different mental exercise than maths, and the code doesn't lend easily to that kind of representation.

Not to say it's a thoroughly bad idea; I think there's a lot room for improvement over our flat, plaintext canvas we work with.

[0] - https://en.wikipedia.org/wiki/Mathcad
What about Petraeus. For Snowden's acts to be still considered criminal is just hypocritical.
China Plans to Float Nuclear Reactors in South China Sea
Yeah, right, it was an accident. If you believe that I have some ocean front property in Arizona to sell you.

That witch is guilty as they come, it's all politics.
Knew it was that numberphile video before I clicked.