HNHacker News
TopNewBestAskShowJobs

parenthephobia

618 karma · joined April 6, 2012

submissionscomments
parenthephobia··on I tried emailing like a CEO and it made my life better
> I wanted to know, did you always email this way, or did you only start once you became the boss? His answer (over email): “Yes.” I’m going to assume the yes was to the first part of the question and he skimmed over part two.

This isn't something to emulate. People who only read the first few words of an email before replying make communication harder for everyone else. Sometimes things can't be accurately summed up in half a sentence.

parenthephobia··on A Secretly Detained American Has Asked for a Lawyer – But Gov Won’t Give Him One
> The Geneva Conventions are treaties between states that define how they will treat each other's soldiers if captured in war.

They also cover treatment of civilians, medical units, and infrastructure. Amongst other things.

> The Geneva Conventions do not apply to wars with non-state actors or states who are not participants to the treaty

Yes, they do.

The protections are not as extensive, but the conventions also cover any armed conflict within the territory of a contracting party, such as the Syrian Arab Republic. They also cover occupation of a contracting party's territory, whether armed or not.

> The Geneva Conventions would never apply to traitors on your own side, which is the case here.

The conventions don't make any exception for traitors. They certainly don't allow Syria to take an ISIS fighter prisoner and avoid their convention responsibilities by handing him over to the US.

parenthephobia··on A Secretly Detained American Has Asked for a Lawyer – But Gov Won’t Give Him One
The normal rules of war always apply. Famously, that's the point of them. A state isn't allowed to ignore the rules of war if it finds them inconvenient.

The Geneva Conventions are quite clear that PoWs are allowed to communicate with the outside world, subject to militarily necessary censorship. If charged with a crime, they have the right to choose their legal representative.

parenthephobia··on A Secretly Detained American Has Asked for a Lawyer – But Gov Won’t Give Him One
Apparently there's no magical Geneva Convention fairy, either.

Just because you were honorably discharged doesn't mean you're right. If you'd summarily executed prisoners, you'd have committed a war crime.

parenthephobia··on Qubes OS: A reasonably secure operating system
If you mean air-gapped literally, that seems unuseful.

Wouldn't you want the keys on the computer that's going to use them? And then, wouldn't you want to make it hard to copy the unencrypted private keys?

(I'm assuming we're talking about SSH keys.)

OTOH, it could be neat to run an ssh agent in a key-holding qube and forward that to whatever qubes need to use your SSH keys, using `ssh-add -c` so that key use must be confirmed in the key-holding qube.

parenthephobia··on Southwest Airlines is intimidating our startup
This is mis-reported. This isn't a general ruling on whether scraping sites in violation of the explicit instructions of the site owners is allowed.

The judge granted an injunction prior to the trial proper, permitting HiQ to continue scraping LinkedIn in the lead up to the trial. He did this because HiQ credibly argued that if it couldn't scrape LinkedIn it would go out of business before the court had even determined whether what it was doing was legal. These sorts of injunctions are a procedural matter and quite normal.

https://en.wikipedia.org/wiki/Preliminary_injunction has more.

parenthephobia··on The U.S. Flooded One of Houston’s Richest Neighborhoods to Save Everyone Else
People are harder to replace than houses.
parenthephobia··on Hotbed of Misinformation
Humpty Dumpty was half right[1]. Words mean what the speaker thinks they mean, but they also mean what the listener thinks they mean, which might not be the same thing. The essence of clear communication is to align these two viewpoints.

Guys is gendered if you think it is. I've lightly offended groups of women in the past - well after Friends started! - by referring to them as "guys".

Once is a miscommunication. To continue to call them guys even after they've said they don't like being called guys would be indistinguishable from intentionally causing offence, especially considering the ready availability of other words that serve the same linguistic purpose.

[1] http://www.bartleby.com/73/2019.html

parenthephobia··on Target="_blank" – An underestimated vulnerability (2016)
In the example, a nefarious page opens a new window and then uses its connection to that opened window - the window object is returned from "window.open()" - to manipulate it. No window.opener required, and the two windows don't even need to be in the same website for this to work.

Google's page isn't just about abusing "window.opener", it's generally about abusing JavaScript-accessible connections between windows/tabs. Additionally, the site it's in isn't about browser bugs, but bugs in Google's websites. Google knows these issues are fixable, but they consider them to be flaws in browsers rather than in their websites.

That's why Google says it's still easy to exploit the other vectors for the attack. A website can protect itself by clearing "window.opener", but similar attacks are possible that a website can't prevent. e.g. A window can't prevent the window that opened it from later forcing it to navigate to a different URL.

parenthephobia··on Target="_blank" – An underestimated vulnerability (2016)
JavaScript is subject to CORS, but "opener" isn't generally, except in Edge.

Even then, there is a risk of being surprised. If you open a page on the same site, you may expect that scripts on the opened page can't access the opening page: but because of CORS they can.

Here's a fiddle with a link to another fiddle that copies the contents of a password field from the first fiddle: https://jsfiddle.net/u6rmc49c/3/

parenthephobia··on Target="_blank" – An underestimated vulnerability (2016)
One is that if you open a window, you can change the URL that's loaded later.

In the example that Google's page links to they change it to a data: URI - which no longer works in Chrome - but they could just as easily change it from http://good.com/ to http://evil.com/ - which would still work in Chrome - and hope you don't notice.

parenthephobia··on Target="_blank" – An underestimated vulnerability (2016)
Whilst they might not consider it fixable, that doesn't mean they're not going to do the best they can!

Chrome does support rel=noopener, _and_ the "fairly good demonstration" that page links to doesn't work in Chrome any more.

https://caniuse.com/#search=noopener

parenthephobia··on Godot Editor ported to WebAssembly
I wonder if this is actually the engine's namesake.

According to Wikipedia:

> Linietsky stated in a presentation that the name Godot was chosen due to its relation to Samuel Beckett's play Waiting for Godot, as it represents the never-ending wish of adding new features in the engine, which would get it closer to an exhaustive product, but never will.

parenthephobia··on 8th – A secure, cross-platform, concatenative programming language
> strong philosophical objections to being forced to give away my intellectual property

Non-sequitar. If you used the GPL, you'd be doing so voluntarily, so you wouldn't be being "forced" to do anything.

> a great many of those projects are maintained only to the extent the author decides to do so

An issue that is even more pronounced with closed source software, where _all_ such projects are maintained only to the extent the author decides to do so.

parenthephobia··on UI backwards compatibility
A colleague mentioned that ever since Windows 3.0 (maybe before) you've (usually) been able to close a window by double-clicking in the top-left corner, where the window menu button used to be. Later that button was replaced with the window icon, but the menu and the double-click still worked. Now, even though that button isn't visually there in many programs - such as Explorer - clicking where it would have been (usually) still works, and double-clicking there still closes it.

Sadly, there are some programs which haven't preserved this interaction, such as Firefox.

parenthephobia··on Las Vegas' self-driving bus crashes in first hour of service
> The tractor trailer kept backing up

What would a human bus driver have done in that situation?

It isn't enough to make an automated vehicle that meets the minimal legal requirements for interacting with other road users. Real drivers have to deal with the fact that other drivers often don't drive lawfully, or rationally: automated drivers have to do the same.

parenthephobia··on Some problems of URLs
They shouldn't exactly be optimized for friendliness. In a sense, that's the problem we have now. They should be optimized for security, but right now they're optimized for developers and network administrators.

It'd be interesting to see research on how many laypersons understand which way around the "chain of authority" goes for domain names. I can easily imagine somebody not Internet savvy thinking that "facebook.hackable.org" was a legitimate Facebook domain. (And it doesn't help that some organizations spread their site over many domains that - even to a skilled user - are indistinguishable from phishing domains.)

It is unclear how a domain like that could be optimized to ensure a novice user understands that what they're looking at isn't Facebook, even though the domain starts with "facebook" and the page they're looking at looks exactly like Facebook's login page.

One general, slightly off-topic, notion: there should be a protocol whereby a password manager can ask facebook.com what sites are legitimately going to ask for your Facebook credentials - not entirely unlike SPF for passwords. Then even if you search for Facebook in your password manager, it should refuse to automatically provide the credentials to the site.

(More off-topic aside: Password managers should be properly integrated into all browsers. Knowing your passwords should be considered unusual, and actually choosing them yourself downright stupid.).

parenthephobia··on Some problems of URLs
> Hiding information from users is never a good thing!

Counterpoint: hiding information from users is often a good thing. Especially when that means reducing the amount of information a user has to process to determine if a URL is legit.

The URL path, query and fragment are the private business of whatever authority controls the URL. If an end user has to consult the path, query or fragment to make a decision about whether the URL is okay, the website has got it wrong.

> imagine many tabs all with the same only-hostname in the address bar --- the constant feeling of "where am I, really?" made it very unpleasant and disorienting

If I tried to navigate tabs by full URL I'd already have that feeling. I can tell from the current URL that I'm replying to a post - but I can tell that from looking at the page itself, and the page title - but 15659459 doesn't tell me very much about what post I'm replying to. Certainly, if I have multiple comments open I don't remember which is why by their id. The same applies on a great many websites.

As far as I remember, the only websites where I do navigate by "hacking" the URL are ones I've made, or it's done for the purpose of deceiving people about what the URL leads to: e.g. changing the product name in an Amazon URL.

For keeping track of where you are, rather than displaying the full URL, I think it'd be better to move breadcrumbs into the browser chrome - https://i.imgur.com/d821tXu.png instead of https://i.imgur.com/UufKDoS.png

(Relatedly, I've no idea which parts of an Amazon URL are "safe" to share. A UI fix to the URL problem should also include the ability for Amazon to tell the browser how to make a safely shareable link.)

parenthephobia··on Entrepreneurs Aren’t a Special Breed – They’re Mostly Rich Kids
> they're just regular people who are in a privileged position

Literally the argument the article is making!

parenthephobia··on Unicode is over and it dies over Emoji
> Maybe the Unicode consortium made a mistake by specifying them as bright yellow

They didn't. It's recommended, but not required, to use a "non-realistic" colour, examples being yellow, blue, or gray.

http://unicode.org/reports/tr51/index.html#Diversity

parenthephobia··on Implementing Go's defer keyword in C++
The syntax of defer is a function call, but it isn't called like a normal function: the arguments are evaluated at the time the defer is encountered, and then the function is called later. That's one reason why defer is very often called with an anonymous function, so that variables can be captured.

So, the version that prints 1 is

    func a() {
        i := 0
        defer func(){
          fmt.Println(i)
        }()
        i++
        return
    }
parenthephobia··on How JavaScript works: Event loop and the rise of Async programming
But I think I do care.

When I see

    var x = await bar();
I know that other code, outside bar(), may have run during the execution of that statement.

Also, the JS approach makes composing asynchronous operations simple:

   var x = bar();
   var y = bar();
   return await x, await y;
Both bar invocations can run in parallel. If, say, each invocation of bar fires off an Ajax request that takes a few seconds to come back, that can be a significant saving.

It's unclear (to me) how that would be done in Lua without complicating the API.

parenthephobia··on How JavaScript works: Event loop and the rise of Async programming
That doesn't look simple!

timer.setTimeout doesn't "simulate" a delayed callback - that's what it actually is.

An example that actually uses coroutines directly rather than wrapping them up might be more convincing.

parenthephobia··on Some Insights from a Julia Developer
Perhaps it's a borderline case, but I've used Julia to make a "big data" database server, backed by a mmap'ed column store.

Because the compiler's available at run-time, queries can be compiled into efficient kernels that can run in parallel over multi-gigabyte arrays orders of magnitude faster than MySQL or Postgres on the same hardware.

Without Julia, I would have had to find some other way to compile queries into machine code at run-time, which for me would have ruled out all the languages you listed. In practical terms I would have abandoned the project.

parenthephobia··on Things You Cannot Say on China’s Internet
> Why is Nytimes so concerned about China

It isn't. It's an article called "68 Things You Cannot Say on China’s Internet", out of many thousands of articles on the site. Naturally, that article will be about China: it is typical for an article to cover a specific topic.

One should not expect all articles a newspaper publishes to cover all criticisms of the government of the country in which that newspaper is incorporated. That's unreasonable.

> Who is going to talk about draconian surveillance, secret courts, secret orders, gag orders and government officials empowered to violate your dignity and privacy by searching your phone and personal effects.

A great many people. The New York Times, for example.

https://www.nytimes.com/topic/subject/surveillance-of-citize...

https://www.nytimes.com/topic/subject/foreign-intelligence-s...

https://www.nytimes.com/2017/09/13/technology/aclu-border-pa...

https://www.nytimes.com/2017/02/14/business/border-enforceme...

parenthephobia··on Xanadu
Citizen Kane practically invented modern dramatic film.

The techniques Welles developed for Kane were innovative at the time, but are now mundane or clichéd. In terms of writing, framing, lighting, directing, editing, scoring, it was unparalleled.

It's not the best movie in the conventional sense, and maybe not even a particularly good one - I found that the story itself failed to grip me - but it is technically brilliant, and one of the most significant movies in terms of its influence on the art of film-making.

I don't remember the source, but there's a quote to the effect of "I don't think much of Shakespeare's plays, they're just one cliché after another".

parenthephobia··on Rob Pike's Rules of Programming (1989)
Is this really an explanation of why manually iterating over a list is simpler than just calling a method?

Get is simpler precisely because it hides the complexity.

> Or maybe "Why aren't you using your language's library methods to loop over that list?"

What makes those methods not subject to the "hiding complexity" objection?

parenthephobia··on Man jailed until he unlocks encrypted hard drives in child abuse images case
> In ruling against Rawls, the court of appeals has decided that his constitutional rights against being forced to self-incriminate are not being breached. This is because of an exception to the fifth amendment known as a “foregone conclusion”, which is when authorities already know something exists – in this case, police say they know there are child abuse images on the hard drives because they have a witness who saw the files (Rawls’ sister).

> Why don’t they go to trial without the files allegedly stored on the encrypted devices? It comes down to reasonable doubt.

If there is genuinely reasonable doubt that the disk contains CP, then it cannot be a foregone conclusion that the disk contains CP.

If it is a foregone conclusion that the disk contains CP, then the judge should simply instruct the jury to that effect. The jury might disagree, but that's why we have juries: so that the justice system doesn't imprison people for years without independent oversight.

parenthephobia··on How Taser inserts itself into investigations involving its own weapons
> If you have power and money, and your livelihood is on the line, its ethical to use whatever means are available to defend yourself.

Not under any system of ethics I'm familiar with. Indeed, I would imagine that a big part of most ethical systems is about _not_ abusing your power.

For example, most people would consider it unethical for a company to manipulate, bribe, intimidate, and discredit people in order to suppress evidence of the harmful nature of that company's products.

> Is it wrong to hire the best attorney for your defense just because they may be friends with the judge

Are we talking about the godfather to the judge's child, or somebody who has coffee with him a few times a month?

If it's the former, any decent judge would recuse himself - and the other attorney would rightly kick up a fuss if he didn't.

> Also, how can you expect police and others to be unbiased when this device has probably helped them or saved their own life at some point. Are they supposed to ignore the fact that this is a critical tool in their belt?

No. But, an ethical person would weigh the benefits Tazers offer against the risks they introduce: and it's hard to do that when Tazer systematically suppress evidence of those risks.

parenthephobia··on Man charged after media storage site Dropbox finds child porn in his account
How unlikely is that, though?

The question is whether there could be reasonable doubt that, given there is CP on an account, it was put there by the account owner.

What we don't know is what proportion of Dropbox accounts that contain CP had that CP planted by a hacker. If a significant enough proportion of CP on Dropbox was not put there by the account owner, it's reasonable to at least consider the possibility.

It doesn't have to be an attempt to frame the account owner: somebody who wants to exchange CP with other people might well use a hacked Dropbox account to do that, in an attempt to cloak their identities.

← PreviousPage 2 of 13Next →