_bittere
search-solar also returns an import command for using with Solar's react-perf package (https://solar-icons.vercel.app/docs/packages/react-perf)
Show HN: Hat v0.7.0 – Fast, local automatic file compression and conversion
But How Do LLMs Work? (Part 2: Speak My Language)
Show HN: Hat v0.2.0 – An Automatic Image Compressor (support for more formats)
Show HN: Hat – An Automatic Image Compressor
(Accidentally) Training a Dog → Cat Autoencoder
But How Do LLMs Work? (Part 1: The 3 Musketeers of Communication)
Generation at the Speed of Thought: Speculative Decoding
You Can't Play Rock Paper Scissors at Night
Show HN: Poddown, a simple, granular podcast episode downloader
Show HN: QuickPaperScissors – A simple, quick rock-paper-scissors web app
Turn Any LLM into a Powerful Assistant (All About Tools)
Thoughts on the Future of LLM Interactivity
Show HN: (Updated) Seen, a simple note-taking app
Hello again, HN.Meet Seen, a simple note-taking app. You can create, edit and update notes and search through them. The notes are Markdown-based, and currently there is no organization system but I plan to implement a tag system.Thank you.
- The server sends all puzzle information, including the solution, to the client
- The client is responsible for validating your moves
- The client is also responsible for telling the server whether you have solved the puzzle or not.
However, the client does the 3rd step by just sending a request with some formdata, which has a key called "win". Basically, the client does not send your sequence of moves to the server to have the server verify them but directly sends whether you solved the puzzle or not.
Many, including me, have discovered this bug independently and tried to report it to Lichess. I've tried contacting Lichess 2-3 years back when I originally discovered this, but Lichess has always responded with "puzzles aren't competitive; exploiting them doesn't matter." (https://github.com/lichess-org/lila/issues/16393#issuecommen...)
Admittedly, they are correct: puzzle rating doesn't really matter. So, here's a little web app I made to exploit this. You just need to copy and paste your LILA2 cookie from Lichess. Requests are made through a proxy to set the Origin header.
The source code is at: https://github.com/bittere/lisolve
Lisolve: Exploiting the Lichess Puzzle System
Show HN: Poddown, a simple range-based podcast downloader
Hey HN! Just built a little podcast downloader using Podcastindex.org's API. You search for a podcast, select a start and end range and hit download. That's it. Thank you!
In a more general case where you can make no assumptions about what you're rendering, you first render whatever is on-screen (so that you can also calculate their heights and position other elements properly). Then you render everything else off-screen, measure the total height and set that as the height for your container (for your virtual list).
Then you could implement some sort of caching for the heights to reduce recalculation for future loads.
If you can make some assumptions, there are a lot of clever ways you could even skip the rendering-then-checking-height method completely. One example I can think of is for is images; the height of an image is already present in the metadata. You just have to multiply it with some scaling factor to make it fit in your UI. That's much faster compared to checking the height after rendering.
What Seen currently does is the first. But the next version is going to do the second: finding a way to set a note's aspect ratio constant across all configurations of screen sizes, so that you no longer have to wait for all that calculation to finish.
Yes, I believe the two are related (and related to the scroll event handler). I'll look into that too!
Also, Seen does have search. The problem with making it work with Ctrl+F would be to render all 1M notes (or at least some "shadow" version of them), which would really slow everything down. But again, maybe there is some other way - speed is one of the major concerns, and I'm working on it!