skysight-inc/HackerNews huggingface dataset:
​I think sometimes you can strike gold with a good brainstorming session, but it is a rare occurrence. But I do agree forcing out ideas without much thought and in usually limited amounts of time can result in some horribly uncreative ideas.

You can't force an idea, they just come and history has proven you come up with creative solutions and ideas to things when you try and fail, sometimes hundreds and thousands of times.

Do you think Thomas Edison invented the light-bulb right away? He failed multiple times, he didn't succeed the first time he created something. In-fact, I am fairly certain although nobody knows the exact figure, but it was over 1000 attempts. The difference between a good idea and a bad one is experimentation and the execution of said idea.

Once you have the initial idea, it never hurts to have a post-idea brainstorm to help further refine the idea. Conception should be natural, but getting multiple people involved to refine the core idea I think is still a great way to help a great idea even better as you get more than one angle you should approach it from. Don't be confused here, this is a different kind of brainstorm, not an ideation brainstorm like the article touches upon.

Great article that I think some companies who insist on brainstorming should read before they decide to pull an all day brainstorming session that will ultimately result in most likely nothing substantial or worthwhile.
My first thought when I saw that trivial programming question was to write it in Brainfuck.

My second thought was to come here to the comments to see how long it would be before the attempts started.

My third thought was, if you're allowed to use any language at all, I'd go for code golf. Not sure it's possible to do it in fewer characters than:

#!/bin/sh
cat
Java hate is overblown, but compared to say Scala (I have professional experience with both) it makes a lot of relatively trivial things (like basic data-holding classes and operations upon them) more painful and verbose than they need to be.
It's called "paying it forward". Assuming, of course, that some form of BI would be in place, you would have spent those 10 years in school supported by a BI. So paying those taxes, you're making sure that people just like you can afford to spend 10 years in school and become great and awesome too.

PS: I hardly ever meet any of those "able bodied people who choose not to get off their ass" - they mostly show up in discussions like these - and I suspect they're a tiny minority. Let's not adjust policies to punish that tiny minority if, in the process, everybody else gets punished too.
I have heard plenty of execs and managers use the word "poach." Perhaps if we accept that it reflects badly on them rather than us.
It also doesn't need to be unethical to be illegal.
Not really new, I have seen someone talk about it in HN Kansai about a year and a half ago.
A better one: http://www.reddit.com/r/MH370/comments/218i36/how_the_satell...
Google rejects Darpa military funding for its robot
I'm not sure why you'd want to use a catch, but I agree there is more than one way to solve the problem. I was merely pointing out one thing that would prevent the code from passing the test framework.
> While the later is certainly much more questionable on the legality standpoint

The author of this post seems to have acknowledged that part was suspect.
i rely on my gps a lot even when just walking around the city (i get lost easily), so not having it was really a deal-breaker.
Susman, Wachtell, Boies (and several other litigation boutiques) all have had bonuses that exceeded 100% of base salary (160k). In order to get those bonuses, however, you're probably looking at at least 2400 billable hours a year.
I knew a guy named Steve who ensured job security using Delphi. He wrote this malevolent and semi-sentient framework called The Framework, that managed to combine the ugliness of COBOL with the programmer-friendliness of... well, COBOL, now I think of it. Delphi has a couple of different flavours of inheritence built in -- object inheritence, controls owning subcontrols, TFrames embedded in TForms -- but The Framework increased that number somewhat. From memory, I think I counted nine different kinds of hierarchy, all intermingling in weird and utterly undocumented ways.

For all I know, he's probably still working there. The poor, poor bastard.
> California's limitations on noncompete clauses are quite strict, to the point of making noncompetes mostly worthless, but this is extending that to nonsolicits, and extending it to all 50 states.

No, its not. The idea that nonsolicits are combinations in restraint of trade as prohibited by the Sherman Antitrust Act has nothing at all to do with the California legal rule against noncompetes -- its certainly not a generalization of that rule.

> Regardless of what you feel about the case I think that's a huge change to the current ecosystem.

Its fairly well established that agreements not to compete between firms are generally illegal under the Sherman Act; finding a new exception to that rule would be a bigger change to the current legal climate.
Except they explicitly state that they don't do this. They refer to the 50% charge scheme being used in the Chevy Volt and claim they don't do that.
It is a really neat game. Kudos to maker(Luke). One must possess a unique combination of creativity and subject matter expertise to bring this kind of engaging game to audience(users). I heartily encourage those makers and wish for more games on other programming languages (such as Rails, HTML and Javascript etc).

Does anybody know other games like this in HTML, Javascript and Rails?
Or perhaps it's the massive infusion of funding that makes the US defense industry breathtakingly inefficient? :-)
But they weren't willing to offer it to them. They might have been, if it didn't mean competitors might start poaching, but it did mean that.
Looks like I don't get the job.
I wanted to share after I completed it, and I was completely expecting a share link after I finished it all. Make it easier to share
Very cool.

Possible bug: on level 19, :nth-last-child() doesn't seem to work for selecting the first child in a set of children in firefox. Running

$("bento:nth-last-child(2)").length

is coming up 0 in the console as well.

edit: these work though :/

bento:nth-last-child(even)
bento:nth-last-child(1n+2)
bento:nth-last-child(2n+0)

edit 2: Ahh figured it out. :nth-last-child doesn't match only nodes that satisfy the selector you called it on. It matches all sibling nodes of the selector you called it on.

edit 3: Actually, I don't know what I'm doing. It might be a bug. I can't tell anymore. Anyone else have any thoughts?

edit 4: OK, I finally get it... nth-last-child() is a qualifier not a grouper(I don't know the actual css terms so I made those up). That is to say that when you specify bento:nth-last-child(2) you're not saying "of all the bentos give me the second one" you're saying "of all the bentos give me those that are in the second child position."
Somewhat odd to target a computer that already runs for 12hours to run 'another 12 hours' with a big bulky external battery pack. Would make more sense to target something like an iPhone or others that run way too short to last a day. Problem is: battery packs for those are a dime a dozen.
I do wish them best of luck though!
If only they had a web interface as handy as http://www.random.org/integers/?mode=advanced
Einstein's 'spooky' theory may lead to ultra-secure internet
The professor's point is about group brainstorming, not individual brainstorming. Indeed, what he says in the context of brainstorming (see around 13:00 in the interview) supports individual intellectual effort as a better way to come up with good ideas.
You did not limit your criticism to the crypto group at NIST. Your comment was about "anything" that came out of NIST. I am not sure how I argued your original position by saying that the metrology work that comes out of NIST is top notch. How did I support your claim by arguing and presenting evidence of the opposite?
"Most grad students from India studying in the US are by far of a higher quality" --- This is completely wrong. The one who go to study abroad are definitely are the TOP 10% at all in terms are talent and quality. It is only that their parents were able to send them to additional tuitions (private coach session apart from school time) and was educated and have money send them. I myself know at least 100s students who are far better than those who go to college in USA or other countries. Please note that exceptions are the one who go to Stanford, Berkley and few top notch ones but even they only get students who have money not the one who have passed excellent scores.
On the flip side (and I too have professional experience with both), Scala can very easily make simple tasks really hard to read later.

There's a balance. Neither is optimal. (I think C# comes very close to what I'd call "perfect", but it doesn't run anywhere I'd want to use it.)
The US defense industry is breathtakingly efficient at extracting money from the US government, which is, after all, its whole point.

The US military procurement system may be breathtakingly inefficient at procuring cost-effective equipment, but that's a different issue.
Started programming on an Apple II which I still own, in 1983 aged 11. I'm 42 now so that's 31 years. You'd need to have started at 4. Plus by the mid eighties it's not like this was that rare. My school had rooms of computers (BBC Micros, later PCs) and the kids all had ZX Spectrums, Vic20s and Commodore 64s. There are tons of people on their 40s like that. Most CompSci and Physics undergrads who were my contemporaries at college - so also now in their 40s - followed similar paths.

So it makes little sense to suggest that it's somehow a crazy idea that someone 5-15 years older than you (in their 40s) might have a longer track record working with computers.
>"FTE" is another term I'm not a fan of, because it's often used with fractional numbers like "1.5 FTE", as if we can chop a person in half.

Huh. See, I actually think that employee quality of life would be much better, at least on the high end, if employers really thought that two half-time folks were worth one full-time, and you could work half-time for half-pay. I dono about you, but I can live well on half what the market would pay me. Yeah, I like having more money, but at some point? half the money for half the time starts looking pretty good, especially with marginal tax rates being what they are.

In my experience, if you want to go part-time at a high-paying job you can, but it is quite difficult. You have to prove yourself to be difficult to replace, then use the leverage that would normally get you a large raise or a promotion, and spend that leverage on going part-time. You usually also, in my experience, lose company benefits.
Well, inside the store is a bit different, but an analogous situation might be two stores agreeing not to buy out ad space in front of each other. And I agree, to me that seems rather innocuous, as does agreeing to not poach from each other.
One example of how it should work: On puzzle 1, the expected solution is "plate", but * works fine; that's completely OK because puzzle 2 forces you to use a more specific selector.

On level 7, it's possible to ignore the intended lesson and use "plate .small, bento .small".

On level 10, surprisingly, it's not possible to ignore the intended lesson and write "apple, orange, bento, plate".

On level 11, .table * * works, though that does use the intended lesson.

That's in addition to the ones already mentioned in the sibling comment, which were the first ones I noticed.
"You can start using Java 8 as soon as you are willing to move."

As long as you aren't writing Java code on Android, in which case you're still stuck at Java 6 (with a very small subset of Java 7 features that were added 3 years after Java 7 came out).

Not the fault of the Java language, really, but it is incredibly annoying how unclear Google has been on the future of their dialect of Java post the Oracle lawsuit.
Microsoft Is About To Leave One-Third Of All Computers Vulnerable To Hacking
This has been the case with several industries (manufacture, service to name a couple) ever since the capital was globalized beginning from late 80's. The difference is that the collusion is a part of some trade agreement (GATT etc.,) where labor movement between nations is severely restricted or banned altogether and capital movement is encouraged in the name of liberalization!

This has resulted in industries being shut down at a massive scale in US where labor costs are higher and moved to a country where labor is cheap (China, India and so on) and also less regulated ("flexible" is the word used). As a bonus companies get to flout just about every environmental regulation which are non-existent in third world countries (think Bangladesh's textile manufacturing plants producing for luxury brands).

The net result of this combination of "free capital movement + restricted labor movement" is reduced wages across nations and industries. And over the time you end up having no skilled labor in a company's nation of incorporation (Apple?).

The supreme irony I see here is that the advocates of "free market" for capital tend to advance amazingly absurd arguments when it comes to having a similar free market for labor.

I highly recommend watching this talk by Noam Chomsky titled "Free Markets?": https://www.youtube.com/watch?v=WHj2GaPuEhY
> Use Haskell when you need to ensure job security.

I'd say, Use Java when you need to ensure job security. And it is.
NIST is explicitly advocating its use in security applications.

I also have no trouble conceiving of a scenario in which the US government may want to make an invalid scientific paper appear valid.
> Panasonic would NOT pay additional money in licensing to make less money by having their batteries last longer.

> Large companies like this make sure the batteries they use aren't interchangable or standardized

Li-Ion cells are made in a variety of standard sizes: http://en.wikipedia.org/wiki/Battery_sizes#Round_lithium-ion.... I happen to own a couple of individual 18650 cells, and Panasonic and a number of other companies supply these cells to battery pack manufacturers wholesale.

See also: http://www.panasonic.com/industrial/batteries-oem/oem/lithiu...

Battery packs for consumer electronics are another issue.
Here's the thing though... Those mistakes you made aren't language specific. What languages don't expose you to making similar mistakes?

There are some, but they aren't the ones people usually think of when they say, "I'd always use X instead of Java".
The OP topic is crypto? Is the OP crypto topic your blanket rejection of anything that comes from NIST or the link with:

WARNING:
DO NOT USE BEACON GENERATED
VALUES AS SECRET
CRYPTOGRAPHIC KEYS.
Essentially, think of the reason for Google to want this. They essentially want to keep their engineers with them for a lower price while preventing other companies from offering more attractive positions/salaries which would mean either Google would have to match the salary, or they'd lose the engineer.

A lot of hires and promotions are made through these sorts of offers. Steve Jobs famously courted John Sculley from Pepsi. Do you think Marissa Mayer applied for her role at Yahoo?

These sort of agreements restrict the market and are unfair to engineers.
Java is a likable language. It's not a lovable language.

It occupies a weird middle ground where you give up the capability to code to bare metal or easily interface with C functions in exchange for nearly being able to quickly and succinctly create powerful abstractions.

There's not a whole lot wrong with it, but I don't think I've ever been using any other language and missed something from Java. But when using Java that experience is common and I find the amount of effort you have to put in to not write repetitive code is annoying and results in overly complex architectures.
Copy standard input to standard out? It's like 5 lines of code in Java

Scanner scan = new Scanner(System.in)
while(scan.hasNext())
{
System.out.println(scan.nextLine()+"\n")
}
We are going live with Stripe tomorrow. Good to read all these comments :)
Why they say "DO NOT USE BEACON GENERATED VALUES AS SECRET CRYPTOGRAPHIC KEYS"?
How a Japanese high school dropout became a multi-millionaire entrepreneur
hahaha

You are correct! My apologies - I have no idea why I typed that so many times, Bill.
Sorry, promote was a poor choice of words, I meant offer illegal services, not just talking about it or promoting it. I believe DDOS is illegal in many jurisdictions, and offering it for money more so. The allegation in the krebs article is:

a great many of today’s DDoS attacks are being launched or coordinated by the same individuals who are running DDoS-for-hire services (a.k.a “booters”) which are hiding behind Cloudflare’s own free cloud protection services.

I don't see Matthew Prince's post quoted above as a satisfactory response to this. This is morally and legally shady because cloudflare directly profit from the continued existence of DDOS, so they should be very careful to offer not a shred of evidence that they currently support people who carry out DDOS IMO, it would just be good business and current customers are going to get restless if they find cloudflare protects DDOS sites knowingly.

They've obviously taken a different stance (based on not wanting to filter customers on content), which I'm sympathetic to, but if the content is illegal and directly benefits them by facilitating more DDOS attacks, that equation changes.
Suppose my preference for mobility is genetically informed. Does that mean "know your customer" laws are a violation of my civil rights? If sexual preferences turn out to be malleable by circumstances and are not genetic, would that make gay marriage restrictions acceptable? If not, then I don't see the relevance of genetic influences on human preference.

If you believe there is no fundamental principle preventing the state from regulating same sex marriage and the state merely needs a rational basis to do so, here is a very simple one. It incentivizes bisexuals to lean straight, thereby reducing the amount of gay sex and the transmission of STDs.

Note that I don't subscribe to the reasoning I just stated - that's just standard left wing political theory (which I don't agree with) applied to a scenario that left wing types refuse to apply it to.
C++: The Infernal Loop Iterator
2048 Berlusconi
Amid Wave of Pro-Gun Legislation, Georgia Proposes Sweeping Law
The distribution of pay is depressingly bimodal: http://www.nalp.org/salarycurve_classof2011.

Mid-tier law schools are definitely not pumping out lawyers who make $150k as first year associates. Even coming out of a top-20 school, you have to be ~top 20% to be competitive.
Online college courses
Nothing beyond an automatic flush/close of stdout on exit. The python code above is also reading the entire file in to memory before writing it out to disk, which isn't exactly wise. Aside from the addition of a flush at the end, the correct Java code for this is simply a loop with an exit test over a read() & write() though, which is really no different from the proper Python code.
> Finally, do you think maybe you might need to worry about buffering of System.out's stream?

print() won't flush to the console unless you pass '\n' and auto-flushing is on. It will flush its internal buffer, but that's okay! The default System.out uses a BufferedOutputStream anyway:

FileOutputStream fdOut = new FileOutputStream(FileDescriptor.out);
...
new PrintStream(new BufferedOutputStream(fdOut, 128), true)

So using print() instead of write() shouldn't cause any extra system calls, although there many be a small CPU cost.

Obvious, right? Don't you love java.io? :)
What is a likely way for that to work with something launched in 1996? If the plane was going 50 MPH away or toward satellite, that's ~7e-8 * c. If I remember, the frequency would be shifted by a factor of the square root of (1 - 7e-8)/(1 + 7e-8), or its inverse.

Would the satellite always relaying that level of precision to the ground? If it is, why would they have prioritized that over what would have presumably be a dramatic increase in capability if it were discarded instead? Could they have designed it to store that much precision in rotating logs available on request? And furthermore, how is a relativistic Doppler shift on those magnitudes discernible from the frequency shift naturally occurring from the plane's transmitter?

I suppose my point is that while it's easy to understand the idea of a train whistle changing pitch as it passes by, how they would do it in practice sounds like magic, being unfamiliar with the capabilities and the equipment that geostationary satellites generally carry.
Thanks. Indeed a lot of hard work has gone into the initial stages when there were only two people working, Deena as product and design and me as a techie. And hard work still continues. And glad to see that our clarifications saved further degeneration.
Simple, beautiful and ad-free. Read the manifesto
:nth-last-child(4), because if you do first-child(2) it selects the second orange as well.
Because it's like rain on your wedding day
Ok I guess if the market gets out of control with everyone poaching each other's customers blatantly, then any agreement to scale back is considered an illegal cartel?

So if for example stores advertise massive discounts in front of each other's premises specifically for the customers about to make a purchase at the competing store, then two stores agreeing to stop and go back to simply letting shoppers DO THEIR OWN RESEARCH is a cartel?
A corollary: we use Java and Python mostly, and when interviewing candidates, the vast majority of them choose to give their answers in Java. I don't ask particularly hard questions, but I find that I usually get a good sense of the candidate by just talking to him as he's working out the answer.

This one guy chose Python, which delighted me since it's so rare. He then proceeded to produce answers much more easily than the average candidate, and he was able to make changes as I suggested them without too much effort.

We hired him but had to let him go after a month, when it became clear that he wasn't as good as I'd thought he was. Turns out it was Python that just made him look smart.

I like Java for actually getting things done, but it's such a vast ocean of TMTOWTDI that interviewing in it seems harder than in smaller languages.
Its largely because the solutions come out too verbose in Java. It takes far too much code even for simple tasks. After a while it gets on your nerves.

I have no problems with Java. But I have routine fits of frustration during P1 issues when I have to dig piles and piles of code to analyze simple things. Often its like there are 9-10 hierarchy of classes each doing something very simple and passing the burden of implementation to things below and down there you see more and more verbosity, boiler plate, getters/setter and pages of exception handling.

In some way Java too is a write only language.
Well done. A little 'getting started' would help people get started faster. This written at the top "Select the plates" & the progress bar weren't obvious because there were occluded form the view.
Sounds great! I wish there will be a DLL version for Windows, so that people can make wrappers in other languages such as Pascal, Python, etc.
> The default System.out uses a BufferedOutputStream anyway

Yes, which is the _problem_, not the _solution_.

To clarify: the problem isn't that the code makes too many syscalls.
Dumbphones are great for communication, right? You've got the phone and SMS, what else would you need? Well, what if people start getting annoyed at you because you use SMS instead of a chatting application? At some point I didn't have a data plan and I would have to call/SMS people, and they would keep urging me to get Whatsapp so I could message me in that app rather than the historically vastly overpriced SMS.