Daily Shaarli

All links of one day in a single page.

April 7, 2023

Périmètres d’interdiction de manifestation : l’administration préfectorale organisait sciemment l’incontestabilité de ses arrêtés – Par Serge Slama - Le Club des Juristes
Cool frontend arts of local-first: storage, sync, conflicts—Martian Chronicles, Evil Martians’ team blog

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.
Logical Properties

A clear starting point on logical properties!

6 CSS snippets every front-end developer should know in 2023

I keep:

  1. Container query: indeed
  2. Scroll snap
  3. Grid Pile: centering everything in one cell with display: grid; place-content: center; and in all direct children: grid-area: 1/1
  4. Quick circles with inline-size: 25ch; aspect-ratio: 1; border-radius: 50%;
  5. Logical properties :D
Rust Is a Scalable Language

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.

Microsoft OneNote will block 120 dangerous file extensions

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,

  1. l'extension de fichier est visible
  2. le système ne se base pas sur l'extension du fichier mais sur ses données internes pour savoir l'exécuter
  3. Par défaut, ce n'est pas exécutable.
Tesla workers shared images from car cameras, including “scenes of intimacy” | Ars Technica

This is ... a problem.

Fin de l'impression du ticket de caisse: un exemple typique de décision hors-sol catastrophique

Critique d'une mesure dérisoire, et pourquoi elle a été prise.

Servo, the parallel browser engine

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

La Dinum va voir son budget amputé de 40 %, celui d'Etalab plafonné à 500 000 euros

Dommage!

Late to Logical | CSS-Tricks - CSS-Tricks

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.

Why aren’t logical properties taking over everything? - Chris Coyier

They are better because:

  1. Hum they are logical
  2. They are ready for language translation

So why?

  1. People needs to know about them
  2. Legacy projects that needs both syntax or a complete rewrite
  3. Conflicts: if a non-logical and a logical property currently affect the same thing, it’s a specificity (including source order) game.
  4. The rollout doesn't feel totally done: linear gradients with to left and to bottom, translate, etc...
#Linux #imprimantes - Liens en vrac de sebsauvage

Une imprimante laser qui fonctionne bien sous GNU/Linux: la brother DCP-L2530DW avec wifi.

Tech Companies Are Irrational Pop Cultures

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.

From hell to HTML: releasing a Python package to easily work with Wikimedia HTML dumps – [[WM:TECHBLOG]]
Note: create a css logical property converter

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.

Internet Archive perd son procès contre Hachette et compagnie

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.

Datamania - Le grand pillage de nos données personnelles - Livre et ebook Société de Audric Gueidan - Dunod

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

Évolution du carnet de notes – La recherche – Carnet de notes

Comment gérer un flux RSS particulier

Frelons asiatiques : cette commune de l'Hérault qui distribue des pièges à ses habitants pour exterminer "les tueurs d'abeilles"

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 une guerre” : le maintien de l’ordre à la française vu de l’étranger

C'est intéressant d'avoir le point de vue de la presse internationale

Les Français se battent pour leurs droits et “ont l’air tellement cool en le faisant”
  • 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.

😎