skysight-inc/HackerNews huggingface dataset:
Ask HN: How to start a hedge fund at a hackathon
Hi,

I am attending a FinTech hackathon in a month and wish to build a crypto currency based hedge fund. I am a full stack javascript developer and already know about crypto currency and its underlying technology. However I am completely new to Hedge fund and doesn't have much idea on how to build a hedge fund.

How do I start learning about technology used in operating hedge fund? Searching on web yields blogs/articles which mostly involve legal stuff but not technology. What are the sites that I can refer to study about hedge fund technology so that I can at least build a prototype?
Ask HN: Strange Issue: Does Window Visibility Affect Performance on OS X?
While writing some karma tests today for github.com/soroushjp/humble, I noticed something really strange. Sometimes the tests would take a long time to run (3-10s) and sometimes they would run in less than a second. After some experimentation I figured out how to consistently reproduce the results.

Watch this screen recording: http://recordit.co/R30bQ3ZowE. I have three different browsers open and connected to Karma (Chrome, Safari, Firefox). When the browser windows are visible, the tests run in under a second. When I cover up the browser windows with another window, the tests take much much longer. Safari even disconnects because it was taking too long. I was really skeptical at first, but I repeated the test many times and always got the same results.

Am I right about my educated guess on what's happening? Does OS X allocate more resources to windows that are visible?

FWIW this is on OS X 10.10.3, and I'm running the latest version of all browsers shown.
Super cool idea. Best of luck with this.
Turning down an optional search of your persons or belongings does not constitute reasonable suspicion. I wish the courts would have sent a stronger message to this point. Clearly Officer Struble interpreted mr. Rodriguez decline as a reason to be suspicious of him.

Always say no. Always decline. This needs to be come the default/norm. Read about how inaccurate field substance tests are here[0]. People go to jail for this stuff even though they are law-abiding citizens who actually _didn't_ have anything to hide.

http://stopthedrugwar.org/chronicle/2009/mar/06/feature_citi...
I'm not sure if this is a weekly release of a topic or a total release on April 25th. Wish there was a way to get in touch with the author!
When to Nuke an Asteroid That's Heading Toward Earth (and When Not To)
Really? So now I cannot hunt deer for food? Please. That argument is ridiculous.
That's neat. But does anybody have personal web sites any more?

There was at one time a proposed TLD, ".nom", for personal web sites. But social went to Myspace, Facebook, etc.
The problem I have with the talk is that he's focusing on one narrow part of the economy and then using that as a proxy for the whole economy. It's also obvious he doesn't look at some of the negatives related to income inequality. For example, high levels of income inequality correlate with high levels of political instability and high levels of corruption. Countries with high income inequality are rarely gleaming examples of economic efficiency. They're often not very nice places to live. Countries with low levels of inequality (like much of Northern Europe) are nice places to live.

As Paul understands that we're all connected (you can't pull on one part of the bed-sheet with out pulling on the rest of the bed-sheet), he hasn't made the connection that if one side of the bed is dragged into being a shit-hole, the rest of the bed will eventually be a shit-hole, as it's all connected. In South America, for example, kidnapping is such a huge problem. The effect is to make these places less nice for the wealthy as well as the poor.

A lot of times the policies that reduce inequality aren't kill all the start-ups/crazy take all the money from rich people policies. Often their simple things that don't take a ton of money like head start funding, lower the cost of post-secondary education and training, and providing certain basic services like health care. What the US has done is to look at balancing the budget by reducing taxes on the very wealthy (upward pressure on income inequality) while taking money from programs that reduce equality.

There's a belief that most people who are poor are not working. Actually, many of them work quite hard. But washing machines work hard, too. Simply working hard doesn't get you ahead. In some cases there's a fair amount of luck involved. I sometimes look at the startup economy a little bit like pulling the slot lever. You can do everything right, but a lot of things still have to go well (some of which are outside of your control) before you cash out. Paul rightfully calls this risk, meaning that it's not guaranteed that an investor will get his pay out and it's far from guaranteed a founder will get rich. But it's bizarre to think keeping the US from sliding into an economic hell-hole will somehow destroy that slot-machine economy.
I believe at a certain stage of development they are as does science.
From my experience with dealing with OSX, yes, OSX tries to optimize apps (usually by force) by increasing the time their threads sleep depending on if they have a window on screen or not.

It is part of their battery saving stuff.
Definitely. I like things like contracts and optional type annotations very much. Some code is just hard to understand without those kinds of things, which leads to bugs.
> oxygen percentage of air is the optimum sometimes we'll be sub-optimal - how does the body cope then?

I think altitude sickness would be the result, not enough oxygen.
Read the opinion carefully, it explicitly says that the order of events is not justification enough. You are right in saying that this doesn't prohibit dog sniffs in all traffic stops. Period. However, you are wrong that stating that a dog sniff can be justified by simple ordering, see page 8:

>>The critical question, then, is not whether the dog sniff occurs before or after the officer issues a ticket, as JUSTICE ALITO supposes, post, at 2–4, but whether conducting the sniff “prolongs”—i.e., adds time to—“the stop,” supra, at 6.

and page 7:

>>a dog sniff, unlike the routine measures just mentioned, is not an ordinary incident of a traffic stop

SCOTUS is in fact saying that a dog sniff must be supported by what they call "individualized suspicion".
Science doesn't agree with you there.
This is wonderful. We will be using/hosting some of these datasets on Tuva (tuvalabs.com) for educators and learners in K-12, Higher-Ed, and beyond.
We use proxy protocol ELB -> nginx in production at CoreOS for Quay.io, but we use the Tengine 2.1.0 fork of nginx for some other patches.

http://tengine.taobao.org/
>> I am not going to talk about my solution since its way too radical for HN. I do not think a libertarian approach will work.

Libertarian seems to have different definitions depending on what I read about it, so I will just have to imagine what you mean :-o.
Giorgio Fischer, a gynecologist from Rome, Italy, invents liposuction in 1975. This allowed fat people to become skinny and therefore more productive.

Correlation does not equal causation.
First, like others have said, don't do it.

Second, I am going to assume since you were not specific you are talking about web development. There really, in my opinion, isn't a language that is better than another as far as what can be accomplished. On a very basic level you are going to be reading/writing data to a database. Every language can do this. There are some things to consider, if you don't have a Windows Server with IIS ASP is out.

For nearly 99% of the projects I create I stick with PHP and MySQL. Why? No reason other than it's what I started with. Why did I start with it? A friend of mine was already using it so I had a reasource to ask questions. Do you know any other non-begginers? If yes, figure out what language they prefer and give that one a try.

Lastly, and this is just my opinion, I would stay away from frameworks as a beginner. Once you have your sea legs so to speak, sure. At that point its about getting things off the ground as soon as you can. Right now, you should be focusing on the basics and understanding the syntax.
So excited for this. If anyone wants to start experimenting with this data set in cool and open ways, I will personally fund your small micro experiments.

NASA's APOD is so awesome and that's just a picture, imagine all the potential fantastic content that's now available and what you could do with it.
> Grape does a lot of things that turn into wasteful boilerplate in Sinatra

Would love to see a few examples

> I've down API dev in Rails too, but it really feels like killing a fly with a hammer sometimes

More like creating a few extra layers of abstraction to confuse the fly.
Thank you. Already checked and really thinking about MIT at the moment.
I think your comment is especially true when you think less of websites that make money and are actively maintained and more about the wealth of information that's out there on old websites that haven't been touched for years -- but may still be valuable resources.
Java 9 REPL – Getting started guide
The question of whether the officer had reasonable suspicion here seems to be in dispute. The lower courts found there was no reasonable suspicion, and the majority assumed that in their response.

Alito and Thomas' dissents cite some fairly compelling evidence that the officer did have reasonable suspicion: the vehicle occupants looked nervous, the officer smelled the overwhelming scent of air freshener (often used to mask drugs), and their story didn't make much sense.

The dissents are a really good read: I'm against the drug war full stop but had to admit that within our current legal framework, this decision doesn't make much sense.
It is absurd to compare university professorship - which revolves around concept of academic freedom and is backed up by the tenure system - with the arbitrary whims of patronage as it existed under, say, the Medici.

Indeed, the whole point of tenure is to create working conditions that avoid the exceedingly well-known problems endemic to the patronage system.
Contributor by Google – An experiment in additional ways to fund the web
Key... well, I should elaborate on that. I don't usually use cmp in my own code, and while I can think of situations where I might want to, using a wrapper class implementing comparison methods would be easy enough (modulo the missing mixin issue!). It's semantically a lot more complex to create a new object for comparison than to specify a comparison function when the English description is "sort by X" (of course, when X is just a property, key=lambda a: a.x is enough), but since this is a rare situation, I wouldn't mind. However, I ran into that issue when trying to teach my brother programming, and for learners, semantic overhead is really hard to deal with. Now, Python has no responsibility to optimize for learners over actual programmers (indeed, I'd argue it's always been worse as a first language than people think), but this was a case of removing a feature that had minimal additional API surface or implementation complexity; it really felt like removing things for the sake of removing things.

For encoding it's mainly annoying because now I have to manually add an import, which is more typing than before. To be fair, there is a cogent argument that my issues with both print and this mean what I really want is a different language altogether: one that, respectively, allows omitting parentheses for all function calls, and has some kind of implicit import. But other languages have their own problems, and this still feels like a paper cut.

Oh, and the annoyance is exacerbated by the interfaces of binascii.hexlify and base64.b64encode being broken. They both return bytes objects, which is dumb since the whole point of hex and base64 encoding is to represent binary data as text, and the most common thing to do with encoded strings is to insert them in the middle of other text. 'foo %s' % hexlify(b'bar') => "foo b'626172'"; to get the "foo 626172" I want, I have to do even more typing and append .decode('ascii').
Canada's 2015 budget extends term of copyright sound recordings from 50 to 70yrs
Refactoring with SOLID principles in mind
Apple offers developers a 2nd chance at an early Apple Watch delivery
This is awesome...I've actually been writing a Python 3.x guide like this for my own class...the more I teach programming, the more I find it necessary to tell students that programming is about learning how to make computer do shit work so that you can do the "real" work (at least, the thinking/designing phase). And so when figuring out what to do with programming, focus your programs on doing things you've already done before...just like when you learn Mandarin Chinese, you do it to be able to express things you've already expressed before in English, but to a wider/different audience.

edit: I had pitched this topic for a conference, though I'm mostly expecting it to be rejected for, well, being too mundane :) http://srccon.org/sessions/proposals/#proposal-106215

> Programming creates so many technical and creative inventions that it's natural for aspiring programmers to dream of big projects in the cloud. But this ambition ignores the actual goal of programming, which is almost completely about making machines do mundane work. And it is counterproductive to learning how to program, which requires consistent practice as in every other form of literacy and art. So this session will be about mundane programming. Programming not to be the next Zuckerberg, or to get a better job 3 months from now, but to make today or just the next ten minutes more enjoyable. Instead of focusing specifically on how to code, we'll expand upon the reasons of why we code (though seeing is often believing when it comes to code, so feel free to bring both ideas and Gists). And we'll trim the personal prerequisites of programming, which don't include being an entrepreneur, having a profitable idea, building a website, contributing to open source, or changing the world or your career. Programming can be learned, and done, with a willingness to learn and a wide variety of small problems to practice upon.
whackoverflow.com :)
What's your thought on something like contracts or facebook's flow (for js) ?
This source does not back your claims at all.

Firstly, it doesn't break the statistics down by race. Blacks are arrested disproportionately for drug crimes [1][2], you can't assume because the general prison population is 20% that the same is true of a subpopulation.

The FBI shows that White commit disproportionately more violent crimes[3] - though it is important to note that the FBI stats are arrests, and not prison. Blacks get harsher prison sentences for all categories, and thus would make up a higher percentage of prison populations than if sentences were even across races.

To show you why its other peoples problem look at your own sentence here:

>black men are killing each other

Over what? The answer here is the drug war creating hyper competitive and very well paying black markets, especially prevalent in poor communities where drug abuse is the most common (and thus drug dealing and territory are more lucrative).

No one is absolving the black community of responsibility, it would be crazy to do so. But to place ALL of the blame on a community with the worst schools, the least nuclear families, the highest rates of drug use, and the least financial stability would be well passed insensitive.

The problem is the subjugation of the lower class, blacks just happen to be disproportionately in the class and have been for generations. Looking at these statistics by race is a red herring in the first place. What we need is to be seeing crime statistic based on socioeconomic status. It will then be obvious what parts of society are breeding crime.

[1]http://www.brookings.edu/blogs/social-mobility-memos/posts/2...
[2]http://www.nytimes.com/2014/07/29/opinion/high-time-the-inju...
[3]http://www.fbi.gov/about-us/cjis/ucr/crime-in-the-u.s/2012/c...
Another factor to consider is Sarao's internet speed limitations. It seems that news outlets are reporting that Sarao "worked out of his house in London"... well I lived in that part of London and in 2012 it was hard enough getting anything near 60 Mb/s downstream, 10 Mb/s upstream and 15ms ping, so how the heck could he run a HFT operation?

Even if we consider the possibility of co-location it costs millions for this sort of access, and the capitalisation of his firm looks like it is sub £20mil between 2010 and 2011.

I just can't see how this adds up.
There is criticism for the book, of course. However similar to evolution, although there is controversy, it is the prevailing theory among academia.
I'll pay you 1000 dollars to use one for the year if you document it, sell me the rights, and split the proceeds 50/50. I have some choice emails too.
Also, while there are many languages in Africa, the number of coherent families isn't necessarily that large. For example, Bambara is part of a larger family of languages that are more like highly-divergent dialects (or so I'm given to understand -- I was lucky to communicate at all in my broken Bambara and pidgin French). By the same token, Arabic has a multitude of spoken dialects that are barely intelligible to each other.

I also think that the question suffers by failing to compare the range of languages found in other regions. The geographic distribution of the Indo-European language facility is comparable to Africa and contains around 500 known languages, though it is likely that at least as many were extinguished through various means (peaceful and not) over the centuries. Linguistic diversity is the norm, not the exception, though large-scale political consolidation tends to mask this.
Thanks for your kind explanation. What I really want here is making sure that this code belongs to the community and doesn't end up in any proprietary/closed-source software in the future.
MacBook Pro and Keynote seem to do the job just fine for me. If I am going to send the presentation to anyone I almost always export to PDF.
I wonder how useful this could be for large-scale server-side code deploys?
>representative democracy is largely issue-based and less personality-based in many regimes //

Could you give examples please?

>many states feature citizen initiative processes //

I'm not from the USA, what do you mean by this? There is some system to get laws passed or governmental processes altered that bypasses representatives? If that's the case then doesn't it prove my point, that the part of the system that's a representative democracy doesn't allow the populous to address issues atomically.

For me in the UK I've a choice of maybe 8 parties. But ultimately it comes down to one or two issues - do you cut the NHS [health], do you keep Trident nuclear missiles, do you address income gaps in favour of the poor, ... suppose you say yes/yes/no and only the We-Are-Evil party is doing that then if they get in to power you're largely stuck with their predetermined answers for all other issues until the next general election (5 years). Indeed local elections become proxies in some cases for addressing issues, but the party whose candidate is elected need not vote with that candidate, nor uphold a "promise" they give prior to that election.

As I see it the electorate is left to sit on their hands most of the time. Then at election times we get the hard sell with psychological manipulation, character assassination, personality cult, anything to avoid presenting genuine working solutions to issues the electorate wants to address.
"We've got a nice little bubble for a few blocks in each direction from where we live, but beyond that it's just miles of abysmal schools and gang violence"

So, you're in Canton then?
You can still gauge supply and demand -- but you would do so using actual trades, and not unfulfilled orders. This is how pricing works in most markets, by analyzing transactions, not offers.

It seems to me that a law that hinges on proving the intent of the trader seems destined for failure. It looks like this guy got caught by his incriminating emails and not based on his actual trading.

I like your idea of de-anonymized trades. Perhaps it could be something like the blockchain ledger.
I recommend just using webpack or browserify... the workflow supports super fast on-the-fly bundling. Most reasonably large Rails apps end up embedding v8 anyway.
Given much of the country's antipathy towards immigrants, you'd probably get a lot of people saying it disfavors Detroit. Might be a good experiment to prove them wrong...
Related: http://tardis.wikia.com/wiki/Horror_of_Fang_Rock_(TV_story)
Volt (Isomorphic Ruby Framework)  v0.9.0 Released
We're also working on this as part of ThinkLab http://thinklab.com/publications
You can order at No Starch Press: http://www.nostarch.com/automatestuff
I am not sure if he is the real MasonLove as I never had a skype conversation with this guy which he claims here in his comment.
> How is it good that it is now harder to arrest for possession?

It would be easier to arrest for possession if searches, seizures, and arrests didn't require probable cause, and police could just arrest anyone, anywhere for any reason or none at all -- and search anything anywhere without consent for any reason or none at all, and use any evidence so obtained in prosecution.

Much of the Bill of Rights -- and much of the concept of individual rights against government underlying and preceding it -- is based on the belief that making it easier for the government to arrest and prosecute people even for things that everyone agrees are bad is often less of a benefit than the powers granted to government in order to achieve that are a harm.

So that's at least one school of thought on how this could be good even though it makes it harder to arrest for possession, even if one things that arrests for possession (where actual possession occurs) are a good thing.
Not necessarily... just like how another poster mention's Tumblr's use of empty divs to keep the scrollbar position happy without sucking up resources, couldn't mixed-resource divs be replaced with text-only divs? Then search works fine, and memory still doesn't balloon (much).

Eg:

<div>Cool meme: <embed>...</embed><img></img></div>

Goes to:

<div>Cool meme:</div>

Even more work in implementation, admittedly. ;)
E-books are available now at http://www.nostarch.com/automatestuff
> I think the article itself contains a more insightful question: "Is genetic diversity linked to linguistic diversity?"

Why is that an insightful question? I wouldn't have expected a strong correlation, and from the article, there doesn't appear to be one.

At the risk of being too dismissive, I thought the reasons for linguistic diversity were already well known (that is, physical and political separation and a lack of trade/communication).
As a front-end dev, I'm really curious about this. If you're using a native mobile app, do you expect the UI to zoom in on text inputs as well? Is that a common UI behavior?

I've always been a fan of moving mobile web towards the standards and behaviors of native apps which generally did not require zooming to get tasks done.
Seattle Police Will Hire Programmer and Prolific Records Requester Tim Clemans
The point I was trying to make is that production needs to match consumption. Which can be difficult to plan for digital goods.
See page 9 of the ruling: the Court did not rule on reasonable suspicion in this case, and Ginsberg tells it like it is regarding the dissenters' focus.

IANAL, but I think the gov't might be able to appeal right back up to SCOTUS on that issue if they think they can win, and it sounds like they could.
I dont think he is the real Masonlove as he, here in this message talks about a skype call which I never had with him :P
https://news.ycombinator.com/item?id=9411916