Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
phiresky
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
19 ms
·
121.
▲
by
phiresky
6y ago
> DNA has a half life of ~500 years but: Researchers in 2016 measured chloroplast DNA in marine sediment cores, and found diatom DNA dating back to 1.4 million years.[62] This DNA had a half-life significantly longer than previous resear
122.
▲
by
phiresky
7y ago
This seems to be solving mostly the same problem as the following libraries: [1] https://github.com/phiresky/ts-typed-sql [2] https://github.com/Ff00ff/mammoth [3] https://github.com&#x
123.
▲
by
phiresky
7y ago
> They are computationally slow, no tricks They have to and do use tricks, they aren't just slow. You could trivially make sha256 slow by just applying it a million times (that's not even parallelizable as well), but scrypt et
124.
▲
by
phiresky
7y ago
That's one problem with relying on automatically extracted information - sometimes it's not really what you want. In this case that's just what GitHub puts in the og:description tag for large? repos, probably to make it appea
125.
▲
by
phiresky
7y ago
Well, you can use the same json file for multiple documents. By default it will be stored in the directory from which pandoc is invoked, but you can also change that by setting `url2cite-cache: filename` in the markdown frontmatter or in th
126.
▲
by
phiresky
7y ago
I don't really see the issue, but I've increased the opacity anyways :)
127.
▲
by
phiresky
7y ago
Each citation is added to a formatted JSON file when it is first seen. After this it stays the same. This means you can fix the citation data by hand by just editing the JSON file. You should include the JSON file in your version control. A
128.
▲
Show HN: Url2cite: Transparently convert links to citations in markdown papers
(phiresky.github.io)
64 points
by
phiresky
7y ago
|
15 comments
129.
▲
by
phiresky
7y ago
Currently yes, though there's discussion of adding k-anonymity: hashing the video id and querying by a prefix of the hash short enough so each request will return on average data for maybe ~16 videos https://github.com/
130.
▲
An open-source browser extension to auto-skip sponsored segments on YouTube
(github.com)
86 points
by
phiresky
7y ago
|
101 comments
131.
▲
by
phiresky
7y ago
I wrote a similar tool that uses the same unit database (from GNU units) but is open source, has a somewhat better online interface [1] and a crappier app [2] [1]: https://phiresky.github.io/qalc-react/ [2]: https:&#x
132.
▲
by
phiresky
7y ago
I'd guess they only proxy the main domains (which have the session cookies and probably the geoblocking criteria), but let the video serving domains (which at least in netflix are separate and "stupid") go through their norma
133.
▲
by
phiresky
7y ago
All of those rights or stronger are already in effect in the EU since last year, which means most companies doing online business already have to comply with them. In fact it's pretty clear that Yang mostly just copied GDPR with this w
134.
▲
by
phiresky
7y ago
The main performance problem in pacman as far as I can tell is really slow xz decompression. This is mostly important for large packages: $ time xzcat /var/cache/pacman/pkg/cuda-10.1.243-1-x86_64.pkg.tar.xz &g
135.
▲
by
phiresky
7y ago
I saw someone mention this a while ago and at first I thought it was stupid but over time I've come to agree: Asymetric internet connections should be forbidden. They assume that users consume more than they create, and the internet sh
136.
▲
by
phiresky
7y ago
Exactly. People here always seem to assume that its power consumption will increase linearily the more people it use (from what the whole network consumes now). But in the future, the amount of energy consumed for a single transaction will
137.
▲
by
phiresky
7y ago
Yep. The only thing missing is nominal aliases to primitive types, which is requested my many people [1] and even the TS compiler itself uses hacks to work around the lack of them. No idea why they don't add them already. Also of cours
138.
▲
by
phiresky
7y ago
We hacked together an automatic door opening system controllable via smartphone that notifies you on ringing and sends a video, then opens the doors on button press with a Lego contraption [1]. [1]: https://www.reddit.com/r&
139.
▲
by
phiresky
7y ago
Would probably be shorter if you used `tostream`
140.
▲
by
phiresky
7y ago
> It's not clear whether libripgrep would be a good fit for this project or not I actually looked into using libripgrep for this, but then I decided not to because of (a) not wanting to handle arg parsing myself (ripgrep has sooo ma
141.
▲
by
phiresky
7y ago
kind of.. though this tool does a lot more (caching, recursing into archives and extracting all text) and is a lot faster (for the file types it can parse, lesspipe knows more), and of course lesspipe is only indirectly usable for recursive
142.
▲
by
phiresky
7y ago
Well, it uses the exact same pdf parsing library that e.g. Evince uses.. so if you ever open untrusted PDFs in a normal viewer, this will expose you to the same danger (maybe less since it only extracts text). But yeah, if there was a nice
143.
▲
by
phiresky
7y ago
Thank you! Yeah, I like to think I have some interesting projects. Maybe I should make an overview page because you can only pin 6 repositories on Github :)
144.
▲
by
phiresky
7y ago
There is an option to limit the maximum archive recursion `--rga-max-archive-recursion=` which defaults to 4. That is also needed to handle droste.zip [1] which is a zip file that contains itself. So for huge archives it will simply take a
145.
▲
by
phiresky
7y ago
Nope, haven't tried it. I just saw that ripgrep is using appveyor for windows instead, so I assumed it doesn't work on travis. I was actually just trying to add appveyor to this [1], but I'm getting a weird error. [1]: https
146.
▲
by
phiresky
7y ago
In ripgrep itself you can apparently only look in files of encodings other than UTF16LE with BOM by manually specifying `--encoding UTF16BE` etc. I could maybe add encoding detection myself, but I'm kind of discouraged since not even t
147.
▲
by
phiresky
7y ago
Windows support should be fairly trivial, the main problem is packaging it up and that travis doesn't like Windows. > doesn't support other UTF encodings like UTF-16 UTF-16 should in fact work, since ripgrep supports it too. Lo
148.
▲
by
phiresky
7y ago
It's true that you could mostly replace the "rga" binary with `rg --pre=rga-preproc` and just publish the rga-preproc binary, which does most of the work.. But rga itself adds convenience regarding filter selection and othe
149.
▲
by
phiresky
7y ago
Pretty hard to make rg search in files within archives though without actually extracting them (which I've seen more than one request for in the ripgrep issues [1]), which is why rga includes streaming, recursive decompression of archi
150.
▲
Show HN: Rga: ripgrep, but also search in PDFs, Office documents, zip, tar.gz
(phiresky.github.io)
284 points
by
phiresky
7y ago
|
65 comments
More ›