HNHacker News
TopNewBestAskShowJobs

cthor

691 karma · joined May 26, 2013

https://cthor.me
submissionscomments
cthor··on Non-obvious indicators that a transaction might be fraudulent
If that is wrong, what is right?

Should the police instead do less efficient completely random searches? Should the taxpayers hire more police officers to make up for this loss in efficiency?

Should businesses accept losses from fraud to placate your feelings?

While it may not feel very good to be sending signals that associate you with crime, that is a cost you have to accept of sending those signals.

In the case of police searches, I think attention would be better spent on making them more humane, rather than less racist.

cthor··on Reddit removed NSL canary from 2015 Transparency Report
The government would very much want to make an example of anyone who did that. The punishment would be as severe as they could get away with.
cthor··on AlphaGo beats the world champion Lee Sedol in first of five matches
The tenchess counterargument doesn't work in the context of Elo (from which chain lengths are derived).

A has 150 more Elo rating than B in chess. Elo says A has a 2/3 EV on the game result, and B has 1/3.

In tenchess, A will get 20/3 points on average and B will get 10/3 points. A will have more points than B in 79% of tenchess games, but the Elo ratings will not change. Elo doesn't consider winning and losing as binary. (This is why draws behave sensibly.) Just as a tie between these players cause A to lose rating, so too would a marginal win from A.

cthor··on Docker: Not Even a Linker
It looking "prettier" is pretty arguable.

The body text is as close to black as it is white. #444 is borderline acceptable. #888 is absurd.

cthor··on Twitch implements YouTube-like system for blocking copyrighted audio
The majority of Twitch users follow only a few streamers. If the streamers migrate, a substantial portion of their viewers will follow.

Contrast with YouTube: most people view videos from a wide variety of uploaders. If one or two uploaders leave, the viewers will stay where they are.

cthor··on [dead]
A lot of merchants (e.g. Amazon) don't use PayPal because is isn't a real bank, and so isn't beholden by laws associated with banks. The terms of service state that you cannot seek any legal recourse from them should your account be shut down.

How could this affect a VPS provider? Say a customer hosts a porn site, or a gun-selling site, or something else PayPal disagrees with. PayPal shuts the merchant's account down for it. Now the merchant's funds are frozen for an indeterminate amount of time till the issue can be resolved, if at all, and there's nothing they can do about it short of appealing to PayPal.

cthor··on A human way to define regular expressions in Ruby
I really don't understand why some people are so afraid of regex. Sure, it's not perfect, but these symbol-less solutions feel to me like one step forward and two steps back. A more interesting development would be something along the lines of what Perl 6 is trying to do (if only someone could implement it).[1]

We should start treating regex like a computer language in its own right, rather than some second-hand citizen that we stuff into a single line without any delimiting whitespace. Use the /x switch and comment your code as you would with any other programming language, and you'll find that regex really isn't that scary.

Take the example pattern. The regex written by a human might look something like so:

    m{^
        https? ://        # Protocol
        (?: \w+ \. )?     # Subdomain
        ([\w\-]+) \.      # Domain
        (?: com | org )   # TLD
        /?
    $}x
It's certainly easier to parse. Debugging it is also a lot easier. We can see that this won't match anything with more than one subdomain. We can also see that it won't match subdomains that have hyphens in them. It also looks at a glance much more like a URL and less like some arbitrary Ruby code.

[1]: http://www.perl6.org/archive/doc/design/apo/A05.html

cthor··on Welcome to the ‘Sharing Economy’
Is this true for most jurisdictions? That doesn't seem like the kind of law that lends itself to being universal.
cthor··on Show HN: Distraction Free Reader/Writer
FocusWriter, listed in the parent as a native Mac application, is open source and works on and has compiled binaries for Windows, Mac, and most Linux distros.
cthor··on Pure: a set of small, responsive CSS modules
Looks really nice, and the HTML appears well formed at a glance. I might consider using it in an upcoming project. A few reservations, though:

- JavaScript dropdown menus. Is it not possible to get a pure CSS (get it?) solution? Without JavaScript the menu collapses into a bullet list. I understand that CSS dropdowns are slightly less responsive, but a graceful fallback would be nice.

- Buttons have no :active styling (really minor, I know). This sort of stood out to me as odd, since most default button styles have one.

← PreviousPage 5 of 5