Better HN
topnewbestaskshowjobs
Log inSign up

Hello71

1,909 karma · joined Sep 24, 2012 (14y ago) · 1,011 submissions

Submissions

comment 8y ago · link · parent

I believe this makes Google Maps the only mainstream SaaS map providing orthographic projection, and I wonder if that (partially) explains the recent increase in Google Maps pricing (previously: https://news.ycombinator.com/item?id=17570029).

comment 8y ago · link · parent

OpenVPN is quite configurable, not as much as IPsec, but still a lot, and (from what I hear) has quite a bit of code bloat. I believe that userspace WireGuard has better performance than OpenVPN.

comment 8y ago · link · parent

> The only downside I've notice is slightly increased battery consumption on my phone, but that's to be expected (it uses approximately 5% of the battery per day).

I believe that Android does not accurately represent the battery usage of VPN apps. It seems to count all the radio (i.e. mobile and Wi-Fi) usage against the VPN app, but actually the traffic was sent only because some other app requested its transmission. WireGuard itself uses zero battery if no network traffic is being passed and the NAT keepalive mode is off. (at least this is true in the abstract, it might run occasional timers to update system information as Android requires)

comment 8y ago · link · parent

Only if you're using the ridiculous IPsec protocol and its ridiculous modes. Nobody actually needs a mode that authenticates the header but doesn't encrypt it, and nobody can understand this mode anyways. Nobody needs ECB or 3DES or any of the other zillions of IPsec methods. The great thing about WireGuard is that it removes all the crap and has one mode: Fast and Secure.

comment 8y ago · link · parent

> I would also like to see an easier way to configure authentications, having them in the same file as the config means I can't version control it, share it easily, etc.

The config file is designed to be very straightforward and contain only the bare minimum required configuration stanzas. If you want to separate the keys, or use a higher level key negotiation protocol (e.g. TLS), you can write your own script that calls the lower level "wg" command instead of "wg-quick". Alternatively, you can write a script that generates a wg-quick configuration file.

comment 8y ago · link · parent

> I also saw nothing anywhere about how if you modify your config file and down/up with wg-quick it'll delete anything you entered in your config as the 'down' will write back the current state of the interface. It's not a big deal, but it messes with the usual workflow of editing the config file of a service (you don't want to down it while updating your config, which could take time).

`down` only writes the state of the interface if you put SaveConfig = true in your configuration file. If so... you asked for it.

> I'd like to see an easier way of doing the exclusions, inverse CIDRs are not my forte

WireGuard uses the standard Linux routing infrastructure. wg-quick uses the powerful Linux policy routing functions along with the suppress_prefixlength policy routing rule in order to use your main routing table for exclusions. Therefore, the command to exclude an IP is simply "ip route add 10.0.1.0/24 via 10.0.0.1 dev eth0". Obviously you should replace the example subnets and interface, and this is not permanent. The beauty of wg-quick is that you don't need to add this rule every time you bring up your VPN, but can instead add it as a temporarily redundant static route.

comment 8y ago · link · parent

at least on Linux, it's much less a factor of the program used, as long as it uses freetype (i.e. all programs since 2000 except for crappy Java programs), and much more a factor of simply what fonts are installed by default on the particular distribution. on Arch for example, no emoji fonts are installed by default. in fact, no graphical fonts at all are installed by default, but installing a browser will pull in a ttf-font, by default ttf-dejavu (which also does not contain emoji characters).

comment 8y ago · link · parent

Yes, it in fact does put you at a hiring advantage because it will select for employees actually selling products instead of claiming to sell them.

comment 8y ago · link · parent

That is, broadly speaking, not correct. The reflog makes it very difficult to permanently lose committed changes, and for the most part, commands that change the working directory are generally self-evident. git checkout is really the only common command that has this non-obvious behavior, and even then, only when checking out a path; checking out a commit will warn before overwriting working directory changes. In fact, from what I read, git is far better than mercurial in this respect, as reflog is always on, whereas the journal extension must be manually enabled.

comment 8y ago · link · parent

In addition to what nerdponx said about recipe style articles being poor, there are some moderate issues with this article:

1. it doesn't clearly say that git checkout with a path is irreversible.

2. it says that git reset --hard is irreversible, which is not correct. (see 3.)

3. it doesn't mention one of the most powerful git features for fixing mistakes, the reflog.

4. git remove is not a git command.

5. gitingore is not a git file.

6. git-amend is not a git command.

7. It doesn't adequately explain why force-pushing causes problems.

It looks like clicking through to the gists was such a pain that even the author didn't proofread them.

comment 8y ago · link · parent

It's too bad that being 16 years old, lots of the suggestions are now outdated, like the complete absence of bufferbloat.

comment 8y ago · link · parent

> Brave definitely does not sell your browsing history

This might be true.

> In fact, they don't even have the ability to access it...

This is clearly false on the face of it. Obviously the browser has access to the browsing history.

Brave claims on https://brave.com/hc-privacy/ that "When Brave Ads launches later this year, all personal data and browsing history will remain on-device and will not be transmitted to Brave or anyone else.". This implies that they will use personal data and browsing history, but attempt to anonymize it in some unspecified manner before selling it. Of course, as Netflix can attest, this is much harder than it sounds, and I highly doubt that Brave is up to the task.

comment 8y ago · link · parent

> a bunch of other stuff which I don’t understand that well (metric 600, scope link, proto kernel, etc). Not understanding what those things mean hasn’t hurt me yet.

These are pretty straightforward. metric 600 means that out of all the otherwise-identical routes, the kernel will prefer this one to one with a metric of 601 or greater. scope link means that this address is only valid on the local link (network interface). scope global means that (the kernel assumes) this address is valid on the wider Internet. proto kernel means that the kernel automatically installed this route for you because you used "ip address add x/y". Now, the "table x" part is actually really interesting, because Linux doesn't just support "a route table", it supports 256 routing tables. These are used in conjunction with policy routing in order to support source address routing, firewall mark based routing, and others. Firewall mark based routing is extremely powerful: for example: MARK all packets on port 53 whose (using BPF) first DNS query question is jvns.ca, and send those using eth1 instead of eth0. More mundanely, wg-quick from WireGuard uses this feature to bypass the VPN for the VPN packets, which allows the VPN to be used for the VPN gateway.

554.

SedChess (2013)(github.com ↗)

2 points · by Hello71 · 8y ago · discuss

comment 8y ago · link · parent

I don't think that's correct. According to Wikipedia, SMP dates to approximately the early 1960s, whereas according to the FreeBSD man pages, flock and fcntl were both introduced in 4.2BSD, released in 1983, two decades later. It's at most fair to say that Unix file locking came around the same time as Unix SMP.

comment 8y ago · link · parent

This is different though, because the user themselves does not get a portion of the income. In fact, click fraud is much less likely with this idea than with current web advertising, because with current web advertising, site owners are incentivized to click on their own ads to generate profit. Under this model, EFF would have to go pretend to be other people and click on everybody else's ads, a pretty long con.

comment 8y ago · link · parent

This is pretty similar to the Brave browser model, except that Brave sells your browser history instead of asking you about your information.

comment 8y ago · link · parent

how would that work

edit: you seem to be implying that FB is stupid and likes writing kernel code for no good reason.

comment 8y ago · link · parent

actually, from what I hear, this was the standard for Unix enterprise software distribution between 20 and 40 years ago. this was in large part due to the wide variation between Unixes meaning that one would otherwise have to ship several dozen or even more separate binary packages. today, proprietary software largely targets Windows only, which strongly favors binary-only distribution even for open-source software.

comment 8y ago · link · parent

poor, because 1. fork exists, and 2. the application incurring OOM is statistically unlikely to be the one that should be killed on multi-application servers, and 3. 99.9% of applications do not correctly handle malloc returning NULL in 100% of cases. some make an effort, but except for stuff like SQLite, almost nobody tests it, so it's usually broken at least 1% of the time.

comment 8y ago · link · parent

That's called All Random.

comment 8y ago · link · parent

hell, I can probably do a solid 9% just visiting the local coffee shop twice a week.

comment 8y ago · link · parent

> The real world is always grey.

hm...

comment 8y ago · link · parent

wouldn't it have been easier to just install dhcpcd?

comment 8y ago · link · parent

conveniently, almost nobody uses NaCl as-is due to its more or less never having been patched, and nobody uses TweetNaCl, so there is de facto one implementation.

comment 8y ago · link · parent

Either ignore them (Ubuntu) or they just don't. For many years Debian and Fedora didn't have MP3 decoder installed by default.

comment 8y ago · link · parent

actually it would be much less bad if it was. Gentoo GPG verification still doesn't work quite right, but most users of the kernel for critical purposes do GPG verification.

comment 8y ago · link · parent

LineageOS has had this function since CyanogenMod.

comment 8y ago · link · parent

even compared to MuPDF? PDF.js is well known to be very slow, and even poppler is pretty slow compared to MuPDF.
1
181920
34