skysight-inc/HackerNews huggingface dataset:
So you still think the Internet is free.
Source for this? Anyway I expect this number to increase once the next iPhone comes out which is usually in the summer and more people come off their contracts.
Definitely.

Indeed decorators are a patch to a shortcoming in Python's ability to define anonymous functions or classes. If you could just say something like:

f = memoized(lambda x, y:
... some multiline function)

or

C = coords_or_vectors(class:
... some class definition)

you wouldn't need the kludge:

@memoized
def f(x, y):
...

@coords_or_vectors
class C:
...

Note that I'm not arguing for the syntax in the first two examples, just the ability to do the equivalent without special cases in the normal syntax of the language.

In Scheme you wouldn't need to learn the extra syntax, learn and remember the order in which decorators apply (top to bottom?, inner to outer?).

I was actually very happy when decorators got added to Python. But let's face it, they just give you a way out of a corner Python painted itself into. They're nothing to be too proud of.
If you are writing Java code in vim, I guarantee you that you will be faster and more productive with an IDE.

I can't believe you actually think that typing all these characters (imports, renaming by hand, creating methods by hand, etc..), navigating between classes, finding symbols is making you faster.

vim is great for general text editing, but for Java, nothing can beat an IDE. Try it, you'll be surprised.
Right, so in this case it wasn't some failed attempt that harmed his prospects. I think the real risk is that you'll fail and end up bankrupt, not that you'll sell the company for millions but carry the ignominy of not becoming Facebook.
"But can you spoof the browser detecting a secure connection and then turning the page tab bright green?"

The important part of what Marlinspike showed is that you don't have to. He ran his setup on a Tor exit node, the users of which are presumably more security minded than the rest of the general population, and not a single user balked at the lack of positive feedback.

HSTS is a real solution, but not a scalable one.
> Refactoring support has nothing to do with IDEs. Nothing.

Uh?

The strength of an IDE is that it understands your code. It knows what a method, a class, a variable, a package is. Because of that, it can give you more assistance in writing your code than any editor that bases its highlighting on regular expressions ever will.
Not any hackers, the Dutch ISP xs4all is givin away free dialup, others too (I even tweeted one such yesterday)

But, no, a good chunk of Tripoli is online. Benghazi is devastated but victorious.

FWIW, Gaddafi is on his way out :-) Few more days (maybe hours!)
It's sad that such a common and concise idiom as "x or y" is so perniciously, subtly broken in Python, and that there is no satisfyingly concise equivalent.

If I were being cavalier and had an extra wish to burn, I'd request

x else y

to mean x unless x is None.
True, but it's a lot easier for the average hacker to stop buying their domains than their oil.
I suspect the so-called "Google problem" wouldn't have arisen if he hadn't compared homosexuality to beastiality and pedophilia.

If you're going to use language to degrade a group of people, you shouldn't be surprised when, in return, language gets wielded by them as a defense.
Exactly; 10$/yr is nothing compared to oil revenues.

EDIT: Hm, my bad, I didn't bother to look it up, just assumed it's like all other top level domains.
I wrote about this at one point. Here's a link:

http://www.quora.com/Can-Duruk/Web-Development/URL-1
How was the text not parsed in the author's example? He did not write the parsing code, but the text always has to be parsed somewhere if you're going to do anything with the data in the text.

The parent post was suggesting to replace external calls to Common Lisp with external calls to a library for JSON parsing. In both instances, the text is parsed, and in both instances, it's possible to transform the human-readable data to a convenient-for-C binary format. The parent suggested that calling a JSON library would be faster than Common Lisp - I cannot evaluate that claim, but it may be true.
Yea I complained about this before. It's not clear at all what your facebook data will be used for. In fact I'm going to go delete my Quora account right now, I didn't realize just how much data they can get from me!
But then you're worrying about users that deliberately decided to block all pop-us.

It's exactly the same as with nojs users—if they can block, they can unblock it. Especially if they expect a pop-up to appear, because they've just clicked on a miniature.
Very good points yet a clear pricing tool should be open. The very mechanism of jacking up pricing function of RAM is not visible. Look the amount of time the Accenture researcher Huan Liu had to spend to come out with some data, which are just some simple scenarios he had to assume to make sense. The same providers can be anywhere from 19% to 500% the EC2 price. Such a wide gap is simply not helpful. It is like saying that car costs anywhere from $100 to $120,000.
It bothers me I can't watch the person talking ^.^
How did it look on the big screen? We got a DVD copy of the original tapes from the Stanford library!
Nokia culture will out
To Celebrate The #Jan25 Revolution, Egyptian Names His Firstborn “Facebook”
Care to elaborate in your own words why you think so?

I will be quite peeved if something I have been doing for years with combinations of tools like Dropbox and Truecrypt becomes more difficult or costly to me or my customers due to a patent like this one.
A big offender on this is actually Reddit. The lightbox that pops up prompting you to log in when you try to vote is broken for smaller screen sizes. Though personally I keep Reddit zoomed significantly, and that makes it even more broken.
Python is "clever" so that the Python programmer doesn't have to be.
Excellent, God forbid Google ever use your search queries to improve its ranking algorithms and give more relevant results.

This comment sponsored by Experts-Exchange and ehow
منتدى بنات مودرن
منتدى بنات مودرن
sorry but I don't measure my hopes for a better HN with PG's needed efforts, but as a simple user that wants things to work well. Also the effort is minimal.
شعر الى حبيبتى
شعر الى حبيبتى
While those three examples are a fine and damning view of "must use the latest cool-toy web-dev trinkets" development approach, I'd remind you strongly of the survivor bias...

I suspect a quick poll of HN members could turn up tens of thousands of failed web startups, both using modern MVC/Ajax/Web2.0/Cloud/buzz-word-de-jour techniques, as well as hacked up in Perl/CGI or duct-taped to the side of a Wordpress install.

I'd bet the cross section of new or old technologies used to create a web based startup is not at all correlated to the success or failure. If the founder(s) are the sort of people to get the _other_ few dozen (or hundred) important things about launching a new business right (or at least mostly closer to right than wrong), then minor hurdles presented by "legacy" programming techniques are unlikely to have make-or-break effects on the business outcome.
Aside question: Why is it so hard to get 4:3 or even 16:10 monitors new these days?
No. Then you get Microsoft. The drastically different design makes teams forget they are a part of a company, and they all turn into little companies doing their own things..
well, as long as you provide a valid email (we don't check) you can do an account recovery to reinstate your cookie via email. The main limitation of being unregistered is that you can't ever vote on anything -- but you DO accrue other non-voting privileges through reputation like regular users.
There is more than one interpretation of what does and doesn't violate the DMCA, and the 6th and Federal Circuits have taken one approach, which makes the DMCA less applicable to non-piracy activities, in Lexmark Int'l v. Static Control Components and Chamberlain vs Skylink, while the 9th circuit has taken an approach that makes a wider range of activities violate the DMCA in MDY Indus. LLC v. Blizzard Entm't, Inc.

This is probably a major reason why Sony is trying to sue geohot in California (under the 9th Circuit) despite the fact that the claim that California has personal jurisdiction over him in relation to his Playstation activities is extremely weak.

The plain text of the DMCA anti-circumvention clause is:
"No person shall circumvent a technological measure that effectively controls access to a work protected under this title"
Interpreting this as congress intended is difficult, because often, systems which prevent their owner from doing one thing will also try to prevent their owner from doing other legal activities - for example, installing their own operating system, developing their own homebrew games using only their own copyrighted material, repurposing hardware for purposes that the manufacturer never intended, and building compatible add-on products or accessories that compete with the original vendors products.

I believe the intention of Congress was that circumventing the system only far enough to do one of the above, with the intention of doing one of the above, is not "circumventing a technological measure that effectively controls access to a work protected" - for that act to be complete, and the circumvention the act references to occur, the final step of accessing the copyrighted work needs to occur. The interpretation of the 9th circuit is, in my opinion, not what congress intended.

Sooner or later the Supreme Court will hear one of these cases, and hopefully will agree with the 6th and Federal Circuits that the interpretation I gave above is correct.
I think baddox was referring to the title of the blog post, which is "10 Rock Solid Website Layout Examples." The HN FAQ and / or rules don't apply to people's blogs. ;)
I've already said I agree with your basic thesis, but here's the tradeoff. Let's leave special forms out of this, on the assumption that any decent Lisp programmer will have them memorized, much like language keywords in other languages.

Say that you create a naming scheme for macros - maybe you require that every macro start with "macro-", or you require that they start with "def" and "with-", or whatever. You've now pretty much completely solved the problem Amit points out, that you can't tell whether any given expression will be evaluated or how many times.

But you've introduced another tradeoff: verbosity. If you prefix every form with macro-, your code looks a lot like C or JavaScript code that tries to use name prefixes to simulate namespaces, or (shudder) Java code with its AbstractFooBeanBuilderFactoryFactories. And if you use more natural prefixes like def or with-, you limit the flexibility of your macros. Where would aif from On Lisp fit in here?

In fact, if you're willing to prefix your names with a unique prefix, you can trivially build a macro system in Python. Here it is:

gensym_counter = 0
def gensym():
gensym_counter += 1
return "__gensym%d" % gensym_counter

def macro-aif(cond, body):
return macroexpand("""
%(gensym)s = %(cond)s
if %(gensym)s:
it = $(gensym)s
%(body)s
""" % { 'gensym': gensym(), 'cond': cond, 'body': body)

def macroexpand(program):
def execute_macro(match):
try:
return globals()[match.group(1)](*match.groups()[1:])
except KeyError:
return match.group(0)
return re.sub('(macro-\w+)\((?:(.+?)(?:,\s+|\))\)', execute_macro, program)

This doesn't handle the case where macro arguments might themselves contain commas, but that can be done through invoking the Python parser (which is included in the standard library) instead of doing a regexp substitution.
Thanks for pointing that out. In this case though, I think you get what you pay for. Most of those don't look nearly as good as the Themeforest stuff.

There's another site along these lines that used to be pretty good -- Open Source Web Design (http://www.oswd.org/). Unfortunately they stopped updating it several years ago.
Nice list - I like how it shows the basic silhouette with a real world example. Now I just wish I could click "download" under each one and get an HTML5 template pre-coded with the layout.
Apple patent for denser batteries and improved charging technique
This is why I shared it. In the unlikely event that someone find it the least bit useful, they might want to expand on what already exists (which admittedly isn't much) and improve it. All of your points make complete sense, and as I've said in the github notes, the project was just something I cooked up quickly a few years ago. Small ideas can grow into big things; figured it was worth the bandwidth to publish.
Some of his points are perfectly valid, but some come across as anti-progress. I have a fair amount of experience in the childrens' book publishing industry. Current ebook formats don't supply the features that educators know improve learning. Text on the page is important, but supplementary audio and video are good for learning. Interactivity is good for learning. Right now, the go-to tool for low-level interactive books is Flash. Yes, Flash. How sad is that? Monumental amounts of early-stage learning materials are being published in a proprietary format that is notoriously opaque, and tied to a commercial "player" that is only available from one vendor. We desperately need tools to create interactive ebooks that are based on open standards like EPUB, and we need them soon.
You seem to underestimate the value of "emotional state" in a market (or a community). During a recession, comedy and other light entertainment does better because people strongly want to feel better. And people get murdered because they made someone mad. Negative emotional states contribute to the decline of a site -- something pg has repeatedly expressed interest in avoiding. I am not a hacker, so I have no idea what the time investment would be on the back end. But preventing trouble is typically way cheaper (in terms of time and other resources) than cleaning up the mess after the fact.

Peace.
Because the bulk of LCD panels come in HD-TV scales, which is 16:9 (1920x1080 for 1080p, for example). Its cheaper for the manufacturing plants to only have to deal with one ratio.
Yes, it's a good start but needs a lot more work, particularly with regards to widgets designed for touchscreen navigation.
Visualizing dynamic programming
So if someone tells IE to act like an older version, they can't use any plugins that use jQuery's browser detection?

I'm really not seeing a problem here. Simply don't -do- that. The old versions really suck.
yep, but either I missed a fancy one, or the list has none...seems just simple or partial use of Sinatra, rather than a fully-fledged application.
After 5 minutes: I can not get G either!!!

Paul, can you change time intervals to to catch less accurate chors?
Awesome: Gilbert Strang teaching Linear Algebra!

http://academicearth.org/courses/linear-algebra
Out of interest ... measured how?
I'm a pianist; it was easy as cake, actually would be even easier with finger numbers, or represented as notes :)
Keep in mind that sometimes the alternative is to spend 20% of the time writing code, and 80% of the time fixing bugs that made it into the live environment and are affecting customers.

I think one of the hard decisions to time correctly when a startup gains traction is "when do we stop being cowboys, and adopt proper development practices?". I see (in mysef as well as others) _way_ too much clinging to the "Oh, I' just ssh into the live server and fix that" kind of behaviour, often way past the point where that's clearly no longer the right way to proceed... (and yes, I bit myself with that just last week, again... Ouch!)
Great overview, from top to bottom.

Just wondering, is it better performance-wise to explicitly check for key membership than to rely on exceptions?

Existing:

for line in sys.stdin:
name, marks = line.rstrip().split('\t')
try:
if agregatedmarks.get(name):
agregatedmarks.get(name).append(marks)
else:
agregatedmarks[name] = [marks]
except ValueError:
pass

Or

for line in sys.stdin:
name, marks = line.rstrip().split('\t')
if name in aggregatedmarks:
aggregatedmarks.append(marks)
else:
aggregatedmarks[name] = [marks]

This is a common idiom I find myself using (append to an existing list or creating a new one in a larger dict).
How do you verify that the code on Github is the same as the code installed by the Chrome webstore?
My takeaway from watching is that he's incredibly self-absorbed and a total douchebag. I had to stop watching it halfway through because the people in it are just so absurd.
Agree. The point was that it's more of a principle not buying the .ly domains rather than something having a real economic impact.
One problem I see with this strategy is that it signifies a recognition of the resistance. If I were Gaddhafi, I'd be doing everything to downplay the significance of the protests, make it seem like a fringe element that won't amount to anything. When you shut down the internets, you're telling people "This is for real. It's going down right now, time to choose a side. You're closer than you think."
Actually, Dropbox seems surprisingly mainstream. I've been surprised by the number of not-that-technical people I've run into at college that use it.

But I guess there's still a pretty wide gap in tech-savviness between humanities majors and Baby Boomers ...
at which valuation?
Well, not really... I get support requests/error reports from users all the time who are running stuff like this, and couldn't click their way out of a paper bag. They have no idea that they are running software which interferes with websites working the way the author intended.

Thankfully, it seems that makers of security and antivirus software are changing their products to not restrict JavaScript and browser functions.
Reminds me of this:
http://lcamtuf.blogspot.com/2010/04/address-bar-and-sea-of-d...
> Next, the claims that Shakespeare is so 'great' are to me basically lies. The claim is not at all self eviden, and no serious attempt is made to make such a case.

http://www.nosweatshakespeare.com/resources/shakespeare-word...

Isn't classical music just a bunch of people playing a boring melody on strings and then you read the program guide and it tells you it's meant to symbolize a meadow with a river running through it?
Yeah, that's my point - it's uncorrelated.
That's one of those really silly rules, isn't it?
I went from 250 karma to almost 700 in a little over a week. I know it's a sample size of one, but it seems like the system works well enough.
Isn't a further possibility that the number of total iOS devices activated (new owner or existing owner changing service provider) has remained flat.

Wouldn't this be the case if a person wanting to buy an iOS device didn't care about provider? If BestBuy is the only retailer distributing product X, and then after a few years, Radio Shack begins stocking the same product, would you automatically expect product X to have 2x sales? If so, distribution would be the only thing that mattered in gaining market share.

Am I missing something?
Mubarak may have restrained from using force to save his own skin

My understanding is that he did order the military to attack the protesters, and they refused. At that point, his focus probably shifted to just getting out alive.
Actually, you should re-read the "why articles like this are incorrect" part. There's nothing essential to the argument that depends on the expertise of the author. Primarily, it's a description of articles of this type, and the particular things they lack.

Which, in addition to drawing incorrect conclusions and ad hominem, is also circular reasoning. Triple fallacy.

Nice try, it sounded good, but you're just blowing smoke here in defense of your friend.
Make yourself a function.
I just tried a test post and it won't let me proceed without putting an email address in.
Help Adam get to San Fran to catch The Startup Bus
Hi HN - I've got a business proposition for you. I've been invited to the San Fran Startup Bus, a 48 hour bus ride to SxSW - But I can't afford the air fare from London.

I'm fundraising my way there; I'm selling off 48 1hr time slots for £10 each to cover the £480 airfare.

I'll wear your startup's T-shirt and swag, recite your company motos, read your latest tweats, whatever; all reasonable requests are considered to help get me to San Fran by the 8th of March.
An Introduction to Using Patterns in Web Design by Ryan Singer
I found your talk to be one of the more pragmatic takes on current challenges to privacy that I've heard for precisely this reason. While people can and sometimes do choose to opt-out, I've never been personally comfortable with the high costs of doing so. It's a neat research agenda to start from that observation and try to mitigate the cost to privacy.
This is pretty cool. I wish my algorithms professor had explained dynamic programming this way.
Actually Python has pretty close correspondence between source code and compiled byte code.
Strings are also non-mutable, and thus have referential transparency. And so do numbers in Python.
Tell HN: You know who needs content? Patients in hospitals
I just met an elderly woman in the hospital today. She has been bedridden for a month, in serious but stable condition. In speaking with her, the thing she longs for the most, besides company, is something to read. Books, magazines, anything positive, uplifting and informative.

What I'm suggesting to all entrepreneurs is you could be doing a service in your community, by handing out magazines and books to the many patients who enjoy reading. They have the time to read it.

It would also be an opportunity to bring awareness to your own brand. If it's content you produce, maybe you could package that up and distribute that with a stack of other magazines and books (as long as it's not too esoteric).

The main reason you would want to do this is to bring relief and a smile to the faces of those who are sick and injured. They are often bored and lonely. Yet, depending on what you love to do and what your passion is, you might be able to share that as well.

Maybe someone here can work with this idea.
Are you this Alain? http://answers.onstartups.com/users/502/alain-raynaud if so then your account looks up to date to me, and you were able to log in through Facebook. Realize that this was a legacy SE 1.0 site we imported over, so your account may have had some very old stuff in it, and it may not be representative of SE 2.0 logins.
Do you remember which stories?

BTW, tagging a story as political doesn't cause it to disappear; it just ranks lower, but would probably still be on the frontpage if it had a lot of points.
This was originally released as a possible Android design in late January
http://mobileluv.info/crazy-tri-fold-android-phone-video/
You're playing semantics. Fundamentally all "backups" are just storage redundancy.
I agree lots are waiting for the iPhone5, but I'm not so sure one will be releasing! I don't see a reason for apple to release an updated phone because of it's superiority in the current landscape. The longer they wait, the larger their tech margins. People may be waiting and expecting a new version because of the past, but this may be the time for apple to shatter the schedule to stop people from behaving this way.
However, the iPad I could see getting an update because of it's early life and a nice update would further the gap delivering a crushing blow.
Got it working without any problems after adding the "warnings" suggestion above. It is slightly slow (well, it is python and the Nanonote only has 32Mb RAM, taskwarrior is snappier, though, but that's what you get with C, I guess).

I found an odd thing: I added twice a task with the same name, and the random number is the same, i.e. t- test -> 098f test, doing it again results in 098f test twice. I guess the "random" number is just some hash applied to the string, but this means that let's say, if I put three "do the laundry" (3 washmachines, for example), when I remove them all three will be deleted at once.
Except the highest level (h1 in this case).

http://html5doctor.com/the-hgroup-element/