21,186 karma · joined Oct 12, 2010 (16y ago) · 6,050 submissions
Personal site: http://www.adityamukerjee.net/
My email is pretty easy to guess from my username.
comment 11y ago · link · parent
Go applications do require a runtime, but the executable is statically linked, so the binary executable ships with the runtime.
The rest of what you said is correct. The only reason you need the Go development tools installed is to develop the application or to compile it from source.
comment 11y ago · link · parent
The definition has shifted, especially after 9/11, but for the sake of discussion let's use the one you've proposed.
> A bombing is not terrorism unless used in the pursuit of political gain.
The point is that only certain political goals (the ones that the US wants to de-legitimize) can qualify an act of violence as terrorism. If Pakistan were to conduct drone strikes against the US, you'd bet they would be considered "a terrorist state" by the US, even if they never hit a single civilian (which is more than the US can say for its drone strike program[0]).
[0] https://en.wikipedia.org/wiki/Drone_strikes_in_Pakistan#Civi...
comment 11y ago · link · parent
...including the US government, let's not forget.
Drone strikes aren't "local" to the US, but they are conducted against US citizens in countries that the US is not at war with[0]. Moreover, if any middle eastern country did to the US what the US does in Pakistan, you'd bet the US would call it "terrorism"!
The word "terrorism" is inherently subjective; there is no way to define it consistently in a way that doesn't hinge either on race or on political affiliation[1].
I won't defend ISIS, but calling them "terrorists" doesn't mean anything. The word "terrorist" has basically become the government equivalent of playground name-calling. It's a way of saying "we don't agree with the way that that group is using violence, so we're going to use a different word to de-legitimize it"[2]
To borrow an example from another thread, look at the way the label "communist" was used during the McCarthy era. Oftentimes it was just used as a general term for "subversive actor", and in fact the targets were actually being accused of completely different ideologies altogether, many of them completely incompatible with Communism! But the literal meaning of the word itself doesn't matter; what it really represented was a rhetorical way to other a group of people considered dangerous.
[0] https://en.wikipedia.org/wiki/Anwar_al-Awlaki
[1] Notice that many media outlets were hesitant to label the Boston bombings "terrorism" until after the culprits had been identified (with some even going so far as to say things like, "It's unknown if this was an act of terrorism or not"!)
[2] Whether or not they are correct to delegitimize it is a separate issue; the point is simply that the word "terrorist" is itself a political statement.
comment 11y ago · link · parent
If it doesn't, then you just use json.RawMessage to defer unmarshalling, but you can still dispatch to a finite number of structs that represent the universe of possible responses.
[0] And no need to write it all out by hand - if you have a single example JSON response, you can generate it automatically: https://github.com/ChimeraCoder/gojson
comment 11y ago · link · parent
Well, that by definition would be considered an ethical violation at a paper like the Times. Not at a student paper, no, but at the New York Times, definitely.
comment 11y ago · link · parent
Perhaps at a student paper, though that's considered a pretty huge ethical breach. I can attest that the New York Times definitely does not do that; they take this separation very seriously. Even at their headquarters, as of relatively recently, business and editorial enter through separate elevators, as they are on opposite sides of the building.
There definitely are publications without such strong and heavily enforced senses of editorial ethics, but the New York Times is not one of them.
comment 11y ago · link · parent
> (Actually, classical economics does, in the sense that markets follow a price-demand curve rather than a wiggle as seen experimentally.)
That's the difference between the limitations of an idealized model and the limitations of experimental process. That doesn't mean that either one is "wrong", any more than it would in the physical sciences.
> Obviously you don’t do that when you go shopping.
Correct - classical economics describes the behavior of rational actors with perfect and symmetric information. In this case, there are significant, non-zero costs to obtaining perfect information. That doesn't mean that the principles behind classical economics are false, were those assumptions to hold. And it doesn't mean that the model is useless even absent those assumptions.
Just as physicists can reason about frictionless vacuums and use that to inform their understandings of the real world (with friction and air), economists can reason about perfectly rational actors with perfect and symmetric information, and use that to inform their understandings of the real world (with possibly irrational actors and asymmetric and/or imperfect information).
comment 11y ago · link · parent
But just so everyone knows, and so nobody finds themselves in this position, there is an easier way. By default, I believe systemd will skip the fsck if running on battery power (this is the case on Arch, at least). So if you know you are in a hurry but haven't added this to your GRUB config, the easiest thing to do is just boot the laptop and wait about ten seconds before plugging in the power cord (the fsck check happens early enough, so it'll have been skipped by that point). This doesn't help kill it if it's already in progress, but it has saved me many times.
Brian's response is laughably rude and unhelpful, but hopefully this will be a bit easier and more helpful than telling people to edit their GRUB config before-the-fact.
comment 11y ago · link · parent
Sort of. There are a lot of very common misconceptions around this.
The AAMC (not AMA!) limited the number of medical school students until about ten years ago, at which point they announced an explicit goal of expanding the number of graduates from medical school.
However, this doesn't mean anything in practice[0], because the bottleneck isn't the medical school graduates - it's the residency programs. As a medical school graduate, you have an MD, but you are not actually qualified to practice medicine. That requires usually four years of training (minimum), plus several more for various specialties.
These programs are costly to run, and so hospitals that offer residency programs are funded by the federal government to do so (through Medicare). The only way to expand the number of practicing physicians in the US is to skimp on quality during training (which nobody wants to do), or to increase funding through Medicare (which nobody wants to do.
> US doctors are fewer and have more responsibilities and thus must be paid extraordinarily to work very long hours and not retire at the usual ages
They also have to be paid a hefty amount to pay off massive debt. If you see an attending physician in his 30s (or even 40s), even if he's making a respectable amount of money, there's a good chance he still has a negative net worth. The level of debt of course varies by location, specialty, and quality of education, but it's rather misleading to look at an e.g. $200K/year income for a physician and compare that to the equivalent amount in the tech industry.
[0] pun not intended, but very a propos!
comment 11y ago · link · parent
Wrong according to whom?
We're not talking about writers for a newspaper or magazine, where everyone is expected to adhere to a single style for the sake of uniformity.
James Joyce did a number of things "wrong" both grammatically and stylistically, but that was part of the artistic expression. It's weird, to say the least, for a bookstore to enforce style. When I walk into a physical bookstore, I expect that the bookstore has made some decisions around book placement[0] for the sake of optimizing sales, and books that have bad grammar may not be as attractive. But I don't expect that they have made decisions directly based on the grammar of the books ("we dislike the way you use punctuation, so we're going to put your book in the back of the store, or take it off the shelves altogether").
Amazon is now trying to eliminate the need for publishers, but in that process we should be clear not to conflate the role of the publishers (which includes editing) and the role of the marketplace.
[0] Incidentally, most brick & mortar bookstores are organized by genre and then either title or author name, so the extent to which they can even 'demote' books is generally limited to the ability to place books "cover out" instead of "spine out". With the exception of keeping adult-themed books in a special section and promoting certain books in a themed display (e.g. "Staff Picks for Summertime Reads"), bookstores don't really take heavy action against books based on content.
comment 11y ago · link · parent
It's being adopted by distributions in accordance with the stated and implied wishes of the developers, maintainers, and users of the distributions.
The reason that (e.g.) Arch dropped support for legacy init so quickly was because they literally failed to find anyone who wanted to go through all the work of maintaining the old init system. If none of the users want to do the work, then nothing's being "forced" - that's the way community-organized FOSS projects work![0]
Same goes for Debian, who made the switch in accordiance with their normal development process (including a general resolution in support of systemd!). Debian has promised to maintain systemd-shim (supporting other init systems) through at least Jessie, and possibly longer, depending on whether there is enough demand for alternative init systems, and support from developers for maintaining it in future releases.
Ironically, the biggest threat to systemd-shim in Jessie's successor are people who claim they want to fork Debian - if all the people who hate systemd leave Debian, then nobody who wants to actually do the work to maintain the alternative init systems will remain with the Debian project[1].
[0] Even then, you can still find an AUR package for it (https://aur.archlinux.org/packages/initscripts-fork/), though as with everything in the AUR, it's subject to much less testing. Note that the package has only 27 votes - this means that only 27 people actually said that they care about moving this package back into the main distro.
[1] This may be a bad or a good thing, depending on who you ask.
comment 11y ago · link · parent
In a way, it has!
Compared to what it was when it launched 10 years ago, or even what its predecessors (e.g. Napster, Limewire) were, the current TPB is almost completely decentralized, with only one exception.
It stopped running its own tracker years ago, relying on other trackers that don't allow for searching (thus absolving themselves of some of the legal risks). And TPB has used DHT[0] for many torrents for a while, theoretically eliminating the need for trackers altogether.
So in 2014, The Pirate Bay is now effectively just a search board for magnet links, with usernames and comments attached only to provide some modicum of reputation (and therefore quality). Those magnet links point to content which is then exchanged either in a truly distributed fashion (DHT) or through these third-party trackers.
So the centralization doesn't provide "core functionality" to torrenting per se - it just provides a degree of quality. Nothing's preventing you from sharing magnet links on other forums (heck, you could paste one in an HN comment). But someone needs to be able to trust that what you're posting is, in fact, the content that you say it is and not a virus, honeypot, etc. Any forum that a group of people trust could serve this functionality (Reddit, HN, Yahoo Answers, etc.[1]) instead of TPB. The competitive advantage of TPB is not the content that it has, but the reputation that it's built over the last decade.
There are Silk Road-based alternatives, which use the Silk Road model for guaranteeing reputation. I guess Tor isn't technically "decentralized", but it'd be a small step to modify the Silk Road approach to broadcasting the actual magnet links themselves.
If you want to decentralize the last remaining centralized piece of TPB, you'd have to solve the problem of decentralizing reputation. This is something that's been worked on in a number of areas (e.g. Bitcoin) but remains unsolved. Perhaps the next TPB will use the Bitcoin blockchain, and this could somehow "solve" the issue, but there are a number of kinks that would have to be worked out.
[0] https://en.wikipedia.org/wiki/Distributed_hash_table
[1] Notice that these are all centralized
comment 11y ago · link · parent
Ketamine is already very commonly used medically, because it is relatively safe (compared to other similar dissociative anesthetics) and has a very short half-life, making it a good choice for certain procedures.
Unlike many anesthetics, ketamine does not suppress breathing much. Combined with the fact that it is a bronchodilator, it can be used in many situations for which other anesthetics would be risky or inappropriate.
If you've had a colonoscopy[0], there's a good chance you've already had ketamine, just not in the same doses that you would have taken at a club!
[0] Which, if you're over the age of 50, you should do! Colon cancer is very treatable if it's caught early.
comment 11y ago · link · parent
That aside, this looks really well-done! I already have a lot of sites built around Bootstrap, so I may give this a test drive later today.
[0] Free-as-in-freedom, which includes the freedom to use software for any purpose (so a non-commercial use requirement makes the software non-free).
comment 11y ago · link · parent
Can you explain this?
I've heard this sentiment before and never really understood it. The common complaints I hear about email are usually inherent in the fact that it's a universal communication mechanism[0], or a symptom of inadequate clients[1].
I can understand the need for better email clients (that's what Gmail originally was, back in the day[2]). But I still haven't been able to find a compelling reason that email itself is fundamentally broken in a way that requires a new system altogether.
EDIT: I should acknowledge that privacy and security are obviously a major issue, and email is by design incompatible with security (Silent Circle tried this and failed, which is why they are creating an alternative protocol). But I generally hear this complaint in other contexts, so I don't think that's the reason.
[0] e.g. "I get too much of it" - thirty years ago, people complained about getting too much physical mail, simply because that's the way all important work was conducted then (dead trees).
[1] Having email clients tailored towards email power users can make up for problems like overwhelming volume - Google's "Inbox" app is an example of this.
[2] Along with providing massive amounts of space (which was itself a hard requirement in order to provide the many client-side improvements it brought).
comment 11y ago · link · parent
To my knowledge, they do not - Route 53 is made for domain administrators to use as their nameservers instead of their domain registrar's.
comment 11y ago · link · parent
Well, you can use json.RawMessage to delay decoding until other values are known[0].
However, this still requires that the input set is known at compile-time, which may not always be the case (some APIs sadly use a highly variable JSON schema, which can only be determined at runtime.)
You also don't need to pass a pointer to a struct. For example, you can pass an interface{}, which allows you to decode data into a type that is specified by the calling function, which I made heavy use of in this Twitter client library, for example[1].
(This is more or less how encoding/json itself works under the surface, when you think about it, but oftentimes people forget to take advantage of this idiom in practice.)
[0] http://golang.org/pkg/encoding/json/#RawMessage
[1] https://github.com/ChimeraCoder/anaconda/blob/master/users.g...
comment 11y ago · link · parent
Shameless but relevant plug - if you do know the structure of your JSON in advance, I wrote a tool for automatically generating the appropriate struct definition for it: https://github.com/ChimeraCoder/gojson
(I see these as complimentary tools, rather than conflicting or competing, since they would have two different use cases).
comment 11y ago · link · parent
Maybe, but I wouldn't compare Google with Bell Labs directly.
Remember that the only reason we had access to so much of what Bell Labs invented (e.g. Unix) is due to a 1958 antitrust lawsuit which resulted in AT&T being prohibited from profiting off of the computer business entirely[0]. As a result, Bell Labs had to license all technologies (except for telephone-related services) freely.
It wasn't until 1984 when AT&T sold off Bell Labs - almost three decades later. If AT&T had been allowed to profit off of Bell Labs, we might remember Bell Labs's legacy very differently.
If Google were subject to an analogous requirement that would be one thing, but absent that legal restriction, the two situations are very different.
comment 11y ago · link · parent
1) The AMA has nothing to do with limiting the supply of doctors in the US
2) The AAMC (not the AMA) formerly limited the number of medical students per-year in the US, but they stopped this practice sometime around 2004 with the stated goal of increasing the number of medical school graduates.
3) Even if we doubled the number of medical school graduates overnight, we still would not have more practicing physicians in the US, because the bottleneck occurs during residency (after medical school) - there are a very limited number of residency slots.
4) Residency programs in the US are funded by the federal government through Medicare, so increasing the number of practicing physicians would require increasing funding to hospitals that offer residency programs by increasing spending on Medicare. This is both politically complicated and incredibly expensive (training a resident is very cost-intensive when you look at the big picture).
So yes, there is definitely an issue with the number of practicing physicians in the US, but fixing it requires Congressional authorization to increase spending (and not just by a little), so it's unlikely to change anytime soon.
comment 11y ago · link · parent
Yes and no.
The privacy extensions will create new addresses, but they will always belong to the same /64. To my knowledge, TWC will allocate a /64, but there's no guarantee that power cycling your modem will generate a new /64[0]. I believe other ISPs work the same way - they may give you a new /64, but they're not required to and don't guarantee it in the SLA. And most people won't power cycle their modems often anyway, which means they could have the same /64 for months on end.
If we're talking about online tracking, it's very easy for trackers to just throw their hands up and treat all addresses within a /64 as if they represent a single user + device. This isn't completely accurate, but it's no less accurate than IP address tracking with IPv4.
Furthermore, I am unaware of any reliable commercial VPN providers that currently provide IPv6 connections (at least over OpenVPN[1]), so if you have dual-stack connectivity, your IPv6 connection can compromise your privacy even for your IPv4 connection[2].
[0] Technically this is true for ipv4 as well, but due to the relative scarcity of addresses you're less likely to get a pseudo-static ipv4 address.
[1] OpenVPN now supports IPv6 clients, though I don't know of any actual deployments of this. PPTP is IPv4-only.
[2] I think this blog post is sadly still accurate: https://blog.dave.io/2011/06/vpn-ipv6-privacy/
comment 12y ago · link · parent
Amusingly, we keep inventing new drugs to "fix" the old ones, discovering that they're just as bad (if not worse), and rinse/repeating.
Believe it or not, heroin was originally sold by Bayer (yes, as in "aspirin") as a "safer, less addictive" alternative to morphine. Both drugs were very commonly used as cough medicine (as was morphine's predecessor, laudanum).
Now, of course, we know that heroin is actually rather addictive, and instead we treat heroin addiction with other opiates that have a similar effect[0]. And so the cycle continues.
[0] Usually which bind to the same receptors, to reduce issues of withdrawal.
comment 12y ago · link · parent
That's not an equal-opportunity basis, as consumers can't (or won't) vote for a company that doesn't exist yet.
This raises the barrier to entry for startups even further, because now they have to get enough brand recognition to beat out established competitors in this vote just to reach some segment of the market[0].
As if the barriers to entry for startups disrupting music distribution aren't already high enough! :)
[0] T-mobile has a small market share, but what if Verizon did it? Remember that there are only four non-virtual carriers in the US, so if just one of the two big guys (Verizon and AT&T) does it, it'll dramatically tilt the odds away from startups even more.
comment 12y ago · link · parent
Well, that's because this wasn't a threat (in the US) until relatively recently, unlike paid prioritization and/or throttling. That doesn't mean that zero-rating doesn't violate the same principles as paid prioritization does. If you take a look at the doomsday scenario that Fred Wilson outlines in "VC Pitches In A Year Or Two"[0], the situation could just as easily apply to a zero-rated world.
You can think of zero-rating as "slow lanes", the speed on the slow lane is set to zero. (In a way, zero-rating is actually worse than paid prioritization, because it achieves the same end result, but placing a more consumer-friendly facade on the same rotten interior.)
> This is kind of at the peripheries of net neutrality. I don't recall any proposed "net neutrality" related regulations -- whether the 2010 Open Internet Order, the NPRM from earlier this year, or any of the concrete alternatives proposed -- that would have prohibited zero-rating on mobile networks that have data volume charges.
I also don't recall any large-scale[1] efforts to impose zero-rating on mobile consumers until the last year or so, which is why net neutrality legislation hasn't focused on it. In general, legislation around consumer protections tends to be reactive rather than proactive, and net neutrality has definitely followed this pattern.
[0] http://avc.com/2014/01/vc-pitches-in-a-year-or-two/
[1] (Yes, they existed in some cases, but they were very limited and relatively obscure.)
comment 12y ago · link · parent
There are lots of small firms (ie, ~5 people) who use this approach. Arguably, for a team of 2-5 people, it's the most natural strategy anyway.
The challenge, of course, comes with scaling this to a team of 50 or 500 people. At that scale, there are far fewer examples (though the comments in this thread point out some exceptions).
Assuming you ask because you're looking to find a place to work, in addition to the other names mentioned here, you may want to look at very small companies as well, because the odds are very much in your favor of finding one. Just be aware that the team dynamics may change as the company grows, which you may find you like, or which may mean it's time for you to look for your next step.
comment 12y ago · link · parent
I was in SF a few weeks ago and was shocked by how cheap and effective Lyft Line is - it ended up being comparably priced to public transportation in terms of getting around the city. (A tad more expensive, yes, but not an order of magnitude more, as I would have expected).
I've already heard of people using Lyft Line in this way (making money on the way to work), and I imagine that many more people now will, since it's officially supported.
Think about how many people already carpool. Now think about how many people don't carpool, simply because of the hassles of coordinating transportation with another person. Lyft Line addresses that burden.
I used to carpool on my morning commute with about four people, and it was awful trying to coordinate times, or remember who wasn't going to be joining us today because they had to go in early, or who was running late... all sorts of headaches. Because Lyft Line is on-demand, drivers don't have to worry about most of that. The downside is that you don't get the benefit of carpooling with the same people every day, but not everyone would mind that - and in any case, this feature seems aimed at ad-hoc trips (like running errands), not just regular commutes.
comment 12y ago · link · parent
But that's not at all what Torvalds's quote means. He meant that, if FreeBSD had been available, he would have worked on contributing to that instead and improving it for daily use, rather than building Linux to be used for daily use. (The state of FreeBSD in this hypothetical world has no bearing on the state of FreeBSD today).
In terms of FreeBSD today, while it's possible to use it for daily use, it suffers from even worse driver issues than Linux does, and of all the problems of just simply having much smaller market share (both for contributing developers and users) than Linux does.
This may or may not be 'good enough' for OP's purposes, but it's disingenuous to suggest that Torvalds's hypothetical from the early 1990s implies that FreeBSD is a clean substitute for end-user Linux today.