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 is orthogonal to Tor.

SSL protects an adversary from seeing what you're talking about, not who you're talking to.

Tor will prevent an adversary from seeing who you're talking to, but not (in itself) what you're talking about[0].

Here, the topic of concern is an adversary (in this case, the government) finding out what you're talking about, so Tor isn't relevant.

[0]Because the last step is unencrypted and sent in plain text, even though intermediate steps are encrypted.

comment 13y ago · link · parent

> I suppose that the code "f", invokes f with no arguments rather than returns the method with name f also complicates things

Why should it? "a.f(b, c, d)" is just "(apply #'f a b c d)". "a.f" is just (apply #'f a). "f" is just (apply #'f).

This assumes that you know the type of f, of course (f could be a string, which should't be applied). But that's not really much of an issue - you just do something like

    (define (naive-evaluate f)
      (if (applyable-p f) 
          (apply #'f)
          f))

where "applyable-p" checks if "f" is a lambda term that has any free (unbound) variables.

This isn't the most efficient underlying implementation, but you get the idea. From the perspective of the lambda calculus, OO is dead simple.

On a side, note, writing this example out reminded me of how much I really miss writing Lisp every day..... :'(

comment 13y ago · link · parent

> Being properly OO kind of messes up the way alot of the HoF stuff works as well, since you don't have a bunch of functions that operate on strings, you have methods on string.

It doesn't really - methods are nothing more than closures of general functions around a specific value for the implicit parameter (usually the first parameter). The syntax for doing this in Lisp is pretty straightforward, and that's the way CLOS is structured.

And for what it's worth, Alan Kay (who coined the term "object-oriented") himself said (in 2003!) that the only two object-oriented languages he was aware of were Smalltalk and LISP.

comment 13y ago · link · parent

Well, Ruby isn't really homoiconic. I can't speak for OP, but to me, if a language isn't homoiconic, it can't be a Lisp.

Lisps don't have to have parenthesis-based syntax, but the grammars should be close to context-free (like Lisp's is - most of the language can be defined by two production rules). Ruby's grammar is nowhere near as simple.

Compare:

Lisp: http://cui.unige.ch/isi/bnf/LISP/

Ruby: http://stackoverflow.com/questions/663027/ruby-grammar

comment 13y ago · link · parent

> I'm glad that T-Mobile has become a customer focused company in recent months, but let's not forget that just a short while ago, they were just like all of the other major carriers.

Not just that, but in other countries (not the US) where they have the dominant market position, they seem just as despised as Verizon and AT&T are in the US.

Not that I'm complaining; I enjoy the consumer-side benefits of competition as much as the next guy - it's just good to remember exactly where things stand.

comment 13y ago · link · parent

> If Ubuntu, FirefoxOS, and CyanogenMod are locked out of watching Netflix but iOS and Windows work fine

The status quo is that Linux users are already locked out of Netflix.

The only reason that Cyanogenmod users aren't is because they can run the standard Android apk, which, incidentally, is a separate proprietary blob that Netflix had to write and produce on their own dime.

I'd rather vendors be forced to ship proprietary binaries that they have to produce themselves than for them to offload the work onto open-source browsers (or, worse, be able to pressure open-source browsers to cripple their own functionality in order to preserve DRM).

> If widespread restrictions are going to exist anyway, then it's strictly better for the interface to be standardized.

If widespread restrictions are going to exist, it's better for them to be less convenient for everyone involved (both consumers and distributors), not more.

comment 13y ago · link · parent

> The basic position of EME opponents appears to be that if we refuse to allow DRM modules in browsers, then the companies pushing DRM will give up and let us watch unrestricted video.

No, that's not the expectation of EME opponents. EME opponents understand that companies will continue to use restricted access, as they always have, but want them to do it off-spec and on their own dime.

> If EME is blocked, then these companies will either start distributing their own customized locked-down applications ("You must install the Netflix Player to watch this movie"), or will work privately with the major proprietary browser platforms (IE, Safari, Android Chrome, ChromeOS) to implement what they demand. Firefox and Chrom{e,ium} will be left out in the cold, and the advancement of the open web will se a significant setback.

That would be far less of a setback for the open web than the current state, which bakes the notion of restricted access into the open standards.

comment 13y ago · link · parent

I'm pretty sure that every single Humble Bundle has had the largest average donation come from Linux[0].

On some, the total Linux donations even beat the OS X donations, despite having a fraction of the number of users.

[0] Certainly all the ones I've participated in, which is a lot of them.

comment 13y ago · link · parent

There's a very sad story of a kid who told his DARE teacher that he found a couple of joints in his parents' room.

This resulted in his parents being led away in handcuffs, and the children being taken away by social services, in tears. When he was asked about it, he said, "They told us that people who used drugs need help, and I just wanted my parents to get help."

http://www.tokeofthetown.com/2010/10/welcome_to_the_ussa_kid...

comment 13y ago · link · parent

On the other hand, even when people are clueless about it being nonsense, it's hard to find politicians who are willing to support it.

Take, for example, the (successful) 2008 initiative to decriminalize marijuana in Massachusetts. Nearly every town in the state voted in favor of it, often by a wide margin (it won with 65% support statewide)[0].

Yet, my own then-congresswoman, a Democrat in a very safe district, couldn't be bothered to vocalize her support for it (in fact, in a response to an open letter from a constituent, she still clung to the ludicrous belief that marijuana contains no medicinal value, despite the copious evidence to the contrary included in that very letter).

Sadly, she's not alone in failing to represent her constituents' views on the issue of drug policy. For whatever reason, drug policy is the issue where the disparity between politicians' views and their constituents' views is the greatest and lasts the longest, far more so than any other issue I can think of.

[0] http://www.boston.com/news/politics/2008/election_results/ma...

comment 13y ago · link · parent

> There is no way Heroin or Meth can be "used recreationally" without causing self-destructive harm and affecting all of society.

Please read up on diacetylmorphine maintenance programs. There is copious literature on this.

Laudanum was used safely for the better part of the late 19th century. The word "heroin" is actually a trademark of Bayer (yes, the same folks who also gave us "aspirin")[0]. It was sold successfully and without any large-scale devastating effects for several years; the reason it was eventually outlawed had nothing to do with any negative repercussions of the drug on a large scale.

As for methamphetamine, according to the MTF and NSDUH studies, the majority of people who have used methamphetamine in the last 30 days do not meet DSM criteria for substance dependence[1]. That's not looking at everyone who's ever used methamphetamine; that's looking at people who have used it within the last month. Clearly it can be used "without affecting all of society"[2].

This is, of course, ignoring the fact that methamphetamine is Schedule II and can be obtained legally (albeit in rare cases) with a prescription (under the brand name Desoxyn).

[0] Both trademarks are now generic; Bayer eventually lost these trademark protections. This is why your local drugstore is allowed to sell acetylsalicylic acid under the name "aspirin" (with a lowercase "a").

[1] Most also wouldn't meet the DSM criteria for substance abuse either, except for a technicality in the criteria that references the legal status of the drug, which is naturally self-fulfilling.

[2] Unless you are looking at the economic impacts (ie, Nicaragua 30 years ago, North Korea and Afghanistan today, in which case you have a point, but that only serves to emphasize the need to short-circuit these black markets with legal ones).

comment 13y ago · link · parent

Ah, thanks. I was on my phone and didn't think to check the source.

EDIT: Actually, this explanation is enlightening: http://en.wikipedia.org/wiki/Slash_(punctuation)#Encoding

comment 13y ago · link · parent

Interesting. It says they're the same thing, but then the two characters listed on the page (the regular backslash and the Unicode variant) are rendered noticeably differently.

I can't imagine why they changed the name, given that the forward slash and the solidus are not interchangeable. http://www.fileformat.info/info/unicode/char/5c/index.htm

comment 13y ago · link · parent

Go not only uses a different library for processing regular expressions, but a different algorithm altogether. It is slower in some cases than the standard PCRE implementations but faster in others.

http://code.google.com/p/re2/

comment 13y ago · link · parent

The slash and the solidus are two separate entities. I am not aware of any use of the actual solidus being used for escaping.

comment 13y ago · link · parent

Who says that any single governing national body should ever have the right to be an all-but-unchecked international leader, the way the US has?

comment 13y ago · link · parent

> One of my biggest pet peeves is endless emails sent to everyone in the organization by someone who just wanted to share an article that he/she thought was interesting. Then someone replies all with a comment, another person replies all, and soon, my email client just kept on buzzing even if the topic doesn't concern or interest me.

> And the most frustrating thing is there's no rule that I can create to filter out those kind of emails.

FYI, Gmail lets you mute threads, which addresses this exact use case.

comment 13y ago · link · parent

Not really - setting up a mail server is actually pretty easy if you ignore spam detection algorithms.

Email/SMTP is a very fault-tolerant protocol, which means it's very forgiving to a whole number of different errors that you can make while setting it up.

The problem comes when you account for the facts such as (1) some ISPs block ports commonly used for email; (2) some email providers will mark email from self-hosted email servers as spam.

But none of that is about email/SMTP specifically (and could theoretically apply to any P2P solution that catches on).

comment 13y ago · link · parent

> . UK, where pants is pants and not trousers. ;)

I made this mistake once when I spent a summer in Ireland in high school. (I should add here that the people at this summer program were noticeably more homophobic than I was used to back home[0]) I had borrowed a pair of "trousers" from a friend for a costume for some event.

When asking permission from the RA later that night to go to a different dorm after lights-out, I told him, 'I need to give <friend> his pants back'.

I will never forget the look of horror that he gave me.

[0] Not sure if it's a cultural thing or just the program I happened to be at, but either way, it's relevant.

comment 13y ago · link · parent

Same thing for me, in both Chrome and the default browser. This is troubling.

comment 13y ago · link · parent

> I am a US citizen and therefore cannot be denied entry to the US

That's what the no-fly list is for.

There have been some court cases where they have ruled that forbidding a US citizen to fly on his return trip to the US is stranding/abandonment[0], but... even then, it took a while to get those rulings, and things were pretty messy for the person in the meantime.

[0] I'm blanking on the legal term but there is a specific term for this.

comment 13y ago · link · parent

I agree. I love almost everything about this except that I don't control the servers on which the data is sent.

If I did, though, man, they couldn't take my money fast enough.

comment 13y ago · link · parent

> We need the right to copy for archiving without profit, or something.

Just throwing it out there - this is (in some sense) one of the intended purposes of the Library of Congress.

The Library of Congress already even announced a few years back that they were planning on archiving every public tweet.

Having them archive every video referenced in official documents (such as a Supreme Court decision) isn't that much of a stretch.

comment 13y ago · link · parent

> publicly and freely accessible data would be illegal.

Data is not "publicly and freely accessible" if accessing it requires you to agree to separate terms of service for it that restrict your ability to access and redistribute it.

(Whether or not one believes the data should be freely and public accessible is a separate matter, but given the above, it's hard to make the case that it is).

Amusingly, this data still isn't "freely accessible", because these people have attached their own, separate terms to reusing and redistributing the data.

comment 13y ago · link · parent

> If you cascade the two ciphers,

That assumes that f(g(x)) is harder to invert than either f(x) or g(x) individually, which is not true in the general case for encryption schemes.

It is quite possible that (f∘g) can be cracked in a way that neither f or g can individually.

comment 13y ago · link · parent

Anybody have any idea on when we'll be able to use elliptic curve encryption with GPG?

According to tptacek, that's in the works, but seems like that didn't make it into this release.

comment 13y ago · link · parent

> The thing is, no matter how much we complain about them being loud, they still pay their bills on time, so my landlord has been at a loss as to how to remove them. He would love to kick them out and renovate the apartment and charge many times as much as is currently being paid, but he can't.

If they are rent-controlled, even if they are paying their rent, he can evict them with no problem.

The relevant government agencies have a moderate amount of information line, but I'd recommend calling them instead. I've done this before; they're very friendly and helpful if you call them on the phone. I'd recommend giving them a call and asking for advice on the eviction process:

http://www.nyshcr.org/rent/ http://www.housingnyc.com/html/about/about.html

comment 13y ago · link · parent

> I assume that the people illegally subletting their apartments don't just work in the tech industry.

People subletting their apartments aren't subletting rent-controlled apartments, by and large. This doesn't apply in other cities, but in NYC, any listings you see on AirBnb are almost certainly for unregulated apartments.

> According to [1], in 2011 about 47% of NYC housing units were rent-regulated.

73% of those (34% of total apartments) are pre-1947, which are regulated, but most of those are under a separate provision, which means they aren't subject to the same restrictions as what we're talking about here.

comment 13y ago · link · parent

> in the case of rent controlled apartments in NYC.

This is not the issue.

There are very, very few rent-controlled apartments left in NYC. Almost nobody who works in the tech industry here has one, because it requires having lived in the same apartment since the 1970s. If you have one, though, you could easily be paying 5% of market rent.

Rent stabilization is a very different set of laws altogether, and these apartments are also vanishing slowly.

As for true rent control, landlords would love it if their rent-controlled tenants were to sublet their apartment on AirBNB. That would allow the landlord to kick the tenant out and charge market rent - 20 times more - for the apartment.

comment 13y ago · link · parent

But that's not the place of the legislature (or a judge), not the AG.

I realize that in practice this happens, but we set a dangerous precedent when we allow the Attorney General to decide what should and should not be prosecuted. In theory, the Attorney General prosecutes all perceived violations of the law[0], and it's up to the justice system to, well, decide of the law is just.

[0] And I don't think anybody's debating that this violates the law; the debate is whether or not the law is just.

1
158159160
202