HNHacker News
TopNewBestAskShowJobs

tjgq

177 karma · joined September 25, 2012

submissionscomments
tjgq··on Quentin Tarantino is suing Gawker for posting a link to the script of his film
From the POV of a court, bits are coloured [0]. Just because two links are exactly equal, it does not mean that either both of them infringe or both don't.

[0] http://ansuz.sooke.bc.ca/entry/23

tjgq··on Google+ invite lands man in jail
Even though I don't know the specifics, I take issue with the very idea that merely contacting someone can constitute harassment. At the very least, the content of the message should be taken into account. Intent, more than raw actions taken out of context, is what determines wrongdoing.

Note that I'm not suggesting that the actual law is being misinterpreted. I'm merely stating my personal views about the existence of such a law.

tjgq··on Google+ invite lands man in jail
Perhaps I wasn't too clear in my original post. I was making a normative statement, not a positive one. In other words, I accept that the actual law may consider this a violation; I'm questioning whether the law itself is acceptable in those terms.

Then again, I don't live in the USA, and the concept of a restraining order is a bit alien to me since it's not something heard of as much over here. There surely is some cultural bias at play.

I don't think it's too much to ask for courts to decide on a case-by-case basis. Establishment of intent is one of the main things courts exist for.

tjgq··on Google+ invite lands man in jail
The article focuses mainly on whether the man did indeed send the Google+ invitation to his former girlfriend. It seems to me that the actual troubling question is whether sending a Google+ invitation can be considered a violation of a restraining order. The bar is far too low when receiving a single inconsequential message that you have full ability to ignore can be considered a form of harassment.
tjgq··on Show HN: Use any text as a domain name
They ought, but aren't. Unfortunately, .com and most (all?) of the other non-national TLDs are under US jurisdiction.
tjgq··on Show HN: Use any text as a domain name
Is it, though? I get the impression that people at large don't even care about domain names anymore, let alone whether they end in .com or something else.

In fact, most non-technical users I know go to the sites they visit daily by clicking the first result of the corresponding Google search.

tjgq··on The Lost Art of C Structure Packing
In this particular case, it's not that big of a deal. As I understand it, this is an in-memory format that does not outlive program execution. One can safely assume that, even if CVS still exists in 40 years, no one will be using a 40-year-old version of this program by then.
tjgq··on The Lost Art of C Structure Packing
I strongly suspect this depends on how one comes across C. In my experience, people who learn C as a first language seem to develop a much deeper intuition for these subtleties than, say, someone who has cut their chops in higher-level languages and only then progresses (regresses? :)) to C.
tjgq··on Google Made My Daughter Cry Today
It's not really a second platform, is it? It's more like adding a single configuration bit to an account that determines whether it is eligible for marketing campaigns (or whatever else it is they can't do with children).

It's even likely that they already have such a thing in place for debugging purposes.

tjgq··on BASH as a Modern Programming Language [ppt]
I know you jest, but the reason why shell programming uses 0 for success is understandable: that way you can have distinct non-zero returns for different kinds of errors (and several Unix utilities do have them). Arguably, testing for non-zero is a more satisfying idiom than testing for "non-one".
tjgq··on What is the enlightenment I'm supposed to attain after studying finite automata?
Can you please elaborate?
tjgq··on Coin
I've always thought that the real solution for the "too many cards" problem is to get all credit card companies to agree on a card-less payment protocol that anyone could implement on any device. (And in the process, make all the transactions a lot more secure by using modern cryptography.)

Alas, I'm afraid that kind of disruption cannot be brought forth in a market context...

tjgq··on Android for all and the new Nexus 5
It really bothers me that they disallow people altogether from seeing the page just because they live in the wrong country (or happen to be passing by). The web is not supposed to be like this.
tjgq··on Gzip + poetry = awesome
Not to spoil your weekend project, but someone's done it already :)

https://github.com/philipl/pifs

tjgq··on Don’t Slurp: How to Read Files in Python
With at least one small (and usually irrelevant) difference: "for line in file" has its own internal buffering which cannot be turned off with python -u.

I learned this the hard way when debugging a Python script that read from tail -f output...

tjgq··on Don’t Slurp: How to Read Files in Python
Without the context manager (with statement), the underlying file is closed when the file object is garbage-collected.

In CPython, since reference counting is used for GC, this occurs when the loop exits. However, other implementations (e.g. PyPy) may use different schemes that do not guarantee collection as soon as objects go out of scope. As an extreme, a valid and occasionally useful GC strategy is to never collect anything at all [0]!

Hence, if you want to portably ensure the file is closed, you should either use the context manager or call close() explicitly.

[0] http://blogs.msdn.com/b/oldnewthing/archive/2010/08/09/10047...

tjgq··on English has been my pain for 15 years
An even better one (linked because it's too long to paste here):

http://www.i18nguy.com/chaos.html

tjgq··on We're about to hit phase 3 of ARIN IPV4 rationing
Crazy. Has that been observed in carrier-grade NAT boxes, though? Or only in el-cheapo residential devices? It seems an incredible risk to the carriers to do things that way.
tjgq··on We're about to hit phase 3 of ARIN IPV4 rationing
> once in a while, you'll get data that happens to look like your IP address, and you'll find that you can't send that precise sequence of bits in a packet ever because it'll get mangled by the NAT

How so? Those bits should only matter to the NAT logic if they are found in their expected position in the IP header, not in the payload portion of the datagram.

tjgq··on Each socket should have two file descriptors
Look into Plan 9's take on the file metaphor. I'm not suggesting they got everything right, but the concept really can be made more general than plain old Unix makes it seem.
tjgq··on A Brief History of the Internet (1999)
If you are interested in the early history of the Internet, and would like a lot more detail than provided by this paper, I cannot recommend the following book enough: "Where Wizards Stay Up Late - The Origins Of The Internet": http://www.amazon.com/Where-Wizards-Stay-Up-Late/dp/06848326...
tjgq··on Why are underground parking garages hot?
Unless you finish your trip at a greater altitude than where you started. ;)
tjgq··on Statement from Edward Snowden in Moscow
I think courts should be legally obliged to make jurors aware of that fact. Overall, I'm not a huge fan of trial by jury, but the idea that an unjust law (as felt by the general public) can be defeated like that certainly appeals to me.

(I'm not trying to make a point about Snowden's particular case, just speaking in general.)

tjgq··on TCP simultaneous open and peer to peer networking
I do believe you know the difference; your wording was clear enough. I just took the opportunity to dispel what seems to be a common misconception (not as common on HN, I hope!)
tjgq··on TCP simultaneous open and peer to peer networking
At least with a decent, non-greedy ISP you have the option of turning off said connection tracking and enjoy your fully routable /48. But I do understand how it remains a problem when most people don't know or want to do that.

Ideally, there could be some kind of uPnP-like protocol to open ports on an IPv6 middlebox, so that you can have a firewall on by default but still be able to punch a hole through it, without user intervention, when an application needs so.

Maybe there is; I haven't checked.

tjgq··on TCP simultaneous open and peer to peer networking
I'm not sure I follow your analogy. With a NAT configured to only forward certain ports to certain machines, the "bouncer" exists as much as in the firewall case. The question is not whether a NAT can be an effective firewall; it's that it brings some other, rather unsavory features along with it.
tjgq··on Statement from Edward Snowden in Moscow
If he was tried, couldn't he (at least theoretically) be acquitted by the jury? Honest question; I don't know that much about the U.S. judicial system, but I'm aware of the concept of jury nullification.

(Not that I'm too keen on the possibility that the U.S. government would grant him the chance of a fair trial...)

tjgq··on TCP simultaneous open and peer to peer networking
Please allow me to be pedantic here. What actually separates your network from the rest of the Internet is called a firewall. It is unfortunate that common usage has conflated the two terms to the point that many people believe they must be inside a NAT to be firewalled from the outside. It's actually one of many misunderstandings related to the IPv6 transition.
tjgq··on Why do Americans not drive diesels?
Or he could be referring to planned obsolescence.
tjgq··on Jordanian citizen was denied re-entry to the US on eve of his PhD defense at JHU
I think you misunderstand what a PhD student is. A PhD candidate is supposed to generate real science, not just train to become someone who does. By that same logic, a senior researcher (American citizen or not) should not be paid by taxpayer money unless she were to promise not to leave the US in the future.
← PreviousPage 3 of 4Next →