HackerTrans
TopNewTrendsCommentsPastAskShowJobs

zexodus

59 karmajoined 9 anni fa

comments

zexodus
·6 mesi fa·discuss
I'm so tired of these...

Is there really no way we can make it technologically impossible for them to exfiltrate user data?
zexodus
·2 anni fa·discuss
> the wood where my mouse was kept attracting weird black spots

Have the same issue, but can't subscribe to mousepads. I believe that's dust getting in the crevices of the wood.
zexodus
·2 anni fa·discuss
Context size limits are usually the reason. Most websites I want to scrape end up being over 200K tokens. Tokenization for HTML isn't optimal because symbols like '<', '>', '/', etc. end up being separate tokens, whereas whole words can be one token if we're talking about plain text.

Possible approaches include transforming the text to MD or minimizing the HTML (e.g., removing script tags, comments, etc.).
zexodus
·2 anni fa·discuss
It's possible to capture the DOM by running a headless browser (i.e. with chromedriver/geckodriver), allowing the js execute and then saving the HTML.

If these readers do not use already rendered HTML to parse the information on the screen, then...
zexodus
·2 anni fa·discuss
I thought the left brain/right brain gibberish was debunked years ago.
zexodus
·2 anni fa·discuss
It performed surprisingly well at categorization tasks where json results where involved compared to gemma:2b and gemma:7b
zexodus
·2 anni fa·discuss
TypeSpec is great, but if you're working with Rust and you're about to write a new project that will require an OpenApi spec sooner or later, I'd like to recommend a web framework that has spec generation baked in:

https://github.com/poem-web/poem (see poem_openapi)

All you need to do is derive a trait on your response structs and in return you get an almost perfectly generated spec. Unions, objects, enums are first class citizens.

Also, if you're from coming from PHP, the controllers feel very much like symfony controllers.

P.s. Please do recommend an ORM that would feel closer to doctrine. I miss doctrine.