Daily Shaarli

All links of one day in a single page.

October 13, 2022

Dev SSR on Nuxt with Vite

How they solved the challenges that comes with this feature.

Recalibré, Next INpact se réorganise et va de l’avant

👍

Software engineering practices

Good practices !
✅ on my personal projects

  • Documentation in the same repo as the code ✅
  • Mechanisms for creating test data
  • Rock solid database migrations
  • Templates for new projects and components
  • Automated code formatting ✅
  • Tested, automated process for new development environments ✅
  • Automated preview environments ✅

As a result, to avoid downtime you need to design every schema change with this in mind. The process needs to be:

  1. Design a new schema change that can be applied without changing the application code that uses it.
  2. Ship that change to production, upgrading your database while keeping the old code working.
  3. Now ship new application code that uses the new schema.
  4. Ship a new schema change that cleans up any remaining work—dropping columns that are no longer used, for example.
Réduire la taille d'une image

Pour vos photos:

  • limitez les dimensions, un maximum de 2 000 x 2 000 pixels est largement suffisant;
  • utilisez le format JPEG (ou AVIF si vous voulez promouvoir le format du futur);
  • réglez la qualité à 75 ou moins (35 dans le cas du format AVIF).

Pour des images non-photoréalistes:

  • en général vous pouvez réduire encore plus les dimensions que pour les photos;
  • utilisez le format PNG.

Je vais jeter un coup d'oeil au format AVIF :)

Le post décrit ensuite certaines définitions, et comment compresser manuellemenet

SamuelHahnemann 🆗 Dr. Woke on Twitter: "Exemple de pourquoi le salaire moyen ça veut rien dire : Entreprise Hahnemann and cie. Robert : 1400€ Louise : 1450€ Paul : 1500€ Bernadette : 1500€ Jean-Michel : 5000€ Samuel : 9000€ Salaire moyen : 3308,33€ Vous comprenez pourquoi c’est stupide ?" / Twitter

Exemple de biais avec des valeurs extrêmes faussant la moyenne:

Entreprise

Robert : 1400€
Louise : 1450€
Paul : 1500€
Bernadette : 1500€
Jean-Michel : 5000€
Samuel : 9000€

Salaire moyen : 3308,33€

Vous comprenez pourquoi c’est stupide ?

dkrivoruchko/ScreenStream: Screen Stream Android app

An Android mobile app for viewing device screen in your web browser.

Building a Next-Level Code Playground / Sandbox / REPL with Sandpack

Integrate a code sandbox with live edit functions directly in pages. I am totally for it ! :D

Here is a guide

160 milliards d’aides publiques par an : un « pognon de dingue » po... | Mediapart

Selon une étude réalisée par des chercheurs lillois....

depuis quand faut-il des chercheurs pour étudier les comptes de l'état?

PaddlePaddle/PaddleOCR: Awesome multilingual OCR toolkits based on PaddlePaddle (practical ultra lightweight OCR system, support 80+ languages recognition, provide data annotation and synthesis tools, support training and deployment among server, mobile, embedded and IoT devices)

PaddleOCR aims to create multilingual, awesome, leading, and practical OCR tools that help users train better models and apply them into practice.

It has support online. It seems to a a promising project!

The Four Burners Theory: The Downside of Work-Life Balance

4 burners where all of the 4 can not coexist: Family, Friends, Health, Work

The Four Burners Theory says that “in order to be successful you have to cut off one of your burners. And in order to be really successful you have to cut off two.”

Workarounds

  1. Outsource Burners

It does not work well for family, friends and health at some point...

  1. Embrace Constraints

Optimise everything. Assuming a particular set of constraints, how can I be as effective as possible?

Embracing constraints means accepting that you are operating at less than your full potential. Yes, there are plenty of ways to “work smarter, not harder” but it is difficult to avoid the fact that where you spend your time matters. If you invested more time into your health or your relationships or your career, you would likely see improved results in that area.

  1. The season of life

What if, instead of searching for perfect work-life balance at all times, you divided your life into seasons that focused on a particular area?

Furthermore, there is often a multiplier effect that occurs when you dedicate yourself fully to a given area. In many cases, you can achieve more by going all-in on a given task for a few years than by giving it a lukewarm effort for fifty years. Maybe it is best to strive for seasons of imbalance and rotate through them as needed.