skysight-inc/HackerNews huggingface dataset:
You're right, you might need to spend 15 minutes reading a basic tutorial or cheat sheet.
Show HN: Chat via Morse code Christmas tree
Not surprised by this comment. Scala has the most bitter community I've ever seen. Contrast that to the Clojure community
"I personally think that many of the advantages of the digital age are things that are not crucial to living a happy life."

Given the causal link between relative productivity and happiness, I'd depreciate the odds of living happily without modern connectivity as the value of that connectivity is furthered.
Advocating extreme violence (an execution with a firing squad) for a group as a punishment for violence( against tree loggers). Amazing hypocrisy.
To swat down an argument one need only show that it's flawed, not that its converse is proven.
Pure Hacker News bait.
The problem with the latter is that it comes at a cost to things like battery-life.
what needs to be written to create a project and build/run it is:

lein new twitter
lein run

that's it.

Most of the info in this article just reflects the rightful excitement form the author, but not in any way the best or the simplest way to do things. Just take it as "I love it, let me share" vs. "Clojure is better than..."
I once read an interesting article on how OkCupid was doing question weighting wrong because people would mark matching on factual questions (like, "What is the largest of these? A. Elephant B. Whale C. The Moon") as being absolutely vital to get correct. People would then end up with like 90%+ matches with others they would not really get along with, just because of the ridiculous weighting on those questions–it became a matching system more like, "who has answered the same questions as I?"
>You should regard money as fuel for what you really want to do, not as a goal in and of itself.

A little ironic coming from Tim, who cheapened the whole publishing house he had built, and then added those horrible techno-babble conferences for quick bucks.
What makes you think Google won't be around. If they weren't, I'd put Mozilla on the chopping block as well.

[1]http://thenextweb.com/insider/2013/11/21/mozillas-reliance-g...
Well, that code exists at all for compatibility with tuples, which are a misfeature from the early days of scala. The "right" way to solve the problem is with shapeless' HLists. With HList you could write a simple generic method that would work with a HList of any length. (If you don't need to join a bunch of hetrogenously-typed futures while preserving all their type distinctions then you could just use the method that takes a Seq, above in the file)

(You could also generate exactly this code with macros, which were a new feature in scala 2.10; I imagine a newer version of the code will do that)
Authentication is a difficult problem to solve if you're doing it for more than one app. In addition, many auth solutions aren't secure front to back (usually only on the front side). Developers tend to be poor at writing proper security solutions on the whole - so having independent security practicioners have input is worthwhile (eg: open source, or enterprise) IMHO.
A Knight's Tale can be streamed on:

* HitBliss

* XFINITY Streampix

It's available for digital rental on:

* Amazon

* iTunes

* Google Play

* YouTube

* Sony Entertainment Network

* HitBliss

It's available for digital purchase on:

* Amazon

* iTunes

* Google Play

* Vudu

* Redbox Instant

It's available On-Demand with an Encore subscription.

There's no ethical reason to pirate this movie in the US. "Cannot watch it now without paying for it" is NOT the same as "cannot get streaming".
Try to kill a water buffalo with your bare hands, then lets discuss our omnivorous diet.
Ask HN: Update iOS 6.0.1 to 6.1.2 on 4S
Is there a way to update iOS 6.0.1 to 6.1.2 on 4S ? Without updating to iOS 7 though
https://gist.github.com/aamedina/8115304

First version here: Uses only a case statement to dispatch the proper behavior, but as a pure function.

When she begins to take the state of the map and all of the other variables into account, this case statement will prove confusing to wade through - because it's one function that is doing four related but separate tasks. So version two is what you'd likely end up doing after the code got too unwieldy.

Oh wait... that's what a multimethod is! Now you've gone full circle. I hope you can see the point I was trying to make more generally, beyond the limited example I gave here.
FYI, there's currently a typo in the first paragraph ('loosing' => 'losing',) which made me cringe; you have to bury the typos further down where they'll have less influence on my perception of the piece.

[edit]It's since been fixed. That was an impressively quick response.[/edit]
I would argue this isn't odd behavior - it's doing exactly what you asked it to do, and giving you the proper result. If this is incorrect, do it properly.

If you're encountering this pitfall, the problem isn't the tool being used, but the person writing the code.
Can you expand on the CanBuildFrom travesty?

(It seems like you've got interesting things to say, but you're being a bit strident. It bums me out that Scala discussions on HN take such a heated tone.)
Fake it until you make it, it worked for reddit!

Trouble is showing up to a date as a beautiful woman. That would be the biggest challenge for me.
True, but you can do so without fallacious reasoning that make you both wrong. Wealth is sometimes a zero-sum game and sometimes not a zero-sum game; not everyone who makes money is creating value for the world, but they usually are.
>>easier learning curves and which are just as, if not more powerful (would be happy to learn some good reasons, though).

This may be true for Ruby to some extent.

But Python as a design goal aims to provide as little power to the programmer as possible. In fact, the Zen of Python says almost anything that comes in the way should and must be sacrificed to achieve readability.

One can probably write a book on why one must use Perl. In short, nothing really gets work done as Perl does. That one fact hasn't changed since the past 26 years of Perl's existence.
I carried an M249. You do not hold the trigger down and shoot randomly with it aka "spray and pray". You shoot 2 to 3 round bursts for accurate shots. Also I think the original post I replied to was edited, but I'm not sure. It seems a lot more sane than what I originally remembered it to be when I replied to it yesterday.
I think some of this is bizzare.

I mean, an employee is satisfactory, but only satisfactory, so they give him a generous severance package and go hiring somebody else. Really?

This sounds like "stack ranking" where they fire the bottom 60% every year.
Beauty is subjective. I don't think Ruby is beautiful, I much prefer Python.

The difference is that PHP was not really designed for the type of use it gets. It began as one guy's hobby project and somehow snowballed to power some of the biggest sites on the internet without really having the backing necessary to support that position. PHP maintainers have been desperately attempting to backport the type of functionality that Serious Business people need, but it's never going to be as organized or clean as something that was conceived to serve that purpose.

If you care about code quality, choosing PHP already puts you at a disadvantage. It's not that people can't write adequate PHP code, or that people can't write ugly code in other languages. It's just that most other languages give you a pretty healthy head start over PHP when it comes to cohesion of organization, presence of important language features, etc.
It told me I'm not nice because I don't use Twitter.
That's part of Clojure's implementation in Java and the alternative would be to use reflection (obviously a terrible idea). There is similar code in the Scala implementation for dealing with functions, case classes and tuples. The only difference is that the Clojure implementation reflects that it's dynamically typed. I'd even bet there's similar code in CPython.
>This assumes that wealth is a zero-sum game, so it can be traded around but not created.

And it very much is.

>It's hard to reconcile that view with the fact that standards-of-living have been growing, more or less worldwide, for the two centuries.

Those are not personal wealth.

Increased standards of living are a kind of background element, as they are more or less shared by the population. Statistically they even out, and only differences from them matter.

A guy living in a trailer park today, with a tv, microwave, electricity, some medical access etc, would be considered living like a king, compared to a 1600's peasant working in some feudal farm. That doesn't mean he feels (or is viewed) as such in our society.
blindhippo: you are hellbanned. Most readers cannot see your comments.
Sourcing.io
I just tested this (PHP 5.4) and I don't get this behaviour. In this example the two are compared as strings not integers so are not equal.

PHP does not automatically convert types unless you do something like this:

if( 33333333333333333333 == '33333333333333333334' )

But here the problem is the integer overflow not specifically the type conversions.
You are going to get weird behaviour no matter what you do because you don't have enough bits to store that number.

If you want to use numbers this size then you are going to need some type other than the standard int.
First, Daniel Ellsberg on why Snowden made the right call [0].

Second, if he were being charged in the correct jurisdiction, i.e. Hawaii, where he committed his crimes, I would agree with this sentiment. But no, he's been charged with crimes in Virginia, the backyard of the intelligence community. His peers are the American people, not the intelligence community. The government had no business bringing charges against him in another jurisdiction than the one he committed the crimes in. Doing so, shows incredibly poor faith, and a clear intention to get a conviction and harsh sentence by any means necessary, even if it means subverting how our justice system is supposed to work.

[0] http://www.washingtonpost.com/opinions/daniel-ellsberg-nsa-l...
It's a non-story to the mainstream media. Amazon said it was a temporary issue unrelated to Disney's request to stop selling it. Those who had purchased the movie and lost access had their access restored.
Hm that's a fair point.
I'd bet that the cloud will get very big for a while... and then it'll rain... ok, ok, and then native applications will take off.

But first, every thing will be on the cloud. And the move from the cloud into native will be caused by a set of really bad experiences.
Risk averse: why the UK or EU will never produce a Snapchat
Let me recommend DrRacket, it is an excellent IDE, and has great built-in documentation to explain what you can do. http://racket-lang.org/
Apple's demographic and target market consists primarily of affluent consumers (high discretionary income) who have a history of spending more than the average consumer for products without regard to quality or functionality. They are not representative of "most consumers" by any measure.
$100, done: now $6,105.00 of $500,000.00.
The NZ government continues to make payments to Maori (an indigenous people lostlogin refers to). Maori are in a socioeconomically inferior position overall, partly (largely?) as a consequence of European misdeeds less than two centuries ago. I think most people who know of the similar (but much worse) socioeconomic positions of the Australian Aborigines and native American people will probably agree making compensation is the right thing to do.

Suppose however that the Maori had a socioeconomically superior position. Would it still be the right thing to do to pay them for past misdeeds? Technically, I would say yes. Practically, probably not.

As an illustrative example, consider the way Chinese immigrants were treated during the gold rushes ~1850-1900. Though the situation is somewhat different; I'd contend that if Maori were being compensated only for past misdeeds, descendants of Chinese immigrants from that time should be also. (But of course Chinese people are in a higher socioeconomic group than Maori).

[Warning: speculation rife in the following paragraph]
So, the NZ government pays Maori because it's a politically acceptable (politically beneficial, probably) way to provide Maori with some stimulus to increase their socioeconomic standing. I expect that had Maori been able to summon the socioeconomic standing (and corresponding political power) earlier they would've received compensation earlier. Had they never had a relatively lower socioeconomic standing they may never have felt aggrieved as a result of wrong-doings and not pursued payment at all.

An aside: Another complicating factor in the NZ situation is that the legal basis of Crown ownership of NZ is somewhat shaky. There appears to have been some "mistranslation" that occurred in the Treaty of Waitangi, meaning Maori believe they are the sovereign owners of NZ, while The Crown believes it is.
> And, although it might be true that certain people just get kicks out of making money, science definitely tells us that certain things make us predictably more happy than others. So people who are irrationally attracted to hoard are just victims of uninformed biases.

While the statement on science is accurate, those kinds of results are statistical. So, it's incorrect to extend that result to every individual. While people who chase money may be statistically likely to be "victims of uninformed biases", not everyone will be.
Oh, that's not nice from us. Sorry.
Doubt it, but we could incubate people like Greenwald in every country. Find someone articulate, savvy and train them in tradecraft so that people in every country have someone they can safely approach.

Citizens of many countries don't have the luxury of knowing which journalists they can approach with their leak.
> Scala feels like the Perl of the modern era: there is more than one way to do it.

Scala is definitely a TMTOWTDI language.

> However, I think there's a reason Python and Ruby have overtaken Perl in the interpreted language space: Python values simpler solutions [1]. Ruby also values a certain type of beauty over Perl.

Ruby -- like Perl and Scala -- is also a TMTOWTDI language, its probably the most important thing it inherited from Perl (the one Perlism it isn't shedding as it grows.)

So, "Ruby and Python have overtaken Perl" isn't an indicator of something wrong with the TMTOWTDI approach.
(1 % 2) :+ (1 % 2)

Gives much more useful information than:

<__main__.Qsqrt5 instance at 0xffee4d6c>

In fact, it encodes the same information given by your __str__ with the added benefit that it can be read back into a Q5 value:

1/2 + 1/2 sqrt(5)

Of course, yours would be nicer to display to someone unfamiliar with Haskell's type constructors. No arguing that. But it's also clear that Haskell's derived show trumps Python's default __str__/__repr__.
> In what alternative universe is PHP a bad tool?

In the same universe where munging together logic and display code, or model and view code, is a bad idea. It's the same problem as using classic .ASP, except people are smart enough to not get all indignant when people point out how bad .asp was.

> It is one of the easiest to get started with

That's nothing special. It's trivial to get started with dozens of web frameworks.

> most documented

Most frameworks and languages are well documented. It's like you're bragging that you have the most well-vacuumed car seats, at a car rally.

> best supported

Again, this is nothing special. Most frameworks have IRC channels and mailing lists.

> for 90% of the things you see on the internet today.

90% of the things on the internet are so simple that you could easily use PHP for them, like blogs, simple forums, mostly static sites, etc. That doesn't necessarily make PHP a good tool. It just shows how you can easily do trivial tasks with mediocre tools.
It's 2013: 50% of software still calls strcpy
Yeah, focusing on boilerplate is not all that interesting in the long term. For large applications (which both languages aspire to), it makes more sense to compare things such as static vs dynamic types, mutable vs immutable, etc.

Though I guess there is some merit in having less boilerplate, as fewer lines written mean fewer lines to modify during a refactor/debug session.
Right? But the GP was asserting minimum wage is a willful transaction also. Actually if the laborers don't like their minimum wage, they cannot opt out of it either, they need to eat, pay for housing, and get medical insurance from somewhere.

It's absurd to me that someone would assert that Bill Gates is being dominated by paying taxes whereas these other people are somehow not being dominated by accepting a low wage in the same system.

Also Bill Gates has the resources to change citizenship if he thinks there's a better deal elsewhere. Many of these other people would not be financially able to move to another country and work there legally. So it's definitely more willful for him than for the minimum wage workforce.
My comment was tongue in cheek, but there is no way one would realise that just by reading it. I don't really think people should be hell-banned for it, being down-voted into oblivion would suffice :)
Well, there are also intangibles that nobody cares to measure, that matter a lot.

A 2013 "middle class lifestyle" might be far ahead a 1950 "middle class lifestyle" in pocessions, access to products, etc, but there are important differences too.

For example, in all likely the 1950 "middle class" family could get all they needed by only one person working. And that person work an 8 hour day, with benefits and security. He was also quite sure that'd he keep his job if he was half decent at it permanently. He rarely was in debt.

Today's middle class starts of with a large debt (college loans), both in the couple have to work their asses of, and are not very far from falling off middle class, should anything bad happen (from a market crash to a medical emergency).

As for the increased luxuries and such (compared to 1950), those don't mean nothing to them, as they are the assumed zero-level for all middle class in their time.
Twitter Article
I find it useful to ignore what motivations people have and focus on what they actually do. This is obviously a good thing - it was an immoral law and Turing deserves a pardon.

I also find it useful to not let the perfect be the enemy of the good. Just because Turing deserves even more honors and everyone prosecuted by that evil law deserves to be pardoned doesn't mean that we can't celebrate this one step.

Also, it's kind of selfish (even though he's dead) to feel that the conviction should have stood. This corrects an injustice, and it must be done, regardless of the arguable societal benefits otherwise.
When you mention that it responds at speed, what's kind of time is there between the word being shown and the answer?

Very impressive stuff :). Thanks for the detailed documentation too.
Google’s Schaft Robot Dominates Pentagon Contest
Being genuine here.

I agree with the general sentiment of the over the top outraged post you quoted but obviously, as pointed out, it is not the best way of putting it. However, I agree that people shouldn't need to be given a reason to not judge someone else for a variety of reasons, especially the number of judgments going on in his post. 1) that being on welfare and having a child is a negative 2) that a mother with a child on welfare should not own a smart phone 3) that children who are clothed shoddily are in some way affecting the children? The children do not know what is shoddy, us adults and out class biases place that on them 4) that a mother on welfare with a child who is clothed shoddily should not own a smartphone / mother neglects child because she can't dress her child well but has a smartphone.

So with those put out there. I find it personally difficult to read these types of posts because I am aware that even the slightest aggression or looking down on someone in an explanation of why you shouldn't say or think in that way generates massive controversy, as it is here, but in this case they is be overly hostile. And seriously, outrage is generated by people around these parts of the web for what they see as political correctness OTT but in reality it is a network of assumptions and judgements etc that create hostility, and I see attitudes such as the one this guy said he had before his brother pointed the flaws out to him as a problem.

So, my question which I have long windedly led you to is - how would you approach someone on this topic with the intention of persuading them that judgment is really irrelevant to any situation you are in, especially if you are judging people less well off than yourself.
What is Google Glass or how to start programming
Thanks for putting all this together. I recently find myself working with PHP again after last looking at it in 2003, and have been digging around getting up to speed.

All sorts of interesting things happening in this space, especially PHP-FPM and HHVM. The language design and code quality/organization capabilities may not yet be up to snuff with Python and Ruby, but the runtime options are as good or better.
Are Chromebooks killing off the Macbook?
How the Brain Creates Flashbulb Memories
Not really. He decompiled the code so it's pretty simple to figure out regardless.
While we're at it, how about you dig up some blog posts where someone switched to PHP after failing with alternatives?
Doctor Who: Aberdeen researchers reveal 'average' face of Time Lord
If Ruby has nice syntax then Smalltalk should be the syntax of the Gods ;)
Absolutely, I agree. I was just trying to say that hopefully, there's some intrepid coder out there trying to do this, and that we have a few people who have started. We'll see where they are in a few years. :)
Edward Snowden delivers Channel 4's alternative Christmas message
It still baffles me that whenever an article like this comes up, people still justify choosing PHP because of its ease of setup compared to other languages. Seriously? What are you going to tell me next, that you chose Ruby because the "Hello World" tutorial was 15 minutes shorter, than the Java one? Come on now.

Yes, the fact that PHP is easy to setup may explain its popularity, it doesn't however justify choosing it, considering that you may spend 2 or 3 days setting up a tool that you'll end up using day in and day out for the next couple of years, to do much more difficult things than just greeting the world on a blank web page.
Agreed, just as people can live today without electricity (by choice) they do so knowing that they are detached from society to a great degree, and that won't be any different from people who chose to live without modern communication tools.
Edward Snowden to broadcast Channel 4's alternative Christmas Day message
As always, the answer to posts with a question as the title, is no.
More a discussion about why not to use PERL than anything else.

Also, hire a branding expert - "moonpig" is awful in every way possible.
At the same time, this is exactly what we should expect of every American put in his position. And others were in his position before him, so you kind of have to shake your head that this wasn't disclosed sooner.

What I find admirable is the way he's gone about disclosing these documents in such a responsible and controlled manner.