skysight-inc/HackerNews huggingface dataset:
I see that this is getting upvoted.

* Guys, I made a logical mistake here.

I said "this is because if it hasn't happened by the last day it can happen"... But this supposes the students know what day it can happen. They might not.

For example, the Teacher might give the test on Monday every year. Assuming the students have no contact with last year's students (or didn't bother to ask) they would not know that the space of possible days is Monday.

Therefore, the teacher can make a guarantee that the test is on Monday through Friday, while saying that the students will be surprised.

The students, thinking that the test may be Monday through Friday, would assume that the last day the test 'can happen' is Friday. But that's not a possibility at all. So this assumption would be a mistake.

In fact, if the teacher is completely hiding his algorithm, then the students can be surprised.

They don't know if the space of possible days is "only Monday", "only Tuesday", or "Monday, Tuesday, or Thursday", or whatever.

Each of these spaces fulfills the requirement of some day monday thru friday next week: however, if the teacher keeps the space of possibilities quite secret, then the students cannot make their FIRST step of assumption, which is the last day that the thing "could" happen.

So, I have two answers:
1) If the students know 100% of the teacher's ALGORITHM (how the teacher chooses days) -- even if it is random -- then the teacher cannot 100% guarantee them that they will be surprised. Namely, on the last day of the space the teacher chooses from, they would not be surprised.

if, however, the teachers know NOTHING about the algorithm the teacher uses to determine the day, the teacher is indeed able to make his guarantee.

In other words, if I am the teacher and I am trying to make this guarantee, I can do so, provided that instead of choosing a day randomly from monday through friday, I hard-code the day Monday, while keeping this algorithm secret from the students.

TL;DR: if the teacher tells them only something ABOUT the day (that it is next week, and a monday or a tuesday or a wednesday or a thursday or a friday) then there is no paradox and he can guarantee that they will not know for sure of the day it is happening). If, however, they also know HOW the teacher chose the day (even if the algorithm includes randomness! i.e. 'a random day monday to friday') than the teacher may be unable to make his guarantee.
Grandfathered into the FIA (Formerly Charles Schwab) 2% visa signature card.

But if you have a couple cards with the normal 1% plus rotating categories deal, you can get near 2% on average.

Last I checked NASA FCU still has a 2% on everything card, and AARP has a great 5% on everything for an intro period.
Don't do that, just build better tech a little further out west. Read the declaration of independence, act accordingly.

Recall what the net was like before the masses, perhaps something truly free is worth more than whatever you're giving up by not being able to sell coupons on it. Who cares if the masses never come. They just wanted to sell their freedom for a pay cheque anyway.
For anyone interested in using BrowserID authentication from a Node.js app, Passport (which I developed) has a BrowserID module: https://github.com/jaredhanson/passport-browserid

Just drop in a few lines of code and you have single sign-on.
To be clear, I don't necessarily disagree with you, but I usually hang out on liberal politics, social justice, and assorted culture blogs. In many instances, you get people coming in and saying terrible, hateful, and/or violent things to bloggers, especially when the topic of sexism comes up. In that context, they were still called trolls and for me, the troll label was meant to reinforce my opinion that what they said was Not Okay.

Additionally, based on the initial line ("At the risk of being accused of trolling"), it seemed obvious that the OP KNEW that what they were about to say was terrible and/or offensive. That comment was an attempt to confirm that yes, what they said was bad and they should feel bad.
Ask HN: Which languages have better type safety than Java?
After many years of Java development and at least a few years of hearing Ruby developers and others complain of the excess of Java's type safety, today I've come to the realization that actually by allowing an instance typed as a super-type to be cast as the implementing class type, Java doesn't go far enough in type safety. I know this isn't some new bright idea, but you don't hear it often, especially with so many that I talk to that are promoting duck typing. The problem with Java's type system is that it leaves the developer with a false sense of security that code that you've integrated with but "sneakily" cast to the instance that "always comes back, it just needs to be cast" can withstand updates to an external library that changes the implementation of the type that returns from a method. This didn't really bite me that hard when developing against most Java libraries available, because most of them are designed so that you don't have to cast as something else to get the job done. However, when you are dealing with a external libraries that comprise a huge, quickly evolving codebase and you are trying to maintain existing functionality, at some point they are going to change the class you use to an interface (which they did) and use the existing class as the implementation of the interface (which they did), and you will lazily just cast the instance returned from the method to that implementation, and you will get burned.

So that said, is there a language that really does type safety correctly and does not let you cast instances to a type other than (one of) the contractual type(s) defined by the method returning that instance, and likewise does not allow methods of accessing methods/data/implementing type on the implementing instance by default as part of the language?
I'm not familiar with Waterloo, but I think/feel/assume that companies take on the culture of their executives, not necessarily their locales. Every company that I've worked for over the past 15-20 years has largely had the "personality" of its CEO and high-level executives. If they are aloof and dismissive of "the underlings", the company as a whole will be like that.

I guess my point is that assholes can be anywhere, and a lot of them end up in executive positions. If they are also incompetent, they have a tendency to bring their companies down with them.
OK, I see how to run a simple web server, like Mochiweb on Heroku Cedar stack.
But how do I connect to database?
How do I write to log?
The older people can sometimes bring more experience to the table if he was in previous ventures and learned from his mistakes. He/she can tell you flaws you can't see.
CREAM is fantastic. I used it for years, before I switched to OSX. I really wish they'd port it over, for nostalgia's sake.
Zynga IPO: Stock Falls Right Out of the Gate
I don’t know about your response, but I can predict the reaction to a comment asking why another comment was downvoted. Your original point may or may not have contributed to the discussion, but a discussion about why someone didn’t think a point contributed to the discussion is definitely not contributing to the discussion.

And that goes for this reply as well. By answering your reply I’m adding noise, not signal. Which is why this deserves a downvote as well as your query.
How Women Are Leading The Effort To Make Robots More Humane
Agreed. But, see this comment in the source:
//It may seem strange to not use a vector here, however (at the time of this writing) clang++ doesn't let you use a vector to store a group of threads

AFAIK, it should be possible to put threads (non-copyable but movable) to a vector in C++11. Of course, then the vector will not be copyable (but it will be movable). I think I've even done it, but I used GCC, which has had pretty good C++11 support for quite a while now. (sorry, I'm too lazy to verify)
I'm trying to find a mentor. I need help finding potential candidates.

I'm 19 and I'm really interested in doing systems-level work in either C or, more recently, I've been looking at Erlang. I'm just picking stuff up on my own.

The thing is, I don't know any professional programmers. I don't really have any idea how one finds a mentor. I don't know who I should contact. If anyone knows someone who might be interested in this kind of relationship, my contact info is in my profile.
For those Americans on HN born before the 90s, have American politicians always been this petty and ignorant?

It seems like for since Obama elected the entire opposition party has tried to do everything in their power to oppose anything that the party in power has come up with. And when Democrats and GOP do agree on something, it's bills like SOPA and NDAA.
Google Doodles Come To Shirts, Mugs & Stickers Via Google's New Zazzle Store
Is it just me or does the absurdity of this story immediately remind me of the "End Fund" story from TechCrunch?

http://techcrunch.com/2011/04/01/angel-investors-counter-y-c...

Except, it's actually real this time...
Christmas and Holiday TV Schedule for 2011
Interference Confirmed, Lightsquared Offers Concession To GPS Industry
Yeah and you can't just pass on your ebooks to a charity shop.
Zynga IPO peaks at $11.58 before settling near $10
With this theory, if we wanted to stop wars, we could encourage arms builders to simply stop building weapons of war. Yet, there will always be some people who view opportunity over everything else, and will be more than happy to build the weapons of war, even if 99% of the population disagrees.

On the flip side, the government may see any organization to halt such as illegal (I don't know what law it would violate, but I'm sure they could find something appropriate to give the organizers a nice cell in Gitmo).

Best idea if asked, is to build it, but do it incompetently (but intentionally). Poor UI, poor filters, bad tests, etc. Obfuscate the code as much as possible. Claim that its for optimization. Write it in an esoteric language that few will be able to audit properly. Pull out every trick in the book. I suppose some could call this sabotage, but it seems one way to do it. The US Government never seems to have a problem with hiring those with a strong record of incompetence.
If a publisher sells a book in a store, they typically split the revenue 50/50 with the store.

So, that $20 book gets the publisher $10 in revenue.

Then, they had to print the book and ship it.

Plus, they don't get paid for the books that they print but don't sell. This is a surprisingly high number on some books.

Out of that they have to pay the author (usually 10% of the revenue, or $1) and the printing and shipping costs of ALL the books, not just the ones that sold (say $2-$3 per book sold).

Plus they have to pay to get the books a good placement on the shelves and pay for the people to go to all of the bookstores and arrange for them to buy the books.

That doesn't leave much.

Selling an e-book for $10 and getting 70% of that from Amazon or Apple seems like a good deal in comparison.

The real benefit of ebooks, though, is that publishing a book is way less risky when you don't have to sink a lot of costs into printing books.

Looking at this from the viewpoint of an author leads to an even more obvious answer...
I agree. You can learn just as much doing it all by yourself.. and even more. Even in a startup, you're shielded from other areas like marketing or business development.
2011 Personalized Annual Facebook Report Project
Show HN: Python library for parsing config files and command line arguments
Any proposed solution cannot disrupt current economy significantly (avoid riots, breaking public services, hurting people. etc.).

I think you're missing the point of the Occupy movement.
Hi MatthewPhillips,

That's just the license header that's not stripped. I agree, that's a bit draconian. lemme see if I can fix that for you.

lloyd
I apologize in advance for the emotional and vague speech but the American democracy is an apparatus built to aimlessly move some rusty wheels and clatter about just nosily enough to give off the appearance of some kind of work being done. I believe there are people in politics genuinely interested in solving problems and making the country better for the majority of its citizens, but these people are helplessly stuck in this perpetual, over-complicated, irrelevant machine designed to fool the eye and distract us just long enough for someone, somewhere to shovel as much money and power into the right pile.

The most dreadful thing is that this is a system we are selling all over the world, and more often than not forcing it on people quite literally at gunpoint. But as long as enough Americans are more or less content with their lives and happy enough with their social/economic status the machine will keep on working.
It's crazy—I taught English in Japan circa 2002-2004, and those pages are laid out exactly the way our school newsletters were (and I'm guessing still are to this day). Right down to the oval portrait shot.
Uninformed suggestion:

Offer a money-back guarantee. If you don't feel you got your money's worth within 30/60 days, we'll give you your money back. I know that this encourages me to buy, and I can't recall ever using it. $24 is enough money that I think twice about it, but not enough that I'm concerned about being "scammed."
Very little new information will be taken from this multi page article unless you are a complete novice to the 3D printing world.

Here's the final output of the printer in question:
http://www3.pcmag.com/media/images/328278-slide-15-img-8972....

You can see that it is not exceptional output resolution. Some imperfections are visible, as well as stair stepping on every layer.
Oberon-2, a hi-performance alternative to C++ (1996)
Out of curiosity, by what process, in your view, is it supposed to be concluded whether a law passed is in violation of the constitution? You seem to reject the idea that this decision can be arbitrated at all. Is everyone just supposed to agree on this because it's obvious?
How about if an ebook about Jimi Hendrix contained video and audio content too? Something that went beyond the print version?
My favorite. Back in the mid-90s I consulted on a Lotus Notes project at a major company. We built a prototype and started showing it various VPs who would be using it.

One of the VPs was really terribly with a mouse. The tutorial was as much about the basics of navigating a GUI as the application itself.

Afterwards I asked the project manager "What does that guy do? He doesn't seem to know anything about computers."

"He's the VP of Technology." (!)
I would say the vast majority. For consumer web startups, you can just guess just by looking at their Compete traffic stats (comparing # of unique visitors to # of employees). For enterprise, it gets a little trickier, but if you see some big client names in their homepage, you can tell they're profitable by themselves.
I can accept that the ebooks is nearly as expensive as the real book.

I cannot, accept what happens so often on Amazon now -- the physical book is cheaper than the Kindle version.

Cheaper.

It is a slap in their own face too, since I refuse to pay more for a bag of electrons than for the physical book.

And it isn't a rare thing, it has happened twice on Amazon already - I imagine I can't be the only one who is pissed about it.
General nerd strike. We run the world. If we actually unite, we can get everything we want. Not just stopping SOPA, but complete copyright and patent reform, net neutrality, and everything else we care about.

The problem is we are a bunch of sissies. If there was actually a general strike, would you seriously refuse to go to work until SOPA was stopped? Could you do it? Are you willing to fight for what you believe? If enough of us do it, we will get our way. We have to be willing to refuse to go to work and to cause serious suffering on the part of others until we get our way.

I'll do it, but unless enough people join me it won't matter.
ZNGA.O - Zynga stock price
Ugly special casing requires code that would detect those special cases. This adds overhead in terms of processing cycles and code. Most arrays, majority of the time, store a tiny amount of information. Less than a dozen entries. Doing that sort of detection is massive overkill and would actually hurt performance. You want to speed things up for the real world. Not artificial benchmarks. How many times in your code are you really going to need 100,000 integers in memory? Probably once in your entire lifetime, if that.
Not to nitpick, but a lot of people would appreciate clear, concise communication. Ideally, communication to your boss should have been:

"Just to remind you, I will be out next week until Thursday. I let the team know, and declined all the meetings scheduled"

all the other details are unnecessary. Let em know what they need to know, and take care of things that need addressed before you go out.
> "If evolution didn't build in a powerful urge to make our gender behavior match our reproductive sex, then it made a huge error and missed a very easy and effective optimization."

I think this is actually a pretty reasonable statement, as long as it includes the caveat "on average" or "most of the time". Just as Down's syndrome isn't a huge problem for a population -- as long as it stays relatively uncommon.

A population comprised largely of people with Down's syndrome would likely be poorly adapted, and that's probably the case with a population comprised largely of gay people or transgender people as well. (Obviously, this is complete speculation, so I could be utterly mistaken.)

But yes, a population with a certain percentage of gay people could be better adapted just for having them, or alternatively, it could be better adapted because the same genetic diversity that leads a percentage of the population to be gay could be desirable in other ways.
This Google Docs sheet was going around on HN a while back -
https://docs.google.com/spreadsheet/ccc?key=0AlD_6iEb8Ed9dGs...

If not through this, Elance maybe? Or just post/search here on the monthly 'who's hiring/looking' threads.

Just curious...What's the stack?
Build a web app for people with ADD. You got domain expertise :)
I disagree: Somebody will build the thing, because there's always someone desperate enough to take the job.

However, there is a better way to accomplish the goal imho: A truly shitty implementation. Those who are already in the position to implement it would not have to quit; they would instead commit to implementing it in the least-efficient way possible.

As a nice side effect, we will open up whole new disciplines for inefficient coding, and create all sorts of employment as people need big iron to run bad code.
I'm not sure, if I'm thinking this way too simply, but I don't think any of those countermeasures work in this case. I don't know, if satellite gets signals from GPS-device (I don't think so), when using military signal, but anyway it will get exactly the same signal, as it would get in non-disturbed system. Similarly the droid will have exactly the same signal from satellite, only delayed.

When commercial GPS-devices begin to locate themselves, they need four satellites for the process: Three for the coordinates and one for time. I believe, that military system works the same way. If you cut down the signals for a while, the droid will, when the signal (delayed one) comes back, maybe adjust it's clock a couple of 1/10000ths of second to get GPS-locationing back in business. And after that the signal transmitter decides, where the droid will fly.

Many guesses here, but this is just one suggestion free for discussion, how the system might work...
Shell Company for embezzling or something? or what the heck?
So I work for a small company and we needed a list of gift shops to send an email blast to so If you type in gift shop emails in google you get a list including giftshoplistpro.com. This redirects to http://www.businesslistpro.com/ all information associated to this domain is private and no one answers their frickin phone after 15 emails and 25 phone calls w/message no response I start to get a little suspicious so I looked up the original domain which registrants info isn't blocked and get http://www.linkedin.com/profile/view?id=13953978&authType=NAME_SEARCH&authToken=WMqW&locale=en_US&srchid=8d529899-e48c-41d9-906a-d23d981e4ad3-0&srchindex=1&srchtotal=4&goback=%2Efps_PBCK_1_Jeff_Rutowski_1_1_1_1_2_1_Y_1_1_1_false_1_R_1_51_1_51_true_2_2_2_2_2_2_2_2_2_2_2_2_2_2_2_2_2_2_2_2_*2&pvs=ps&trk=pp_profile_name_link
For the company who owns the domain name and this guy on a link for linkedin is the owner of said company.

This guy was a vp at chase or something and now hes peddling spam lists????.

So I dig a little deeper and see the address is actually a business for a taco truck in texas.

I can't find a single shred of evidence this company actually exists at all and all contact info seems to send you to the black hole phone number 800-280-4904. So I'm starting to think maybe this company just went outta business right? well this guy @BusinessListPro is active on their twitter feed advertising or looking like they are an active company to the casual person inspecting the company. Am I way off on this?
Check out Project.tar.gz That plugin alone has changed the game for me. What a marvelous little thing.
They weren't available at the time, and because we were using Windows, they would still have been way out of budget.
the include file is about 4.7k minified and compressed. You don't need to include it in head, that's lame. we'll update the docs.

lloyd
What would happen if all the ISP's simply switched off the internet for a day? As a protest, a strike against SOPA if you will.

Or if Google simply shut down it's service for a day? And Youtube, and Facebook et al.

It's an outlandish proposition, but not as outlandish as SOPA.

Governments need to understand that they don't control the internet. The people that do could switch off their parts of it, and in these tricky economic times, a co-ordinated strike by the major players would send a very clear message.

"Back off, or we'll grind the country to a halt and it'll cost you billions".

These politicians are playing dirty tricks. Their mind was made up a long time ago. They'll not be beaten by due process and fairness.
they are going to need us to implement it for them

Its a nice idea, but that is flat-out not true.
There are many reasons to push application logic as low as possible in an application stack.

Let me give you an example: The people designing the database did not make the "email" column check that the address was valid. Then someone designing a new top-tier application (say android app) forgot to add the email check to the app. Then a user mistakenly puts his phone number into the field and now the auto-mailer (designed in 1998) breaks because the developer assumed the database would at least provide a syntactically correct email address.

Pushing logic down as low as it goes, or adding an abstraction layer (middleware) to the system greatly reduces overall maintenance cost. So doing some vertical scaling here and there is more cost effective.
If I recall correctly (it's been a while), the normal Mandelbrot works by treating each pixel as a complex number and seeing if it escapes to infinity or not when iterated through some formula... the Buddhabrot however plots which values are landed on as numbers are iterated...

An interesting alternative I tried some years ago is to draw lines for each iteration instead, between where it started and where it ends, leading to the following result:

http://img40.imageshack.us/img40/583/pathsoftravel5.png

(I have some C code lying around if anyone's interested.)
Well, let's treat it like a systems architecture problem, right? If you can orchestrate a cloud of servers, you should be able to at least make some progress on a union of states, yes? Good government, I think, is probably like good OS design--freedom, function, and security from others.

Join the discussion: http://news.ycombinator.com/item?id=3361424