skysight-inc/HackerNews huggingface dataset:
> Isn't PHP-FPM a fastcgi process manager

It is.

> I don't see any references to threading

Wow. I always thought it was threaded. My mistake. It seems it launches multiple child processes. There is some form of memory sharing going on, though. Looks like it's some sort of a hybrid. Now I'm just thoroughly confused ...
You are one of the worst things for an emacs/vim-shame victim, the "Honest, if you keep trying, you'll get it and it will fix your life!"

Just to be clear, I'm happy you enjoy your text editor :)
Show HN: my feedback for Stanford AI course
~~~
The Good:
1) Video editing:
This was a subtle but wonderful feature of the lectures. Specifically, editing out the lengthy seconds it takes the instructor to write out comments or equations made the viewing much more focused and engaging. I think this is an important feature because it really takes advantage of the medium and moves beyond one of the limitations of live, classroom teaching--pacing.

2) Short video clips:
The short clips made it easy to consume the course in small nuggets completely up to the schedule of individual viewer. It also made it easy to review specific points later on.

3) Interactive quizzes:
Having to stop and figure out the solution to a problem no matter how long it took was an extremely rewarding learning method. Contrast this with in-person classroom lectures in which if an instructor asks a question of the class, someone will answer and the lecture moves on even if everyone didn't understand it.
If anything, I encourage there to be more quizzes of this type in future iterations of the course.

4) Office Hours:
I thought the crowd-sourced office hours were a great addition to the regular curriculum. I wish the format had been in place from the beginning, but once it was implemented it was fun to vote on questions and see them addressed by the professors.

~

Areas for Future Development:
1) Include recommended readings:
Either text book chapters or technical articles. A few students posted some interesting articles on reddit, including a great article by Thrun on Particle Filters, and Prof Norvig's piece "On Chomsky and the Two Cultures of Statistical Learning." Great stuff, would have loved to see more, especially articles considered to be "central" to the field.

2) Include programming assignments:
To avoid the overhead of having to crunch student submitted assignments, have "Project Euler" style questions that have only one right answer, but have to be computed programmatically. The NLP assignment was a good example of this, but the questions were too small in scope and could be figured out by hand.

3) Restrict the forums to a single source:
I felt as though there were three active forums in the class, (not counting some great discussions on Hacker News). By the end of the term it seemed like the three forums differentiated themselves by topic-- reddit for general discussion, ai-qus for hw/quiz questions, and the onsite forum for office hours questions. Nevertheless, I felt like I was constantly missing out on interesting threads/questions and wished there was a single forum to rule them all.

4) Send recruitment letters after the final:
I congratulate all those who received emails from the Professors on being among the top 1000 and being invited for work opportunities. My only wish-- other than getting such a letter myself of course-- is that the letters be sent after the final is over. I'm guessing the Professors didn't expect the letters to become public right away, but for those who weren't at the very top it was a little disheartening to learn about that right before the final.
~~~
The last remark basically killed it.

Trademarks work like this: http://www.youtube.com/watch?v=o4zwq6MEaKw&list=UURyDduT...
Oops! It's not really a twist or anything, but yeah that was a bit of a faux pas. Pardon my stupidity!
> Publish like normal

Or may be, if it's just a blog post, let Google(blogger) handle it.
Devouring any possible content about JS online I can find. Constulting with fellow coders to improve my skills. I've just finished my tic tac toe game, yaaay! :)
Have you checked out http://www.pummelvision.com/?
Interesting, must be a culture thing. Here in academia (or to be exact, here in the computing department I am in), most people consider anything other than vim/emacs a 'toy' editor.
Beware Facebook Timeline: There’s no going back
The problem is that you think meetings totally go with the "boss" title.

But one can imagine a totally competent boss that HATES meetings and tries to have as few of them as possible to get the job done.
This is an intriguing idea. The majority of hackers hate this bill, and yet if the lobbyists and politicians pass it, they are going to need us to implement it for them. So maybe it would be some sort of solution, in the worst case, to organize a boycott of any person or company that works on it.
Don't worry about it. Not everyone is a vim god from the start. Everyone felt this way at first. Just have to keep on pushing and get going. Those vim users who act like they're god? Who cares what they think.

Personally it doesn't matter if you use vim, emacs, Textmate, Sublime, or even Dreamweaver. Whatever you're comfortable with, is what you should use.

I have been a Dreamweaver user since Macromedia made version 4. I then left Windows and went to Ubuntu and started using Gedit... Now I switched to vim... I am by no means a vim god... But I know enough to do what I need to, the rest will come to me with time.
Speaking as an Ontarian with some familiarity with the Waterloo area, I strongly doubt that its rural location has anything to do with RIM’s problems.

The “Good Old Boy” syndrome described can happen anywhere. The company is described as having 50-something executives who are out of touch making decisions. You can find hundreds of tech companies like this in Toronto, New York, Seattle, and SV. Some guys build a company, are successful, hire people just like them, times change, but they don’t change with it, and refuse to hire new blood.

For a theory like this to be credible, it must explain RIM, but also explain other failures and successes. You can’t posit that Apple couldn’t have existed in Wisconsin and use that hypothetical as an example to bolster the reasoning that Apple couldn’t have existed in Wisconsin. My question is, how did Microsoft succeed in the PNW? And why is it no longer succeeding in quite the same way?

I agree that Waterloo’s talent pool is interesting by virtue of UW, but not as deep as SV. Then again, lots of SV companies make these mistakes, so I think it’s more fruitful to look at the mistakes than to try to theorize about the environment somehow creating the mistakes, as if RIM would somehow be Apple if they had only relocated a decade ago.
There's some speculation on the Ars forum that if UMG aren't just making this up, their contract with Google could call into question YouTube's status as a primarily user-generated content-based site, and perhaps render them ineligible for DMCA safe harbor protection.

I just read some of DMCA Title II/OCILLA, and although it's mostly over my head, I'm not sure if I see how signing a contract with UMG allowing them to issue non-DMCA takedowns at will puts YouTube in breach of the safe harbor requirements.

Anyone with some DMCA expertise care to weigh in?
Jonathan Coulton said it best: "Infinite complexity can be described by simple rules."
Thanks for all of the tangible feedback - really helpful. Especially love the cute image instead of text. Thanks!
The American political machine blows my mind. There are some big problems on the horizon, and these problems will require cooperation (or at least a little capitulation). Let's hope they figure it out.
Show HN: a mailing list generator for Github repos
My friend Amir and I made Gitdash, a quick little app for Github collaborators to communicate better. It's pretty easy - you just log into Github and it'll automatically generate mailing lists for all of your repos.

Please check it out, feedback welcome!

http://gitdash.com
The 50 Funniest Tweets Of 2011 | Happy Place
People who are unable to comprehend the internet want to tax and regulate and censor every bit and byte. As the programmers and engineers who built the thing. Lets give them what they want. When it turns out what we built actually makes censorship harder and the imbeciles become angry, shrug and apologize then promise you will do it right if you get another chance. Knowledge is power, they cant take away our superiority there. They can only ASK us to tie ourselves up and put ourselves in the oven and serve ourselves up for lunch. You want root on the global net? War on freedom begins now.
Google's Android Update Alliance Is Already Dead
> And the USSR was exactly that kind of society

No, it was not.

Your username is Slavic, so perhaps you grew up in the Eastern Bloc; I certainly did.

Those were not socialist countries. Private enterprise was definitely banned, but the goods were not collectively owned either. The entire country was owned by a small clique with a rigid pyramidal structure.

Dictatorship is a much better word.
I think Hitchens is arguing against what people actually believe. Christians believe in heaven based (among other things) on Revelation.
It's all about the infinite numbers of bits that get lost as soon as the decimal fraction is converted in binary. See http://babbage.cs.qc.edu/IEEE-754/

Enter 1.15 and marvel how mantissa is represented:

1.0010011001100110011001100110011001100110011001100110

The whole FP number in hex is: 3ff2666666666666

if there were more bits, 1100 would still continue to repeat. But you have to store that number in fixed number of bits. Whichever fixed number of bits you select, you'll miss the infinite piece of repeats! Modern CPUs and languages represent the whole number in 8 bytes, using binary base, taking a few bits for the exponent. The above number is

3ff2666666666666

So now you multiply that with decimal 100. The result is still a series of repeats:

405cbfffffffffff

Whereas exact 115 would be:

405cc00000000000

Why do we get one bit difference? Because we started from the finite binary representation of "1.15" that is not equivalent to your decimal "1.15".

If you don't want such things to happen, you should use:

http://en.wikipedia.org/wiki/Decimal_floating_point

We write only decimal representations, and such representation used internally would always provide the "expected" results.

Currently no Intel processor supports such numbers in hardware, therefore such numbers are seldom present in languages.

As far as I know only IBM processors have hardware implementation of such numbers:

http://www.ibm.com/developerworks/wikis/display/hpccentral/H...

Your Ruby executable just rounds the binary represented result before displaying as decimal. It depends on the conversion libraries used and default rounding limits.
Circularity is here:

P( exam is today | P(exam is today | exam was not earlier) = 1) = 0

EDIT: if this is good formalisation of proffesor sentence. I'm not 100% sure.
ECMAScript has this as well as Java. Of course, using BigDecimal (or just using Groovy) or using strictfp in Java prevents this issue but slows performance.
That was always his opening line, actually.
Are you talking about the 2600 days or the 7800 days? From what I understand of Atari, the 7800 era was pretty lousy? But Atari sure put out some really great games for the 2600 considering the level of tech available.
Not really

$arr = array();
$arr[0] = 'cat';
$arr[2] = 'dog';
$arr[1] = 'fish';

krsort($arr);

var_dump($arr);

Outputs:

array(3)
{
[2]=> string(3) "dog"
[1]=> string(4) "fish"
[0]=> string(3) "cat"
}
I was hopeful about this protocol, but now I'm kind of disappointed. It uses email and is built into the browser, so why does it require JavaScript on the user side and a complicated verification server on the server side? I was a hoping for something simpler.
> If doing it on your webapp, don't!

That's the only place it's useful. Once the request comes in, I would split it off to a separate PHP CLI process. When the analysis is complete, I can transfer it to the user via web sockets.

So they would request a report. I would tell them great, it'll take a bit, keep working on something else and we'll let you know when it's ready. When it's ready, a notice shows up telling them to check it out.

> I mean I guess you could, but what advantage does it poses comparing to other languages available in pretty much every *nix system nowadays (perl, python)?

For something like this, the advantage would only be that you're sticking to the same language as the rest of your code base. It would make things simpler. So if you're using PHP, stick with that. If Perl, Python, etc. stick with that. It doesn't really matter. They can all do the work.
The more I see Microsoft bend over backwards for big corps to retard the web, the more I think that maybe big corps should just stay off the web.

Perhaps staying on proprietary, native platforms that don't change as often is their best course in the future.
It's exceedingly rare to get a huge raise just for doing the job you were hired for. The best place to demand dollars is in the interview. Inside a company your best bet is to clearly delinate role changes, and make your demands parallel to that change. Don't ever fall for the "do the higher level work now, get the raise later".
The point of a CMS like this, is that it would be built specifically for people that write client side UI's. So there really is not a need for a server run-time component, because the client app, request data and assembles the view. But there is still a portion of these web apps that are static, like the header, footer, etc. Say I want the same header on index.html and page2.html, I have to accomplish in one of two ways, I either use something like tiles for Java or I used something like dust.js on the client (for this style app, tiles is out, so it would be dust). What I would like to see is a CMS that composites that header into both pages and removes it from a run-time concern on either side. Now that's just one really simple example and I know current CMS's can do that, but I think their is a value in a CMS that only caters to this style app development. Further, the reason, that I would like to see it not have a server component is by eliminating it, and putting all of the dynamic CMS logic in a JavaScript files that get's delivered to the client, would be because CDN's could then be exploited for scalability. I could see, a pattern where companies use a CDN for all of the content, and an AWS instance to set up REST services and have virtually no infrastructure.
Why don't they implement Python and Ruby on the web browsers?
Looks like I was either wrong or they've fixed it. Apologies.
Use right tool. If you notice you slide into textmate/sublime/eclipse - then it means you use right tool.

For me VIM became main tool when I started to work in multi server environment where all access done through SSH. I could use my most favorite GUI editor Kate to edit files of SSH, but it was less effective due upload/download required.

Do not try to force some tool in your workflow. Instead try it for new tasks/projects and see if it fits naturally. I.e. you should be always aware of other existing technologies, but not forced to use these just because some think it is cool.
Is there a cached version? The site seems to be down.
What about static templating like mustache?
How can the study be double blind when it involves drugs which have such noticeable effects? People can notice things like impaired recall and figure out which group they are in, so it's not really double blind.
this post should be on browserid.org
i find it difficult to find what it does, how its different, etc.. well until your post that is
Applying refactorings with sed
Ditto. It was ok until you mentioned the trademark issue, now it's a legal threat and you should just come up with a new name.

A bad name won't kill your project, but trademark infringement definitely can.

But to answer your question, .net domains are still untrusted IMO but doing a domain hack or adding a prefix for a .com domain is legit. (thefacebook.com, getdropbox.com, etc)
A union of global programmers. Has a nice ring to it. Needs to have an incentive to join and keep the lobbyists out. Same problem that stackoverflow has to keep out trolls and idiots. In this case the trolls are riaa, mpaa, national interests to take over the internet and those who wish not to contribute, but to be armchair dictators of the most powerful tool ever made by mankind.
For an even simpler alternative to BrowserID see: http://dswi.net/
One of the really cool thing about emacs is that you can do so much in it. Everything from listening to music to browsing the web.

Unfortunately it lacks a decent text editor.
Good point. Presumably that is one of the differences in array performance between modern browsers and their eldery relatives.
It is a good book if you already know C++ and you want to get up to speed with the new C++11 standard. Not recommended for beginners in C++.

For the definitive reference I would wait for the 4th edition of "The C++ Programming Language" by B. Stroustroup.
It would only take a small minority of hackers to actually build it though. SOPA backers would probably put up the, upper limit, 100 million it would take to pay 10 brillant but selfish engineers to build the thing.
it is unacceptable in this day and age that a global brand should have the vast majority of its citizens derived from a [...] less important country (Canada), that does not have a history of empire

Wuhhh? The article makes some good points but this quote stuck out like a sore thumb to me. What on earth does that have to do with anything?

In any case, being in an unusual location is not necessarily a terrible thing. Companies in SV battle against employees jumping from company to company constantly- everywhere has its challenges.
And he beat Blair, who is no slouch either when it comes to debating.

He was an amazing person. He could write and speak with such force, yet such complexity and refinement at the same time. I deeply admired him even when I disagreed with him completely.

Farewell, Hitch.
please see my other comment. Your formulation (1) is wrong, and it matters.

If x is, as you say "a random variable from the set {1,2,3,4,5}, with unknown distribution" then it is true that you cannot, given the methodology of going thru days one by one, be 100% guaranteed to not be able to deduce the day of the test that you must have it that day.

This is because for whatever space of possibilities (in this case 1,2,3,4,5) on the last day of the space, you can deduce (given the methodology) that it must be that day.

But the teacher is not really giving you a gurantee that x is a random variable from the set {1,2,3,4,5}.

the teacher is only giving you a guarantee that x is a member of the set 1,2,3,4,5. You have no idea what x is, nor how the teacher chose it.

So, given the guarantees
Version A
1) x is a random variable from the set (1,2,3,4,5)
2) prior to the first day (commencement) you are given a 100% guarantee that proceeding thru opening days one by one until day x, you will not be able to deduce on day x, before opening that day, that the exam will be given that day.

in this case you are right: there can be no solution.

but version b is different:
1) teacher guarantees x is 1 or 2 or 3 or 4 or 5.
2) prior to the first day (commencement) teacher gives 100% guarantee that proceeding thru opening days one by one until day x, you will not be able to deduce on day x, before opening that day, that the exam will be given that day.

in this case you don't really know what set(s) x is a member of.

The teacher could fulfill his obligation for (2) by hard-coding x to be Monday.

The student could reason that "If by Friday we don't have an exam, the exam must be Friday", thinking that the space is 1,2,3,4,5. But it's not: there is no possibility the exam is on Friday, due to hard-coding the exam to be Monday, and therefore Friday is not the 'last day' the exam could be given. It's not any of the days the exam could be given. Nor is Thursday. Nor is Wednesday.

Therefore, the student is simply wrong in supposing (guessing) that this is the space in which the exam is on one of the days of.
If you use Textmate and basically miss the project drawer in Vim, there is a version of MacVim which has that integrated ( see https://github.com/alloy/macvim/wiki/Screenshots ) .

There is also Vico ( http://www.vicoapp.com/ ) which is a new Mac text editor with vi bindings, and well worth taking a look at.
Discovery of a 'dark state' could mean a brighter future for solar energy
This is apropos of nothing, but it's nice to see L. Jean Camp represent my alma mater.
I love these things and have wanted to participate for a while, so I'll ask you (Mike) something and offer other HNers my services.

Mike, what do you think about the technology scene in south Florida? I'd like to move back home at some point, and I fear returning to a tech-barren wasteland. It's clear that SFla isn't some tech desert, since you're in SFla and I hear about a lot of events from you. Still, my friends and I generally agree that we'll have to build the culture (via starting up or meetups) if we want it to exist. What's your take? What do you see in the coming years?

And now, my offer: I'm a stats/machine learning student, and I'd like to answer any questions you guys might have--whether you're studying for finals (like me), or you're wondering how ML can improve your work. Just reply to me here or email me (in my profile; don't forget the +hn).

Happy Friday to all!
That reminds me of when I was 13:

Me: I don't have my homework because I electrocuted myself last night and went to the hospital [true story].

Teacher: You should have planned that into your schedule [apparently serious].
200 startups are ready to sell their stock for your online influence
I see 'junioreven is the new 'jfruh, posting everything that hits ITWorld in the hopes it'll bring some page views to their site. Can we just set up some kind of RSS scrapey thing and be done with it, guys?
That sounds like a complete and utter nightmare.

This is why I am a developer for life.
The problem is that the decimal numbers in IEEE-754 are approximated by fractions where the denominator is a power of 2.
So

1.15 =~ 5179139571476070 / 2**52
= 5179139571476070 / 4503599627370496
=~ 1.1499999999999999111821580299875...

And then

1.15*100 =~ (5179139571476070 / 2**52) * 100
= 5179139571476070 / 4503599627370496 *100
=~ 114.99999999999999111821580299875...

You can read a more detailed analysis of how .1 is represented in Python in: http://docs.python.org/tutorial/floatingpoint.html
Once again - another resource with almost no windows support. At least he has a todo. . .

Back when I just did PHP and never used a command line having a widows box was painless. Recently I have been learning UNIX at work and Python at home and have been impressed by the lack of resources/support for working with Windows.

I suppose I should stop complaining and just blog what I've learned so far . . . though admittedly it isn't much.
Unreality Magazine: how SOPA could ruin me
Zynga rakes in $1 billion in IPO, then sees stock fall in market debut
The premise that a tweet set off the parliamentary rule enforcers is fun.

Also, is there anything more boring than a tweet declaring boredom?
> Maybe some of these technologies can be bought off the shelf from, say, China or North Korea, but at the very least someone is going to have to administer the servers that make this all work.

Unfortunately much of the technology used for censorship in places like China was developed in the US. Refusing to deploy it seems to be the only option. If we already have engineers willing to build these technologies it seems very likely there are going to be engineers willing to deploy it as well.
interrupted the steady flow of amendments that critics were offering to SOPA, which were being merrily defeated one after another by the pro-SOPA majority on the committee.

Does anyone have a complete list of these "pro-SOPA majority" handy?