256 private links
- IdType trait: a trait that marks a type used for database identifiers
- the read-only/read-write transaction pattern (and create two SQLite connections: a read-only and a write-only)
A way to work with indexedDB in the browser.
Excellent 😃
From a mediocre point of view, how can you get better and improve the rust code.
Even if you are mediocre and not lazy, then Rust shines by this example
Enforce the type of the column. Well I didn't know it was possible to insert every types into one column :D
How to update the overall programs installed on the computer.
How to update all astro projects with a github action.
In a nutshell, the purpose of REVENGE.CSS is to apply visual regressions to any markup anti-patterns. It makes bad HTML look bad.
Interesting.
Passing CSS variable errors can be useful too.
There are also useful patterns.
- use
[class]
and:not([class]]
- selecting ranges of content
- selecting all the elements except the one I am interacting with
- using nesting to style an element depending on context
Crazy stuff here, that can be used to emphasize letters or chunk of text.
They are different. HTML attributes are set on the HTML tags, whereas DOM properties are set in JS on the HTMLElement.
This post highlights the differences.
dbg!
is a macro dedicated to display value at runtime execution.
It is the console.log of Rust in some ways.
A great starter for new rust projects.
From the video https://www.youtube.com/watch?v=oxx7MmN4Ib0
The key is transmitted via the hash of the URL. Smart ! The rest is encrypted on the client side.
An example is provided with the crypto API, especially subtle.
Rights management in JS
How to remove XML comments in Javascript?
How regex can solve the issue but why they can be slow. There is a category for this weakness: CWE-1333 "Inefficient Regular Expression Complexity".
Other workarounds are also proposed, such as using efficient engines with backtracking.