skysight-inc/HackerNews huggingface dataset:
I've made the switch on the code I write at work from Python 2 to Python 3, and it was far less of a hassle than I feared. Unless you're using a package that doesn't work on Python 3 (which isn't the case for me; NumPy, SciPy, pandas, scikit-learn, etc, all work fine on 3) or worrying a lot about Unicode, it isn't that difficult (in my experience) to write code that is compatible with both 2 and 3.
TIL that the "bite" out of the apple logo is actually the curve of the overlaid "a" of the word apple. (See headed notepaper pic.)
I try to use it on new projects. I don't have any reason not to.

I really hope Perl 6 gets some adoption, it sounds like a great language.
Boeing 787s Can Lose Control While Flying Due to Software Bug
> As described in Section 3, our prototype uses a loadable kernel module to [allow the GPU to monitor the keyboard buffer]. We should note that this choice was made only for convenience, and the same stealthy approaches that are typically used for the installation of kernel-level rootkits can be employed, e.g.,by exploiting a vulnerability and injecting malicious code directly into the kernel.

I'm not a security expert, so could the binary kernel module for the NVIDIA driver be exploited for this effect?
One data point: the smartcard library https://pypi.python.org/pypi/pyscard is still not Python 3 compatible. Six and a half years and counting.
I wonder if Typescript will serve as a lesson to us all. It feels like the next generation of JavaScript, and (can) compile to ES(really old) without adding too much ugly Dart-like cruft.

Another interesting subject only slightly touched on here has been the degree to which Perl 6 features have been slowly rolled in to Perl 5; maybe Perl 5.30 will look a great deal like Perl 6.
PM of Singapore Shares His C++ Sudoku Solver Source Code
UI design – 10 steps for great user interfaces Pt1
Congratulations, you have just made pseudorandom generators a bad decision.
A history of human-powered cranes
Radical Approach Fixes Many iTunes Sync Problems
If you're doing that, even better to use "x${1}" to be safer. Also, conditional expressions ( [[ instead of [ or `test`) are generally a bit more well-behaved. See http://wiki.bash-hackers.org/syntax/ccmd/conditional_express... for more info.
Our new understanding of Human Cat communication
I wonder if they are moving in to video steaming anytime soon.
Tech companies did not steal your business, the customers did
Face recognition, speech recognition, machine translation, text classification and more don't exist?
I still go to Yahoo!'s home page on occasion. It is a reasonable way to find interesting things to read for a few minutes. While I don't feel like they stack up to, for example Google, in providing useful services, I would like them to do at least OK financially just as a bit of competition and an alternative. In general, I just don't like the winner take all alternative to a rich ecosystem with many players.

BTW, one thing about the article that has nothing to do with Yahoo per se: their experience that HTML5 is not effective enough for mobile apps. I really hate the pressure to install a lot of apps on my Android phone and iPad. I would like to see HTML5 to be the dominate platform for content and web applications, but that is probably not going to happen.
What do you mean it exists? How do you definite AI? Can your project reason with you? Or is it simply an Input-Output type of program? Just because you use natural language with it instead of punch cards doesn't mean it is intelligent.

People tried to do AI in the 60s to 90s era. It is dubbed symbolic AI. It didn't work out. A good chance that it never will. Today machine learning algos and a bunch of automated statistics is called "Artificial Intelligence". It's not intelligence at all. Intelligence implies something more than I/O computation.
I think the author is mischaracterizing all of these examples; none of them are "second systems" but major revisions of software with large install bases and no built-in update mechanism. They are reliant on distributions and third parties to provide any form of automatic update; oftentimes the upgrade path without distribution-level support is painful for an average user.

Certainly, in the case of PHP, it was a very painful process to get major adoption of 5 - especially as so many of the users are reliant on managed hosting. It took a long time for the install base to grow there; PHP 7 will similarly take a long time to get up there. At least the decision to scrap 6 (a decision also taken in light of all of the literature out there describing the features of 6) was a pragmatic one; PHP 7 is now just around the corner.

What the author is describing are two general problems for any software development where there is a large install-base: development cycles and release management. Just look at uptake numbers for operating systems for an example as to why this is absolutely not a problem confined to scripting languages or even OSS software: http://en.wikipedia.org/wiki/Usage_share_of_operating_system...
I don't understand what let has to do with functional programming though (enclosing a variable within if () {} instead of function block etc). Do you mind elaborating?
Again here conditional expressions should make this a non-issue ( [[ instead of [ ) since the stuff inside doesn't get parsed the same as general input. See http://wiki.bash-hackers.org/syntax/ccmd/conditional_express...
sigh.. yes, == can be weird. get over it. any php dev worth anything knows to use ===
Downloads (All Versions):
0 downloads in the last day
0 downloads in the last week
0 downloads in the last month
Interesting. I hadn't heard about that.

How much is known overall about the 'taxes' that the mobile players pay each other? The lawsuit timeline is pretty crazy: http://en.m.wikipedia.org/wiki/Smartphone_patent_wars
That is probably not what their meant, but if you are able to exploit the blob of the nvidia driver, then yes.

But you are already able to load a module into the kernel, then you already have root level access and other, easier, options are open for you.

Because modules can be easily listed and therefor monitored, a change of the modules could trigger an alarm to the admin. So it isn't really stealthy either.
I've put it on GitHub in case this is ever removed. :)

https://github.com/Doppp/LHL-Sudoku-Solver
I take you example of the broken computation:
v1 = v0 * (t1 / t0) - a

A smart lint system with a vocabulary for physics programs could know by convention that a name t means time and 0 and 1 means index and that in context of time the greater index means a step ahead in time. (At least this is what 90% of humans would assume). So it could infer t1 > t0 and check that at runtime in some debug mode.
Maybe there are valid cases where t1 < t0 but then this naming introduces under guarantee false human interpretations of the source.
The lint system should model and check against the typical human interpretation of names.

This does not detect the above wrong computation but it could help find errors without writing a test for every function.
Check out which types those examples get cast to and it should make more sense :) I don't know the exact rules for type detection in PHP, but it looks like that's the cause.
I think its quite a clean template
Reminds me of Traveling Salesman (2012) [1], also set in P = NP and discussing the ethics of selling the algorithm to the government. (Literally discussing, it's a low-budget 4-men-in-a-room movie).

I can't say the whole film is worth the time, but I really loved how in the first minutes it establishes it's alternative history by a single sentence: introducing a scientists who "in 2008 was awarded ... the fields medal for his proof of the nonexistence of one-way functions"

[1] http://www.travellingsalesmanmovie.com/
Here's an offtopic thing which annoys me and many people do wrong. It is important to do significant figures right.

2.28 GW is the most you should ever write with that calculation. What you wrote went down to hundredths of a watt (if I can count).

Nobody should care about the third significant figure in such a comparison, much less the twelfth. The second digit is even of questionable accuracy. Strict significant figure rule following isn't important in casual contexts, but deciding which digits are actually relevant is imporant. Is accounting for leap days really important here?

Also, the output is roughly the installed maximum capacity of the Hoover dam, but about 5 times larger than it's actual yearly production.
Also worth mentioning is FIDO U2F. More convenient and more secure than TOTP.
Prime Minister of Singapore codes Sudoku solver in C++
What does Java do differently that it doesn't seem to have adoption problems?
So it's a software-as-a-service service? ;)
> The likelihood of generating a hash value with that kind of prefix is 2 in 65536.

The prefix is not sufficient though, the suffix must be entirely decimal otherwise it's not a valid number in scientific notation.
You can tunnel through stenography, but it's very slow.
Many if not most PR and media planning companies advise corporates on digital marketing without actually doing design and build in-house, and it's not too difficult to sell design and build as part of your services whilst passing the implementation of the project on to a partner company or contractor. Digital agencies that specialise in more technical projects tend to liaise with corporates through largely "non-technical" account directors rather than developers or analysts anyway. Ability to sell your services is far more important than technical skill for most consulting roles.
90% of Java 1 code works on Java 8.

There are still enterprise apps stuck on Java 4, 5 and 6.
can you please provide me the data in somehow reproducible form (I have no clue how to use all the tools you mentioned for example), ideally as a .tar.bz2 file somewhere I can download and run without any prior knowledge. I'm happy to improve pypy for that particular use case.
Definitely.

We should think about an innovative business model or employ traditional non-profit funding methods. You can e-mail me at phil@philippnagel.com if you wish.
You're right, I don't see the point of Netgate C2758.

However, this is a different design: http://store.netgate.com/ADI/RCC-VE-4860.aspx
What awesome things has Yahoo done as a company since MM took the helm? I'm not saying there aren't any, I just can't think of any myself, and I'm guessing I'm not the one curious about what changes they're making.
You're in a thread about how PHP's type coercion can easily cause a serious vulnerability. So, the title of this thread is your second example. If you want a third example, find it yourself.
We train them that way the internet is scarce, closed and walled.

The Internet used to be scarce, closed and walled in the US and Europe. People adjust to the new conditions as they develop.

A DSL line and a wifi router could cover a whole village and give the real deal.

You write "a DSL line" as if India wasn't a 3M km² country and with huge areas without even central electricity supply. What would be the cost of installing "a DSL line" for the 600k+ villages in India?
When you do this, the type system should reflect the fact that function has changed it's signature from `A => B` to `A => MaybeDoesntReturnOrHasLatency[B]`. Then the compiler will force downstream clients to take this into account, preventing weird hard to debug errors later on.
But [[ is a bashism - it won't work on bare sh.
More importantly, bytecode produced by old Java compilers still runs on new VMs.

I believe that if Python 3 had been able to call into Python 2 modules (even by embedding CPython2) adoption would've been better.
It doesn't break compatibility. (Almost) ever.
Meaning that (almost) all the code that used to compile on Java 1, or binary code compiled with the JDK 1.0, still works with the JDK 8.

(It's the main reason why generics in Java suck, btw: extreme backward compatiblity.)
Show HN: OnTime? Crazy game for crazy guys
I worked on one such app that went to production a month ago. Java 6. :'(
"To date, many engineers, designers and user-interface experts have worked hard to make reading on an e-reader or tablet as close to reading on paper as possible."

The approach is wrong. Most of us have not left the physical objects behind. It's still too soon. It's like wanting to use an iPad with keyboards, it's "wrong".

I don't use page turning, or page by page, taping left or right. I use scroll. And despite what I read, to me it's the best. I don't have to move my eye or my head. It's the text that moves. I also chose the font (Verdana or similar whenever possible, I don't like serif fonts).

Because of the problem with the lights coming from the device, I use the sepia mode (white on black is also not good). That's is also one of the reasons I don't like the bigger iPad. The iPad mini is the ideal size, as the kindle, I suppose. I don't like to have or carry many things, so now I only use an iPhone plus.
There's nothing that will convince the Python 3 haters. So silly. I use nothing but Python 3 and I rarely if ever find I can't move ahead for lack of a library. The Python2 only libraries are just being replaced with more up to date alternatives. This article is total FUD and garbage from yet another Python 2 ideological holdout dogmatist.

This article would have you believe that if you tried to use Python 3 that within hours you would hit a library roadblock that would be a showstopper. Completely wrong, and you have to ask why the author wants to create this perception.

Python 3 works beautifully and is a pleasure to program.

If you WANT to hate Python 3 then you'll find no lack of ways to hate on it for the next 20 years (HEY! I found some package built by a fellow Python2 holdout! See, it simply is not possible to write the code to upgrade it! PYTHON 3 IS FINISHED! THE SKY IS FALLING!) etc etc ...

If you want to succeed with Python 3 then that's easily done, you just get on with it.

No one using Python 3? Flat out lie. Prove me wrong by scientifically explaining your assertion that no one uses Python 3. Lies, spoken to back the wishes of the Python2 holdouts to sabotage Python 3 - they hate Python 3 and will say any lie to bring it down and spread the FUD. I'm wrong? Prove it in detail with science. Alternatively make vague, handwavey statements about downloads, as though that defines how many people are writing code today with a language.
A cache too big to fit in memory
Can somebody please point me to the technical guidelines section? The link mentioned[1] in the original article[2] is giving 404.

[1] https://www.facebook.com/docs/internet-org/platform-technica...

[2] https://newsroom.fb.com/news/2015/05/announcing-the-internet...
https://news.ycombinator.com/item?id=9484757
I have my problems with the Python 3 implementation. Unicode is great, but standard library APIs should understand each other without the need to call decode.

I like the way the change was rolled out, though:

1. Find a defined amount of cruft that needs to be fixed backwards incompatibly, so you do not take 15 years for it or fail completely. Release a new major version.

2. Make one or two minor releases to the older version to ease the upgrade.

3. Then STOP developing the older version, work with the community and perfect the new version to get everyone on board.

I think it is the perfect middle ground. If you do this constantly you will not have the need to change everything at once and will also not amass cruft.

The problem with the justification of the author for 15 years of Perl 6 development is, that Perl 6 will have issues, too. Are you going to change them all at once again and take another 15 years for Perl 7?
An installation that has to provide power during clouds and night time has to be a multiple larger as well.

It's smart positioning by Tesla to show solar power for the factory but it certainly will still be connected to the grid.
Any cache that is provided by an external process, or even by a remote machine, such as memcached.
My weird code commenting style based on HTML tags
Once I wrote a little PHP application to manage a clan in a browser game. I used an MD5 hash as session id that I checked with
if(session_id)

When users started reporting that their logins would sometimes not work at the first time, I found out that strings that start with zero are coerced to 0 and then interpreted as false.

Never used PHP for anything important since.
The New Version Datumbox Machine Learning Framework
I guess I should clarify and say "What sort of a cache would use IO and make a pure function impure?". Even if the cache is so large that it doesn't fit in memory, its behaviour would still be referentially transparent.
What about IDE support? Like an Android Studio plugin?
No problem - these replies practically write themselves. I usually have a good idea what I am going to write even before I read your next evasion, and you keep giving me new material to work with.

A case in point: your attempt to claim that eslaught's explanation is irrelevant. Of course, it is not - characteristically, you have offered no counter to my explanation of how it gets directly to the point - and of course you were not thinking it was irrelevant when you tried to argue that it is marginally more complicated than your approach. Only after I pointed out that by doing so, you had tacitly admitted to a complete reversal of your position, did it occur to you that it was a mistake, and decided that you would have been better off claiming that the explanation is irrelevant, even though that claim won't stand up. So instead of expunging one of your inconsistencies, you have added another case where you contradict yourself in attempting to rewrite the record.

You also claim that this isn't what you were thinking of. Well, if you didn't think through the full scope and implications of what you were writing, that would be yet another mistake on your part, wouldn't it? We are, however, now entitled to wonder why, precisely, you think you can retrospectively rule this explanation out. As I wrote before, until you can demonstrate the integrity of committing to something definite that you will not attempt to rewrite later, there's no reason for me to post an explanation here.
Finish – Project management without the clutter
The link should be https://developers.facebook.com/docs/internet-org/platform-t... (they used "www.facebook.com" where they should have used "developers.facebook.com")
Do the batteries leave the factory charged or discharged?
Using dynamic generated certificates with Nginx
Remarkable. He uses lots of bitwise operations in the application.
Saying that the choice is between partial access or nothing at all implies there can be no other option. Also something is not necessarily better than nothing; especially when that "something" influences societal norms or establishes powerful relationships.

Let's say everyone in a small country has to travel 10 miles every day for work. They can walk the 10 miles or sign up for a free car. You might say it would be cruel to deny people the option of a free car, especially if they see nothing wrong with the terms and conditions. But what if the cars can only tune to radio stations that peddle the same message? So what, it's free, right? Well, what if there are no seat belts, air bags, or turn signals? At some point it's conceivable what began as an obviously good deal can actually bring a lot of harm. Given that this particular deal requires no SSL, I don't think this car analogy is that far off.
An unusual little feature is that assignment returns the old value of the target, e.g. a = b returns the old value of a, so that a = b = a just swaps the contents of a and b.
You are mistaken: my guess is that you are taking the square root because of the birthday paradox, but that is incorrect, and the birthday paradox does not apply here anyway.

The probability of generating a hash with the right prefix is 10 in 16^3, or about 0.25%. Finding a 0e... == 0e... collision has probability ~6e-6, if both inputs are random. The chance that two hashes collide in this way given N random inputs is 1-(1-p)^(N-1), for N>0.
>> "When the data speeds in both directions — downloading and uploading — were the same, there was a lot of electrical interference that slowed data traffic to a crawl.

>> ... such meddlesome interference — known as electrical crosstalk — could be drastically reduced if the download speeds were far faster than the upload speeds."

Cool, so DSL is prevented from increasing the upstream traffic by the physics - not a matter of upgrading the 'boxes' at each end of the wire.
I think you might need to look into what the Russian and USA nuclear arsenal might do if used evenly across the world. If this does not convince you let me introduce you to the cobalt bomb [1].

1. http://en.m.wikipedia.org/wiki/Cobalt_bomb
I've heard this too and it's a great way to demonstrate you don't really know what statistics is :)

Statistics is not (just) opinion polling, there's a lot more to it than estimating observable properties of a population.

If you're trying to make decisions, predictions or estimates which involve any uncertainty at all (and in my experience big data almost always is), then it's definitely within the purview of statistics even if you have data for the whole population.

Sources of uncertainty include trying to say anything at all about the future (do you have data on the future population? no didn't think so...), trying to make predictions which generalise to new data in general, trying to uncover underlying trends or patterns behind the data you see which aren't directly or fully observed.

Often people expect big data to be able to answer big numbers of questions, estimate big numbers of quantities, or fit big, powerful predictive models with lots of parameters. In these cases statistics can be particularly important to avoid reporting false positives and to make sure you can quantify how certain you are about your results and your predictions. (Amongst other reasons).
> unless Yahoo gets mobile right, right now.

The people getting mobile right are those making dinky little apps and then selling them for a billion dollars or more.

Yahoo is buying apps and websites for billions of dollars, and it is unclear if it has been able to leverage any of these purchases. It is just making others very, very rich.

Google and Facebook can spend billions on acquisitions, and then use them to enhance their already booming business. But simply enhance, not rescue - Facebook did not buy Instagram because it was on the ropes - it bought it because it complemented its existing killer product, and in hindsight was a bargain. And for Facebook and Google, a billion dollars here and there is a small investment.

Yahoo is trying to dig itself out of a deep hole of irrelevance with all these purchases and acquisitions - and I have not heard of many such success stories. In reality, I think I have heard less of Yahoo in the last couple of years than the years previously, and the ONLY times I have heard of it was either on their latest acquisition or something about Mayer. I mean good luck to them, but time is running out.
It has become a basic logic/reasoning test : is coal/oil production and use a net positive or negative?

Many people, particularly starry eyed young ones fresh from academic nurturing, fail the test badly.
That's what I saw, plus the description mentions Windows 2000, but if you go to the SourceForge page:

206 Downloads (This Week)
Last Update: 2014-12-13
The fact that you need to specify a third, optional parameter to get sane output out of a really basic function is still pretty rant-worthy.
Sounds like a nice idea, but without being able to see much of the app I wouldn't even try it. Even in the video on your site there is nothing to see.

I don't get the "There is no need to create an entreprise app store" either. I don't think your product solves that problem at all.
Only those of us with a Y chromosome :P
The prefix is sufficient. Any hash matching /0e[0-9].*/ works.