skysight-inc/HackerNews huggingface dataset:
> The vast majority of people will be using this to watch movies they don't feel like paying for.

There's also a huge population of people around the world who get access to movies, TV shows and other media only after a significant delay and use this kind of services to get access to that media on the day it is released. Those living in the US may not realize it but there's no amount of money you can pay to get the hit TV shows on the day they are released in Europe and other parts of the world.

There's a pretty penny to be gained out of these would-be customers if the media distribution companies can figure out how to monetize zero day world wide distribution. It is not a technical problem to solve. Every day that this problem goes unsolved, the content industry loses money.

A little anecdotal evidence: out of the two american tv shows I watch, the other one can not be viewed from my home country at all, the other one will be available with a delay 6-12 months and a horrible dubbed soundtrack. Would I pay a reasonable price to get them on the day they are released instead of the clumsy torrent service I am using at the moment? Yes I would.
Easily solved with an extension method;

public static TReturn Try<TType, TReturn>(this TType value, Func<TType, TReturn> accessor)
{
if (value == null) return default(TReturn);
return accessor(value);
}

The compiler should infer the generic types for you:

var street = user.Try(_ => _.Address).Try(_ => _.Street);

Sure the syntactic sugar is nicer but the extension method's not that much worse.
I doubt meetings start with "who do we discredit this week?". After all, a company might be unlucky and hired someone with a conscience (or more profane: the slides end up in court through discovery at some point).

Make it "who are the main detractors and what is their agenda?" and you're fighting for a noble cause.
Well, it depends on what you consider regulation. If you take a broader view, like Benjamin Tucker did, you'll see they were in fact very regulated.
But that is making the case against such laws stronger!
Eddy currents are also used in exercise equipment with "magnetic resistance".

http://www.bicycleman.com/recumbent-exercise-bikes/images/Ma...
Adrian, 51.067064%
Even in Finland, with comparatively mild winters, cars have preheaters with timers, and most residential parking lots have an electric socket on each space for plugging cars in.
This looks really interesting, thanks.

I've playing with PLY* for fun, but I'd like to try something else in C without going back to flex/bison.

* http://www.dabeaz.com/ply/
Instead of running washing machines on electricity and then running on electric powered machines in gym, how about manually cycling a washing machine like this. You hit 2 birds with one stone.

Granted it's not practical in every household, but it's not a bad alternative for some.
That's true, but I'm not sure I get the point.
How many ways are to call a JavaScript from html?
Apparently Karan is female :(
That's quite cool - actually that'd be exactly what I want to host myself.

Not a fan of go (cough The stripe CTF made it again clear that go get isn't exactly what I want, ever), and don't want to build stuff on my box, but I'll certainly check it out. Thanks for chiming in!
Downloading Java with Java – the Longest Journey
am not going to use or support put.io - wtf, they want money..??!!
Your examples should be using single quotes for strings not double quotes. The latter are for quoting identifiers (eg if you named a table "select") and through an accident of SQLite history degrade to a string if no matching identifier is found.

+ is the SQL numeric addition operator. || is string concatenation.

sqlite> select 3 || 3 ;
33
sqlite> select 'a'+'b' ;
0
> In our push for polish we had a goal of never dropping a frame on high-end devices, and we mostly achieved that goal. The engineering complexity here is finding a way to fully utilize the multicore architecture of newer iPhones

Sorry… but all the app shows are a bunch of photos and a bit of text. Never dropping a frame on the most high end of devices isn't anything to boast about, To be honest for what it's doing it shouldn't be dropping a frame on any device in the past 3 years
Had that story already last week:
https://news.ycombinator.com/item?id=7111531

According to this version, Jobs was a leading figure in those payment-limitation-talks.
Indeed, free markets exist in our minds only - until someone uncovers talks and transactions...
Shouldn't accept that and a lawsuit is the right move. THIS is also a tool of the free market.
> Google has stopped being about "organizing the world's information" a long time ago.

Now they're trying to organize the world's money.
It's common enough that many crossings in the UK are protected with metal barriers. It's not at all uncommon to see those barriers bent and twisted where a car has hit them.

Sure thousands of cars can pass through a crossing every day with out on mounting the pavement. But road safety is all about improving the odds.
My concern with this is that they will have your credit card details / address information. At a later stage should they have a big legal problem (which I suspect they will) the lawyers will come directly after you. It's a great idea, and if it was for legal use only, but you know what people are really going to use it for!
Unity3D uses Mono(not .net) which runs on all of those platforms
Unblock Netflix, BBC iPlayer, .. anywhere in the world
Both of these statements are true but I don't get your point. Neither do I get why they're connected with "as", I don't see the implication.
I use Linq with a few addon assemblies to do stuff like this.
Yes, it is important, which is why affluent first worlders shouldn't hold them up as poster children for their pet cause of not wanting to purchase things.
Here in the UK, our emergency number is 999. Or you can dial 112, as that's the European standard, and we'd be daft not to implement it even if we hadn't agreed to do so. Alternatively, try dialling 911, which I understand also works and which was introduced to help children who grew up with US TV.

In any case, the phone won't actually dial the number even if you do type it in -- if you dial what it thinks is an emergency number, it initiates the emergency call setup, which is what lets you dial without a SIM and on a different providers' network. So a dedicated button is all that's required.

This does mean that there's a possibility that my phone and the PSTN disagree over what constitutes an emergency network, but as the phone gets its numbers from the SIM, which comes from my provider, which is regulated by the same people as make the rules for the PSTN, it seems likely that all the options will work.

https://en.wikipedia.org/wiki/Emergency_telephone_number
Hey! Someone uses showRSS! Glad you like it :D
Check My Torrent IP
Perhaps in a theoretical sense. In a practical sense, it is always the same people who are in favor of free markets that are also in favor of anti-strike laws and wants to undermine unions. You can't have it both ways. Either you are in favor of free markets and then you keep your mouth shut when a powerful union puts a blockade on employers who refuse to allow collective bargaining or you are not.
Sadly, this is only true on proper desktop cpus. For an example of a CPU that does horribly on RAW hazards, look no further than the Xenon CPU in the XBox360.
Is anyone actually using Rust in production? There's a lot of excitement around it in the HN echo chamber, but I'm not sure how far that translates to real world use.
You have to use heavy power rationing if you are on UPS. Devices on heating line are automatically out- Water heaters, refrigerator, microwave ovens etc. The lights run on CFL's whose power consumption is really low. I very rarely use TV during power cuts, unless I'm sure the power is sure to return in 2-3 hours.

The rest wifi modem, laptop etc are all lower power consumption devices.
Google Goes After Link Networks In Germany
Very nice written article.

So how does ANSI/ISO C expose those details vs other languages, as many claim to?
Would it be that strange for HN folks? I'd imagine people from this community would be willing to get the best, or at least the fastest connection available.

(I think I'm an exception, I have the lowest available option from my ISP, 40MBit)
This Is My Jam, the music-focused social network
I was going to write something like this. From my experience parsing a lot of CSV files, what's really tough isn't parsing data out of a nicely formatted CSV file, but cleaning and correcting the junk that is written into it. Sometimes I'd have to pass 3 or 4 different "correctors" and checkers in order to get an acceptable CSV file.
10 commandments of Egoless Programming.
What's the most bizarre result you ever encountered in randomised data?
if probability == "59.369936" {
probability = "?"
gender = "unknown"
}
H2 SQL has this functionality as well. You can specify CSV file at table creation. It can even mix regular tables and CSV. And it has nice web interface build in.
Well there is XSL and XQL (XML Query Language). There doesn't seem to be many XQL implementations, but this looks interesting: http://www.cs.york.ac.uk/fp/Xtract/. Also check xmllint and xmlstar.
That's what Apple does every 3-4 years but with much more expensive hardware. Any Mac computer will not be supported within 3-4 years. Why does Microsoft get in trouble for only supporting 10+ years for the same system...
These good engineers who are worth their weight in gold spend a lot of hours jumping through hoops to get Matlab to run in an acceptable time frame. And it makes it hard for anyone to figure out what they've done (with weird index tricks, for example).
Reminds me of the quite `rinced` Louis CK bit about the mainstream ignorance and disregard toward technology.

ps: The assistant made me laugh. Very ironic.
I used them before and I'm trying them again. They now seem to allow you to pick the best mirror available for you, so your ISP's peering is no longer a problem.
10 years of Facebook offenders
Addressing 2013
Nimble, Revolutionary PC Control Device
You are forgetting that the individual might consider the gender to be private information. Some people might want to use a different gender in different contexts. See the ESPN/Grantland suicide issue recently if you care/dare.
Is it faster to count to the infinite going one by one or two by two?
Do you use any kind of smartphone?

At least with my kindle, only the books that I bought via amazon and did not liberate from DRM are affected, so the risk is fairly low that it will nuke something really important.
Bushman Brothers Blind Eye UK Rock Band 
A Video teaser of song off new album.
Ok. Should we celebrate?
Here's a list of countries by number of broadband internet connections: http://en.wikipedia.org/wiki/List_of_countries_by_number_of_...

Now, if you like you can work out the intersection with countries that have access to a similarly complete selection of movies at comparable cost to what Netflix offers in the U.S.

You will quickly find out that your "handful" of people is in fact hundereds of millions of people.
The World's Smallest Engine Runs on a Single Atom
money/income != access to content
> Couldn't i have used the same time to torrent it?

You start streaming immediately if another put.io user already downloaded the same torrent.
A lot of this would fall into the category of "interview puzzles", i.e. they make the interviewer look clever and are utterly useless in helping hire the right person.

http://37signals.com/svn/posts/3543-google-uses-big-data-to-...

> And another one, completely useless in production code, but a nice puzzle to solve

Quite. I would prefer a job where I make production code not crossword puzzles.
I'm a bit confused about the concept of actors. Should I create an actor type for each table, and an actor for each row? They seem to be equivalent in some of the examples.
Poll: Do you download copyrighted media illegally?
I thought it might be interesting to get some numbers about this sensitive topic, as it is being discussed in the Put.io post.
'I would prefer not to comment'
Ask HN: Is there any comprehensive(ish) Bibliographic API?
I've been trying to build a citation manager/generator as a side project. I've been stuck on data fetching issues for about two days now because nothing seems to have the detail I need.

I have played with the google books API, the WorldCat OCLC API, and Amazon API. There seems to be no reliable way to get all the information on a given book needed for citations via API.

If translators or compilers are even included in the response data they are listed as authors in OCLC. Google Books doesn't bother to include the city of publication and (as far as I can tell) doesn't include non-author contributors, and while I would love to use Amazon (in order to capitalize on the affiliate links more easily) they don't seem terribly invested in providing data about their books in any meaningful way.

Does anyone know of an API/process whereby I could use an ISBN or similar industry identifier in order to get accurate and complete information on a given book?

If I can't figure out how to differentiate contributors into authors/translators/compilers/editors then I will have users mark them as such and maybe take some sort of "vote" from contributing users for the default assignations, but it's less than ideal. I want to make it a one-click bibliographic-info generator, but this is seeming less possible as I go on.

Any help would be greatly appreciated, thanks in advance HN.
"we never look to previous solutions and research"

That's something I see as the sign of a poor / inexperienced developer. Assuming they can do something better than an accepted well tested solution.

Also why I can't sop far get too excited about NoSQL, its the same as Berkley DB was years ago more or less, no?
Fun, although you might want to state it applies to the US only
Timely question, I'm considering doing the same for a project I am working on now. Could you turn it into an app with a recurring SaaS component (e.g. I will make the app available on github & for free on the App Store, but require payment for server-side data storage)
Nice try, Mister Big Corporation.
Keywords are quite easy: just plug your identifiers into the hash table after their boundaries are detected. Again, it is much more expensive than generating a FSM, but the expense is really in the noise when everything else is considered.

As for incremental lexing, you need to tell if your tokens pre-existed as the same kind (not necessarily the same string!) before the edit or not. It would be trivial to add this to a generator, but how would it then feedback the signals needed to take advantage of the memoization (e.g. by providing a persistent token ID that can unlock pre-existing information about the token). There are simply no standards for that.

In most of the professionally written compilers (e.g. scalac) I've worked on, lexer and parser generators aren't even used, and it really isn't that big of a deal to write these in code; you also get the benefit that the same language is being used. This becomes especially true when IDE services are considered, whereas most generators are pretty much limited to batch applications.

> I have also written my own hashtable for many reasons, but I would never sit down with an array literal and manually put the entries in there by hand: even if I don't make any mistakes, it is a pointless waste of my time that is trivially automatable using a computer.

I see your point, but it really depends on the key space you are optimizing for. You might just put the elements in by hand if a generic algorithm isn't really called for.
Considering that diamonds are basically worthless[1], I don't think that's helping the point you're trying to make.

[1] http://www.theatlantic.com/magazine/archive/1982/02/have-you...
Yes and no.

I download copyrighted media, without consent from the copyright owner, and without paying. However, here in The Netherlands, this is legal. Only uploading and hosting copyrighted material is illegal.
If a $20 DVD isn't affordable, $20/mo internet isn't. (I'm also fairly skeptical that your average DVD movie is $20, as though that's the absolute lowest you'll ever pay.) Movies aren't a God-given right, so it's not like you deserve a set amount of movies per month.

Even then, while that situation is certainly more excusable, you're still the minority. That site isn't made for the Eastern European lower class who can't afford to buy a DVD. It's made for folks who have the money (which means they can purchase and maintain a computer as well as a monthly internet connection) but who don't feel like spending it.

Plus, I'm fairly sure iTunes has movie rentals in most Eastern European countries.[0]

[0]: http://support.apple.com/kb/ts3599
So it's ok to post links to third party instead of the original content now ?
here's the link to the video instead of this portal profiting from it: http://www.youtube.com/watch?v=keMpUaoA3Tg
Pyramid Wallet – Pocket Luxury for Those Who Love to Personalize Their Own Style
Custom handmade goods have always been a modern man’s forte, especially when it brings that exceptional touch of royalty to their personal style. It’s typical human nature which calls for that added zeal of personalization in every product that they wish to buy. From furnitures to attires to even phone covers, we always tend to choose the ones that are unique and only possessed by us.
At coursera.org, there is an excellent resource for learning about compilers: "Stanford University - Compilers"
The netmarketshare link in the article states

> This report lists the market share of the top operating systems in use for browsing (not servers). This data is derived by aggregating the traffic across our network of websites that use our service.

Which isn't all that helpful, as it doesn't say what the network of websites consists of.

I would imagine that, with the approaching death of XP, many organisations still stuck on XP are shifting from desktop apps to browser-based apps wherever possible, in order to smooth the transition. This would lead to a rise in traffic from XP machines to SAAS sites.
Nice try, RIAA/BPI
Some people have asked about how these optimizations fare with different compilers. Do the "optimizations" hurt as one changes compilers? Do they help? Do any of them manage to vectorize?

Here's some data:

http://lolengine.net/attachment/blog/2011/9/17/playing-with-...

Intel(R) Xeon(R) CPU E5-1620 0 @ 3.60GHz stepping 07
uname -a: Linux 3.5.0-41-generic #64-Ubuntu SMP
clang++ -v: clang version 3.2
icpc -v: icpc version 14.0.1
g++ -v: gcc version 4.7.2:

Compiled with "-std=c++11" plus the options mentioned in the names. At a glance, all versions produced the same results to reasonable precision (no gross errors). "-ffast-math" only worked with g++, and did not offer substantial improvement, so I've omitted it from the tests.

g++_O3 icpc_O3 clang++_O3
sin: 18.193 ns 7.0174 ns 14.6862 ns
sin1: 22.5272 ns 8.0225 ns 9.6777 ns
sin2: 14.9128 ns 4.7247 ns 7.1016 ns
sin3: 18.943 ns 5.1121 ns 6.169 ns
sin4: 13.9225 ns 4.8979 ns 5.6666 ns
sin5: 14.2042 ns 5.0435 ns 6.3257 ns
sin6: 12.2543 ns 4.2955 ns 5.2681 ns
sin7: 11.6969 ns 5.0538 ns 5.5793 ns

So yes, these optimizations can still have a positive effect, but generally less than that of using a better compiler. In this case, that means if you care about performance use Intel, or if not possible, use CLang.

But what about vectorization? Perhaps the compiler can do a better job if you let it make full use of modern SIMD:

g++_O3_mavx icpc_O3_mavx clang++_O3_mavx
sin: 18.1148 ns 3.7879 ns 14.1987 ns
sin1: 22.3675 ns 6.4376 ns 9.2589 ns
sin2: 14.5665 ns 3.2823 ns 6.2089 ns
sin3: 18.3841 ns 3.6652 ns 5.2409 ns
sin4: 13.0917 ns 3.0374 ns 4.9839 ns
sin5: 13.1144 ns 3.598 ns 5.177 ns
sin6: 11.7605 ns 2.8766 ns 4.2239 ns
sin7: 11.4222 ns 3.3261 ns 4.612 ns

Yes, it looks like Intel gains quite a bit from vectorizing the result with 256-bit AVX (4-wide for doubles). If you care about autovectorization, use Intel.

This performance here generally matched my expectations. I have no affiliation with Intel other than having a free academic license, but find that in general their compiler offers better performance than GCC or CLang. In this case, Intel's best (sin6 with AVX) is 4x faster than GCC's best. I'd usually expect something more like a 20%-40% improvement, but vectorization is one of Intel's strong suits.

For those who wish to explore the reasons for the difference in performance, here are the results of 'objdump -C -d' for the functions in question:

g++_O3: http://pastebin.com/VstqvcHJ

icpc_O3: http://pastebin.com/3LjtXAhS

clang++_O3: http://pastebin.com/aSyCyULh

g++_O3_mavx: http://pastebin.com/81vYueEp

icpc_O3_mavx: http://pastebin.com/XRdCuusV

clang++_O3_mavx: http://pastebin.com/KJqUpUBE

Personally, I'd be very interested to see what an experienced x64 SIMD programmer could do to improve these further. My usual estimate is a further 2x, but I don't know how well that applies to this case. I'd also welcome analysis of the code produced by the compilers.
"sent to Lastpass" is enough to disqualify it for me.

http://www.techdirt.com/articles/20130620/15390323549/nsa-ha...
Goodbye WordPress: 2014 Will Be the Year of the Flat-File CMS
I will certainly do it. Thanks for the tip!
Apple
engineers get paid below the
market average HENCE they work at
one of the most profitable
companies of all time
The point isn't that they are from two different categories. The point is taht both of them are iOS apps! So the case exists.

As for Apple Computer and Apple Corps, obviously Apple never tried to be a Record label company. But when it started moving its operations into the music industry (i imagine that was the itunes time?) it got attacked by Apple corps. Before that it was peaceful co-existence. After that, it was Apple computer paying Apple Corps to keep its mouth shut and not bitch about it
That really does nothing to disprove my point that people who can't afford movies (either purchasing, or importing, or renting in iTunes) are also extremely unlikely to be able to afford broadband internet and a modern computer and be knowledgeable enough to handle a cloud-based torrent client.
I find that much less readable than S-expressions. Well-formatted S-expressions actually make it pretty fast for me to find what I'm looking for in code, probably faster than in C-like languages - and I mostly use languages which are more-or-less C-like.
I wonder if that effects the number of people using Torrents, as those constantly upload while they download.
Am in Aus and experienced 43c this summer, and have been on a husky safari in Lapland at -40c.

I can't recommend a husky safari enough:

http://www.harriniva.fi/en/destinations/harriniva/programme-...
'The Hacker News' Magazine – Relaunching New Editions – The Hacker News
If she was so happy, why did she come back to the US?
I'm Italian, my name is Gabriele and it classifies it as female. That's wrong. In Italy, Gabriele is a male name. I agree that this is useless without location information.
India – e-retail vs r-retail
Angular documentation is awful, and its one of the most popular out there.
I hate to be that guy. But this reminds me hysteria around DDT, now it is estimated that DDT ban is responsible for 20M deaths due to malaria.

But how strong is link between that chemical and negative effects? This guy works on this for 15 years, other confirm his result. But there is no lawsuit or anything which requires strong evidence.

Also the lethal dosage is 3 grams/kg for rats, that is far from poisoning. In EU it was banned not because of toxicity, but because it degrades slowly in ground waters.