Better HN
topnewbestaskshowjobs
Log inSign up

salted-fry

119 karma · joined Oct 7, 2016 (10y ago) · 20 submissions

Submissions

comment 1y ago · link · parent

I just tested changing user agents in Chrome - setting UA to a random string like "fff" gets a search page, but setting it to "Links" or "Lynx" gets "Your browser isn't supported anymore" - which is to say, this doesn't look accidental, but more like these UAs are specifically being blocked.

EDIT: Forging user agent in Links (with links -http.fake-user-agent) gets a usable homepage, but the results page just sends you to a turn-on-your-javascript page.

comment 1y ago · link · parent

See also: https://blog.ploopy.co/tariffs-and-us-shipping-suspension-32...

I got bit by this one - ordered a few days ago, thinking there might not be much time left - guess I was more right than I realized. (they're offering refunds but I'll probably let them keep the money - not like it's their fault)

comment 3y ago · link · parent

I remembered where some of my old files are and re-tested; forward-gron was "only" about 7GB for the 15MB file. gron -u was the real killer, clocking in around 53GB.

comment 3y ago · link · parent

I use gron a lot, because I can never remember how to use jq to do anything fancy but can usually make awk work. (I may be unusual in that department, in that I actually like awk)

One warning to note is that gron burns RAM. I've killed 32GB servers working with 15MB JSON files. (I think gron -u is even worse, but my memory is a bit fuzzy here).

https://github.com/adamritter/fastgron as an alternative has been pretty good to me in terms of performance, I think both in speed and RAM usage.

comment 3y ago · link · parent

I've been using an incredibly stupid bash script to do this; you've finally given me the push to publish it here: https://github.com/krsiehl/hn2mdir

Run mkdir -p /path/to/some/directory/{cur,new,tmp}, then ./hn2mdir.bash /path/to/some/directory/, and it'll crawl Algolia's HN API to dump a bunch of emails, one for each post/comment. You can read it with mutt -f /path/to/some/directory. Syncing with IMAP left as an exercise to the reader (I'm using mbsync).

Note that it gets large, fast, and may break your IMAP server; I periodically run find ~/Mail/HN -type f -mtime +30 -delete to clear it out.

Edit: should clarify, this is read-only, I've never bothered to set up any kind of response functionality

comment 3y ago · link · parent

Perhaps you were using a different version, but I just tried and ChatGPT didn't seem to have any ethical issues with the question (although it was cagey about giving any definite answer):

https://i.imgur.com/5aIjtMz.png

comment 4y ago · link · parent

On Linux/macos, you can enable terminal output by setting PRINT_MODE:TEXT in init.txt

comment 4y ago · link · parent

Hey, I know this issue! I ran into it in CK3 when it launched. You can also work around it by running chmod go-rx /dev/input/ while playing your game. Whether this is more or less invasive than binary-patching the game is up for debate.

comment 5y ago · link · parent

In a similar vein, some time ago I tried to search for how many unicode code points there are with "How big is Unicode?" (https://www.google.com/search?q=how+big+is+unicode)

Google helpfully responds "16 bits", which is pulled from the History section of Wikipedia and hasn't been accurate in something like twenty-five years.

Edit: Should have listened to people saying to screenshot your queries. Google still quotes the paragraph in question, and bolds "16 bits", but no longer puts it in a big bold heading like it's the single answer to your question.

Double Edit: except in chrome, where I do still get the old page. Here's a screenshot for posterity, after Google somehow fixes this: https://i.imgur.com/7Ng6DyK.png

comment 5y ago · link · parent

I do use Lyft to get to work most days (or did, in the Before Times). I just checked a few hopefully-representative months (June/July/August 2019) and it looks like I was spending about $400/month. Google tells me that the average TCO of a car is about $700/month, so this would seem like a net win. That average might not be representative of my needs though - it's likely being dragged up by people driving around giant SUVs and such, so take this comparison with a grain of salt.

comment 5y ago · link · parent

The thought has occurred to me - and I wouldn't mind a thumb-trackball on the right hand, either. Design in the physical world is well outside my wheelhouse though - is a keyboard an approachable project for somebody who hasn't done woodworking/machining before, or would I be better served working on smaller projects first?

comment 5y ago · link · parent

I like the idea of a split keyboard, but I've never been able to go down that road because I sometimes hit keys with the "wrong" finger - most notably, I need to be able to hit B with my right hand because it's down-left in roguelikes (i.e. Nethack).

What I'd love to see is a "106% keyboard", where a couple columns are duplicated on both the left/right side. Does anybody make such a keyboard?

comment 6y ago · link · parent

You're right - the case I'm quoting is specifically about unauthorized derivative works, which is a pretty important distinction, especially in this context (as presumably the colorizations of Garfield were authorized)

comment 6y ago · link · parent

For precedent on this, see the case Anderson v. Stallone, in which Timothy Anderson sued Stallone/MGM for allegedly ripping off his fan script for Rocky 4. Courts ruled that his fan script, as a derivative work of Rocky, had no copyright protection, and so MGM was free to rip it off if they wanted to.

I happen to disagree, in that I think the law should say that derivative works are co-owned by the owners of the original work and the creator of the derivative; but that does not seem to be what the law currently says.

comment 6y ago · link · parent

Like a few others here, I use an RSS to email converter, although I'm using a custom-written one. The main difference from rss2email is that I'm not actually doing any SMTP - I'm just dumping files into a Maildir and letting isync do the uploading/downloading. The actual reading then happens mostly with Mutt (which also just interacts with Maildir).

Like some others have noted, using email as a storage mechanism reduces part of the problem (tracking which items are read/unread) to one that's already solved (by IMAP). Additionally, using isync lets me have local copies of everything; this used to be really important when I was a "poor" grad student, because I could do cool stuff like download a bunch of comics ahead of time on my laptop, then read webcomics/mailing-lists on the 2-hour bus ride. I still like having local copies of things on principle, although nowadays everybody is always-connected so it's not as useful.

comment 8y ago · link · parent

Interestingly:

  $ telnet localhost ssh
  Trying ::1...
  Connected to localhost.
  Escape character is '^]'.
  SSH-2.0-OpenSSH_7.7
Obviously, it's just getting translated from ssh to 22 under-the-hood. I'm not sure who's doing the translation, though.

comment 9y ago · link · parent

The full article is only 1 page long, and lists the following for references:

http://www.commonwealthfund.org/~/media/files/publications/f...

http://www.commonwealthfund.org/publications/fund-reports/20...

comment 9y ago · link · parent

My understanding is that, under the CFAA, any unauthorized access to commercial servers is a felony (more-or-less; there are some requirements here, but as I recall they're so broad that they basically always apply).

The theory here is that, after breaking the TOS, if you continue to use the service then that use is unauthorized and therefore felonious.

As the EFF notes, previous judges have refused to rule it this way, basically on the basis of "that's insane, even if it is what the law says".

Edit: for reference, the relevant legal bits are here, in section (a.2.C), with relevant definitions in (e.2.B): https://www.law.cornell.edu/uscode/text/18/1030

comment 10y ago · link · parent

Zooko's Triangle is conjecture, and Namecoin has shown it to be defeatable, no?

Edit: Ah, I see; "including the majority of the entities" would exclude Namecoin from being a proper solution to Zooko's Triangle.