skysight-inc/HackerNews huggingface dataset:
Game-ify debugging/cs?
For an end of quarter project, I'm supposed to build a computer game. I've noticed that both my girlfriend and her mother play puzzle-like games (go through a maze, word searches, match objects, etc.) obsessively. To take advantage of all this effort, I think it would be cool if you could embed a real bug finding, debugging, or other coding task in a puzzle game. For instance, it would be neat if whenever you completed a puzzle, not only did you complete the puzzle, but you also found a concurrency bug in the Linux kernel.

So far, it's been difficult to come up with translations from code to puzzles. And I figured that lots of other folks on this site might have some really good ideas. Right now my rough ideas were:
<handwaviness>
1) Treat loading registers, reading from memory, and operations on registers as "moves" in a game. Get the user to try to re-write generated code to run as quickly as possible.
2) Place and route for chip layout
3) Requiring programmers to notate code with invariants and using those. For instance, Code Block A and Code Block B cannot be run at the same time. And provide a call graph. Is there a way to navigate the call graph so that they do?
</handwaviness>

Let me know if you have any thoughts (positive or negative are welcome). Thanks.
This (Air-to-Ground) is what Gogo does, using EV-DO Rev A.

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

Last couple flights I've usually seen latency between 300ms and 3500ms, 8-10% packet loss. They also seem to use Squid proxy, which doesn't understand WebSockets.
To expand on it a little,

People are naturally averse to being redundant when they're conscious of it. If the work has been done, why repeat? As a writer, I dislike writing things that have been written: if I don't have something new to say, why say it?

(There are good reasons to repeat, e.g. practice, but that doesn't apply here.)
State funded infrastructure? If only they'd actually spend tax dollars on that instead of lying to get the taxes and then spending the money elsewhere.

They're collecting record taxes at the state level, and our infrastructure is in the worst shape it has been in since pre-interstate highway system days, so now what?

Raise taxes some more, so they can make more empty promises and redirect funds to pet projects instead of infrastructure? How in the world does this band of criminals deserve any trust such that they should get more money to spend, before they prove they can actually work with the $6.x trillion they already get to spend (nearly the size of China's entire economy, and we can't even fix bridges or upgrade our electrical grid).
Changing the SSH port from the default can be one part of a full defense strategy. The term "defense in depth" means there is more than one defensive mechanism, typically so that if a baddie is able to circumvent one mechanism, they'll be trapped by another. In this case, moving the SSH port massively reduces exposure to naive port scanners. I agree it's not a particularly strong protection, but it's a practical one (at least until everybody does this, at which point the cloud providers will just start adding port knockers).
Without NASA contracts (to be noted: fixed price contracts predicated on delivery of goods, for the most part) SpaceX would have much less cash on hand and their pace of R&D would be much slowed. But they would still exist and still be pushing the state of the art, just at a slightly slower pace. They have one of the most competitive orbital launchers on the market, they have a ton of commercial business already on the docket, and the next 3 SpaceX launches are, in fact, non-NASA commercial flights (a Canadian weather satellite, a commsat for servicing East Asia and Oceania, and several Orbcomm commsats).
Forget Vim: Learn Your OS’ Shortcuts for Productivity
I'm saying there is a systematic advantage to using proprietary technologies in academic research (companies have money, so you can write a grant and they will pay you $). Case in point, look at apps coming out of academia and you'll see a lot of WindowsPhone. It is because Microsoft gives away a ton of free phones (I have one on my desk at this moment) and Azure time.
Another question, is CUDA actually fast enough?

Because in bitcoin mining, it's always ATI/AMD and OpenCL because ATI cards are like ten times faster than Nvidia cards. This is because of architecture differencies.

Does it not affect this postgres table-scanning task? I wonder if they did any benchmarks.
I think the point was that they are (potentially) using lots of electricity.
Brilliant!

Perhaps it's just my scars showing, but I'm concerned about database system stability with active GPU hardware added to the box.

I probably wouldn't add the GPU hardware to a master but rather do the queries that would benefit from it on a streaming replica, where an occasional kernel panic won't be so severe.

Regardless, looking forward to trying it.
Crazy. The lesson here has been that you can't protect against attacks like this. No matter how much surveillance and firepower you have, if someone really wants to commit violence, they're going to do it (especially if they don't care what happens to them afterwards). Adding more cameras might make it easier to find the attacker after the fact, but it's not going to prevent the attack in the first place.
And separated from the 2nd stage and the payload, of course.
If you didn't want to do it, you wouldn't have done it.
Mars One opens registration to the Astronaut Selection Program
Breaking News:

"HN User 'mindcrime' Says Mayor Bloomberg Is A F%@#ng Idiot"

Seriously, what is the deal with this guy? The terrorists kill FAR, FAR fewer people in this country every year than lightning strikes, slips & falls in the bathroom, accidental drownings in one's own swimming pool, automobile accidents, cancer, heart disease, etc., etc., etc.

But because of a few anomalous events, as tragic as they may be, we're supposed to compromise the most basic, fundamental principles that define us as a nation? I don't think so.

Anyway, our government is far more of a threat to our freedom than any terrorist organization will be.
Just because this sentiment has become a self-parody in many circles, it does not mean that Bloomberg doesn't earnestly believe it.

And it doesn't mean that it is invalid. The ideological basis for a lot of Islamist terrorism is Qutbism which is quite regressive:

http://en.wikipedia.org/wiki/Qutbism#Qutbism_and_non-Muslims
Yeah, that sounds like a pretty bullshit apology. He's admitting that this is standard practice for them, and apologizing for getting caught.
I know "ad hominem!" is oft-abused on the internet, but this is a bona fide example for a change. Two examples, in fact.

"Don't listen to what this guy's saying, he believes in nudge politics. Don't listen to nudge politics, the people who came up with it like China-style propaganda."

From the other comments here, there's plenty of legitimate points against his arguments. There's no need to resort to cheap shots.
You didn't.

> whether you expend equal energy on both causes is up to you. it may say something about what you really believe though

The clear implication is that focusing on issues pertinent to group X (e.g. gay marriage, society's insane expectations of women), it means that you must care more about people in group X than people not in group X. Which makes no sense; if you have a buggy codebase, you focus on fixing the bugs, not dividing your time equally among all the mostly-already-functional bits.
Services are generally (a hedge I only add as maybe one state out there is doing something insane) not subject to sales tax, only "goods". As an example, it is typically the case that software will transition from an untaxed service to a taxed property when it is no longer "custom", and instead made once and sold to multiple people, or in hilarious cases (California) the second you make the mistake of providing it on physical media.
> No one forces people to buy games on release day, and everyone should know that the smartest thing to do is to sit on a new game for at least a couple of days to let any issues arise.

If that were true, no one would buy anything ever.
Bloomberg bought himself a 3rd term in New York City.
http://en.wikipedia.org/wiki/Government_of_New_York_City#Ter...
Maybe he can afford to modify the Constitution.
It's a strong rhetorical strategy. Pre-emptively accuse your opponents of being enemies of liberty. Then all they can say is... "well no you're the real enemy of liberty!"

Which is much weaker than the original argument, facts be damned.
That's exactly what I am talking about... The thing that worries me the most is not that they don't provide 5-minute support for a billion people - I know it's impossible. The problem that they have exactly nothing - you could as well erect a statue of Larry Page and pray to that. They officially don't care.
To address a couple of concerns raised here.

There is a Small Seller Exemption. If you have less than $1,000,000 in remote sales during the preceding calendar year you are exempt from collection.

There are six certified service providers, including one free one, which can be used to calculate the required sales tax. The states certify these providers and agree to indemnify users against liability if the case of an error by the service provider.

Before a state can require collection they must change their code to be in compliance with the requirements of the Marketplace Fairness Act. Currently 24 states are compliant and could begin requiring collection if the bill passes.

For more information go to http://www.marketplacefairness.org/
No source, but they plan to have an API [1]. Personally I'd be quite content if they just documented the protocol...

[1] http://forum.bittorrent.com/topic/8816-will-syncapp-be-open-...
> Companies with a physical presence in a state are required to collect sales taxes from buyers for all sales in the state. Businesses are not required to collect sales taxes for states where they have no presence (aka nexus); this is based on the Quill v North Dakota interpretation of the Commerce Clause of the US Constitution.

Specifically, its based on a Dormant Commerce Clause interpretation, to-wit, that States cannot require such taxation of businesses without the kind of nexus specified in Quill without Congress taking specific action to permit the state to do so.

What you see going on right now is Congress taking specific action to permit states, under certain conditions to apply the kind of taxes that they may not be permitted to apply without Congressional permission.

> The problem with the proposed legislation is that counties, cities, and towns can each set their own tax rates. So the compliance costs are high because of the thousands of different rates.

The proposed legislation sets conditions for the states if they want to have access to the privilege Congress is granting with regard to taxation, one of which is that they must provide free-of-cost software for internet retailers to handle the calculations for their states.

> And governments typically levy penalties if you get your sales tax collection wrong. So who is responsible for paying the penalties if the third party tax collection service makes a mistake?

If you are the responsible party for collecting the taxes under the law, you pay the government; if you've paid someone else to do it for you, presumably you've made sure the terms of that contract make them responsible to you for any errors they make, so that they pay both the penalties and any additional costs you face as a result of the error.

> The way this was supposed to go down is that states were supposed to simplify the number of different tax rates before requiring out-of-state businesses to collect their sales taxes.

"Supposed to" based on what? Or are you just puffing up your personal preference for government policy as the way things objectively ought to be?
I've been working on a rather large computation library using OpenCL. OpenCL is useful for providing an abstraction over multiple device types. If you are only interested in producing highly-tuned parallel code to execute on NVidia hardware, I suggest sticking to CUDA for the above reasons.

I utilised the OpenCL programming interface to write code that would run the same kernel functions on CPU and/or GPU devices (using heuristics to trade-off latency/throughput) which is something that is not possible afaik using the CUDA toolchain.

TL;DR YMMV and horses for courses.
...using each rig for a couple months before shipping them out.

Looking at the global hash rate it's clear that this is not happening. (Before anyone asks, you cannot hide mining.) http://bitcoin.sipa.be/
Kick Ass Cross-Platform Workflow With Grunt
Or women seeking abortions.
If you want to track a number of aircraft, and not require an antenna/dish per each or have resultant mechanical breakdowns, phased array antennas are the best solution.
My, aren't we all cynical today?

There is nothing wrong with the concept of a press release, particularly when used as intended, as a starting point for a piece of journalism.

In the media we write many different kinds of stories. Some are the vast investigative pieces that put the world to rights and might one day win a Pulitzer prize, but others are simply humdrum announcements of new products or services. I'd have thought that a community of founders would appreciate the value engendered by outlets that gather eyeballs for particular sectors and spread the sort of bread and butter news that is press released day in day out by stakeholders in those sectors -- usually after having first removed the hype, dubious claims ("World's first!") misrepresentation ("A and B have partnered to..." when it means A has bought/licensed something from B) and fluff ("We are excited to...", "This development reaffirms our commitment to...") that the authors of the press releases have inevitably included.

The simple truth is that press releases were not designed for direct consumption by the public, and sites that reproduce them verbatim do nobody any favours. However, in many circumstances several outlets could legitimately run very similar stories based on the same press release, and deliver great value in doing so because they all reach different audiences. Using a press release as a source is not in every case a dirty little secret that needs to be exposed by clever software.

Addressing the point made in the parent post, it seems to me there is a bit of a disconnect in assuming that one can take a journalist to lunch, tell him how very clever he is, and then hand him copy-paste text. Wouldn't work on anyone I know...
It's pretty clear from the context that he's referring to our collective freedom as a nation, the freedom(s) granted to us by the very document mr Bloomberg wishes to reinterpret.
Dragons’ Den – TypeWhale
ASICS wont make new coins arrive any faster - supply is fixed. But people with ASICS will get the highest proportion of new coins.
Did you also look at SparkleShare?
> I looked it up, though. It looks like you have to have an ETag to do a conditional GET

Nope, not the case. May I ask where you read that? It differs from my reading of RFC2616 and my experience.

If the server gave you an ETag though you're supposed to include it in future cache-conditional requests. Section 13.3.4 (http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13...) describes the interaction between ETags and modification dates.
> this module allows you to export data to, and then access (read-only), foreign tables architected specifically for faster copying of data to/from GPU

That seems to be pretty much it, although the read-only part is a limitation of Postgres rather than a feature of the module.

Furthermore, it seems to be dispatching queries intelligently so you can perform all queries against the FDW table with (I hope) minimal overhead, if the qualifier can't be compiled to a kernel the fdw will run it as a normal on-CPU qualifier. That's a thoughtful touch.
> we're supposed to compromise the most basic, fundamental principles that define us as a nation?

It's time to admit they are no longer the basic, fundamental principles that define the nation, as they are continually being changed or taken away (i.e. Patriot Act)
Show HN: Dendrite, a golang log parser
But why everybody compares landing solely on parachutes in ocean with landing solely on engines on land? For example, Soyuz use multiple parachutes for slowing down and engines for guiding and final soft landing on land.
Sustaining attention is often more important than product value
Are you saying it should be single-stage-to-orbit? That's currently technologically nearly impossible, even if the rocket doesn't need to land back to Earth.
So what's the big water tower for in the background?
I never quite published a press release verbatim in all the news stories I have written[1], but sometimes the information density of a press release is so low as to make a rewrite look like a copy anyway.

[1]https://www.google.co.uk/search?q=site:trustedreviews.com+hu...
I would guess the simplest thing to do would be to build the backend to support sales tax and only implement that piece if necessary.
> Sounds like Go adding more Erlang style features.

Nitpick: this is simply an independent 3rd-party package / external lib for Go developers. Not a language or runtime feature or addition.
I get all the revenue will be donated but isn't 40$ a bit too much for an unframed poster?
I don't see the issue here. From http://en.wikipedia.org/wiki/Defense_in_depth_(computing):

> In terms of computer network defense, defense in depth measures should not only prevent security breaches, but also buy an organization time to detect and respond to an attack, thereby reducing and mitigating the consequences of a breach.
Are you sure? I was pretty sure that miners and wallets were distinct, and wallet programs are the ones that participate in the distributed transaction engine.
They made paid registration. Price depends on your country.
The complexities go far beyond just knowing the rates for each jurisdiction and arranging for payment.

Naturally there's going to be a call for some kind of compliance testing. How are you going to catch the cheaters when you don't have access to their financial records, as you would if the business was in your state?

Even just the rates themselves can get complicated. Minnesota for example doesn't tax clothing or food, but the specifics of what's included aren't clear - candy bars for example aren't considered food and are taxed. How is somebody from another state supposed to figure this out even with software help?
I hope not. People actually questioned me in my local dinner just a few hours ago because I had a backpack on. I basically told them that the terrorists won if that was their attitude. Has anyone else experienced similar, or is this just an ass-backwards deep-south thang?
Quibble: the terrorists don't want your life, they want your attention, and more specifically, your panicky attention. Political reactions like Bloomberg's help keep the terrorism availability cascade rolling.

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

They are just about exactly the wrong way to respond.

There are a few important facts about terrorism that should put our fear in context:

* Terrorists tend to be spectacularly inept.

* Terrorist organizations tend to collapse over time, through various combinations of frustration, attrition and overreach.

* The methods of terrorism tend to be highly ineffective at killing people.

On the same day that the Boston bombings killed three people, approximately 40 Americans country-wide were murdered for various non-terrorist reasons. Also on the same day, approximately 140 Americans died via guns (this includes suicides, which make up two-thirds of the total, and accidental deaths).

We can keep going: for example, approximately 85 Americans are killed every day in automobile accidents. My point is that the fear that we feel about terrorism is utterly disproportionate to the risk that we will experience it - especially compared to the kinds of things we rarely think about but really should worry about.

By no means do I mean to dismiss or demean or make light of the trauma, injury and death experienced by the people who experienced the Boston Marathon terror attack. However, it would only compound the tragedy if we allow such an event to transform our civilization from one that esteems liberty, autonomy and privacy into one that sacrifices those things for needless expedience.
"Is anyone surprised that this thread is dominated by men, whose only response is to complain that its unfair that this article addresses women only? "

Hi, I'm male, and I posted the first response to this, here - https://news.ycombinator.com/item?id=5595055

Is that a complaint about it being unfair that it's women only? I don't see it. This is not the only response of the men in this thread, stop generalising. If you have a problem with specific posts then why not answer them?
I'm curious, from what you stated: what businesses would you consider to be sociopathic?
yeah, but sorting files by date added is usually trivial, so I'd rather have the option of grouping all of the invoices together. But I completely agree that people should name these files to make sorting easier and more useful.
> Does anyone have any idea how this could affect any startups selling software online?

Directly, this law would have no effect on anyone except state policymakers if it passes.

What effects particular state policies electing to make use of the authority Congress is allowing states under this law would have depends on the exact policies adopted by individual states (which would affect what goods are covered by the states internet sales tax regime and what variables are needed to calculate the rates, and what, within the requirements of the law, form the free-of-charge tax calculation software supplied by the state takes.)
Knapsack! And there is no way to determine the best solution before every combinations has been tried. I have been in the exact same spot as you but ended up making a specific module for it which didn't needed any computation beforehand.
No: if you double-click, triple-click, and (potentially in combination) hold that button you can do all of the normal things you can do with a media player. Go read the user manual. People who believe otherwise (and I've seen many) simply assume user interfaces don't exist if they aren't obvious.
I haven't seen anything other than this message. Whether it was last week, yesterday, or right now.
The Churnalism concept has been circulating in media/nonprofit think tanks for a couple years now.

Before a team worked on something similar at the Berkman Center in Cambridge, MA, we all discovered tools like iThenticate, which do the same job and more better.

More importantly, very little PR news was mislabeled as not PR. It was hypothesized that politicians read from PR directly into the Congressional record, but the instances were so exceedingly few and the audience so exceedingly small that there were no discoveries to announce.

Hence color me a little unsurprised that despite a great tool, Sunlight Foundation didn't actually find anything too controversial to announce with their tool.
The interface that I describe can be backed by a collection, data streamed externally (eg from a file), or by something generated on the fly. Therefore you can write code for all three cases that looks very similar.

That article demonstrated the power of this idea by writing code that fairly efficiently generates the Hamming sequence, which consists of all positive integers whose only divisors are 2, 3, and 5. (So 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, 16, 18, ...)
I've heard this argument a lot (since 1999), but I'm not confident it holds true anymore. The free alternatives are so good.

You may be right regarding Professors, but that is also changing as they age out.
I was actually thinking of the placement of the bombs. Putting them on the ground in a crowd means that the people nearest the explosion will act as shields for those further away.