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 14y ago · link · parent

I've never used Ninite once... shouldn't your package manager take care of this for you?

comment 14y ago · link · parent

I'd imagine so - there's very little incompatibility of this sort between different Linux distros, and when it happens, it's almost always because of bad developing practices (ie, system-dependent compilation of a closed-source binary... statically compiled binaries are binary-compatible, and if it's open source it can be patched).

The only thing that could be a problem are the drivers, but if those are open source, you bet there'll be a patched package for any mainstream distro, and even closed-source drivers on Linux these days are very good. I can't remember the last time I ran into driver problems. What's more likely is fundamental limitations of the hardware itself, rather than the drivers, but that won't be a problem here.

comment 14y ago · link · parent

Have they announced when this will be available for purchase? I was considering getting an XPS 13 Ultrabook now, but it sounds like it won't be a long wait for the Sputnik?

comment 14y ago · link · parent

Without extreme modifications to the operating system and/or expensive third-party solutions:

Disabling the nauseating window-switching animations in Lion (not Snow Leopard), the ability to implement proper tiling window management (think wmii, not Divvy/Shift), focus-follows-mouse, arbitrary remappings of keys, mapping keyboard shortcuts involving the return/enter key, disabling the hardcoded built-in delay in the Caps Lock key, unified package management (homebrew != portage), unified binary package management (pacman != homebrew != portage), launching of 'applications' from a terminal without hunting down the location of the binary[1], renaming Documents/ and Downloads/ to their lowercase equivalents without breaking tab completion (seriously??), getting GNU screen/readline working in Terminal.app without really awkward line wrapping problems, the ability to access basic utilities (like system temperature) from the command line, upgrading system versions of things like the python interpreter (this may have been fixed), changing the resolution and font-size system-wide, scripting arbitrary window behavior in any language (again, think plan9/wmii), mounting /tmp in RAM the way tmpfs in Linux provides...

...that was just off the top of my head, but clearly there's quite a bit. Some of that is because it ships with a version of bash that's on the order of a decade old... but that's a problem in and of itself!

[1] Yet another example of how the concept of applications is broken on OSX - installing an application from a .dmg file is a completely different process from installing something via make install on a traditional (*)NIX.

comment 14y ago · link · parent

Shouldn't this be really easy to create using a Chrome/Greasemonkey extension or something similar? I mean, all you have to do is automatically preface every query with "!g" (after passing through a regex to filter out the other !bang queries).

That way no tertiary server would be needed, which would probably improve the response times (and cost less...)

comment 14y ago · link · parent

That's awesome - thanks for pointing it out.

I've only poked around Heroku a bit with basic applications and the standard stacks (Python w/ Flask, etc.), but I think I'll look into what would be required to create a buildpack for Racket.

That is, if someone hasn't already beaten me to it...

EDIT: As figures, it already exists[1]; I'll toy around with it and test it out before suggesting they add it to the list.

https://github.com/onixie/heroku-buildpack-racket

comment 14y ago · link · parent

For what it's worth, there's a precedence for it in formal, legal-style writing. UN resolutions, for example, are always written as a single sentence[1].

It makes sense when you think of an entire resolution (program) as a single goal (output/result), which involves many separate steps/clauses (statements) that need to be executed.

A period is a terminator; it says 'This thought ends here', while a semicolon is a delimiter (ie, the clauses it separates are independent grammatically, but not contextually).

[1]http://web.utk.edu/~modelun/resolutions.htm (Model UN rules, but you get the idea).

comment 14y ago · link · parent

> Forking a project isn't a healthy thing to do, unless there's something seriously wrong with the existing community

Or you have goals which are substantially different from the goals of the original project.

Lets not forget that parts of Android are 'forked' from Linux (and were later merged back).

comment 14y ago · link · parent

> "He was wearing a helmet, which is good news."

Though the importance of your PSA still stands.

comment 14y ago · link · parent

Predictably Irrational covers the case of an Israeli day care center, though it's actually a slightly different story - in that case, the parents felt an implicit moral duty not to pick their kids up late, which vanished once the cost was quantified (in terms of a 'late pickup fee'), causing more parents to pick up their kids late, even though it was technically free before.

More importantly, when the fee was removed again, parents continued late pickups at the higher (with-fee) rate. That's the real point of both stories - once the terms of the agreement have been moved from the social to the monetary realm, it's very hard to get people's brains to switch back to the social terms.

comment 14y ago · link · parent

> This gives me an all-new appreciation for Lisp.

I'm a Lisper who's also programmed in Scala. (And for the record, I'm not a Lisp purist - in fact, there are a number of things I really like about Scala).

But I'm not sure how I feel about this change. Scala can already implement things like DSLs through creative use of type inference, etc.

> It's nice to use standard list operations in a macro instead of needing to learn AST magic.

The power of Lisp's macros come from it's homoiconicity, which is something I could never have appreciated before learning Lisp - in fact, I didn't even understand its significance until I wrote an implementation of a Lisp compiler for the first time. (For the record, it was a better learning experience than it was a compiler, but that was the whole point).

The best explanation I've seen of homoiconic macros is one written by a well-known Perl programmer. http://lists.warhead.org.uk/pipermail/iwe/2005-July/000130.h... (In a way, it makes sense that a Perl programmer would be the best at explaining what homoiconicity is, given that its extreme heteroiconicity is the underlying cause of many of the common criticisms of Perl to begin with).

That email is mostly accurate, and it includes this gem:

> Source code generation is unreliable and inadvisable in every language except Lisp.

This is where macros really shine. Macros allow you to generate source code reliably - or put another way, they let you refactor your code far more than you ever thought possible. (When you realize how easy it is to write Lisp programs that recursively define other valid Lisp programs, it's not hard to see why it's such a favorite of the AI community![1])

But here's the catch - for the kind of reliability that MJD talks about, you need to have the internal representation of the language be a fundamental data structure in the language, not just the textual representation.

Why's that? It's simple:

> It's nice to use standard list operations in a macro instead of needing to learn AST magic.

In Lisp, the internal representation is a list. The AST is a list. There's no 'instead of' here... macros are simply AST magic made simple....!

[1] http://en.wikipedia.org/wiki/Technological_singularity

comment 14y ago · link · parent

We've had open-source alternatives like http://identi.ca/ for years; and in my memory, these have always been faster to implement new features that Twitter itself has been. Yet Twitter, not identi.ca, caught on in the public.

So the question is really not whether there is an opening for a Twitter alternative and what features we would want it to have, but rather why the existing alternatives with strictly more features failed to catch on.

My take is that Twitter had already passed a threshold by the time these alternatives hit the scene, and their first-mover advantage carried them a long way in defending themselves against other similar-but-incompatible platforms.

Put another way, the reason Twitter is singular and email providers are not is that email providers communicate with each other over a common open protocol, whereas Twitter communicates only using its (closed) API.

The difficulty would not be in defining an open protocol to doing what Twitter does, naturally; existing ones could be tweaked slightly to achieve the same result. (Look at what Shortmail is doing while maintaining 100% backwards-compatibility with traditional email).

The problem is that Twitter has no incentive to turn its "open" (read: closed) API into an completely open means of communication like email, because doing so would squander the one huge asset it already has: a captive userbase.

(For the record, the same arguments could apply just as well to Facebook; people just don't think about Facebook that way, because we're all so used to them being a walled garden).

comment 14y ago · link · parent

Slightly tangential, but the author mentions remapping Caps_Lock, as I do (I've mapped it to Escape, as Esc used to be where Tab is on modern keyboards anyway). The moment I first did this, I realized how amazing vim really is, and why people always say that you can navigate the entire file without moving your hands from the home row.

However, both methods I know for doing this only work inside an X server - does anybody know a good way to remap keys without X?

comment 14y ago · link · parent

> In an ideal world, tests would be subsumed by types

It would be literally impossible for this to happen in a Turing-complete language, though, because a hypothetical 'perfect' type system would be able to solve the halting problem.

The Haskell 'Bottom' type alludes to this in its documentation, actually: http://www.haskell.org/haskellwiki/Bottom

(Essentially, Bottom is a member of every type, or else the compiler would need to distinguish between a halting program and a non-halting program before accepting the input program).

comment 14y ago · link · parent

No, interest rates are both. All costs are opportunity costs, so it's just two ways of looking at the same coin.

comment 14y ago · link · parent

What is time, other than a state in which net entropy within a closed system increases (which is already a definition abstract enough that it almost misses the point)?

comment 14y ago · link · parent

> Indeed. Source code is speech, and speech cannot infringe patents. (Not saying this is logical, that's just what the case law says.)

Are you sure about this? So I could write any patent-infringing code I want, distribute source-only (or even write it in a purely interpreted language) and then nobody can complain that I've violated any of their patents?

comment 14y ago · link · parent

That doesn't make sense. If you write code based on GPL-licensed software, then sell that to me, all the GPL says is that I have the right to the source code (not just the executable) and the right to modify/distribute/sell it as well.

However, if the DoD is hiring outside help, I'm not sure the above case is even relevant. When a startup hires an individual to write code, the individual doesn't necessarily maintain the rights to the code he writes, because he's acting on behalf of an organization (so the rights are automatically assigned to the company instead). And a company is free to distribute GPL code internally without releasing its source externally.

A separate question is whether the fact that the DoD is a government agency makes this aspect of corporate law not apply. Most writings of the public government are automatically in the public domain (a law which was pivotal in the Pentagon Papers proceedings), and the fact that the government is comprised "of the people" may make this issue more complicated.

> And even though the DOD’s use of open source code will alter the GPL for said code (they can’t, for obvious reasons, release any code they use and modify back into the wild)

This is what I don't understand. What are they altering about the license? And what are these seemingly 'obvious' reasons? The NSA was fully capable of releasing SE Linux. As for software to control missiles, etc., the real issue is that individuals (and even nations, as we've seen) can't create the physical weapons easily - the software itself is not necessarily the biggest hurdle.

(And, depending on what type of use we're talking about - though we'll probably never know exactly - the GPL may not even need to take effect, just as GPL and proprietary software can both coexist on an underlying GPL operating system, for example).

comment 14y ago · link · parent

I must say, this 'challenge' is a creative idea.

However, not to be a wet blanket, but it's rather simple to construct a winning algorithm, particularly if you can both choose the same starting number and always go first (and choose the same starting number multiple times). If I had a few extra minutes at work right now, I'd take a stab at it.

...That is, unless that's the entire point?

comment 14y ago · link · parent

> A 7" tablet is just about exactly as much bigger than a 4" phone as a 10" tablet is bigger than a 7" tablet.

I'm surprised that nobody else has pointed this out, but that's not true at all - we measure screen sizes by the diagonal, but the actual screen size is a quadratic function of the diagonal. If the aspect ratio were such that the screen were a square (it's not), this would mean that a 10'' screen would be more than twice as large as a 7'' screen, which would be three times as large as a 4'' screen.

That said, the screen size is really only part of the picture. At least for me, I like the size of the Kindle Fire (also ~7'') - it fits perfectly in my hand both when traveling and when reading. A 10'' screen to me feels massive enough that I'd just as rather have my computer (heck, 10'' is almost the size of some ultrabooks or the Macbook Air!)

comment 14y ago · link · parent

Does that include the Verizon version of the Galaxy Nexus, since Google agreed to let Verizon handle the updates for that model?

If so, I'm glad to hear that Google is addressing the problem of not having their own devices be up-to-date (which was an embarrassment for some Android updates on previous Nexus devices).

comment 14y ago · link · parent

Yes, I'm not sure why this is surprising, since the write bit refers to modification of the file itself, whereas the ability to create (or delete) files in a directory is related to the write permissions for the directory.

EDIT: NelsonMinar explains this better in his comment, but if you think of the inodes, not the files, this behavior makes perfect sense.

comment 14y ago · link · parent

Does it still have the symlink problem? (Creating a symlink and then deleting it would delete the original file).

comment 14y ago · link · parent

> When an Apple laptop sells (lets say at an average of $1200), how much do you think Best Buy gets of that? $50? $100?

Technically, none. Best Buy doesn't mark up Apple computers at all; Apple pays kickbacks after the sale of devices. (At least, I'm assuming that nothing has changed since 2009).

May seem pedantic, but from an SCM standpoint, it's an important difference.

comment 14y ago · link · parent

> Debit cards carry reversal rights as well - at least in the United States.

It's provided as a service sometimes, but the legal obligation is very different (essentially absent altogether), as are the incentives.

With a credit card, the 'default' is that you don't pay the credit card company (and you have no reason to), so they lose out on the money unless they get it back from the merchant.

With a debit card, the 'default' is that the merchant wrongfully holds onto the money, and unless they get it back, you lose out on the money. Since they have no legal obligation to settle that dispute even when the customer is in the right, they may not, in which case you (the debit card consumer) lose out.

comment 14y ago · link · parent

> I think the benefits are thus provided by VISA/etc, regardless of what services your bank provides through the card, like credit.

See my above reply - they may provide similar services as if as a "courtesy", but the legal obligations for both parties are very different with credit and debit cards (very much in the consumer's favor, if the consumer is using a credit card).

comment 14y ago · link · parent

> Credit card companies have a lot more leverage than individuals to lean on companies to respect their own return policies.

Not just leverage, but an obligation. Or rather, even if your debit card says Visa or Mastercard on it, they have no legal obligation to get your money back. You don't have an obligation to pay the merchant, but the impetus is on you to get your rightful money back (the debit card company may help, but they are not required to).

With a credit card, they don't exactly have an obligation either, but this time it works in your favor - it's the credit card's money, not yours, and while you still have no obligation to pay the merchant, this time it's the company's money that is on the line (the collateral, so to speak). So they will fight tooth-and-nail to get it back, because technically if they don't, they can't collect any money from you.

(They may still try, but then you have to weigh the cost of a legal battle with them as well).

Think of this in the context of theft/fraudulent use of your card, and you'll see why debit cards are very risky indeed. (Remember that, even if you manage to get chargebacks on your debit card, you may still be liable for the fees for the temporary, eventually-reversed overdrafts!)

comment 14y ago · link · parent

Not for me - I've had two Macbooks in the last two years for work, and both of them suffered this problem, which makes developing in Vim super annoying (I remap Caps_Lock to Esc).

comment 14y ago · link · parent

> New rentals are typically required to set aside some percentage of units for specific income levels (so-called affordable housing).

This happens, but it's different from rent stabilization - the program's separate and the rules function differently.

comment 14y ago · link · parent

> redistributing wealth based on random chance

That's a little harsh - yes, a lottery is involved, but only because the supply falls far short of the demand. The lottery is conducted only among eligible people anyway (or at least, ineligible people are filtered out after the lottery), and only low-income people receive the apartments in the end.

1
189190191
202