skysight-inc/HackerNews huggingface dataset:
I'm not interested in even playing any more. Like I said, I haven't used Python 3 before today (after 18 years of programming Python). I would have cared, for example if Python 3 had any impact in the real world. Anyway, it took years for numpy support; it wasn't available until recently for python3. That's the problem: it took years before these common tools were proted.
Binary Trees with Javascript
Well doing long range wifi attacks is not that difficult (dependent on how the target does authentication) certainly achievable by any interested amateur - with a parabolic or yagi antenna I could probably knock something up in a day given los to the target as I have a 200mw wifi adapter some where in parts collection.
"More than a dozen engineers worked throughout the year on this hack, with a goal of creating a collaborative space where friends can share photos from weddings, reunions, vacations, and other can’t-miss moments."

To me this seems to be yet another dilution of the word "hack" which (as I understand it) has the connotation of doing something quick and dirty.
You already carry a cellphone, I presume.

Also, I am against most forms of gun control, being otherwise very liberal in my worldview.

However, I cannot possibly understand why a developer would need to carry a gun at all times. You are inviting trouble with that, and more likely to die to your own gun than you are to protect yourself from some bad guys.

If you want to carry a gun with you, I support your right to do so. But it's the objectively wrong play.
When delegating… consider quality, maintenance and learning
such pointless. many stupid. wow.
That's pretty cool. Somehow I wish there would have been app stores back then when I was 15 and making games. Not to earn money but to get people to play my games - which was pretty damn hard back in 1997.

Nowadays you can get 100 users pretty easily just by releasing the game. 100 users back then was something I dreamed about reaching some day :)
Hacking the New Year’s Resolution: Microtasking and Social Accountability
Please. There is quite a difference between not using third-party tools/libraries, and (arguably) not programming at all.

I mean, the tool's tagline is "Create Games. Effortlessly."

This isn't an attempt to put the OP down, but let's keep things in perspective.
> Actually, there are some minor performance increases

And apparently some fairly major ones (e.g., decimal in Python 3.3.)
accidentally upvoted. but why did you even bother posting that?
(I'm the author.) Thanks for the feedback. I agree that the statistics are emotional and not completely translatable to productive time, though I do think the numbers are still significant. Specifically, I think these types of savings compound, so that if you can save one minute of time on each of a 20 daily tasks, then at the end of the day you could have an extra 20-minute continuous block, which is much more valuable than 20 1-minute blocks.

Re: .05% -- I personally think mentioning GPD is useful because .05% sounds fairly trivial, but .05% of the GPD is still something like eight billion dollars, which is a very non-trivial amount.

Finally, I really like the philosophy of the blog post you linked to, but I think it's talking about a slightly different point. The examples I gave are about a single organization doing something that saves an aggregate of millions of hours or millions of dollars; they are not about trying to convince millions of individuals make a conscious choice to each save one dollar or a few minutes. In the language of the linked post, I would consider the latter to be a million minnows while the former is a single shark.
> perfect choice for non-professional programmer (even woman)

It's 2013. Could we please leave 'so easy even a woman could use it' levels of sexism behind us?

(Not to mention - it's a little silly to single out web frameworks as the One True comparator of two languages. That Rails is more popular than Django does not necessarily imply that Ruby is a better language than Python, any more than the fact that SciPy is more popular than SciRuby implies the reverse).
Note to those from the future: The submission has now been changed to link to this. It used to link to http://www.theatlantic.com/politics/archive/2013/12/feds-pai... under the title "Feds Paid a Teen to Get a Neck Tattoo of a Giant Squid Smoking a Joint"
That is almost exactly like some code I have written in a project and at that time it did it's job. After revisiting the project months later after I have completely forgotten the details, I got frustrated over the macro and what did it actually do( even though I have written it ). It took me some time to track down the macro definition and convert the code in my head to understand it again. But if the code would be simple C as in your first example I wouldn't waste time on it.
The NSA Intercepts Laptops Purchased Online to Install Malware
Is is actually recording beats live, and then mixing them in playback immediately after?
Please don;t interpret my comments above as ignorance. I am quite aware of what is available (and was available, when I considered switching to python3). I did my research at the time (which was some 5 years ago). It looks like scipy was added about 3-4 years ago... at which point I don't care any more.
Right. A figure could be more intuitive. But the algorithm is tricky itself anyway...
I heartily recommend using concurrent.futures. It is a standard part of Python 3.2+ - http://docs.python.org/dev/library/concurrent.futures.html - and you can get it for other Python versions - https://pypi.python.org/pypi/futures

Behind the scenes it uses multiprocessing and/or threading plus queues etc. I have a function that adds command line arguments (number of workers, use threads or processes, debug mode) and then another that returns an executor given the command line arguments.

The debug mode forces a single thread and is intended for when you want to run pdb as multiple threads/processes make things considerably more complicated.
> The first block of code seems more readable to me than the second. I'm used to seeing the first; it's idiomatic C.

The benefits of the macro (IMO) aren't obvious from the example I gave. Like I said, I'm currently working on a personal project where macros have been the saving grace. Attaching a conditional return to every individual statement was making my code extremely hard to maintain (even for myself, who wrote it) -- wrapping common error cases in a macro made everything a whole lot simpler, and allowed me to work on my algorithms at a high level without having to run my eyes over the same error-checking `if` statements a million times.

> I don't understand why it says "do ... while (0)" in the macro, for instance.

It's normal for many macros, so that you can use them like normal statements.

> In your example, you're just going to leave the file open and the string allocated?

I sort of just made that example up off the top of my head -- you're right about the memory leak.
So what you're saying is that greater than 56% of Macs are running operating systems at most 1.5 years old ? (10.8 + 10.9).

God I wish the numbers were like that for Windows.
The point is that any test system that allows you to test commits will also allow you to test intermediate commits, since they literally are the same thing. A commit is a commit, it doesn't know if it is pointed to by a ref only, or if other commits point to it.

Making sure that you are testing with clean checkouts is important whether or not you are testing an "intermediate" commit. Hell, if you were using SVN, you could have ignored files that alter the behavior of the tests. Being wary of that sort of thing is important no matter what system you use, it isn't some special property of "intermediate" git commits.
They most likely didn't. My father used to be sent around as a trouble shooter and would tell stories of managers never setting foot on the factory floor to talk to the workers.
In 1985 I worked in a factory on a line producing tubes of vitamin A&D ointment (similar packaging to toothpaste tubes.) The filling of the boxes with the tubes was actually done manually, I suppose because ointment is higher margin, lower volume.

We also produced foil packs (like fast food ketchup packets). That machine was the coolest mechanical device I've ever worked with.
Isn't it pathetically sad what we've grown to accept?

Frog in a slowly heating pot indeed.

Now that we've accepted the horrors of the TSA, they are working on getting us to accept the horrors of the NSA, slowly but surely, until we reach the point that the average person defends every smartphone being hacked and tracked.
The code I used is more like this:

if ((f = open_file()) == NULL)
{
RETURN_ERROR(OPEN_FILE_ERROR);
}
if ((s == allocate_string()) == NULL)
{
RETURN_ERROR(ALLOCATE_STRING_ERROR);
}
if ...

And RETURN_ERROR is defined as:

#define RETURN_ERROR(my_error) { \
if (f != NULL) { fclose(f); f = NULL; } \
if (s != NULL) { free(s); s = NULL; } \
...
return (my_error); \
}
I was thinking more like this...

Currently, AT&T charges you $199 for an iPhone 5S, then has to cover $19 of subsidy over the 24 months of the $80/month contract.

A new carrier could charge $99 for an iPhone 5S, and make a huge splash. That would require another $4 of subsidy per month, but it would be pretty easy to just raise their plan to $85. Since they aren't just a retailer selling a single product once, it's much easier to move costs around. Similar to how a car dealer can play games with funding to make a car cost less but not really cost any profit.
Ah yes, it's fitting that I would forget about the Unicode change...the fact that I did so is just further affirmation of why I still get myself into encoding problems...all the time. But yes, the Unicode support did seem to be a frequent reason for library overhauls.
FAA Selects 6 Sites For Civilian Drone Testing
Why are agreeing with OP on rule #3 and then saying it is lunatic? Did I miss something?

Quote:Better Rule: Use whatever comparison operator is easiest to read in a given situation.

One of the very best things any embedded programmer can do is to make their code as readable as possible to as broad an audience as possible.
"Safely" is, if not outright trivial, at least a well-understood problem that is "easy" on the scale of energy generation problems. The problem is still commercial-scale net-positive fusion; I still haven't heard of anybody getting particularly close to that, with any known technology. (And I like to track the exotic ones, too.) There's less than no point to going to the moon to extract a fuel that we can't extract more energy than it took to collect.
In my classes, I've found a lot of problems with Postgres.app. It definitely works for some, but not as reliably as home-brew. It depends on how your machine is set up. I needed a foolproof, repeatable process for students to follow, so that's why I wrote this article.
I have eventually learned to regret every singleton I've ever written.
Not the OP, but I'll take a crack at it. The problem is that creating order (or, more generally speaking, rehabilitating unorderly parts of society) and making money can sometimes be adversarial processes, thus creating a conflict of interest.

Since it has become profitable (for private jails/prisons) to put people in jail and keep them in jail, there is a clear incentive to punish lesser crimes more severely and to not rehabilitate jailed people fully with hopes of them becoming a repeat offender.

Therefore, the problem is that privatization of the criminal justice system is at odds with what a criminal justice system should hope achieve: order, appropriate punishment, and rehabilitation of those who break the law. In fact, I would argue that it incentivizes almost the exact opposite.
Facebook and Twitter Share buttons are currently broken
Well I do care. I think multiprocessing is a stupid abomination- it's like a person who never learned how to use threads found the threading library and decided to make a message-passing communication system with a thread-compatible concurrency library.

Message passing is fine (and it's the sort of thing that Go uses) but ultimately, leaving single-address-space multithreading completely on the table when it's the single most obvious and straightforward way to take advantage of modern processors is just dumb.
That pretty cool! For small dev's like myself building a landing page is a pain but doable. What we dont have is spare cash so we end up putting something together ourselves. Our big challenge is discoverability, if you could add some cross promotion to your service you could address that painpoint, and make it worth the 4.99 per landing page (for someone like me anyway). ta.
The Millionaire Fastlane by MJ Demarco
Oh god, an app for glass that notifies you of NYTimes headlines sounds terrible. It's bad enough to be online and distracted by all this news you probably won't act on. But now it's going to be in your face, when you're walking along the sidewalk?

That's what bothers me about glass. You can put your phone in your pocket, take it out when you need it. But glass is meant to be on your head the whole day. Now you'll never be able to escape your co-workers flippant emails, pointless tweets and farmville notifications.
Now that I have kids, I've been considering whether I want them to play as much Magic as I did (traveled a lot for it).

My conclusion is I would encourage them to be more like this kid, but not actually force my will in the end.
The Paradox of Meritocracy [pdf]
A cheesy, apocryphal story written like a forward from Grandma on a site that looks like it was stolen from 1996? How did it make the front page?
Love? I want to live too, very much so. If it came to risking my life to guarantee the safety of my son, I'd do it in a heartbeat. I'd give my life to save his if it came to it. I'd probably do the same for my Mom or Dad too so I don't see it as a "perpetuation of the species" thing at all.
You just described building packages, which we looked into and decided not to do. The cost (which does not stop after the rather easy step of building the packages) was not offset by the benefit of migrating.
"Objectively wrong play" is a bit too much.

Carrying a gun does have benefits, and it does have drawbacks. Lots of room for this to be subjective, and lots of room for someone to subjectively find this to be a good thing to do.
I've been programming with import Queue, import threading, for years now (probably 8 or 9). I don't want to drop all my completely fine multithreading code for Yet Another Threading API.

Personally I think multiprocessing is just dopey. Why force me to program around two different address spaces when I can just have one?
Can you elaborate on this binary search? How do you get a proposed path to feed to your decision problem?
Good to see dogecoin getting its own paper wallet.
This doesn't detract what the fact that you had the initiative and drive to complete 30 different games. But if I can offer some advice now, rather than when something real happens: Create your own characters rather than borrowing someone else's creations and building them into your games. Pac-Man, Mario, Minecraft, My Little Pony are all great characters, just unfortunately not yours to make a game with. Find a friend who can draw and have them create some unique characters for you, write a little story and you've got an indie game that's all your own.
force my will...
GPL has all kinds of non-corporate friendly clauses. I wouldn't touch GPLv3 code in anything I ship either.

Likewise Torvalds refuses to let GPLv3 touch the kernel.
If you like Javascript and you'd like to start experimenting with 3D games, you should take a look at PlayCanvas[1]. WebGL-based online game tools. I think it's a little more complicated than Construct2 but you get to play with 3D graphics. :-)

[1] http://playcanvas.com/
Passenger date header was incorrectly formatted as week-based year
(I'm the author.) I mostly agree and I also don't think that saving 10 minutes over the course of a month or a year can be directly translated into 10 minutes of work (as it could be with a computer). I think the value of small efficiency boosts is two-fold: first, they compound. Saving a minute on twenty daily tasks gives you twenty minutes of extra time to do something. You could spend that time sleeping or coding or watching TV, but at least you have a choice. So maybe that 10 minutes saved would only produce 3 minutes of additional productive/non-"wasted" time, but that' still something.

The second value is that while one minute is not significant in the course of a day or a week, it can be significant in the course of a single task. For example, until fairly recently, you could get your bank balance in person or over the phone. The former might be a 10-minute task while the latter might take 3 minutes. However, now you can check your balance in seconds via a website or a mobile app. Even though you might checking your balance once a week or once a month, the thought of spending seconds on a task that normally takes minutes is very appealing. If banks only offered balance info via phone, that would be a large inefficiency and a great business opportunity (perhaps for a company like Mint)
Nice post. I like it. Thank you.

BTW, do you write javascript to create apps on mobile?
In an nutshell, because people want and are willing to pay to. That creates demand which people like Elon Musk (a) represent and (b) are willing to work for and finance.
No matter where you come down on the political spectrum, examining the correct role of government in our lives is a worthwhile pursuit. Painting these debates as "lazy" and "simpleminded" makes no sense.
For web backend I feel the new PHP and its frameworks are good enough.
JS/HTML5/CSS are doing well for web frontend at least, and they evolve fast.
Java did well on Android and enterprise software stack.
There are also Object-C, .NET for their market segments...
Nothing can replace C/C++ for system programming at this point.
Additionally, many 'minor' languages are here for different goals(Go, Erlang, etc).

Now the question, why do I need Python at all nowadays?
I spent two years trying Python and ended up with PHP/C/C++/JS/Java for nearly all my needs.
You're right, the example is far too simple to warrant the introduction of a macro like this.
Just the fact that you are 15, reading hackernews and making apps and NOT spending your time kicking some middle-aged man at Halo is AMAZING. Kudos to you. I wish I was more like you when I was your age.
This sentiment should instead be presented constructively. You should have asked what code he needed to write outside of the framework, rather than being ruled by your own exasperation.

You could have made a useful comment and been polite. Something you could likely consider every time you open your mouth, and I don't mean that in a mean way. Hacker News helped me better modulate what I say.
Hey Mike,

I'm going to give you a call later this afternoon but I wanted to clarify. First, Moisey and I worked on this this morning, so worth a read: https://digitalocean.com/blog/

Second, the way this was approached was super super confusing, originally as it was in 140 characters, on the twitters. Maybe my short comings for not totally understanding the situation before I spoke, but information was fairly fragmented.

First: Yes, I do speak on behalf of DigitalOcean.

My original understanding was that this issue was with the secure delete flag not working when being passed. This promoted me to request, and continue to request, that if it was the case, security@ was notified with an outline of what is going on per http://digitalocean.com/security/ - If it's an expected behaviour, while still not good at all, it isn't my call nor was I prepared to call the company into the office at midnight on a Sunday knowing we would issue a software update in the morning. Had the flag not been respected, I would have immediately called the senior engineering team as well as Ben and Moisey, so fully understanding the situation was very important.

As a customer, I'd like you to know we do take security very very seriously, it's something we discuss going into everything, as we appreciate healthy conversations about the way our product works.

I spend 4 hours last night trying to figure out exactly what was going on, it felt very difficult to get a straight answer of "your policy fucking blows and you better change it tomorrow" - That's something I can take to the bank, but I'm sorry if I wasn't clear.

j.
Nice use of Maplestory assets - I did the same sorta thing in the summer of my 7th grade year for a "intro to game design" class.

Can't find the game anymore, but I had edited the chirppy sprite (http://i.imgur.com/ccSY4RE.png) to be holding and firing a bow.

I ended up getting a A- on my final for using assets that weren't mine. That's pretty small compared to the sort of things you could run into when you're actually putting this stuff on an app store.

I'd recommend toying around with a sprite editor and getting familiar with pixel art techniques like dithering. You might even enjoy it as much as coding!
https://www.merchify.com/
Privacy & Data Practices | AddThis
> Passenger sometimes gets the date wrong when appending the http Date header to responses. This happens when the week-based year differs from the calendar year. It happens because it uses %G to print the year when it should be using %Y (see this commit: 15ed1d4).

Took me a few hours to track this down -- and it's probably affecting a large majority of the Rails apps that are using a Passenger server.

Hopefully getting the word out can save some folks a few hours of banging their heads on their desks.
Its easier to criticize a group without understanding the background of what they have achieved.

The Indian Railways runs one of the largest ecommerce sites in India - a site that has seen a consistent YoY growth over the last few years since its launched. Last year, they are believed to have earned a revenue of nearly 100M USD.

The guys who built their reservation system have very good engineering chops - in fact these systems hit peak load of about a million queries (every day) during 10 AM - 12 noon (IST) when users and reservation agents try to access the site irctc.co.in from browsers / mobile / reservation counters etc.

The "captcha" was not even in this page a month back. The "PNR Enquiry" for which this page is intended is a feature that can be accessed through SMS & also from the irctc website. This is possibly the least visited page in indianrail.gov.in

I have been an active user of both irctc.co.in & indianrail.gov.in over the last 7-8 years and have seen how these sites have grown.
Would people flip out if there was a bill proposed to require all guns in the US to have a GPS tracker?

Ohh god yes, they would. I live in Colorado, and 2 of our state reps got recalled when the democrats limited clip size to 15, and required more background checks on purchase.

That restriction got people so angry that they did mid-term recalls. Not even just waiting till next election.
Maybe we do. Can you convince yourself that we should not design software in such a way that we are forced to reason about at which granularity errors are recoverable?
I think I did that on accident, but I like the way you think!
Trading Gold For Bitcoins: Dubious Trade Or Digital Trend?
To demonstrate the vehemence which long-term experience programmers view the lack of ability with which Guido is running the python3 project.

If he had actually addressed the important questions in Python3 (first being getting the majority of people on 3 quickly by getting the major libraries ported quickly, second being addressing the GIl in either 2 or 3 (if the GIL had been removed in 3, I would have much more strongly considered it).

If either of those had been addressed, some of us (who are influential in the area) would have adopted 3 and prosetlyized it. However, I lost so much confidence in Python after the 2 to 3 transition that I've decided to actively non-prosetylize it.