Devenet Devenet

Liens en vrac

Quelques 336 marque-pages glanés pendant ma navigation sur le Web.

Conserver la synchronisation Firefox sauf pour une extension

https://www.reddit.com/r/firefox/comments/1065lph/firefox_sync_but_choose_what_extensions_are_on/

“If you want add-ons to download across devices but only want to activate a specific one on a single machine:
1. Open a new tab and type about:config in the address bar.
2. Accept the warning.
3. Search for services.sync.addons.ignoreUserEnabledChanges.
4. Double-click it to toggle its value from false to true.
This prevents your activated/deactivated extension choices from syncing with your Mozilla Account.”

98% isn’t very much

https://whynothugo.nl/journal/2026/07/03/98-isnt-very-much/

“If a website uses fancy new browser features and works for 98% of the population, that means that it won’t work for ~150 million people. If a website makes a change and that works for 98% of their visitors, they’re basically kicking out 2% of their audience. Can you imagine a venue refusing entry to former clients 2% of the time just because they’ve “improved their experience”?”

‎Loupe: What apps can see

https://apps.apple.com/us/app/loupe-what-apps-can-see/id6766152470

“A guided tour of the data any app can quietly read about you. Explore what’s exposed, see why it’s identifying, and decide what to do about it.”

eyeball

https://eyeball.rory.codes

Un petit jeu d’estimation numérique qui demande de placer un nombre sur une ligne.

Stop naming your variables “flag”: the art of boolean prefixes

https://thatamazingprogrammer.com/posts/stop-naming-your-variables-flag-the-art-of-boolean-prefixes/

1. IS: Identity and State • Use is when describing what something is right now. It usually pairs with an adjective.
   isActive, isDeleted, isEmpty

2. HAS: Containment and Features • Use has when describing ownership or inclusion. It pairs with a noun.
   hasAccess, hasChildren, hasValidationErrors

3. CAN: Capability • Use can to check permissions or potential actions.
   canEdit, canDelete, canRetry

4. SHOULD: Intent • Use should for business rules or decisions the system needs to make. This separates “what we can do” from “what we want to do.”
   shouldRetry, shouldCacheResponse

Apple permet de désactiver le réveil automatique des MacBook

https://next.ink/brief_article/apple-permet-de-desactiver-le-reveil-automatique-des-macbook/

sudo nvram BootPreference=%00 : empêche le Mac de démarrer à l’ouverture de l’écran ou au raccordement de l’alimentation
sudo nvram BootPreference=%01 : empêche le Mac de démarrer uniquement à l’ouverture de l’écran
sudo nvram BootPreference=%02 : empêche le Mac de démarrer uniquement au raccordement de l’alimentation

sudo nvram -d BootPreference : restaure le comportement par défaut

Modifier le style par défaut des boutons radio

https://paulmakeswebsites.com/writing/shadcn-radio-button/

input[type="radio"] {
 /* Disable the browser’s default radio button styles */
 appearance: none;
 margin: 0;

 /* Recreate the circle container */
 border: 1px solid black;
 background: white;
 border-radius: 50%;

 /* Center our dot in the container */
 display: inline-grid;
 place-content: center;

 /* Use a pseudo-element to display our “dot” */
 &::before {
   content: "";
   width: 0.75rem;
   height: 0.75rem;
   border-radius: 50%;
 }

 /* And display it when the radio button is checked */
 &:checked::before {
   background: black;
 }
}