522 karma · joined Jul 31, 2018 (8y ago) · 69 submissions
comment 4mo ago · link · parent
comment 7mo ago · link · parent
comment 10mo ago · link · parent
comment 11mo ago · link · parent
comment 11mo ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
CREATE INDEX subjectidx ON messages(json_extract(headers, '$.Subject'))
and it will use this index anywhere you reference that expression.I find it useful to create indexes like this, then create VIEWs using these expressions instead of ALTER'ing the main table with generated columns.
comment 1y ago · link · parent
You can do more underneath Anubis using the JWT as a sort of session token though, like rate limiting on a per proof-of-work basis, if a client using X token makes more than Y requests in a period of time, invalidate the token and force them to generate a new one. This would force them to either crawl slowly or use many times more resources to crawl your content.
comment 1y ago · link · parent
comment 1y ago · link · parent
It breaks down pretty quickly once you get outside the default bounds, as expected, though.
comment 2y ago · link · parent
[0] https://developers.google.com/youtube/v3/guides/push_notific...
comment 2y ago · link · parent
Things like this are why I worry a bit about the proliferation of things like WASM, while JavaScript isn't great, it actually gives a great amount of control to the end user, to both see, understand and the ability to actually modify what is running in their browser. With WASM, all of this becomes highly impractical. Instead of a (semi-)readable, modifiable block of interpreted code, with the ability to inspect and modify the state at almost arbitrary points, you just get opaque binary blobs that you basically can't do anything with. As more and more sites switch to using compiled WASM blobs for their logic, it will become increasingly difficult to observe or modify any behavior of these websites as an end user.
comment 2y ago · link · parent
[0]https://www.gnu.org/software/ddrescue/manual/ddrescue_manual...
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
Still not sure about the repeated lines, though now I'm convinced there must be some reason for it.
comment 2y ago · link · parent
One thing I noticed while trying to reproduce the exact bytes included in the .xz file committed to git is that the script's xz stream doesn't seem to be compressed by any of the default xz presets, I was only able to reproduce it by using `xz --lzma2=dict=65536 -c stream_2`. All the default numbered presents chose a different dictionary size. Another odd seemingly intentional choice, but again I don't understand the reasoning.
comment 2y ago · link · parent
You can get the user's e-mail by clicking the "Reply via e-mail to" on the page. It matches the <firstname><lastname><number>@protonmail.com of the other sockpuppets, and the PGP key for the account was made 1 day prior to their first communication on that mailing list.
comment 2y ago · link · parent
I wonder if you couldn't hack this in by storing the metadata in the key name itself? Obviously with the key length limit of 1024 you would be limited in how much metadata you could store, but it's still quite a lot of space, even taking into account the file path. You could use a deliminator that would be invalid in a normalized path, like '//', for example: /path/to/file.txt//mtime=1710066090
You would still be able to fetch "directories" via prefixes and direct files by using '<filename>//' as the prefix.
This kind of formatting would probably make it pretty incompatible with other software though.
comment 2y ago · link · parent
WITH matches(id) AS (
SELECT rowid FROM address_fts WHERE address_fts MATCH 'google'
)
...
WHERE
fa.rowid IN matches
OR
ta.rowid IN matches
You can also have more complex queries, such as if you want to match multiple domains (MATCH 'google OR gmail').It makes it slightly easier to generate queries since you only have to generate the CTE and then you can just use the CTE name everywhere else.