skysight-inc/HackerNews huggingface dataset:
Thanks for your answer,

The difficult part for me is that I have to force myself to ask the questions that you talk about, it's definitely not intuitive for me and my first reaction is not to think about the different solutions a problem could have, like you said I can't break a problem into chunks, and this I think is essential to be a programmer.
>This is one of my flaws...I'm not very confident in my abilities

Realise that lack of confidence is just another way of saying "knows his limitations." This is an asset that most people at your level don't have.

If you want to learn some CS, here's a concept for you: Fail Fast

https://secure.wikimedia.org/wikipedia/en/wiki/Fail_Fast

This concept, like many CS concepts is often generalised by hackers to life in general. Practice makes perfect. What does practice mean? Doing things badly over and over again until you get better. Viewed in this light, failure is an asset. As long as you learn from it, you can see each failure as another step on the road to success.

As I say, hackers generally take this attitude that failure is good. Strolling into an IRC channel or message board for a particular technology and professing your utter ignorance and incompetence concerning the matter will likely not be met with the derision you might fear. Most people are more eager to help the humble than the bullish.

EDIT: Also read this book before you read any actual programming books. Don't worry when you don't understand parts of it.

http://en.wikipedia.org/wiki/G%C3%B6del,_Escher,_Bach
Personally I love it, however I will never ever be able to employ it on our company website.

However, the concept of incentivizing the password entry field has inspired me. Instead of something risqué like nudity, how about offering a coupon off your first order (works for a commerce or service based site). Ie, as they type, gradually increase a % from 1 to 5 (or higher, what ever you're willing to offer).

IE, a progression like:

|asdf |
|asdf12 | %1 off first order coupon
|asdf12KL | %2 off first order coupon
|asdf12KL.!| %5 off first order coupon
Game dynamics and economics for your kids chores
>US semiconductor manufacturers learned to make chips

No they didn't - the chips are now made in Singapore or Malaysia with Japanese plant. When did you last see a US mask stepper?

GM make a car as good as a Toyota? I think their current goal is to make a car as good as a Fiat.
>"purposefully designed to be anti-capitalist"

I believe it is technically incorrect to classify Monopoly as "anti-capitalist" in the sense implied. Because of the nature of real-property, landlord tenant relationships are not inherently capitalist. They can exist even in communist economic systems in which people are tenants on government property. Lest we forget, the origin of much of our current landlord tenant system is in feudalism.
Marketing About Blogs Content
You may start thinking about marketing, when once your blog features content. You should use a Facebook, Twitter, StumbleUpon, and many more, to both tell people your blog contains information they will value and to also grab readers for your individual posts.
Sorry, s/FAW/FAQ/
Strength algorithm could use a bit of work, considering pixelbabe took her shirt off for the password “password”.
Cool, thanks a lot for sharing. Your post has given me the motivation to start learning Chef. Maybe you can blog about it somewhere to help wanna be cloud programmers like me.
There are too many non-trivial algorithms that you are just likely to not rediscover.

I agree, but would also (respectfully) ask, "So what?"

OP needs to learn to crawl, then walk, then run. And he seems like a great candidate to do all 3.

Even so, even if he works 30 years having a ball delivering great product to satisfied customers, he may never encounter "Fast Fourier Transform" or "stability of Gaussian elimination".

I think of "advanced" subjects like dynamic programming, functional programming, and even algorithms and low-level code like mountaineers think about Mount Fuji: A coward never climbs it. A fool climbs it more than once.

I haven't written a b-tree traversal in 10 years and hope I never do again. I'd rather stand on the shoulders of new giants and get other cool stuff done.

OP's not there yet. Give him time.

Also, he needs a reason to learn this stuff. "Because I need it for this project" is a better reason then "Because everybody else is doing it and I think I need to, too".
If 99% of Japanese companies truly did hire old people into upper management who weren't as capable as younger people at doing their work, the other 1% would eat them alive.

"Doing one's work" in the modern world does not happen in a vacuum. If substantial segments of the market refuse to do business with you on the basis of your age, yeah, you're not going to be quite the stellar businessman.

When performance is measured by how much money you extract from a few organizations (think government contracting, think enterprise sales, think manufacturing), institutional prejudice can become one of the primary factors determining success.
This is a bit harsh, but, based on the author's site design and the design of his other sites, I'm not sure why we should take the author seriously.
it generates a list of prime numbers up to 'n', including some false positives.

The author wasn't kidding about it being nasty to read...
Back channel on Convore https://convore.com/miami-tech/superconf-back-channel/
Looking at it a bit more, it's sort-of-obvious that that's what it is, if you've seen the Sieve before. However:

> i for a[::i] in <whatever>

Mind blown. How does assigning to an array even work? I'm guessing this is way-undefined-speak for setting elements, and I am simultaneously dazzled by its brilliance and horrified by its stupidity.
1996: An Analysis of Two "Next Generation" Programming Languages: Java & Python
George Zachary: No bubble yet, but one’s building
HTTP Request cookies and $Names
The current cookie RFC 2965 specifies that
an HTTP Response header cookie may include
things like $Version= or $HttpOnly, etc.
(Don't confuse them with their Response counterparts which don't have the $ sign).

Has anyone actually seen them in practice?
Also, rubygems has been almost untouched for a long time before the current mantainers took over, and did a great job of making it more robust and faster
If you want to be a hacker, learn like a hacker. Build something you have no idea how to build, then when it sucks figure out why and either rebuild it or go find a new project that's more interesting/challenging.

At some point you'll be able to get a job helping people who haven't been building stuff as long as you to avoid mistakes you've already made.
This is only effective for apps where the content the user puts into the app is put in with the intent of sharing it in the first place (i.e. this isn't a marketing technique, so much as an app-design technique.) You can't just pick a random app in a different vertical (say, Gmail) and tack viral own-data sharing onto it.
This is cute, but personally, I've never been a fan of password character requirements. Laissez-faire, and all that...the Internet has no business telling me how to secure my profiles!
http://www.joesgoals.com/ is a great web app for tracking daily tasks (including longest/current chain).
I would have to disagree with this mans views that jurors should ignore the law if they disagree with it. I appeal to the Categorical Imperative on this one which states that you should only act by moral rules that you can at the same time apply to be universal moral laws. If every juror could ignore the law then there would be no point to having a law; it would be a contradiction.

Instead he should be trying to change laws he disagrees with.

[EDIT]: grammar.
Yes, that was the desired effect :)
YC companies are the best in the world at elevator pitches. This post explains why you need 3 pitches; 1 minute elevator pitch for random encounters, 6 minute pitch for events, and 30 minute pitch for VCs and investors.

Also why your elevator pitch is important to recruiting new hires, getting new customers, and making deals with partners. The pitch is not a marketing task, it is vital to growing your business.
The Next Trillion Dollar Industry: 3D Printing
btw, it seems universal in tech that the first to make something doesn't always win the market. E.g. search engines, or even angry birds, even Jerry wasn't the first comedian. Sometimes, many many people have a go, getting little traction, until someone finally cracks it (due to increase in platform install-base, change in tastes, formation of niches, change in market, better marketing, scientific insight, better implementation, longer commitment, or luck).

Also true for your first version.
Frankly everyone's life and conditions are sufficiently for one rule to work for all. Personally, I believe in A/B testing life.

Do whatever gives you your best returns. Just never stop testing.
>>> def mystery(n):

It's a buggy implementation of primes_below(n) through a sieve.

"There should be one - and preferably only one - obvious way to do it." And this ain't it.
Canadian Marketing Wars: Get a Competitive Edge
Thanks for the feedback. Next time I'll work harder to edit out the repetitive bits and try to add some zing. I'm thinking of tackling screen(1) next.
Plenty of people use open source software, but when it comes to writing drivers for the next generation of GPU or the Ignition Timing software for the 2012 Honda civic the Open Source revolution has more or less fallen flat.
clothed to naked with just "1!aAA" :|

What is with HN recently? I just do not understand why the uber-creep factor is out in force.

Even if the image set is replaceable and you dont' have to use a naked lady, that is the default demo, and the stated objective of the site is Strong Password == Naked Lady.

Aside from the blatant sexist targeting, this is trying to take advantage of entirely the wrong impulse. Associating a strong password with the human drive for porn doesn't actually encourage any better understanding of strong passwords or why they should be used.

If this were to be something like 'pwnyourpassword', and demonstrate how easy it'd be to crack your password w/ a dictionary attack, then this wouldn't be either as exploitative or crass.

Instead, the mechanism is, lets distribute pixel art of naked ladies to incentivize instead of teaching/demonstrating.

Yeah, that's the society i want to live in. :|
Yes, but I could not understand why one needs

list(range(n)) as opposed to range(n)

and why the double indexing of a in

i in a[:][2:] if a[i] == i].

Am I missing something ? I think it would work without those.

Edit: Yo La Tengo. Deviousness aside the code is quite nice. It would be fun to optimize it but without breaking its spirit.
a jury has more power in deciding a case than a judge, the sad fact is that all too often juries are bullied into believing that they cant exercise this power by the judge and advocates. it can never be a crime to inform people of thier rights
I believe the key is to keep it as simple as possible. I tried many different software over the years and what ended up working for me is a simple spreadsheet I created. I just add the task, enter the hours, done.
Dogpatch Labs (36 East 12th Suite 200) and General Assembly (902 Broadway 4th Floor) both have a number of companies in them although they are really working spaces and not events (GA might have somethings going on).
2) Social hoooks - Your product/service must be social. It must encourage your users to invite others to try it out. Hooks into Facebook and Twitter are obvious. Email invites are another obvious feature. The product should allow people to express themselves in it. Profiles, personalization, etc will allow the users to feel ownership of the product and tell others about it. Foursquare's adoption of a game dynamic when it launched is a particularly clever implementation of a social hook. Games are the most social of all things on the web.

Ugh. Maybe it's just me, but I can't stand this. Whatever happened to just being useful? If I like your product, I'm fully capable of sharing it myself. You see so many pages now that look like they were designed to maximize the possibility that you will accidentally like them on facebook.

There's nothing wrong with a "share this post/page/app/etc" panel but, unless your core functionality is based on social interactions, please keep it reasonable.

Also, not everything needs to be customizable. I don't know who all these people are that supposedly love making accounts and filling out profiles for every little thing they want to try on the internet - I think it's a huge pain. When I studied UX it was pretty well agreed upon that you shouldn't force people to create an account until it was absolutely necessary, not the other way around.

Jeez, I'm way too young to be having these get off my lawn moments.

edit: I also have a problem with his opening sentiments, but it's more of a semantic issue.

I believe that marketing is what you do when your product or service sucks or when you make so much profit on every marginal customer that it would be crazy to not spend a bit of that profit acquiring more of them (coke, zynga, bud, viagra).

It's views like this that make people sneer when I say I'm doing marketing. So, thanks.

I believe marketing is how you capitalize on the thoughts and feelings of your audience. This is why you should take support very seriously - people spend sick money trying to find out what your customers (current and potential) are thinking - when they offer it to you for free, that's the biggest marketing opportunity you're likely to get, so treat it as such.
I have one. I was commenting on the quality of the visualisation.
The last paragraph is quite interesting - 3 different exchange platforms having problems in the same week one after another. While this might be just a coincidence... maybe someone knows how to crash the systems?
Can somebody from the Perl community please but this guy in the right place by supplying a one-liner Perl golf quadruple map call?
How about just using consistent hashing? http://en.wikipedia.org/wiki/Consistent_hashing

In this scheme, you can add and remove servers without mving all your data.

There is apparently a memcached plugin to do this: http://www.mikeperham.com/2009/01/14/consistent-hashing-in-m...
“I don’t want them to nullify the murder laws,” he said.
“I’m a big law-and-order guy when it comes to real crime.”

But, he said, there were other laws he wanted to nullify,
like drug and gambling laws.

You can't get one without the other. There is no murderer that some don't consider unjustly prosecuted. For instance there are a lot of people that would use nullification if told about it when trying someone accused of killing an abortion doctor.

Worse, once you tell a jury they can judge the law you will get juries that go for anti-nullification--that is, they will convict the defendant even though they do not believe he broke the law. In this case at least the judge or an appeals court can reverse the conviction...if they can tell it happened. In many cases they won't be able to tell. In most cases, the prosecution alleges a set of facts that if true support conviction, and the defense alleges that those facts are not true. There is no way in general for the judge or the appeals court to distinguish between "jury believed prosecutor's alleged facts and so convicted" and "jury believed defendant's view of facts but convicted anyway".

Another problem is different outcomes for similar defendants. If 5-6% of people think that a particular law should not have passed, and a unanimous jury of 12 is required for conviction, then 50% of guilty defendants get a jury that will not convict.

It's really hard to design a system of checks and balances where you tell juries about nullification but somehow stop the bad outcomes I described above. The best anyone has been able to come up with is to not tell the jury about it. The idea then is that it is only applied in cases where some juror decides that his conscious would find convicting so wrong that he must violate his oath.
101 Ways to Save Apple [1997]
Google Makes Cloud Connect Available to Everyone for Microsoft.
The key here is doing things every day. You don't need a special calendar on the wall.

Humans are creatures of habit. If your habit is to slack off five days of the week then you will find it difficult to be productive on the remaining two days. If on the other hand you just start doing things, after a couple of days it's normal. I've been there, I've done that. Whatever you want to do, just start doing it. Even if you suck at first.

It's like quitting smoking. First few days are a little difficult. After 3 weeks you don't think about it.

And put a nice picture on your wall instead. ;)
Because he's reviewing another site, he calls himself a moron in light of the lessons he learned from it, and the ideas make sense.
Despite heavy pressure from the Lord Mayor to convict Penn, the jury returned a verdict of "not guilty". When invited by the judge to reconsider their verdict and to select a new foreman, they refused and were sent to a cell over several nights to mull over their decision. The Lord Mayor then told the jury, "You shall go together and bring in another verdict, or you shall starve", and not only had Penn sent to jail in loathsome Newgate Prison (on a charge of contempt of court), but the full jury followed him, and they were additionally fined the equivalent of a year’s wages each.[52][53] The members of the jury, fighting their case from prison in what became known as Bushel's Case, managed to win the right for all English juries to be free from the control of judges.[54] This case was one of the more important trials that shaped the future concept of American freedom (see jury nullification)[55] and was a victory for the use of the writ of habeas corpus as a means of freeing those unlawfully detained.
You might also consider trying out Arch Linux. (www.archlinux.org)

I moved to Arch after a few years with Ubuntu and I love it. It's a little higher-level than Gentoo in that you don't have to make your own file system or compile your own kernel, but it is an educational experience in that you have to install anything you'd like to use. When the 15 minute install is complete, all you have is a bash prompt. Getting a GUI, the ability to print, wireless, etc is all up to you.

They give you a great package manager and they maintain an excellent Wiki that can walk you through almost any task. Arch taught me loads about configuration.

Then again, I did Gentoo back in the day too. It might take 4 days to complete the installation, but you sure will learn some things! :D
That's completely reasonable. I'm not a professional designer by any means.

I'd say that the primary test should be how much sense the points in the article make to you.

Having said that, if you want some proof of authority, I have a fair track record in Web shows - I founded Machinima.com, was the exec producer on BloodSpell and Kamikaze Cookery, have produced Machinima work for the BBC, EA, etca, and generally have been doing it professionally for 13 years. I ain't Jakob Neilsen, but I know one end of selling a web show from the other.
As for books on a similar topic I found Anne Lamott's "Bird by Bird" both inspiring and enjoyable.
Link: http://search.barnesandnoble.com/Bird-by-Bird/Anne-Lamott/e/...
Contact me at david927 at gmail dot com
Tried to get Gentoo running on my Compaq T1000 Transmeta tablet quite a few years ago, to no avail. However Ubuntu jumped on that like Sheen on a, um, well suffice to say the architecture was well supported.
Lambdas and generics are essential to writing modern C# code - that language everyone seems to deride as dumbed down for your average programmer. jQuery likewise uses a lot of anonymous functions, and even front-end devs without heavy code experience manage to use this.
I've seen some curious robotics demonstrations out of Japan driven by a labor shortage and a stance against immigration. And a reluctance for young people to become salarymen. One was a human washing machine, which looked very much like a regular washing machine with the user's head poking out through a hole in the top. It had wheelchair access. IIRC the target market was care homes for the elderly. Another was a robotic fast food takeout place (tiny in comparison to a typical US fast food joint).
This is probably a Python 3 program. The list() wrapped around range() makes a list out of an iterator -- range() now returns an iterator in Py 3. See http://diveintopython3.org/porting-code-to-python-3-with-2to...
The `list(range(n))` is for Python 3 compatibility :)

The [:] you mentioned is indeed redundant, I removed it. Thanks.
list(range(n)) -- I sometimes do this because I never can remember if they have finally gotten around to making range a generator yet, and better safe than sorry.

a[:][2:] -- maybe the author doesn't know that any slice returns a new list? Maybe he just wants to be even more mysterious?
Count me in, I'm also eagerly waiting for the cluster feature.

Have you considered relying on Zookeeper for the gossip heavy-lifting?

Yes it's java (ugh) and would add an external dependency (ugh), but it's battle-tested and could perhaps save you from re-inventing such a complex wheel?
I've taken an alternative approach with my own website: there's a few important, timeless essays I keep, each focused on one topic—and as I think new thoughts on the topics they cover, I simply update those essays, refactoring them and repeatedly condensing them to the same length as much as possible, instead of making them into long, daunting series.

Separately, I keep a blog that serves to mention when I've updated one of the essays, what I've changed, and what inspired the change (i.e., basically a commit log), but which also serves as a place to dump ephemeral thoughts whose references will quickly go out of date, and thus can't survive in the (timeless) essay format.

I think many content-centered blogs would benefit from this sort of collected-works + conversation-stream approach.
list(range(n)) is probably because the author was using Python 3, in which range() returns an iterator (think xrange in 2.x). The double indexing is probably because a[:] returns a copy of a and the author doesn't want to iterate over the modified array, since he modifies it down the line (although the [2:] would copy it too, so no idea).

An alternative to a[:][2:] would just be range(2, n), but the author clearly doesn't want it to be readable.
Thanks for your words.

Most of the stuff I've been doing for the last year or so is bug fixing as I have found that I'm better at finding and fixing bugs and even adding stuff to code that is already written and I really get excited when I get something working, It just takes a very long time for me to develop something from scratch mostly because I'm never comfortable with my code and I end up re writing everything and thus never getting anywhere.
There are many things on HN about which I don't have much interest, and many things on HN about which I am interested but don't have time to follow up on.

So I don't try to keep up with everything.
No, because I don't fell the need of it today... Just one Job and few bug tasks a week.

Maybe later
Certainly, but gmail has the @gmail.com to market for them. :)
Ask HN: Startup company formation contract
We are about to move from the "hobby" stage of our startup to a full fledged company. I am looking for a contract template which we can use to define company ownership, share details etc. I remember seeing somebody posted a link on HN to a great one a few days ago but I can't seem to find it!

Sorry to post this on HN, but I would really like to find it again! (if I remember correctly the site it was on was relatively new and the contracts were provided free of charge)