316 private links
Outline:
Using a BKTree data structure to identify and correct typos
Writing the Business Logic to Perform Typo Corrections
Pulling from Redis and caching it with lazy_static!
Identifying english words (among others, BKTree Search for Non-Dictionary Words)
Use cases for :has:
.card:has(button:focus-visible).xy-pad:has(.handle:active), .xy-pad:has(.handle:focus-visible)- We can use :has as a sort of global event listener:
html:has([data-disable-document-scroll="true"]) - JS-free darkmode:
body:has(#dark-mode-toggle:checked) p:has(+ figure): with :has, we can style one element based on another element in a totally different container! See the cool code playground that highlights
:has can be powerful to replace JS with HTML semantics.
It's Open Source: https://github.com/Conobi/politiscales
C'est une bonne chose. Après un an quand même...
Webassembly components that can be reused in other programs 😲
The component standard is defined on https://github.com/WebAssembly/component-model/
| EN | DE | FR | Meaning |
|---|---|---|---|
| rent | mieten / eine Miete | louer / une location | use |
| rent out / a rental | vermieten / eine Vermietung | louer, mettre en location / une location | consume |
| leasing /a lease | Leasing / ein Leasing | louer en leasing, louer à bail / une location en leasing, à bail | consume with services or fixed terms |
73% of the Web Platform Tests passes on Servo.
It's perfectly legal for people to take your writing, code, videos, music and other works into a 'dataset' that can be used to train an LLM model to forge your art or writing style -- for money.
But if a nonprofit decides to purchase hardcopy books, scan them in, and create a digital lending program providing works to anyone who asks -- for free, that's checks notes illegal. :D
generates electromagnetic radiation from a device's RAM to send data from air-gapped computers.
The RAMBO attack achieves data transfer rates of up to 1,000 bits per second (bps), equating to 128 bytes per second, or 0.125 KB/s.
Transmissions are limited to a maximum range of 3 meters, with an error rate being 2-4%.
For simple sites, keep things manual.
Automate when it hurts to do it manually.
"Joy in the smallest things comes to you only when you have accepted death" Carl Jung says.
Because death means the end of everything, knowing that death is the end allows me to use this idea as a source of strength and resilience.
HTML mit custom components to load partial templates.
CSS with imports is max two level deeps: one main that has all the imports. Variables, selector nesting and vendor prefixing are now fine.
Design token with https://open-props.style/
Javascript can be imported with <script src="" type="module"> tags.
This might be one of the unavoidable side quests if you are trying to tenaciously make a living from working on (and only on) open source. More than a year ago I wrote a blog post detailing my motivation for the things I have been doing and having a "grindset".
sharing, engaging with the community, enjoy programming again