skysight-inc/HackerNews huggingface dataset:
Utter crap. We used git from the command line for about a month and its a total pain.
How these command line fanatics think its easier to manually pull and merge the latest version from the repository, add 10 files then commit and push is easier than clicking 'pull' and then 'commit with push' using something like smartgit is beyond me. My guess is they just used the GUI that comes with git, concluded it was rubbish (which it is), gave up and used the command line with all the silly switches you're supposed to memorize.

My advice, if you're the sort of person that uses vim then stick with the command line. Otherwise download a GUI and spend the time learning something useful instead.
Ask HN:Can I start a company on an H1B visa?
"The point that I’m trying to make is if you’re going to spent months of your time and thousands of your dollars drafting a concept, hiring a team, and building a free and completely open source video game as a hobby, you better use zombies as your theme."

That is not the right thing to have learned from this. I suggest this one:

If you're going to take a bunch of ideas and content wholesale from a community for your new thing, it might be good if you engage with that community and make something that respects the context of the stuff you're taking, instead of making something they'll perceive as cheap and foreign.
At last, a simple and direct explanation of what you need to do with each license. I'm tired of answers like "just read the license and comply with it"
Yeah, although it uses implementation-dependent bytecode, so it may not work on e.g. PyPy.
Another favorite of mine: Learning to be Me - Greg Egan

http://qwerjk.com/force-feed#learning-to-be-me
The "Responsible, Serious and Altruistic" bit was a bit of a straw man I must admit. My point was basically that:

1) if pg doesn't have some well thought out and articulated perspective on moral questions, that's OK - he's not a priest

2) Saying it's alarming is basically pushing him and people like him into taking a (probably artificial) position for the sake of taking one.

3) Just because one is powerful doesn't mean one has to be a role model in all areas of life. This is unnecessary pressure on an individual who hasn't asked for it - he's basically a sort of VC, he isn't running for president - and I don't see anything good coming out of it.

I chose a utilitarian belief system as an example because it felt like the most non-controversial one to make a point. Incidentally, I don't subscribe to it.

Agreed about humanities, but I don't really see the connection to your OP.

Here's a highly related essay by pg, by the way: http://www.paulgraham.com/identity.html
I am planning on starting a company with a partner who is a US citizen. I currently hold an H1B visa. Just wanted to know if people here have some pointers as to if this is even possible. I am going to be talking to an attorney but just wanted to get an idea before that. I have read about the startup visa act but it is still pending legislation.
There's no new syntax. Notice what the labels and gotos look like:

label .error
goto .error

They are just method accesses on the global variables "label" and "goto". The OP just looks through the compiled byte code for access to them, saving the locations of the labels before replacing them with NOPs and replacing the gotos with jumps to the labels' locations. Cute.
Well, I can tell you that we will initially focus on doing a (free) iOS app. And that it's for young people, to enhance their social life. The website won't be a priority until the iOS app is good enough. I prefer not giving any details about the idea itself unless you skype with me.
All I did was mention that I agreed with Gruber not that he swayed me one way or the other. I think the fonts in ICS along with the rest of the Android interface is just awful. And obviously saying that in a thread which would appeal to an android user would go over like a lead ballon. Just thinking for myself.
You realize that is just a matter of experience?

Using the frameworks I've developed I can have a iOS app hit a web service and display a list of data in 30 minutes max.

I could write three paragraphs on all the "complex" stuff I'd have to do using JavaScript and CSS and make it sound a lot worst than UIKit just because I am inexperienced.

UIKit gives you so much for free. It is why so many iPhone apps look "iPhoneish" because if you follow the good programming practices you get them for free.
Photo Essay: The Other Side of CES
When you have one column of text, as in the frontpage of HN, large margins implies a narrow column of text.

My point about separate stories is that it is independent of them. Magazines and newspapers layout their stories in columns. I was anticipating someone saying "Yes, but they also show multiple stories on one page." But magazines and newspapers still use narrow columns of text even when they have a single story on the page.
That's not the same thing at all; I could emulate that in a script with 'read' and 'if', but that's not what I do.
Previous discussion: http://news.ycombinator.com/item?id=3209690
Jury nullification is not a side effect, it's the whole point of having a jury trial.
Keep in mind how this all got started historically [0]. Khan was teaching math to his cousin and did this with what he had available. It is a very personal style and, yes, includes mistakes from time to time that necessitates him backtracking and correcting them. I haven't watched a lot of videos, but I've yet to see a mistake that he doesn't eventually realize and backtrack to correct it; sometimes within seconds, sometimes half a minute later.

Polishing it too much such that it's scripted with a professional voice actor would, to me, make the videos less approachable and would lose the charm. People pay thousands in tuition for university courses taught by professors who are also not perfect and who have no professional voice acting training either. I'm not seeing this lack of polish as a negative here. Actually, a lot of times I find professionally voiced audio to be annoying as hell because nobody in real life actually talks the way some of those cheesy voice actors do.

[0] http://en.wikipedia.org/wiki/Khan_Academy#History
6 million people is roughly the working age population of some of the smaller countries in Western Europe. Thinking about the massive waste of resources and the cost in terms of human lives extinguished (6 million people in prison translates to ~85,000 peoples lives wiped out every year, and that's only the inmates not the guards and whoever else is involved in the system) is instantly depressing.

Gruesome.

Here is a good graphic to illustrate how bad it really is:

http://www.nytimes.com/interactive/2008/04/22/us/20080423_PR...
Yeah, I kind of figured Haskell would have solved this problem in a way that makes the typical syntax do the right thing (shell-quote the interpolated variables) and then provides an override for those few cases when you're doing something weird.
I too am more interested in the bytecode hackery that's going on here than the fact that it is a goto implementation. You might be interested in byteplay (http://code.google.com/p/byteplay/), which is a module that tries to simplify this kind of process.

Two points:
1) Do not take the presented code as evidence that arbitrarily new syntax can be created. Any code that raises a SyntaxError will still be invalid.

2) I believe there is a legitimate reason to use bytecode hackery -- I've come across it many times: the slowness of Python.

For example, let's say I have three functions as follows.

def f(a):
return a + 1

def g(a):
return 2a

def h(a):
return 2a + 1

It's clear that f(g(x)) == h(x) for all values of x. But h will run faster (marginally in this case, but try to imagine more complicated cases) because the Python interpreter will never make such an optimization. Function calls will be made, frames generated, etc. -- and that's where bytecode hackery comes in! Imagine pasting f and g together so that I never have to write h but still get the benefit of speed.

I do recognize that in many cases, it may be preferable to just use a more low-level language to optimize away such functions, but I always like to envision a pure Python solution first.
I can't help but think that, given this quote:

More than half of all black men without a high-school diploma go to prison at some time in their lives.

The first step is simple & straightforward. Fix education (or what is preventing them from getting an education) first, then tackle other problems with prisons.
TerrificJS: modularize jQuery code with OOCSS naming conventions
Good reason not to depend on VC funding
A lot of new applications can be created based on a certain industry or a problem.

For example, most of the furniture that we buy, comes with an instruction manual, bunch of hardware and sometimes tools. For many people, it is not easy to understand.

An iPad application can guide the user with voice and visuals, instructing what to do in each step. Kind of like GPS for DIY things like furniture. An advanced version can even guide how to repair a car. A youtube video may be useful as well. But the user needs to pause, rewind and it doesn't provide the interaction an App can provide.

I think an iPad application can provide the detail, guidance, error handling and can even connect to customer service in case of something wrong. This can change the way we do DYI projects. I think iPad is perfect for something like this.
I very rarely use find -exec, because I usually want to massage the list of files further. So I have a simple utility, print0, which reads lines and outputs null-terminated lines. It turns any list separated with newlines into input suited to xargs -0. File names with embedded newlines are vanishingly rare, compared to those with spaces, so it has always worked out well for me.
No, you have that backwards.

Taking care of what we have right now is the bigger priority because failing that we never will get off the planet anyway.

Getting off the planet requires a larger degree of international cooperation and funding than stewarding our own planet does. If we can't manage the one we certainly won't be able to manage the other. Also, it is something that we actually can do, if we set our minds to it. Whether or not we can actually get off the planet with meaningful numbers of people to a place that is no longer tied to the earth in some critical way remains to be seen.
Still no way to get your data out.
Medibuntu repositories available for Ubuntu 12.04 LTS Precise Pangolin
Nanomanufacturing using DNA origami
Acolyte brings face-to-face gameplay to iPhone
Project Configuration with Spring
A simple yet flexible solution for doing environment specific configuration with Spring.
Well, if you're talking about Gruber, having opinions is pretty much his job.
I've been using an Android phone recently after being iOS-only for the last two years and it's really opened my eyes to the agenda of people like Gruber. Don't expect him to give any Google product a fair shake. His recent gushing review of the hideous skeuomorphisms of iPhoto for iOS demonstrates what passes for tech journalism these days.
This discussion has ABSOLUTELY NOTHING to do with SQL injection. That is a completely different issue, as you may indeed want and need to put all of War and Peace into a char field, but there is no valid use case for putting all of War and Peace into a filename.

Furthermore, it was quite traditional for Unix filenames to be written exactly has you have done so above. (Although dashes would have been more commonly used than underscores.) And, in fact, it was considered fairly anti-social to put spaces, carriage returns, etc., in your filenames, as Unix utilities could not cope with them.

The fact that for decades Unix utilities could only cope with filenames written as you have above, proves my point, not yours. Even now, when Unix utilities are finally getting to the point where they might be able to cope with any combination of characters in a filename (other than null or "/"), this has come at great extra complexity and requiring much extra care on the part of the programmer. Which again proves my point, not yours.

Now, of course, whenever anyone asserts that something requires too much care, someone else will quite wrongly assert that programmers should not be encouraged to be lazy. That real programmers should work for a living. This is, of course, absurd. The best programmers will always be lazy... in the right way. They will want to solve a problem that accomplishes the most, in the least amount of time, with the least amount of code. I.e., they will want to be productive. People who make quips about lazy programmers are doing a huge disservice to the world by promulgating a world with less productive programmers who consequently accomplish less. Which means that, for all you know, cancer won't be cured when otherwise it might have been.

As to your proposed solution of having the shell escape special characters, rather than having the kernel disallow them, that could probably work too, at the cost of a consistency. I.e., when you look at a filename in the shell, it's going to look different from how it will look in your GUI browser. E.g., the shell is going to display your filename in the manner that you have done, only it probably won't do as good a job as you would at encoding your intent into a limited character set.

And, if you are going to take this approach, it doesn't have to be by allowing special characters in filenames. It can be done either by encoding special characters in non-special characters, or by having a display name that is different from the filename.

Additionally, I find it amusing when people assert that having limitations in filenames is crippling system functionality, and yet they don't make the same assertion about identifier names in programming languages. Oh no! Having a limited set of characters in variable names has crippled my ability to program... NOT!

In summary, history has proved me right.
Cool integration with Zendesk
Hey we just launched a cool integration with Zendesk. Check it out at http://www.edocr.com/zendesk-integration.
> Git is all about collaborating and sharing source code, and collaborating is all about working with other developers. Every developer I know or has ever known uses git from the command line, so if you are working with them it will be easier to work together when you are both doing things the same way

I don't understand. If I and someone else are collaborating, wouldn't we each be working in our own repository, and then pushing and pulling either between the repositories, or through a third repository?

How does the interface one of uses to our repository affect the work of the other in his repository?
you can't answer the question "how is our (organic, brand, paid, cpc, ...) traffic doing (compared to yesterday, last week, last month, last year, ...)?" anymore without consulting the Calculator.app.

it makes answering complicated questions easy, and answering simple questions complicated.

it was probably designed by a committee (consisting of mostly adwords managers) - a committee that does not use the product itself.

and this is without mentioning the bugs (and more bugs and bugs with bugs and bugs with features and features with bugs ...) and the missing scheduled (email, pdf) reports.

it really is that bad. and i'm a professional. now imagine all the small local companies dealing with this kind of "update".
I agree with you.

reply to op: A gui which covers 80% cases is way better than doing everything from command line, saves a lot of cognitive overload. If it's one of those 20% cases, ya, please you can fall back to command line. No, guis are not developed for those 20% percent cases; even if they did, they usually are painful like commandline as well.
I've worked with numerous UI designers/frontend devs who have never used the command line (purely because they've never needed to). The learning curve of git is steep enough without having to teach them the command line.
In my belief this could be tricky as I'm sure the H1B is actually tied to your current employer and would become invalid once you left that company.

I'm not sure however and I certainly wouldn't go off my word.
I have similar concerns. A referral from a friend of a friend, led to an email exchange...and nothing ever came of it. However, 2 years later, the guy is a suggested connection on linkedin.

Highlander is probably right. I doubt there is an instance where major providers are exchanging information behind closed doors. But if there is, it won't be long before it comes into the light of day.
Github for Mac is definitely not the "best git app ever created".
I stopped at you should learn vim. Just saying, please don't suggest that we take your preferences as the necessity. There are really great programmers who can do better with GUI
How would a hacker deal with solitary?
Many people reading this will fail to realize that "correctional supervision" includes about 4M who are on probation or parole. Horrible article.
The story of Google Guava and patches
Show HN: Flutter - Control Spotify or iTunes Using Gestures thru Webcam
Homeschool?
chicken - egg problem. for publishers (websites) it's only worth if lot of analytics companies use it, for analytics companies it's only worth it if lot of publishers use it.

but if this gets solved, it will be awesome.
Sure, education is a great indicator for incarceration. But "fixing" education is neither simple nor straightforward.
A close family member of mine was just arrested for possession of marijuana. They allegedly had a sizable amount, more than your normal 1/8th of an ounce, but nothing obscene. Due to a felony 10 years ago when they were a teen, they are looking at 5-10 years. Granted, Oregon is known to go easy on pot offenses, however even 6 months in jail is ridiculous. The real cost however, is not having their prior felony expunged - it will be another 10 years before that is a possibility, well into middle age for this person :( Try finding yourself a job with a felony record. If you can, it is probably paying a wage that will doubtless encourage the same illegal behavior that landed you a felony in the first place. When your only hope the rest of your life won't be utter shit is getting off on a technicality, something is messed up.
The entire article is rendered horrible for overlooking one gruesome statistic among many?
We hated using the keyboard and mouse for controlling music in the background or watching movies on our computers from a few feet away. So we decided to solve this problem by using hand gestures to control music and videos via the built-in webcam in your computer.

Please download and try it. Do let us know what you think in your comments below or by emailing us at feedback [at] flutter.io.

Currently, it works for Mac OSX 10.6 and up.
OP intends to measure time to read data from file and maybe it process into internal representation.

cat(1) almost certainly internally buffers data (32KB here) thus context switches occurs. Shell creates pipe which is buffered inside kernel.

All of this muffles measurements.

What was one or several read(2) calls + processing is now
one or several calls of maybe smaller sizes + whatever scheduling differences + in one of the examples OP used /usr/bin/time of the whole thing also.

This is of course is not visible because data were dumbed down by using time() which has horrible granularity, but when finer grained timer it'd be visible, I'm sure.
True... and yet again, we're reminded that failing to give J. L. Borges the Nobel in literature after a lifetime spent anticipating this very phenomenon was every bit as silly as giving President Obama the Peace Prize during his first year in office.
I can't tell if you're being sarcastic or not. If you are, then please consider that myself and many others feel that linking to previous submissions is a service, since it's interesting to see previous discussions.
Jekyll live search with Angular.js
Use tor. I know it is a suboptimal solution but atleast you will not have to suffer so much...
As a rule of thumb if your company has an independent board that can fire you then it can sponsor your H1B. In practice this tends to mean you need to have investors owning a sizable share of the company.
> If fossil fuels aren't going drive cars in the future its going to be something else.

The other option is we won't have cars.
Tractionbook looks interesting, but there's a typo right at the top of the page: "traciton" -> "traction"
Translation: "We need to clean up our act in this cave before we try building grass huts. Otherwise we'll just make the same mistakes out there that we're making in here."
Drug Helps Purge Hidden HIV
Certainly education is not a simple problem, but if it is the root cause of incarceration then the simple answer for incarceration is fix education, no?
Off the top of my head, this already worked for...

CollegeHumor - Cashed out.
EbaumsWorld - Cashed out.
Knowyourmeme - Cashed out.
The entire Cheezeburger network.
Fixing education will take twenty years, whereas fixing 90% the prison problem could be as simple as pardoning all non-violent drug offenses. Of course, you have to do that across 50 states plus the federal level, however it's a single concept. If we are going to start somewhere, that's easily the most appropriate place.
I don't know why Facebook doesn't come up with some image filter of their own. Facebook would easily absorb Instagram's differentiator.
It's worth mentioning that, since Android 2.3, you can make what's called a Native Activity[1] and circumvent Java entirely (as far as code you write goes).

It still runs in the Dalvik VM but you don't have to write a wrapper Java Activity - everything is C or C++.

For certain things, particularly opengl games, this can make a lot of sense.

[1] http://developer.android.com/reference/android/app/NativeAct...
Poorly, I imagine. Hackers like to think of themselves as loners who don't need anybody, but they still interact with many people day in and day out via the internet.
The caption at the top of the article compares this 6M figure to the number in Stalin's gulag system - that's shocking. You didn't get to go home on probation after being sentenced to the gulag.

It doesn't render the article useless, but it does mean that it no longer commands authority.
Serendipitous - I noticed this in the sky this evening and wondered what I was seeing - I'm not an astronomer, novice or otherwise, but it was a conjunction of stars that stood out even to a lay person.
Your parent is objecting to what would appear to be intentional manipulation & misrepresentation of numbers, not accidental overlooking.

Most people reading the article will assume the 6M people are in a prison. Odds are this misconception is intended by the author.
We actually could try to build grass huts when we were still living in caves. But we currently can't 'try to get off the planet', not even for very small numbers of people. The ISS is as good as it gets at the moment and that's solidly tied to our economies and our ability to supply it.

And even that might not last long. Space is - sadly - currently not a priority.
How would you support a generator that reads lines from a file, or something else that depends on some volatile external state?
your example breaks down when objects overriding __mul__ and __add__ are passed as a. that's the most important reason python doesn't do anything with code like this. you want a jit doing specialization and inlining for you (see tracing jit in pypy or, to a lesser extent, psyco.)