skysight-inc/HackerNews huggingface dataset:
What you have to realize is what we are dealing with here are Generators; a generalized way to create custom Iterators. This article is focusing solely on using Generators for a coroutine system and doesn't elaborate on much so it might seem a bit confusing.

Here's a basic run-down:

You create a Generator Function:

function NumsUpTo100(start) {
do {
yield start;
start += 1;
} while (start < 100);
}

The thing that differentiates this from a regular Function (note: the proposed function* syntax would distinguish it visually as well) is that it actually constructs a new Generator:

var myGen = NumsUpTo100(20);

myGen now holds a Generator object. You use the arguments to initialize the state of the Generator.

Generators are Iterators, so they really shine in that respect:

for (var n in NumsUpTo100(50)){
console.log(n);
}

However, sometimes you want to manually step through iteration yourself, and you can do that by repeatedly calling .next() on your generator. It will either go forever or eventually throw StopIteration depending on how you wrote it.

AFAIK this article is actually incorrect as you have to call .next() to start the Generator before you can call .send(). Calling send() with no arguments is functionally the same as calling .next(), but last I heard it would throw an error.

The utility of .send() is sometimes during iteration you might want to send information to the generator. For example, maybe you have some sort of state machine in your generator and you want to be able to explicitly reset it's state.

Generators are very useful in general, coroutines is just one fun thing you can do with them.
300 years is still far too long. You simply cannot expect most organizations to survive that long and remain trustworthy. Apart from that the real costs would still be very high.
hypocrisy??
"All too often we get sucked into thinking open source is like enterprise and Oracle and stuff like that"

wtf?
More that it's way too hard to navigate twitter without giving some random app write permission to your account. Modifiable permissions would help a lot, but of course Dwolla can't do anything about that.
This is an excellent anecdote about how Wikipedia's existence gives unsubstantiated weight to those who choose to spend the time writing stuff there.

We all say "sure, we know not to trust wikipedia" but when it's the first google hit for many topics, can you really pretend you always read it critically?
Oh totally, I was just thinking about taking your same concept and applying it to more specific topics, like mental warm-ups before taking on your task list at work and what effects that would have on your work ethic, well-being and abstract thinking. :)
McAfee Released, Returning to US
> but thorium reactors have been pretty experimental

Not all thorium reactors. A good example for an industrial grade thorium reactor is the thtr-300 a high temperature thorium pebble bed reactor (http://en.wikipedia.org/wiki/THTR-300)

> Thorium reactors are inherently stable, so “nuclear meltdowns” can’t happen.

This was also one reason for the design of the AVR in Jülich and it's successor the THTR-300. Although there wasn't any "nuclear meltdown", there were various other problems:

- Small amounts of water leaking into the primary cooling circuit. Bigger amounts could have lead to a buildup of hydrogen and oxygen which can cause explosions. This is very comparable to a meltdown

- The pebbles proved to be not very stable. This lead to a bigger amount of radioactive matter being released into the surrounding environment by the THTR-300

- The AVR leaked a big amount of radioactive matter into the ground water

- various other problems

Newer thorium reactor types won't have these problems because they will be considered in their designs, but there's still the problem with the timeframe. Estimates are that 2030 is the time when Gen IV reactors will get rolled out (http://en.wikipedia.org/wiki/Generation_IV_reactor). Meanwhile Germany replaced 3.5% of it's electric power sources from 2010 to 2011 with renewable ones.
Simple automated build system with git
UPDATE: McAfee Released, Leaving Guatemala For The U.S.
The Air Force's $1.3 Billion Lesson In Agile
Year In Review actually takes care to highlight photos and posts you have highlighted on your profile/Timeline. If you'd highlighted posts or photos throughout the year, they'd have a higher likelihood of being in the top moments.

I really enjoyed how it was frictionless to get an interesting view of my year.
My apologies — I communicated that poorly. I had meant that as a facetious way of saying "niggling issues," rather than a specific indictment. My point was primarily that deleting a questionably notable article does not contribute significantly to the value that people get out of Wikipedia. They are largely orthogonal concerns. I don't think Wikipedia would lose one iota of value in the common person's eye if (without loss of generality) an article on a band in Wisconsin were allowed to remain. Wikipedia was not richer during the period Nemerle's article was deleted.

Incidentally, I just looked over Wikipedia's notability rules and they seem to be a bit more reasonable than they were when I used to edit things there, so props to them for making progress on that issue.
So, if "computing operating systems" is what we're measuring now, no one should complain about Microsoft's monopoly advantage anymore, right?

The most frustrating thing about reading pop-journalism about Microsoft these days is watching people complain that Microsoft is abusing their monopoly to promote services like SkyDrive/Bing or not allowing Store apps to implement dynamic code generation, while still claiming that Microsoft is no longer relevant because we're in a post PC world now. Which is it?
My master plan for revolutionizing the future of publishing
Thorium has significantly less delayed neutrons [1], which means that the reactor is closer to prompt criticality. In addition, browsing the relevant parts of wikipedia [2], there seem to be some problem with the neutron economy. And to start an reactor you need to breed some U 233 from Thorium first ( Which will alter the reaction of the reactor to a given neutron flux). Since the neutron flux in the reactor is the main variable which controls the power output it seems, that a Thorium reactor is significantly harder to control than a Uranium one.

[1] .6 delayed neutrons per 100 fissions for U233 compared to 1.6 for U235.
http://www.reak.bme.hu/Wigner_Course/WignerManuals/Budapest/...

[2] Especially https://en.wikipedia.org/wiki/Liquid_fluoride_thorium_reacto...
err, no.
So you think it's coincidence that, with less racism and higher energy prices, people are moving back into the city?
By that standard, geometric population growth is killing people.
See 50 years of planetary exploration in this infographic
Agreed. The problem is that mainstream SF movies have not nearly caught up with written SF. I mean, The Matrix was "mind-blowing" in it's day, even when the idea of simulated universes was old hat in written SF.

Banks has basically crammed, well, everything into the Culture books. When just the idea of uploading phases people you'll have a hard time explaining why a sentient Ship would cocoon a human body in another sentient gel-field suit in order to rescue the image of an old scientist that is currently experiencing the slow time of a truly ancient race of creatures that count time in galactic rotations. Etc.

I mean, we're talking about a universe where self-replicating nano-bots are considered a joke (or at least a pleasurable pastime for warships for target practice). Meanwhile grey goo scenarios haven't even entered the zeitgeist.
Uploading the brain is not the one and only thing implied with singularity, according to Kurzweil. Near-immortality and general strong AI is also in line with it. The one main point is that when AI / technology gets good enough, it takes off and leaves normal brain intelligence behind. Everything else is speculation.
Yeah, I checked my spam and there you were.
> it's hard to work on the craft you love at night while doing your day job

I was going to comment on this. As someone going through it now (working for money in the morning, and working on craft in the nights,) it seems that many of my peers who do the same thing are burning out because they charge on until 2-3am, and get up for work at 6-7am.

You aren't going anywhere faster because you work yourself to death. A solid 3-4 hours at night, some great sleep, and I'm good to go. I just expect the payoff (of working on the craft) to come much, much slower than if it were my full time gig.

It works for me, and I take plenty of breaks from working at night because girlfriend, friends, and family would all leave if I didn't. I just take it slow and steady.
wooh wooh wooh, so whos real and whos not here?
You and I are agreeing while we explain this state of affairs to nfg, which is why I've been upvoting you.

It's far from an academic distinction to me, and that fight could have just as easily occurred if an African American had been called a Haitian, or any number of similar errors...
5 Triggered Emails your eCommerce Business should Send
In the spirit of scientific and philosophical inquiry, I simply fixed the WP article we're debating about. It took 4 minutes. I did it under an anonymous IP account. Let's see how much fighting I have to do to defend the fix.

Incidentally, while I strongly advise not reading the "StankDawg Debates", I'll note that they're a case of me, a deletionist, losing an argument to anti-deletionists.
(Comic) The Series A Crunch and What It Means for You
Downloaded that file, removed the JS and took a look in a browser. The Arabic is here(I hope HN can handle the unicode -- I've translated inline -- editorial notes between brackets):

بسم الله رب المجاهدين والشهداء ،،~
In the name of God, lord of martyrs and Moujahidin[no idea how to translate that]

إن الرساله المراد توصيلها لكم ..
The message that you are intended to receive is...

إن صواريخ المقاومه قد وصلت إلى تل أبيب والقدس الغربيه المحتله وإلى جميع التجمعات الإستيطانيه القريبه من قطاع غزه .. وإن طائراتكم التي تحلق في سماء قطاع غزه لن تحلق بعد اليوم . وألياتكم التي تتحرك على طول الخط الفاصل هيه تحت مرمى ضربات المجاهدين وسُفنكم الحربيه قُبالة شواطيء غزه أصبحت تحت الإستهداف
The resistance[Hezbollah]'s rockets have reached Tel Aviv and the occupied West Jerusalem and to all colonies[or colonial compounds/groupings? not sure] in the Gaza district... And your planes that fly in Gaza's airspace will not fly after today. And your tanks[or armoured vehicles] that patrol the dividing line are within reach of the moujahidin and your warships facing the beaches of Gaza are now being targeted.

عليكم الإن الإختيار بين أمرين لا ثالث لهما
You now have to choose between two options, you do not have a third.

( إما الرحيل عن فلسطين , أو أن تموتو على أيدي المقاومه )
Either you leave Palestine or you die at the hands of the Resistance[Hezbollah]

وسنوفر لكم خدماتنا السريعه بإرسالكم للموت بطيئأً ..
We will be quick in giving you a slow death[you can just imagine that guy chuckling to himself as he came up with this pun]

هذا ونتمنى لكم النار منعمين فيها بإذن الله
We wish you [something I don't know how to translate about fire and hell] god willing.

--

I'm Lebanese, so I've met quite a few Hezbollah/Amal people, I tend to sympathise more with the Palestinans than the Israelis in general, but shit like this makes me feel sad and unsure if I want to laugh or cry at the guy who wrote it. That is, if they were being serious and this not just a troll.
there is disk i/o involved in rendering each partial every request in development and at least once in production...
Good to hear. 3 posts in my review were links to random funny websites related to the presidential election. Clearly not what I would have chosen as personal moments of 2012. Since I'm not that active on FB, it might just not have had enough data to work with.
I commuted 45 minutes to work on the MBTA for about two years. I hate commuting...but if I'm going to do it, the train is a pretty swell way to get to work. I would either read or listen to podcasts. As an adult, I never get much time to just sit down and read (either fun fluff, or educational). The train was pretty great for that.

That said, since moving from Boston, I'm so much happier. No commute, three times the space and a nicer apartment for half as much rent, better weather, close to the beach. South Carolina isn't exactly the mecca of technology, but telecommuting makes up for it.
Eto looks interesting, thank you.

How do you feel about Mono Xwt? - https://github.com/mono/xwt
function(i, s, o, g, r, a, m) {...}

How clever of them.
Leaked Photos of new line of Blackberrys would make you tempted
According to facebook I live my life on facebook.

"See Your 2012 Year in Review
Look back at your 20 biggest moments from the past year."

Are you kidding me? These are my 20 biggest moments from last year? Only because they're posted on Facebook?

Got to be kidding me. It's time to delete my account.
The 50 best places to work (2012)
Given what's happened with the last two Batman films, I think Christopher Nolan deserves the benefit of the doubt for all of his casting choices.

When Anne Hathaway was chosen to play Selina Kyle, everyone thought she would flop. After the movie, many were saying that she had the best performance.

I don't even need to drive home how incredibly, colossally wrong people were about Heath Ledger being cast as the Joker.
> 300 years is still far too long.

300 years is feasible from an engineering perspective while 300,000 years is not. We know how to build a storage facility that won't let materials leach into the water table for 300 years.

> You simply cannot expect most organizations to survive that long and remain trustworthy.

Not needed.

> Apart from that the real costs would still be very high.

We've already built buildings with the required longevity. You'll have to be more specific/give better support to your assertion.
They do tend to share popular pop-music, though. Some K-Pop artists convert their hits to Japanese, and rarely even write in Japanese first.

In general, it wasn't their thing. It was funny and kind of interesting, but not the sort of thing that captures a whole-sale audience in South Korea or Japan. That would be my guess as to the reason.
There's still no flash on my iPad though.
The End of the World, as told by Instagram's #endoftheworld #december21 Photos.
The point is, we have a lot of nuclear waste right now that needs containment for 10,000 years. Put it through liquid thorium reactors (or integral fast reactors) and you reduce the amount of waste by a couple orders of magnitude, while reducing the timeframe to 300 years. Do you have a better plan for it?
I'm glad that Facebook thought my attending a Baltimore Orioles game was more important than me getting married this year.

I suppose though it's based heavily around social signals - which means apparently my friends thought me attending an Orioles game was more important than my marriage.
> I like Chicago a lot and think that it's a great place to live. Honestly, I think the obscene cost of living in New York and San Francisco has a negative overall impact on the quality of businesses that can be founded, but that's a rant for another time.

Well, I'm going to talk about it now, if you don't mind :P

If you look at a list of US MSAs[0], you can see that there are quite a few very large cities with low costs of living. For example, the Dallas and Houston MSAs are ranked 4th and 5th (SF is 11th), and are in a state that has a relatively low cost of living, not least due to the 0% income tax. Houston in particular is known for its lack of zoning laws (though some say not a complete lack), which drives down housing costs - the direct opposite of SF.

Although many people might think that they'll be surrounded by teabagging creationists if they go to Dallas or Houston, you'll actually find that there are a lot of young people in the cities that aren't your average Texan (and often aren't even from Texas).

You obviously lose some of the network effects advantages by moving to the Midwest, but I think such issues are becoming less and less important with each passing day, partially due to the connectivity provided by the internet, and partially due to a geographical diversification of the tech industry.

0: http://en.wikipedia.org/wiki/Table_of_United_States_Metropol...
Interesting, reading that makes it sound like a C# developer that wants to work with MonoTouch will have to verge off to learning at least some Objective C if they want to have shippable code.

Yes, you'll definitely need to learn some things about Objective C. This isn't really about learning the language itself though. It's more about understanding iOS and ObjC runtime.

The closest analogy to C# develop would be COM and P/Invoke. C# provides tools to interface with COM and native libraries, but you still need to learn some marshalling fundamentals so you can ensure GC doesn't collect objects while they are being used by native code, you need to implement IDisposable and not forget to free unmanaged resources, etc.

It's similar with MonoTouch: you need to understand that MonoTouch classes “wrap” native objects, that disposing of wrappers doesn't necessarily kill native objects because other native objects may still link to it, and that sometimes GC can't know for sure if an object is eligible for killing, and will never collect it.

In general, this comes down to: don't rely on .NET GC to kill native objects, do it yourself. My life got so much better after I started doing so.

Things that confused me most (and which are all you really need to know about ObjC memory management):

http://stackoverflow.com/questions/13058521/is-this-a-bug-in...

http://stackoverflow.com/questions/13064669/why-cant-monotou...

This is a great screencast I wish I saw before I started coding in MonoTouch:

http://forums.xamarin.com/discussion/33/finding-memory-leaks...

It explains how to find native memory leaks.

How much time does it take to learn this? No more than a week. But it takes more to find memory leaks in existing app so it's better to get some understanding and learn to profile early. For me, “fixing” a two-month-old codebase took about week and a half.
Interesting feedback. Thank you!
EDiscovery Opinions launches a legal technology dictionary
It's exactly as egotistical as saying nothing can travel faster than light, with exactly the same ramifications.
I'm not sure how I feel about this. After all, he has acted quite erratically, so the possibility that he killed his neighbor is certainly worth looking into. I hope that it still happens after he returns to the US.
Only in the emulator. I think that's the problem.
You know the mindset: live rough and work hard for 5 years to earn what most people take a lifetime to earn.

The percentage of people who get that is small, and it's mostly noise, not talent. I'd be happy to have boring old 7-8% per year growth in exchange for autonomy and interesting work.

Once you reach a certain point of development, your DFA light (DFA = Done Fucking Around) comes on and you're no longer happy if you don't call the shots regarding how you spend your time. The appeal of the idiocy it takes to reach $5m per year disappears after that.
300 years is still a lot better than 10,000+ [1]years we are currently looking at for spent uranium fuel. If we can use current supplies in the thorium reactor then we will benefit greatly because our power production will serve as waste management for current uranium waste reserves.

[1] http://www.aps.org/units/fps/newsletters/2006/january/articl...
http://en.wikipedia.org/wiki/Hold-up_problem

The stakes are much higher in medicine/law/and finance. But similar "hold-up" dynamics are pretty frequent as low levels in car repairs (classically, taking advantage of women). A more intermediary example is is Home Building (the so-called change-orders, also at play in public works). Its really a combination of information assymetry, high-stakes, and some form of sunk cost or switching/searching costs that are prohibitive. You can't change your builder with a hole in the ground, you can't change your car-repair guy with your car-motor in pieces, etc.

Alas, I don't want to beat the explanation to death. Its not meant to be the sole explanatory variable. I just thought it was useful to be aware of. In the case of healthcare, in particular, I don't dis=agree with the structural market issues (lack of direct pricing, non-transparency, etc.). But if you look at drug pricing, see what they charge for cancer drugs. And look at places like the NHS in britain who won't pay $100k for a course of drugs out of principle.

There is more to the story for those interested in the subject is all.
[this comment was posted in the wrong thread. carry on]
Wired coverage: http://www.wired.com/business/2012/04/ff_abtesting/
I'm not sure that an XLR feed will eliminate the hum. Ideally you could record the victim somewhere isolated from the hum.
Can anyone, in a short summary, explain what happened and why people are suing code hero?
>Calling send() with no arguments is functionally the same as calling .next(), but last I heard it would throw an error.

I just tried one in Firefox 17, and you can prime it by calling send() with no argument. It objects if there is an argument on the initial send().
In the past, my actions felt like they were driven mostly by ego and the desire to be known in the startup community. If being out here has taught me anything, it is that none of that stuff matters (obviously).

Sounds like this was a great learning opportunity for him. If someone gave him that advice before he joined Twilio, it's possible he would have ignored it.

Sometimes it takes experiencing something first-hand to truly learn it.
I mean this... http://alexchamberlain.co.uk/opinion/2012/09/13/cache-across...
Is the world ending in 9 days?
Look at the matrix in [1]. The matrix here is

+-----------+
| A,A | C,B |
+-----------+
| B,C | n/a |
+-----------+

With (A=B) > C

[1] http://en.wikipedia.org/wiki/Prisoner%27s_dilemma#Generalize...
I originally came here to make a "Kickstarter is not a store" comment. I totally side with the backers and their ire, and if the devs really did squander the money "recklessly" as indicated then they have what's coming to them but the chorus of "I'm officially requesting a refund" was making me thinking of Michael Scott declaring bankruptcy.

Come to find out, from the Kickstarter ToS[1]:

Kickstarter does not offer refunds. A Project Creator is not required to grant
a Backer’s request for a refund unless the Project Creator is
unable or unwilling to fulfill the reward.

If Alex Peake really did blow through $170k and the product is in fact totally scrapped, then these folks (the Primer Labs folks) seem to be in a world of hurt, owing out a lot of money that they seemingly don't have anymore. And call me a jerk if you want, but I think this is probably the best thing that could happen to Kickstarter; a decent precedent gets set for what happens when you don't deliver on a physical product before the service gets so big that it gets totally out of hand.

[1]: http://www.kickstarter.com/terms-of-use
Oh, I'm sure they still do. But it's not "trending". That is, searches haven't noticeably increased / changed from previous years.
No apology necessary. So, I mostly agree with you: the value of deleting a barely-non-notable article is marginal. But as I've shown I think pretty effectively upthread, with the link to the URL pattern for AfD debates, that's not the problem that confronts Wikipedia; instead, editors on WP are dealing with a torrent of extremely non-notable articles, into which valid articles are, due most often to poor editing, occasionally getting caught up.
Couldn't the backers just request a chargeback?