skysight-inc/HackerNews huggingface dataset:
This is my favorite python implementation in this thread. I daresay it's beautiful.

Including whitespace it's still half as long as the "11 line" core of the C++ script.

There's an unnecessary 'r'. Combined with the line rhythm established by opening the files in consecutive lines you ensure readers who would have been confused by the 'w' will quickly understand.

And the last line reads like programmer English; by which I mean English with a SVO word order. Not intuitive to the average person but quite parsable by anybody who's used a modern imperative language.

I can't even nitpick your choice of inp instead of input, the rhythm you setup and the contrast with 'out' means it's quite obvious what you mean.

Have an upvote.
Now all we need is a catchy jingle for Moss to sing along to.
Ask HN: Where should I take my post-undergrad career?
About me...
I will graduate with BSs in CS and Biology in August 2014

I have no industry experience. I do not feel passionate about anything at the moment. I want to enter industry at some point.

I have research experience and low-impact symposium/conference projects in public health, biology and informatics.

I have one outside computer science project that's not rigorous (automating a workflow).

I started programming in fall 2012, and I have been overloading myself between a job, research position, and coursework to graduate by August 2014, hence burnout, lack of side projects, and lack of industry experience.

I promise to pay your time and consideration forward despite being a long-time lurker.
Indeed! Librarians are often very highly educated, the couple I know have masters degrees. If you need something, no matter how obscure, you can ask a librarian, they will know how to get it for you.

I was disagreeing that public libraries cater to only the lowly forms of society (homeless and children) and don't require educated librarians. They do more than babysit and they employ such librarians. They also employ, for example, teenagers to stock shelves.
Mobile phone payments are most certainly not rendering lessons about financial planning obsolete, however.
Looks like they might have changed this. Or at least, it works with no input in either of the fields.
The government has significantly _lower_ turnover than the private sector, which isn't what microeconomics says we would see if the workers could make that much more by leaving. It's more consistent with the suggestion that the workers would make considerably less if they left.

So:

1. Microeconomics is seriously, perhaps completely, wrong; or,
2. Federal employees are much more motivated by non-financial rewards, such as the satisfaction of public service, than the rest of us, and are, therefore, better people than the rest of us; or,
3. They couldn't make more in the private sector, and would probably make less.

Take your pick.
Full Text Search for Project Gutenberg with MongoDB and ElasticSearch
Safari most usable mobile browser, followed by stock Android, Opera, Chrome, IE
I adhere to the traditional definition of a scripting language as being a language used for automation; i.e., to control a host application or several host applications.
The Back and Forth Over the Shutdown and Debt Ceiling - Graphic
>Like I said elsewhere, there is no specific problem definition for Bitcoin, so why bother to ask such a question?

Are you saying that, as Bitcoin doesn't have a publicly stated problem definition, its immune from any criticism of its design choices? That's a bizarre argument.

First off, Nakamoto's original paper has a section on Privacy, talking about how to maintain privacy by keeping public keys anonymous.
If Bitcoin, in practice, fails to provide privacy for its users, it is absolutely fair game to point that out.

Secondly, perhaps you mean that the original paper didn't have a formal specification of the 'privacy' desired, which the performance of Bitcoin can be evaluated against? Again, that's a bizarre argument.

Lets say I release a new design of car. You build one and drive it, and then it goes on fire due to a design flaw. How would you feel if I argued "But I didnt formally specify the parameters within which it wouldnt go on fire and injure you!"

That'd clearly be a nonsense argument, because there are expected standards of operation of a car, even if there isn't a formal spec. If you write an informal section on privacy in your paper, and your system compromises user privacy, criticism is absolutely fair.

> if you want that hypothetical system to not have this "linking" property, whatever that actually means.

The "linking" property is well defined in the context of Bitcoin anonymity; I refer to the situation where multiple addresses used as inputs to a transaction reveal the shared ownership of all those addresses.

As Nakamoto writes: "Some linking is still unavoidable with multi-input
transactions, which necessarily reveal that their inputs were owned by the same owner."
I think the approach is interesting but I don't understand how this considered theoretical. 10,000 elements for an N-Body problem is expected.

What I am more confused about is how this considered peak optimization.

Assuming they are utilizing doubles and doing both read and write I get the following computation:

(10000x10x8x2 bytes per second) or 12 Megabits per second vs the theoretical bandwidth of a PCIe of 40 Gbs?

Are they computationally limited and what is their memory access pattern?
Jury says Cuban did not commit insider trading
Necessary in all cases or necessary in some cases? My take on this is that you can successfully pass state around if it's small enough and only one actor cares about it at a time. Once it gets big enough you probably want to use an external service to store and synchronize it (a database), and then it matters less how your program is structured.

I suppose the exception to this might be gaming and simulations where what's more important is speed as opposed to durability of your data, yet you have lots of state to keep track of.
The Tiny Provision that Could Spark a Revolution in Health Tech
That's really wonderful! Is it yours? Have you considered hosting it somewhere? Dropbox seems so ephemeral...
Facebook Starts Letting Teens Post Publicly
They usually share a set of features in terms of typing, extensibility, ability to be used more as glue language than real applications, interactivity

A well known paper that discusses those capabilities is the John Ousterhout's paper for the 1998 IEEE COMPUTER, "Scripting: Higher Level Programming
for the 21st Century".

http://www.stanford.edu/~ouster/cgi-bin/papers/scripting.pdf
Can this be recorded please?
What format does FTP say the output of a LIST command should have?
I read in a book a long time ago and I still remember clearly when the protagonist said everytime that he was shaving early morning: "minus one".
Couldn't help but read your second line as talking about the smurf-porn(1) man page. :/

man 1 smurf-porn ?!?!
McDonald's in Germany
I know this will be a huge surprise to you but there might be people here who do more than glue stuff together with ruby for a living.
More Sales Not Conversations: Social Media Needs To Get Real
The Learning Conundrum
The LCD in your monitor is a filter, that controls what colors from the white back-light reach your eyes.

It is not completely effective - when the LCD is set to block all colors, there is some white-ish leakage as you say. A completely red shape on an LCD would still have some blue in it from the leakage. We perceive color and brightness relative to the other colors close by.

Flux shifts the color balance of the screen towards red at night. After your eyes get used to it, the colors look about right, but the LCD is in fact blocking a higher proportion of blue than normal.

What it does not do is change the brightness of the screen - this is usually done by changing the intensity of the backlight. It is bad for you to look at a screen that is either too bright or too dark for the room you are in, so this is best done with an actual light sensor.

Here is a thread about doing that, but neither of the programs in it work very well. If you fancy making an open source program to do this, you'll be my hero :-)

http://superuser.com/questions/284706/webcam-as-ambient-ligh...
FTP/FTPS has serious, protocol level issues (including things that are underspecified enough that its poor as a protocol for apps on top of, and things that are just bad decisions.)

WebDAV arguably has fewer essential protocol level issues (aside from being overly large and baroque) -- that is, it has fewer problems that are necessarily included in a correct implementation -- but lots of implementation issues (which, arguably, stem largely from the spec being overly large and baroque.)

OTOH, even to the extent that the problems (e.g., with WebDAV) are issues with the existing software and not the protocol, the main benefit of building a specialized app to a standard protocol is interoperability with other tools using the protocol -- if the existing implementations are incomplete and buggy in mutually incompatible ways, that negates the benefit of writing to the standard.
When your monitor is displaying a white image, lots of white light is coming out. When your monitor is displaying a red image, lots of red light is coming out. F.lux makes white images tinged red. F.lux isn't about removing brightness in general.

Your clarification is confusing me even more, I don't understand what your confusion is at all.
FISA Court Argues To Senate That It's Not A Rubber Stamp
I admit at first I thought it was depressing. But I quickly realized the opportunity to make the most of it. My parents are 80. Skype should sponsor this site.
http://en.wikipedia.org/wiki/Cross-country_skiing_at_the_201...

He's got to get 300 FIS points by Jan 20, 2014 to get the B standard in order to qualify for Colombia.

http://www.fis-ski.com/uk/604/607.html?sector=CC&listid=3000...

If that's up to date, I don't see that he has any.
I am aware of some nice scholarly work in this space. You may find Shih et al. approach of particular interest [0]. Their approach is very straight forward and based on image retrieval. They have also reported an accuracy of 99.54% for Adult image detection in their dataset.

[0] Shih, J. L., Lee, C. H., & Yang, C. S. (2007). An adult image identification system employing image retrieval technique. Pattern Recognition Letters, 28(16), 2367-2374.
Chicago

http://sjl.csie.chu.edu.tw/sjl/albums/userpics/10001/An_adul...
NSA Director and Chief Deputy to Depart the Agency
> I think scala-js seems to be the stronger of the ->js projects

What makes you say that?

(I'm a CLJS contributor. Just want to help improve it)
Its clear that 'good' is not the criterion for performance. Its merely the only sport not likely to cause death or risk of permanant injury to a dilletante. Nordic is a bitch for Vo2 max, with our without technique, I'm not arguing the case thatway.[1] Its just lame to think one is being anything other than narcissitic to be an "olympian" in this way. Its just brute-forcing a rules book.

[1] But then again, so is walking (postholing) in soft snow, without skis.
Most athletes have a goal of being the best they can in a sport

I'm sure he's trying to be the best he can. Why do you think otherwise?

You didn't say "the best in the world," which would be out of reach even for the vast majority of athletes who do make it to the Olympics.
Contrast that with the distance between Southern California and Maine... a day-trip by land for you would be a multi-day monstrosity for an American. :(
Matter Two
Still reduces eye strain, that's for sure. But then again, lowering brightness also does that.
Introducing TogetherJS
Ugh, define need. If sanity is required, stick to iterators.
for what is worth, VBA has had keyword translations for decades, and I've actually seen people use SE..FINE SE.

Interestingly enough, ALGOL68 already supported localized keywords.

The problem is you need to translate all the core language, not only keywords, e.g. list map(root) fold(plus) -> elenco mappa(radice) ripiega(più).

Supporting localized keywords in a parser would be relatively straightforward and a much smaller job than translating the whole standard library in something intelligible, I believe.
It's strange to me how some people seem to obsess so much over retirement. Is your intertemporal discount rate negative (i.e. do you value a dollar 50 years more than you value a dollar today)? That's awfully counterintuitive if you do. There is a risk that the utility will drop to zero if you die before then, and even if it doesn't there is every reason to believe that you will be able to wring more enjoyment out of it today then at a time when you are very likely to be physically and mentally diminished.

Perhaps it is an expensive minimaxing strategy.
Motivate...
Motivation in it's finest form. coded.
Redshift is open-source and works well as a time-based method. It could presumably be used as the basis for an ambient light triggered version.
What percentage of your motivation for writing this post was a desire to talk about making products for coders in general and what percentage was wanting people to check out your site?

http://www.enginehere.com

Be honest :)
There's also the OS's color-calibration/color-profile generation utility, which will usually let you set both gamma and temperature however you like them.
It isn't well defined?

Have you seen Oberon?
For http://www.interviewcake.com/question/largest-stack

There's a simple solution that requires no additional space.

Disclaimer: Code is not tested or given the love it deserves.

Class Item():
def __init__(value):
self.value = value
self.next = None
self.next_largest = None

Class maxStack():
def __init__():
self.top = None
self.largest = None

def push(value):
i = Item(value)
i.next = self.top
self.top = i
if value >= self.largest:
i.next_largest = self.largest
self.largest = i

def pop():
v = self.top.value
if self.largest == self.top:
self.largest = self.largest.next_largest
self.top = self.top.next
return v

def getLargest():
return self.largest
@mooism2 Ideally MLSD should be used, not LIST. That solves the formatting issue.
There is an interesting parallel to what is happening in the US today with these dev bootcamps, to the surge in IT workers in countries like India and Pakistan this last decade.

In these countries, an incredible demand for developers arose very fast because of the "new" possibility of offshore outsourcing.

You had radio mechanics, electricians, admin workers flocking to IT. It paid well and there was a huge shortage of talent.

Read an HTML book and take a course, and you're a junior developer. 12 months later, granted you hadn't messed up too much, presto! You are now a senior developer.

The party didn't last however, and now, Pakistan and India are high risk countries to outsource to, main reason being this dilution of the talent pool (while you of course can find incredibly talented developers in these countries, it is exceedingly hard).

That probably won't happen to the same degree in the US, but the jobs of hiring managers and young entrepreneurs (who are often inexperienced with qualifying candidates) are certainly not getting easier.
I believe they all do; the LEAF's is described here:

http://www.johnwmorehead.com/new-nissan-leaf-rare-earth-elec...
All of those judges should lose their jobs. How are the requests presented to the FISA court so baked that they deny so few? What makes them special as to have rejection rates so much lower than other courts?
Colorblindness perhaps?
I do, and domestic flights for 3 people cost that much, and that includes the car rental, gas, parking, baggage fees. Luckily I did not have to pay for a motel, and dining out three times a day or the trip to Texas would have cost more than $3K.
This. I've come to the conclusion that directive testing falls under two headers.

1, measuring the effects of the directive on the dom, e.g. rendering a list of orders. This reflects the state of the application and

2, e2e testing of directives with a real browser.

However, I'm not sure this is correct! I'd like to see some best practices listed by the Angular authors.
Many South American / Mediterranean / Latin cultures also value family a lot (the U.S. has the stereotype of Italians: people of Spanish and Greek descent too).

I visit my family every single weekend. No exception. And that includes my uncles, cousins and grandparents when they were alive.

I guess that for our cultures, family is a very important part of our lives, a safety net, etc... The average American is very individualistic in comparison (it's not meant to be negative - the very same traits mean Americans are more self-reliant and adventurous)
All I want to do is build a web site
Hopefully they'll kick Clapper out soon, too (unless they actually intend to act on that lying to Congress felony he committed, repeatedly, over the past few months).
Those two goals aren't incompatible, right?

The title may be a joke but the blog post is very sincere.
Please tell this to the Debian team (that they're narrow minded and prejudice) because I'd like them to move VB off of contrib (non free) to their free repos.
The Value of Starting from Zero
I came here to say the same thing. For important research, it would be interesting to see more cost/benefit analysis being put to bear in this way. The cost of replication should be so much lower than original work, in many cases. And it would be interesting to evaluate the "science" of academic "science", especially given the controversy around peer review quality controls in general on academic publishing.
False. Apple computers use ColorSync, the whole point of which is to line up the perceived color on disparate devices in disparate locations:

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

In comparison, the color handling/prioritization in Windows and Linux is crap.
THIS - So true, I am a Ruby developer and could probably earn an extra 20k if I changed jobs tomorrow, however I will not sit through an interview being asked stupid questions like "What is MVC", "solve this big O problem" or implement some algorithm that I will only ever need to use during interviews & can then forget about...that type of interview is very telling of the companies work environment & the type of people you will have me working with.

I will send you code samples or show you my contributions to open source projects so that you know I can code, happy to discuss these until you are happy.

What is far more important is to find out about me, do you like me, can you work with me & tell me honestly about your dam culture - do you expect everyone to be at there desk at precisely at 8am, work a minimum of 80 hours per week? How is productivity measured? Do you expect me to attend some "team building" weekend nonsense when I could be spending time with my wife instead.
This is really insane, intense and mind-blowing...
Infographic Friday:The Art of Influence Marketing
Very useful software. Willing to donate.
I should have been more specific. The defense "I sexually harass everyone, so it isn't sexual harassment" is just not in any way valid. Full stop. Period.

I used the first class action sexual harassment lawsuit as an example to illustrate the point of "just because it's company culture/I do it to everyone/he's just like that" doesn't make it not harassment.

The GP was giving false information that if you sexually harass everyone, than it magically becomes not sexual harassment and then it somehow gets thrown out in court, but does not cite the relevant court case. Just because you ass grab everyone that walks by doesn't make ass grabbing not sexual harassment by the law.

That's mostly my point.

As far as a p0rn filter, that's a different story. You can look at it a different way, legally.

I'm just playing devil's advocate here as to why it would be a good idea for someone to try to err on the side of caution in the workplace filter rules.

They may want to avoid the situation where person A is sitting in their cube while person B is watching hardcore gay porn next door specifically to harass person A. Person A might feel that the employee didn't do a good enough job to prevent this type of harassment by blocking access to that content.

If the employer doesn't try to filter out porn or at least create a policy against it, it might look like it is condoning or supporting it whereas their peers filter. (I just made that up, if say 85% of their peers make an attempt to filter) especially if it is well known that managers tolerate risque images/video if not outright porn, or if company culture tolerates it.

A less grey example is if you put a picture of two women who are mostly clothed but kissing and put it in the office breakroom. Everyone sees it, but it creates a sexually charged environment that can be hostile to some. That's a big no-no in HR land.
A Closer Look at Apple's Oregon Server Farm
Could you possibly submit this to the Homebrew repository?

https://github.com/mxcl/homebrew/wiki
Not to be pedantic but the Pythagorean Theorem was probably "discovered" and at least described much earlier than either Pythogoras or "the Chinese."

Gougo only provided a reasoning for the 3-4-5 triangle but not a general solution for other triangles. The Apastamba Sulba Sutra (~600BCE from "India") contained a numerical proof for the theorem. The Assyrians and Babylonians recorded "Pythagorean triples" but didn't mention triangles.

It's only until Euclid comes along that a proper axiomatic proof is provided. None of takes away from all those that contributed to the upward climb that is human history, though. It's high time to appreciate human achievements rather than "national or ethnic" ones.
"Completely unmaintained public hair". And now i'm wondering if we could disrupt the market with a Public Hair as a Service platform.
That was the point I had been trying to make in the last discussion.
Coho Data Emerges From Stealth With SDN Storage Appliance
The most frustrating part about this to me is the certain knowledge that all of the informed parties are quite happily cherry-picking statistics to serve a political narrative and the majority of reporters and analysts are unable to do any sort of deep analysis of the source material because it's all classified.

The mere availability of source documents elevates the conversation from a juvenile process of people hurling meaningless statistics at each other. In the absence of actual data and redacted filings provided by the government, leaked documents such as provided by Manning and Snowden take on a new life. Instead of just statistics without context, there are documents that illuminate a court of law that's basically been a secret up to this point. Obviously those documents selectively serve a narrative, but ironicaly, they're made even more powerful by virtue of the fact that they're the first substantive look that much of the public has gotten at the FISC.
Previous discussion (before the official announcement) https://news.ycombinator.com/item?id=6415210
Yeah, it is not a scripting language for processing lines. Although the line nonsense has a benefit though it could be adapted to parse out records and by overloading the less than operator to sort on a specific column. But then you would might use AWK instead.
In case you were sleeping during Stats 101:

http://en.wikipedia.org/wiki/P-value
> I think that in general you're right

Oh, dear. This is very much not a good sign, since answer to grandparent's question is "no" as pointed out above and anyone who knows statistics should see that immediately. (Checks Science Exchange site.) Okay, Bilal Mahmood is "customer support and outreach" so this is not necessarily fatal. Still worrisome.
I've known people in a bicycle club in their 70s who ride 100 mile rides a time or two a year. This being an antique bicycle club, that's 100 miles on an antique high wheeled bicycle. Fixed gear, and quite heavy.

Outliers for sure, but those are just those who I personally know. My own parents, 71 for him and 68 (with an artificial knee) for her, will be touring Hungary next year. I don't think it'll be 100K per day, but it should be a healthy daily distance.