skysight-inc/HackerNews huggingface dataset:
Program comprehension is a fascinating (and IMHO very enlightening) field.

For anyone curious, I wrote up some of what I learned while exploring the research a few years ago:
http://www.clarityincode.com/readability/
(I apologise for the less than stellar formatting; I haven’t updated that page for some time. I also apologise to the actual researchers I cited, if I’ve dumbed down their work too much in aiming for a non-expert audience.)

For the eye tracking reported here, I wonder whether the early emphasis on the top part was a combination of trying to figure out the data flow in the between() function and then its significance to the wider program.

I think it would be interesting to compare the results with a similar eye track of a program written with more emphasis on data flow rather than control flow, e.g.,

def between(numbers, low, high):
return [n for n in numbers if low < n < high]

def common(list1, list2):
return [i for i in list1 if i in list2]

x = [2, 8, 7, 9, -5, 0, 2]
x_btwn = between(x, 2, 10)
print x_btwn

y = [1, -3, 10, 0, 8, 9, 1]
y_btwn = between(y, -2, 9)
print y_btwn

xy_common = common(x, y)
print xy_common

It might also be interesting to compare the results with a functional programming language that expresses those ideas more concisely and/or with tools like between() and common() as part of the standard library that programmers would probably be familiar with.

Final thought: How much does the absence of a clearly marked starting point (like a main() function in C) affect how a reader approaches unknown code in Python? If this had been a C program, would the reader have aimed straight for main() and then worked down from there to functions like between() and common()?
Your comments are an inspiration, but I think they are tangential to the blog post. The way I read it, I think the OP is addressing the Bravo TV show http://www.bravotv.com/start-ups-silicon-valley. I was able to make it through about 5 minutes of the show. It's all hipster fluff and pretty faces.
This is awesome, also don't forget to delete your account from Instagram afterwards and delete the app, here is how to for account and also alternate to download your photos: http://www.wired.com/gadgetlab/2012/12/how-to-download-your-...
Under "Why are we doing this?" It just says

"This is a migration service built so you can keep the rights to your photos. If you haven't read Instagram's new terms of service, read more here.

Update: Instagram has updated their stance on the issue. Read the blog post here.

We don't store, keep or use your data, information, or photos in any way. All data is streamed directly from Instagram to Flickr. When it comes to your photos, we agree with Flickr."

I understand what the tool does but I still don't understand why you're offering this service. I'm guessing it's a fun hack and a service to the community but I'm curious to hear why you decided to build the tool.
tumblr seems to be doing quite well just letting users promote their posts. instagram could be moving that direction, not just for businesses. i guess they have facebook doing it from the business side, though, so it is natural for them
$3 for ten minutes is way smaller than $10 for 1 minute.

When you think about how people respond to incentives, first consider the size of the incentive. Otherwise you'd be forced to conclude that, say, a $10,000 fine wouldn't work either, which is plainly absurd.
This video seems incorrect to me, I read code line by line one at a time most of the time. The video seems to be showing that the eye is jumping all around.
Show HN: I'm hungry, show me a random recipe!
It's awesome to see that people are interested in my research! I've made a blog post with another video and a few more details: http://synesthesiam.com/?p=218
I think the more interesting thing about the ad approach described by the OP that you are commenting on is that it's not unlikely that this advertising approach if automated just ends up completely debasing the value of photo ads entirely. An ad with a gorgeous woman (or handsome guy) prominantly drinking a coke is going to be far more effective than a nobody casually drinking a coke. The chance of a random instagram photo that contains a coke in the image serving as effective advertising is minute. The coke can needs to be prominent. The person in the photo needs to be someone that the viewer envies, desires or aspires to be like. Lastly the photo needs to somehow make coke a key subject/focal point of the photo. The changes of the stars aligning to make an instagram photo serve as good advertising for a product is very unlikely versus the opposite. That means that most of the time the advertiser would be receiving shitty advertising.
> Respectfully, ...

I suspect that I learned more about R^2 by reading these comments in the order presented (informal, then formal) than I would have had they been reversed.
I'm not AVTizzle, and can't speak for the tone and timbre of his post, but I feel like you took it completely out of context, as he appears to question his own feelings on the matter.

Regardless, I was acting out of frustration, and you're of course welcome to read it however you like, however wrong I might feel that it is.
Are the means of production privately owned? It seems to me that one of the most important means of production in the 21st century is computing.

Computational power is cheaply available and open-source software is free (as in freedom). With the internet, anyone can acquire knowledge, distribute a good, or work remotely.
It was mostly for the fun of building it and using a couple APIs that were new to us. We use APIs all day long at Cloudsnap so this was more of a fun exercise for the community to use if they want to send a copy of their Instagram photos over to Flickr.
THey're only $2000 if you don't have reserved instances.
Do you mean the videos themselves, the software, or the hardware?
> Are you referring to this?

Among other things, yes. That's just a slogan, but it's based in the rest of Marx's theories, obviously.

> but he did not take into account that some resources are not material in nature, such as time and social status.

These things would factor into the 'socially necessary' aspect of 'socially necessary labor time,' I'd imagine, but what I will say is that thinkers who have built on top of Marx absolutely address these issues. Debord, for example, with his 'society of the spectacle,' which specifically address social status (see aphorisms 60 and 61) and time (the entirety of part 5).
The article only covers the police. I wonder what the potential differences there are that could be in effect for other agencies in the US or international forces. Is there still a real black back door for the right level of clearance ?
The limits only apply to the free plan. For $25/year all limits (and ads) are removed: http://www.flickr.com/help/limits/#28. And you're less likely to see dubious changes to the ToS when you are the paying customer.
Sure not. Unless the fine is high enough to hurt financially the person that is infringing the rules, it will have the opposite effect.

It'll allow a false sense of entitlement; "I'm paying for it, so it's now ok to arrive late to pick up my child. It's my right".
>>Read more, try again please.

I don't have to read more. I have been through a communist set up myself(India), And I don't want to try. You can bring it in your country and enjoy it as much as you want. As far as I'm concerned I am glad my country is rapidly getting rid of last vestiges of communist policies we have.

Now coming to your point. Contrary to whatever you have 'read'(looks like all you have done is 'read' about it), or whatever you will read, the ground reality faced by people under a communist regime is vastly more different. No progress is ever allowed to happen under the name of 'protecting the poor', whatever progress you would have seen in a country like India is only because of some competitive pressure, our immediate neighbors have posed. It was very common in my country pre-1990's free market reforms to see the best hard working talent leave. There was no individual incentive to do anything special. And the environment(movies, media, drama shows, stories you name it) depicted rich as some form of evil entity bent destroying humanity. Even today the states ruled by communist governments(West Bengal and Kerala) see the largest group of youth moving out of those state to work in cities like Bangalore. The conditions are so horrible, there are bandhs, strikes, shutdowns by unions and communist groups ever other day. No productive work ever happens. Investors are shit scared to invest or set up any long term ventures in those states. And by and large in the name of protecting poor, the poor are always ensured they remain poor.

You will not believe the height of problems communist policies had caused in India. Around late 80's we had nation wide strikes when our Prime minister announced computers will be introduced in the country. That is the degree to which progress was blocked by communist groups. Even today we continue to see pockets of communist feelings around. A national policy on foreign direct investment in retail sector is being blocked and opposed currently.

Go to any communist nation you want. And see for yourself the kind of miserable conditions communist policies have bought upon those people.

Just in case you didn't know in India there is a terrorist groups based on principles of communism called 'maoists', which is by far considered biggest threat to internal security of our country.
Oh man, that's an awesome government indeed! May i ask which nation you hail from?
Google, for example, has some of the largest computing clusters on the planet. This entire website is dedicated towards creating a vision of computing that is privately owned and used by capitalists to extract surplus value. Not to mention most of the backbones and actual physical wires.

I think there are gray areas, for sure, but the factories, the land, much of the computing, most of the telecommunications infrastructure, etc are all privately owned. The vast, vast majority is.
Wonder what crew size you would need to ensure genetic stability and the certainty that the crew would hang in there until the destination. It couldn't be a democratic arrangement onboard for sure.
The 300 MB/month limit is their free product. For $25/(Correction - not month, but year!) you get their pro package which includes: (from their upgrade option link):

o Unlimited uploads (up to 50MB per photo)
o Unlimited viewing of your entire photo library
o Post photos in up to 60 groups
o Download your original, high-resolution photos – whenever you need them
o Upload and play unlimited HD videos
o Browse Flickr completely ad-free
o View stats on your account

I can't begin to explain how ridiculous the Flickr value proposition is for $25/year - and, indeed, there are some photographers with upwards of 100,000 pictures on the site.

[Edit - I was inspired to go try out Flickr just because of the hoofrah and this cool tool that let me move my instagram pictures - Wow - great Batch Editting, Set Collection, Image management. You can see the advantage of a tool with a decades worth of work into it. Signed up for a pro account]
IIRC, what worries some people is the REEs that go into the mfg of electric batteries. REE mining tends to be dirty and tends to be, for now, in counties with little in the way of enviro regulation monitoring mining methods, etc.
Agreed. I have an eleven year old daughter, and I'm constantly quoting the movie version of Alfred Pennyworth to her, in the perennial hope that some day it will just click.

"And why do we fall Master Bruce?"
"So we can learn to pick ourselves up."

I like to think that I've done well, letting her get into programs that she finds worthwhile, hoping that she'll apply herself in a way I never did at her age. It's painful watching children fall in and out of like with things when they realize how much work is involved, but having given her exposure to enough things, I've found that when she can grasp onto the kernel of something she truly enjoys, it's a lot easier for her to overlook the effort involved.

It doesn't fix the fact that some things aren't worth trying for (especially eating her Spinach, though that one's obviously not crucial), but then you have to overlook that y'know, she's eleven, and if I'm honest with myself, she's a million times better at applying herself than I ever was at her age.

The only thing I've found that works is when there are crises, we try to collectively break down the problem into its smallest component parts, and deal with them in very small chunks. Another very useful tool has been the "Destination Imagination" program -- I don't know how old your kids are, or whether the program is available in your school district, but it is, specifically, an unstructured lesson in getting kids to learn creative problem solving through small, focused problems that they are challenged to solve (like how to most efficiently roll golf balls into a bucket on the other side of the room using a broom, two chairs, a pack of bendy straws, etc.)

Having been a judge for DI, I can assure you that the children came up with a variety of solutions I never would have fathomed, to varying (but often impressive) degrees of success.
HyperLogLog approximate distinct counting as a Hive function
> I have been through a communist set up myself(India)

Which period of India would you consider communist? The 'late 80s' period you reference later? I don't know nearly enough about India's history, and understand that geographic regions are very important.

> the ground reality faced by people under a communist regime is vastly more different.

Just like the reality on the ground in a capitalist country is very, very different than what the theory says. How many Native Americans did my country kill again? How many dead children are in Iraq and Afghanistan? Why do we have more empty houses than we do homeless people?

No social system is a magical cure.

> And see for yourself the kind of miserable conditions communist policies have bought upon those people.

You will not see me apologize for Stalin, for example, but what I will say is that Russia went from an agrarian nation to putting a man in space and becoming the #2 world superpower in what, 75 years? That's pretty damn impressive. The soviet experiment failed for good reasons, though.

> Just in case you didn't know in India there is a terrorist groups based on principles of communism called 'maoists', which is by far considered biggest threat to internal security of our country.

I am actually aware, it is quite interesting.
Are you seriously suggesting the people continue to study things which don't pay them well or don't pay them at all?

And if that happens, they follow their passion and when they come out of college and don't find jobs who should they blame? How is the system's mistake that your passion is not in demand and doesn't pay well?

Look I'm not saying you should study philosophy at college. But at the same time you shouldn't look too surprised if with that degree you don't get a job that pays well.
Only one of the proposals had anything to do with immutability
And if the only tax break one takes advantage of is the 401k (ie no mortgage, no business deductions, etc):

Annual Gross Pay $100,000.00
Federal Withholding $ 15,292.50
Social Security $ 4,200.00
Medicare $ 1,450.00
California $ 5,518.04
SDI $ 955.85

401k $ 17,000.00

Net Pay $ 55,583.6
correction: $25/year (first line)
JRuby makes it easy to start as many scripting containers as you want:

http://jruby.org/apidocs/org/jruby/embed/ScriptingContainer....
Seeking consulting opportunity - remote engineering position
If you are looking for an architect level guy who takes ownership and a doer (hands on), look no further and contact me on 4082039960 or sid4it@gmail.com.

I am very passionate about my work.

Experiences quite broad and depth
Open source contributor (have github account and projects)
Latest client web frameworks - backbone, bootstrap, kickstrap, knockout.js, ext.js etc.,
NoSQL - Mongodb
Mysql, Oracle and list is endless
Web crawlers in perl, python or Java or scrapy Python web framework
Php (Lithium, code igniter flavors (pyrocms, fuelcms, etc.,)
Java or .NET
Beanstalk Queue/Tubes, RabbitMQ, MSMQ ....endless

Referential clients and quite visible profile on Linkedin.

I can offer 30-40 hours of my time per week. I am productive. Timings are flexible and rates are negotiable. Willing to consider pilot projects to check creds.

Thanks
There are different rules for "IRA". If you are a sole proprietor instead of a corporation, you can do a SEP IRA. That, depending on your earnings, will allow you to sock away up to $49k/yr. If you are incorporated, you must offer the same 401k plan to all employees (you and your team). Also, company 401k plans cost money to manage... more than you might think. When you are small it is more than you'd expect. I incorporated last year and this is my experience in So. CA.
My Dad is a Member of the NRA
The comma delimited list of file extensions was an illustration of a bad solution. The actual proposal was to use proper content negotiation and the Vary header for intermediate caches.
Worked flawlessly - all my pictures over in less than a minute.
Actually, I think for half of the examples I mentioned it was rank-and-file Google employees who forged Google's response. I've seen a bunch of examples of regular colleagues galvanizing Google to do the right thing. Often regular Googlers drag execs to the answer we think is right. :)

I think each of the four examples I mentioned did have a long-lasting effect on the company as well, e.g. the Data Liberation Front ( http://www.dataliberation.org/ ) is a natural result of the pledge not to trap users' data.
My sincere apology if I did something wrong, But Could you please tell me which other account I am using?
That would only make sense if Microsoft hadn't made the exact same choice with Windows 8, even down to the warning when running untrusted software.
> the modulo statement doesn't really do any better than a spelled-out conditional statement

Actually, on modern processors the modulo would probably be more efficient than the conditional due to cool stuff they do like pipelining. Pipelining is basically where they execute instructions ahead of time (sort of in pseudo-parallel); and so when there's a branch, there's a fair chance the results from future processing might have to be thrown out.

One of the techniques that's used to go around this is branch prediction[1], where they initially guess whether a branch will be taken or not and then depending on whether the branch was actually taken, they change their guess. This works particularly well for for loops and the kind.

Another development on the ARM side (and MIPS too, I think) are instructions that are embedded with conditionals in them.[2]

[1] http://en.wikipedia.org/wiki/Branch_predictor

[2] http://en.wikipedia.org/wiki/ARM_architecture#Conditional_ex...
It sure sounds sustainable.

It is sustainable up until the point where the guillotines are sharpened and the pitchforks come out. So probably about 10-15 more years on our current course.
Adding web sockets to Flask apps
Another non-Rubyer here, love Jekyll. Vastly better than Wordpress which I was using before, even though I know more PHP than Ruby.
Marx considered capitalism to be a necessary phase of human development. That's where the abundance comes from.

http://en.wikipedia.org/wiki/Marx%27s_theory_of_history#The_...
> Let the German people decide for themselves what kind of usernames they would prefer.

They just did.
That is actually pretty interesting. I was thinking trying to build something like that but with some kind of integration with my gmail accounts.
You probably shouldn't do this in an inner loop: :-)

m = re.match(r'(\d{4})', buf)

'map' is more general than just the single, convoluted statement of list comprehensions, which really seems as a kludge from unwillingness to accept multi-line lambdas. So something new was invented that had to be learned; then it was argued it is a boon. (Like references in Perl. :-) )

(There is some defaultdict functionality for autovivification in Python iirc.)

Yeah, they are all similar. I don't know enough Ruby to have an opinion.
1. I don't understand wasn't the HTML5 model the portability everywhere? So why the constraint to mobile devices now?

2. It is always fun to see junior developers learn the quirks of CSS across browser versions of the same browser.

3. No different than methodologies for writing portable native code with the added benefit of control and performance.

> Doing so while making everything pixel-exact across different platforms is really hard, and usually pointless

Have fun talking to our Fortune 500 customers doing pixel counting on web applications, before signing the pay-check.
I don't like that Flickr is so focused on the iPhone. It's a free app, and yet it chooses to make a big SEND TO IPHONE button on the screen, and completely hides that it even supports Android, even though there are more Android phones in the world at this point. I just don't understand what's the reasoning behind focusing so much on the iPhone. Are they trying to pretend they are focusing on a niche or what?

http://www.flickr.com
Who will get paid when robots can do all of the work? Should robots get paychecks? Are people who use robots stealing from poor people since the robot is stealing the poor person's job? These are the questions we must answer before the robots take over hr and accounting.
Some companies need to kill the college dorm culture they are trying to emulate.

How about a culture that says 'I put college behind me and I'm worth a few extra square feet and a place to hang a picture or two.' Where can I find that culture?
"Police need a subpoena in order to access "basic subscriber records" including name, length of service, credit card information, email address(es), and a recent login/logout IP address(es). For the next level of information, including message headers and some IP addresses, a court order is required"

Those are the "basic" records?
I suspect for long term, generational-distance missions, stasis would be a far preferred option.
Check out Octopress. It might be right up your alley (and solve your problems).

http://octopress.org/
Haha, nice shameless self-promotion. It's chill.

Jekyll's meant to be a static blog generator, not a general static site generator.
Why Paying for Software Doesn't Matter
I imagine that the fine at Andreesen Horowitz isn't so much a financial incentive but instead signaling and shock value that respecting entrepreneurs is important, in the same way that book budgets at startups aren't so much a financial incentive but signaling how the company treats engineers.

There's also the matter of who's imposing the fine. For the day care, imposing a fine negated the social incentive not to be late because the parents saw themselves as adhering to the contract the day-care set up. Conversely, the entrepreneur didn't set up such a 'contract' between him or herself and AH, so there's no understanding that it's ok to be late if you pay the fine.
I think that's just coz they have a new revamped iPhone app.
I respectfully disagree.

I've been involved in writing Terms of Service for a few big web sites. The back and forth with the lawyers is of course frustrating. And at the end of the day, you have something that comes off overly broad just to "cover everyones asses" from some future theoretical lawsuit.

So even though the TOS allows it, it was not their intention to actually do it. They're going to go back and revise the wording to be what they actually do intend.

Great apology.

I am always on the lookout for weasel words too, don't get me wrong. The "I am sorry that anyone was offended" apology always rubs me the wrong way, cause the person saying that is not sorry for saying it and doesn't regret saying it, but just sorry for offending. But this apology comes off to me as genuine.