Better HN
topnewbestaskshowjobs
Log inSign up

apendleton

4,277 karma · joined Feb 29, 2012 (14y ago) · 994 submissions

Submissions

comment 11y ago · link · parent

Project Euler is great for practicing this sort of thing. With the early questions, you can solve them however and it's fine, but many of the later problems have an obvious quadratic (or worse) solution that ends up being too slow in practice to finish in a sane amount of time, and it forces you to come up with a better algorithm to actually solve the puzzle. As a bonus, once you solve it you get to see other people's solutions, which are often super clever.

comment 11y ago · link · parent

Agreed... what if the person flying the drone has no knowledge of the intent by a third party to eventually monetize the video? Can their flying be retroactively and involuntarily criminalized by a third party who is given and then monetizes the footage?

comment 11y ago · link · parent

I think this will invite comparisons to, e.g., killing off Google Reader, but they won't be deserved in my opinion. Google Reader was the leader in its niche, and when they announced the shutdown everyone had to scramble to find alternative services before all their stuff disappeared. By contrast, this is a niche where the community has clearly moved on to other things that everyone acknowledges as being better in basically every respect. There's just no need for Google to continue to provide this service.

comment 11y ago · link · parent

I think it's pretty obvious that they're not trying to compete in cost per GB. The point is that if you're running a sensor that phones home once a day, you probably have less than 1MB's worth of data to send per month anyway, so your total cost with Spark is $3, whereas for Ting it would be $9. That the Ting option comes with 99 more megabytes is immaterial if you don't have 99 megabytes' worth of stuff to send.

comment 11y ago · link · parent

With you on the larger point, but for the sake of argument, creating weapons technology isn't necessarily deadweight. Military applications have driven all sorts of technological developments that ultimately resulted in civilian economic growth (the Internet probably being the most salient here). Even this contraption probably required development of new compact power systems that might have all sorts of uses eventually.

And it may well be that the Internet would have happened anyway, but there seem to be some inventions that nobody would have had the drive to produce if not for wars... nuclear power might be a good example.

comment 11y ago · link · parent

Not to nitpick, but at least some of these arguably haven't gotten far enough along yet that they can reasonably claim to be "successful." Thalmic is just getting early products to market, Helion hasn't yet built a commercial fusion reactor, etc.

comment 11y ago · link · parent

I'd be curious to see this replicated in other cities. I sort of suspect that there are cultural norms specific to New York at work here. For one, space is at a premium in a way that isn't really true elsewhere in the US, even in expensive neighborhoods, in a way that disincents owning your own washing machine.

Also, the wash and fold is a huge thing in New York, and lots of people use them. DC, where I live, probably has a few, but most people don't live near one, and I've never used one. For New Yorkers, by contrast, there's a different cultural expectation where paying someone to fold your clothes is much more accepted.

Those things together, I think, make laundromats in New York more likely to appeal to non-lower-class people there than elsewhere, and at least anecdotally, lots of laundromats here have closed as neighborhoods have gentrified, and at least a couple of now-affluent neighborhoods I can think of don't have any anymore.

comment 11y ago · link · parent

If we're looking to pumpkin chucking as inspiration, the pneumatic cannons are a better bet, as they generally perform better than the catapults/trebuchets. The record for those is 1.6km.

comment 11y ago · link · parent

I think it refers to enthusiasts of Asian-made cars. Not much better, though.

comment 11y ago · link · parent

The whole point of the original comment is that these are LEO satellites, rather than the geosynchronous satellites in use for previous internet service. These won't be traditional; they'll be about a thirtieth as far away.

comment 11y ago · link · parent

It seems like there are a few different projects under the Apache umbrella vying to be the thing that replaces Hadoop. Can anyone compare/contrast them, and in particular, offer pros/cons of Flink vs. Apache Spark?

comment 11y ago · link · parent

It all depends what you're using it for. If I'm writing code that's going to be around awhile and can tolerate some dependencies, I'll totally use, say, requests. But I use urllib2 from the repl all the time, especially if I'm on a machine that isn't mine. The fact that any Mac already has the tools on it to grab some JSON from an API, parse it, and do something useful with it from the command line, without having to download or install anything, is immensely useful, even if the API is a bit suboptimal. The same applies to quick and dirty things I'm shoving into a Gist to share with colleagues. Not all things have to be elegant to be useful.

(That said, those kinds of usecases aren't really in Rust's wheelhouse, so I still think in Rust's case having batteries not included is probably the right call.)

comment 11y ago · link · parent

I feel like on NYE, in particular, most people don't go out without already having made a plan for how they're going to get home, so even if the actual price turned out to be lower than expected, that might not have boosted demand the way one might expect because many people had already made other transportation arrangements in anticipation of Uber being unaffordably expensive.

comment 11y ago · link · parent

I think this relies on the arguably-faulty assumption that ticket prices are based on airlines' costs in delivering the service. Airlines' costs probably set the floor for ticket prices most (but not all) of the time, but don't have much to do with the typical prices. This obvious when you look at the cost of holiday travel: planes don't become twice as expensive to fly because it's Christmas.

What actual determines ticket price is mainly the supply and demand around trips between a pair of destinations (like with any other market). Lots of people want to move between DC and New York, and lots of them are business people who can afford to pay a lot, so the market can support a high price for this city pair. This isn't true of, say, DC and Yonkers. What's key, also, is that the layover cities (setting aside people doing the "hidden city" thing) are largely an implementation detail; if you're going from DC to Yonkers, you're comparing the flights that go through New York to flights that go through Philly directly on price (assuming about equal convenience), and you're going to pick the cheapest one. This means market forces are going to drive these prices to be similar, even if the DC->Philly market is radically different from the DC->NYC market. The consequence is weird, unintuitive situations where a flight to the intermediate city can be more expensive than one to the final destination, if market forces are such that the market can typically support a higher price for flights to that intermediate city than they can to the ultimate destination city. Hidden city travelers take advantage of the cost disparity between the markets -- it's a sort of arbitrage.

comment 11y ago · link · parent

IP can cause weird behavior for mobile, since it changes all the time, especially if they hop onto/off of wifi. User agent is trivial to fake.

comment 11y ago · link · parent

Sunlighter here (though this isn't my project). This was mostly done to test our IFTTT channel (https://ifttt.com/sunlightfoundation), so I think we were limited in terms of what actions we could trigger. We've talked about doing a non-IFTTT version that would extend the metaphor way further, but haven't (yet) actually made it happen.

comment 12y ago · link · parent

This one is also noteworthy because the algorithm it attacks was developed specifically with resistance to quantum attacks in mind, unlike the breed of public-key crypto currently in use, which is widely known to be vulnerable to quantum attacks.

comment 12y ago · link · parent

This on a government website is even more amazing from an American perspective than the linked flier. Talk about taking harm reduction seriously...

comment 12y ago · link · parent

Not recent at all; Wikipedia says it started in the DC area in 1975, and I definitely remember people using it when I was a kid, which would have been early '90s. http://en.wikipedia.org/wiki/Slugging

comment 12y ago · link · parent

It's bad, but no different than installing a package supplied by a third party, or using a third-party installer, in terms of what authority you're granting, both of which are fairly commonplace. Obviously the eventual goal is to get something vetted and blessed into a package management system, but that's probably not a reasonable expectation for a brand new project.

comment 12y ago · link · parent

The bill isn't all it's cracked up to be. It creates new legal basis for some surveillance activities that are arguably illegal, immunizes companies who participate in mass surveillance, and (most problematically), reauthorizes the Patriot Act. See: http://sunlightfoundation.com/blog/2014/09/15/sunlight-ellsb...

comment 12y ago · link · parent

As someone else has already pointed out, they don't even have to pretend to get hacked to get to keep contributors' money. The model of dispensing 1% of balance per commit guarantees that it's impossible to get all of a project's contributions back out again.

comment 12y ago · link · parent

Upgrading the distro is likely insufficient, as your private key has potentially (likely, at this point) been compromised. At a minimum you need a new key and cert.

comment 12y ago · link · parent

Maybe, but if they make it clear that they're not sponsored or endorsed by the project in question, it'd probably be considered nominative fair use, at least in the US: http://en.wikipedia.org/wiki/Nominative_use

comment 12y ago · link · parent

Agreed. Related: "Methods which return new arrays like slice or concat instead return new immutable collections" seems odd to me, at least for slice. Isn't one of the advantages of immutable arrays that you can operate on slices without copying because of the guarantee that the underlying representation won't change?

comment 12y ago · link · parent

I could be wrong, but I imagine most non-techie people would assume (incorrectly) that Facebook has their plaintext passwords anyway, and that that's the mechanism by which their passwords are verified at login time. I don't feel like the concept of a salted hash is familiar to most people. As a consequence, I don't think people would actually find this especially concerning.

comment 12y ago · link · parent

Out of curiosity, how would you propose taking a random sample of all possible questions?

comment 12y ago · link · parent

If the garbage collector were turned off and a cycle were to be present, the file would simply never be closed. Though I suppose that would, indeed, be deterministic.

comment 12y ago · link · parent

Two things: firstly, the analysis I've seen suggests that some kinds of business travels lose and some gain, depending on the travel patterns -- in particular, frequent short-duration flyers (e.g., people who commute from DC to NYC twice a week) gain, while infrequent long-distance travelers (e.g., people racking up miles going NYC to Shanghai a few times a year) lose. So maybe the airlines think they'll one class of traveler for every one of another class that they lose?

Secondly, the overarching assumption is that American (and its alliance) will follow the other major players and switch once the merger is done, at which point there won't really be anywhere to go, at least for people mostly traveling domestically in the US. They control the market.

comment 12y ago · link · parent

Mileage runs for status on United have gotten more complicated, though, because you have to work towards both your mileage total and your spending total, and while partner trips count towards both, only trips on United planes or United tickets count towards the latter. This means you either have a much more restricted set of possible mileage run flights, or the average CPM of your non-mileage-run flights has to be higher.
1
212223
34