Better HN
topnewbestaskshowjobs
Log inSign up

chimeracoder

21,186 karma · joined Oct 12, 2010 (16y ago) · 6,050 submissions

Inveterate builder.

Personal site: http://www.adityamukerjee.net/

My email is pretty easy to guess from my username.

Submissions

comment 13y ago · link · parent

This isn't true on Android - if you've done a full backup, you can restore Google Authenticator without disabling and re-enabling the service.

comment 13y ago · link · parent

This has been discussed to death already, so without opening Pandora's box too much: (1) If a compiler can't automatically eliminate tail calls, that's either a design flaw or a bug, and (2) If I wanted to write a loop, I wouldn't be asking for recursion - even if they're executed in the same way by the machine, I'm expressing something different by writing my code that way.

comment 13y ago · link · parent

I can't find a mirror of Mark Pilgrim's blog post from 2010 on losing a friend of 25 years. That haunted me.

EDIT: Here it is: http://web.archive.org/web/20101214221345/http://diveintomar...

comment 13y ago · link · parent

I'm pretty sure none of these are referentially transparent: http://stackoverflow.com/questions/186964/java-core-api-anti... [1]

Less sarcastically, the mere existence of the builder pattern in Java, which undermines referential transparency to its core, is proof that the design of Java as both a language and community is strongly biased against a functional, referentially transparent, mathematical approach to programming, even if such a style were theoretically possible[1].

[1] eg. com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonWindowNotFocusedState

[2] Scala and Clojure being proof that it is still possible (though only to a lesser extent - tail call elimination and corecursion being an example where it fails completely).

comment 13y ago · link · parent

Just to highlight it for anybody who scrolled past - Adolf Hitler was the Person of the year in 1938, for example.

comment 13y ago · link · parent

Yes, but I wouldn't say that "almost all" economists don't understand the principle (as in the title). I would be more likely to say that "almost all" reporters don't understand basic economics & statistics.

comment 13y ago · link · parent

For anybody who's interested: perfect multicollinearity (which is rare, except in case of human oversight) causes a matrix of less-than-full rank, which essentially means that it's not invertible (the matrix analog of "divide-by-zero" error).

More commonly, you'll end up with imperfect multicollinearity, which means that two variables are almost the same, but slightly different. The danger with perfect multicollinearity is that (a) you'll end up with very high variances associated with those predictors, but furthermore (b) the predictor reported as being the 'strongest' may actually not be the strongest. In fact, it may not even be relevant; the model just "happens to be associating most of the variation in the response variable with that predictor. It's a more complicated version of this principle: http://xkcd.com/882/

I mention this because I see people - including people who should know better! - falling into this trap all the time. It's easy to overlook, particularly when you see the results you were expecting.

comment 13y ago · link · parent

> caveat emptor.

Ironically, that doesn't even apply here - 'emptor' means 'buyer', but the whole point of Kickstarter is that you're not a buyer - you're a backer.

Your point still stands; I just found the aphorism amusing, since the whole point is - as you said - that Kickstarter projects are attempts, not guarantees (purchases).

comment 13y ago · link · parent

I'm not sorry for posting this link, but I'm not responsible for any loss in productivity that ensues: http://esolangs.org/wiki/Main_Page

comment 13y ago · link · parent

But that's not exactly a "final" decision - if the section grows, it can easily be factored out into its own article again.

With any dynamic process, an individual snapshot (or even a few) might not be representative of the larger outcome or trajectory.

comment 13y ago · link · parent

> So maybe the solution here is coming up with a 'secure browse' profile that every browser reports the same fake fingerprint.

There already is: https://www.torproject.org/projects/torbrowser.html.en

This also has the advantage that no other solution has: it completely hides your location as well, whereas even with a "standard" browser, your IP address + time zone alone can do a lot to identify you.

comment 13y ago · link · parent

For those who missed the context of the title, the footer of the page:

> Note that this subdomain's called "python3wos" - once the status goes beyond 50%, the title of the site automatically becomes "Python 3 Wall of Superpowers". I kid you not.

comment 13y ago · link · parent

The title is linkbait, but I'm not sure what about this is really news. Yes, degrees so-called "elite" schools like Harvard are essentially an expensive form of signalling.

Whether or not that signalling is accurate is a topic that can be (and has been!) debated ad nauseum, but the observation that people in the financial, etc. industries[1] do treat those degrees as a signal is nothing new or surprising.

[1] Really, anything except tech, where this trend is absent (or arguably reversed - ie, respect for dropouts).

comment 13y ago · link · parent

> philh 2 hours ago | link | parent

In insurance, people who get lucky subsidize people who get unlucky. If you can test luck before getting insurance, then lucky people don't get insurance and there's nobody left to subsidize unlucky people.

> Forbidding insurance companies to discriminate based on luck does not solve this problem, because the problem is caused by customers selectively buying insurance based on their own luck.

It's a little more nuanced than that. Let's say men are more prone to car crashes than women. Either you charge men more for auto insurance, OR you charge everyone a flat rate, and the market will rapidly clear itself of all women, since that flat rate will be too high to appeal to women. In this case, you end up with a market that's exclusively men, and women are uninsured.

When applied to health insurance, this means that, if you're forcing companies to insure everyone, they will have to insure people predisposed to expensive illnesses at incredibly high rates, because that's the expected cost of their lifetime care.

One implication of this is that the "no discrimination for pre-existing conditions" portion of the ACA is equivalent to "if you have a pre-existing condition, your coverage will be exorbitantly expensive".

There are ways of hiding this extra cost, but at the end of the day, it's like sweeping dust under the rug: it all has to sum to zero.

comment 13y ago · link · parent

> Macros? There are numerous arguments on both sides about whether those are good or bad.

Every argument I've ever heard about macros falls into one of two categories:

1. Concerns about overuse, which says nothing about correctly used macros - any tool can be overused or used incorrectly.

2. Complaints about macro systems from heteroiconic languages like C++ - these two concepts are similar in name only. Lisp macros have nothing to do with macros in any other language, and they provide freedom that is literally unavailable in any other[1], as explained well in this description: http://lists.warhead.org.uk/pipermail/iwe/2005-July/000130.h...

[1] Yes, yes, Turing-completeness, so nothing is stopping you from writing your own parser from scratch. But the whole point is that Lisp doesn't require you to go through all of that - and secondarily, even if you did, parsing sexprs is so easy, you've finished before you've even started.

comment 13y ago · link · parent

> UPS, FedEx, and USPS, are the three big carriers that come to mind.

Ironically, the two private carriers depend on the sole public carrier (USPS) for deliveries to rural/remote locations (which USPS is required to serve), so this market isn't quite as "competitive" as it looks.

comment 13y ago · link · parent

> Proving an inequality is "easy", because only requires a single counterexample:

Proving an equality isn't exactly "harder" (no NP-hard pun intended) - all you have to do is show that a single NP-complete problem can be reduced to a problem within P in polynomial time.

comment 13y ago · link · parent

Relevant XCKD: http://xkcd.com/1102/

Agreed - then it becomes easy to get worked up about a growth rate "slowing down" and misinterpret that as a plateau, even if the sheer numbers would indicate otherwise.

comment 13y ago · link · parent

> The point is, when it breaks and you need someone to help you fix it, it's often not enough to find someone else who "uses Linux" - you need to find someone else who runs the same distribution, because they all have their own init scripts, packaging systems, filesystem layouts etc.

Again, greatly exaggerated. I'm usually able to use Ubuntu or Fedora forums to help solve my problems, even though I don't run a Debian-based distribution. If I'm having systemd problems, I can debug that the same way as with any system running systemd, whether it's Fedora, Red Hat, Arch, etc. If I'm having issues with my package manager, I can use resources from any distro that uses that same package manager.

You're assuming that these variations cause combinatorially many possibilities for problems, but in reality, Linux is designed to be modular enough that these things don't compound in practice.

That's not even taking into account that most Mint issues have the same solutions as they would on Debian/Ubuntu, etc., because most distros are derived from one of a small set of distros; very few start 'from scratch'.

> By contrast, because there is a single FreeBSD, anyone who "uses FreeBSD" can probably help you with your FreeBSD problems.

Yes, but NetBSD and OpenBSD? Not so helpful. And frankly, given the relative sizes of the Linux and BSD userbases, this isn't really a problem on Linux at all.

comment 13y ago · link · parent

A while back I created a script that reminds you about projects that you committed to some predefined period of time ago - a bit like Timehop[1], but for git commits. I've found it fun to see how my code (and my project interests!) have changed over time.

[1]http://timehop.com/

comment 13y ago · link · parent

The first photo they have on their website is rather irritating. Being able to see the sidewalk moving up and down kind of ruins the effect. I'm surprised they didn't pick a better example for their own website.

comment 13y ago · link · parent

> 2. Yup, and the only way, should you need to set any flags.

Man, if I subscribed to that belief, I might as well just use Gentoo!

comment 13y ago · link · parent

Canadian goods are often still marked up, I find, even though the Canadian dollar reached parity with the US dollar a long time ago. Fortunately, it's relatively straightforward to get around that.

Furthermore, you should keep in mind that you're not comparing two machines that are identical spec-wise. The Macbook Air has an i5 processor whereas the XPS 13 has an i7, and memory/storage-wise, the comparable Macbook Air would be the model that sells for $1499 in the US.

In other words, in the US, the XPS 13 is comparable to the Macbook Air that seems to cost $1,699 when I enter in all the upgrades on Apple's website.

comment 13y ago · link · parent

Google is only distributed internally, not externally, correct?

Also, I believe they stopped offering Windows a couple of years ago.

comment 13y ago · link · parent

>Homebrew or MacPorts and I have exactly the same setup as I have on my Linux server.

My biggest problems with the above:

1. Neither Homebrew nor MacPorts (nor fink, for that matter) has a complete set of relevant packages

2. Compilation from source is ridiculously slow.

3. Certain utilities are best installed from .dmg files instead, and it's a pain to remember which was installed which way.

comment 13y ago · link · parent

> Most of the things that are not in the package repositories for your distro is going to give you a hard time (6h install time might be reserved for extreme cases tough, if you are a seasoned linux veteran).

Honestly, how often does that really come up? This is one of those horror stories that I always hear people (particularly BSD users) telling, but I've never had problems of this sort[1].

I run a distribution which doesn't use deb/rpm packages, and I compile things from source all the time. The vast majority of the time spent is the sheer compilation process, not debugging any local problems.

The only times I've had issues with binaries are with sloppily compiled executables - and it's not worth complaining about those, because there are a hundred different ways that sloppy code can be incompatible with two different systems running the same distro.

A static

> Btw, I suppose the problem is the same between the different BSDs.

Yes, and frankly, if you have a piece of code that is architected to work on at least one Linux distribution and at least one BSD or OS X, I have a hard time imagining that it would fail on other Linux distributions as well.

If it's not "cross-NIX", then it's probably something that only makes sense in the context of your distribution anyway (say, a patch for your package .manager) or a small, one-off that is easily modified.

[1] Problems, sure, but not problems arising from distro variation.

comment 13y ago · link · parent

> So, yes, technically you can run a "vanilla Linux" kernel, but not a "vanilla Linux" system, because there is no such thing.

This is kind of quibbling over a comparison between apples and oranges - or rather, more like comparing apple seeds to an entire orange. Whatever a "vanilla" kernel is, it doesn't make sense to compare it directly to a "vanilla" operating system.

> I think you are misinformed. Both rpm/deb ARE binaries. You (and poster) might have meant "executables", which I didn't really pay attention to because it's a strawman.

You won't run into any problems if you have EITHER:

1. A properly compiled static binary 2. The compileable source code

Because of Debian's policies regarding open-source software, in practice #2 will be satisfied for any .deb package you care about.

It doesn't make sense to complain about improperly built packages or build files, because I can easily create a build process that will fail on some BSD systems and not others too - there are many ways you can either accidentally or intentionally hardcode system-specific attributes into a script; the filesystem layout is only one small portion of compatibility.

> It's been a while, but a few years ago, you might get a script that hashbangs "/usr/bin/perl" where your system only supports "/bin/perl". It's easy to fix, either in the script or by making perl available in the other place

There are more elegant ways of fixing this too. In practice, though, it's not a problem. Not only are there tools that will automate this process, but very few scripts are written this badly nowadays anyway. I run a distribution that doesn't use one of the common package formats, and I can't remember a single time in the last two years I had a problem binary portability because of distribution-specific issues.

comment 13y ago · link · parent

Okay, really, GP asks a genuine question, and you respond with this kind of misinformation? On the off chance that you're actually this confused - or on the likelier chance that someone else comes by and takes your comment seriously - let me make some corrections for you.

> There is no such thing as a vanilla Linux you can run

The phrase "vanilla Linux" doesn't even make sense. Linux is a kernel, not an operating system. If you're talking about the entire GNU/Linux operating system, it doesn't make sense to talk about a "vanilla" version, because there are thousands of different utilities that can comprise a GNU/Linux-based operating system, and there are combinatorially many ways to create a Linux distribution.

That's like saying that there's no "vanilla" BSD - only [Open|Free|Net]BSD - except worse, because some of the Linux "distributions" are really no more different than adding an extra package (eg, KDE) to an existing distribution and giving it a different name. It's as if you called BSD by two different names depending on whether or not you pre-installed Emacs.

> All the distros that have varying degrees of incompabilities and infelicities between each other.

This is vastly exaggerated. A properly compiled binary or a compatible source file should run on any distro - not just any modern distro, but any older one as well (assuming that it has the correct dependencies installed, etc.).

> And every now and then some figure who knows which political strings to pull uses that clout to load your favorite distro with pre-beta crapware.

If I wanted to get really snarky here, I'd say that the same thing could happen to BSD too and point to OS X. This is just ridiculous - Linux is open source and free-as-in-freedom, so just because somebody else packages your favorite distro with some stuff you don't like doesn't mean that anybody else has to as well - you can just as easily remove it and create your own "distro" as a fork.

comment 13y ago · link · parent

You can use chroot to solve this problem.

comment 13y ago · link · parent

That would seem to me to be the least of the problems. Just as you can install GNU coreutils on OS X, you can compile the BSD utilities to run on Linux as well.
1
176177178
202