Daily Shaarli
April 7, 2023
IndexedDB can be used to store a lot of data. It has some caveats though.
Storage:
About deletion, use soft delete to smoothen the synchronization if a user deletes a record and another one update it.
About record collection, use unique IDs (UUID v4) or property related ids with (UUID v5).
About ordering, it is easier to use fractional indices! Read more on https://www.figma.com/blog/realtime-editing-of-ordered-sequences/, or https://www.steveruiz.me/posts/reordering-fractional-indices, or use a dedicated library.
Sync is made with pull and push
Update:
- Send atomic changes from a client is the more convenient way. We can send only the model’s ID and its updated fields.
- send operations instead of changed data,
Conflict resolution:
- In some cases, last-write wins at the record field level will be enough
- in others, we strongly need a full-fledged CRDT.
A clear starting point on logical properties!
I keep:
- Container query: indeed
- Scroll snap
- Grid Pile: centering everything in one cell with
display: grid; place-content: center;
and in all direct children:grid-area: 1/1
- Quick circles with
inline-size: 25ch; aspect-ratio: 1; border-radius: 50%;
- Logical properties :D
Rust can be used to write all kinds of software (vertically scalable) and the development of software artifacts can be parallelized (horizontally scalable).
while it excels in the lowest half of the stack, it’s pretty ok everywhere else too.
The rust golden rule:
how function signatures are mandatory and authoritative and explicitly define the interface both for the callers of the function and for the function’s body. more
The second feature of Rust is its module system. It's first class support of the concept of libraries.
The third is cargo with its rigid specification for what a package of rust code.
On bloque les extensions de fichiers en vrac car c'est dangereux, au lieu de fichiers.
C'est oublier la responsabilité de l'OS d’exécuter directement au moindre clic tout ce qui est téléchargé en faisant confiance à l'extension. Pourquoi?
Au contraire sous Linux,
- l'extension de fichier est visible
- le système ne se base pas sur l'extension du fichier mais sur ses données internes pour savoir l'exécuter
- Par défaut, ce n'est pas exécutable.
This is ... a problem.
Critique d'une mesure dérisoire, et pourquoi elle a été prise.
A browser engine to render. It was started by the Mozilla foundation and it is now open-source and free to use 👍
Source code: https://github.com/servo/servo
Depending on the vessel (ship):
Stern (back), port (left), bow (forward), starboard (right). These directions are based on the vessel "cap".
Depending on the skiers:
"skier's Left" is based on a skier facing down the mountain.
Depending on the reader:
- inline is how a sentence is read
- block is the perpendicular of inline
- start is where the flow... starts
- end is where the flow ... ends
I find it still hard to explain and I got it with examples. Read more on mdn
block/inline and start/end can be mixed up to target a specific location. From our Latin reader perspective, it applies as follows: https://i0.wp.com/css-tricks.com/wp-content/uploads/2022/03/block-dir.png?w=720&ssl=1
It's user-centric because its language direction is respective. [...] We can embrace diversity, complexity, and unpredictability and rely on the browser engines to properly lay it out.
Why all of these? Because right, left, top, and bottom can be interpreted differently between the explainer's and the public points of view.
They are better because:
- Hum they are logical
- They are ready for language translation
So why?
- People needs to know about them
- Legacy projects that needs both syntax or a complete rewrite
- Conflicts: if a non-logical and a logical property currently affect the same thing, it’s a specificity (including source order) game.
- The rollout doesn't feel totally done: linear gradients with to left and to bottom, translate, etc...
Une imprimante laser qui fonctionne bien sous GNU/Linux: la brother DCP-L2530DW avec wifi.
The symptoms of pop culture:
- A “disdain for history”. Pop cultures believe history doesn’t have anything to teach them.
- Newer is automatically better. Pop cultures are built on the assumption that anything new or different is superior to established. Or, in other words, older is inherently inferior.
- What’s next is going to be superior to what’s now. Pop cultures exist in perpetual anticipation of the next trend. Their disbelief of history appears to outsiders as a belief in progress.
- The “Pop” in “Pop Culture” stands for “popularity”. If it’s popular then it must be right.
These traits are deeply irrational but they are the tech industry’s default mode of operation.
In order to migrate code bases efficiently to the css logical properties, one should use a migration tool.
There is already a way to parse CSS with https://github.com/servo/rust-cssparser.
What we need is simply to replace some of its value :)
There is also a simple find-and-replace example with a gist: https://gist.github.com/cchaos/acfd24d603acd5f176766ab86b5dd1d5.
Nous pouvons sereinement boycotter Hachette :)
Le juge a cependant tranché qu'Internet Archive ne rentre pas dans le Fair Use pendant la période de confinement.
Mais en 2020, pendant les confinements et alors que les bibliothèques étaient fermées, le site a donné à ses utilisateurs un accès illimité aux livres qu'il avait numérisés, appelant cette opération la « National Emergency Library » ou « Bibliothèque Nationale d'Urgence ». C'est cette action qui a été considérée comme des « violations massives et délibérées des droits d'auteur » par les éditeurs et qui est à l'origine de leur plainte.
Il y a de nombreuses raisons à ce [partage déraisonnable des données personnelles] et je ne vais pas toutes les discuter. Mais une des raisons, pensent les auteurs de ce livre, est le manque d'information ; les utilisateurices ont bien entendu dire qu'il y avait des problèmes avec les données personnelles mais ielles ne mesurent pas complètement l'ampleur de ces problèmes, ni les formes qu'ils prennent.
La BD tente de résoudre ce manque d'information par une BD.
La revue de Bortzmeyer: https://www.bortzmeyer.org/datamania.html
Comment gérer un flux RSS particulier
La méthode est artisanale mais efficace : une bouteille percée à remplir avec un appât à base de bière, de sirop et surtout de vin blanc. Car l'abeille déteste, le frelon lui adore. Le piège est redoutable.
"C'est un gros trou de 10 mm pour faire rentrer le frelon asiatique. Il ne ressortira pas, il va être dedans , il va s'épuiser, il va boire ou se noyer", explique Frédéric Provost, chargé de mission environnement à la mairie.
Est-ce que cela cible uniquement le frelon?
C'est intéressant d'avoir le point de vue de la presse internationale
- Diners of the city of Bordeaux meanwhile the society is collapsing.
- dancing and looking cool with sunglasses and fringes
These protesters aren't going back anytime soon. People will clearly fight for their quality of life and if this week is any indication they will continue looking pretty fucking cool while doing it.
😎