Monthly Shaarli
February, 2020
The cool things in Rust is that if there is a problem wit compiled code it will direct point to the unsafe parts of the code.
Done it. It will be easier to maintain the configuration of the shell ☺
My last example is with tmux: the .bashrc
is not well and after investigating, it turns out "$HOME/toMyPath"
solved my problem.
À propos du je n'ai rien à cacher
Why String
and &str
with comparisons to C ? ^^
Aller plus loin que STUN; avec les avantages et inconvénients que cela implique.
Je ne connaissais pas ce système d'immutabilité 😲
Applications that works well without ads and trackers.
(shared by https://lehollandaisvolant.net/?id=20200221200958)
An alternative to curl and wget for the http requests. So easy to use <3
(shared by https://sebsauvage.net/links/?ptcFEQ)
(shared by https://links.hoa.ro/?xmtYwQ)
LOL. Lesson : don't copy/paste without knowing what's happening
Explanations in french by Korben : Une erreur de code sur StackOverflow perpétue un bug depuis plus de 10 ans
If your survey is strictly anonymous; but binding the survey with these domain names such as :
- fonts.googleapis.com
- gstatic.com
- fonts.google.com
- segment.com
- ( cdn.segment.com )
then your survey is not anonymous
I can finally ditch Go and use a real language: Rust
😁
French documentation on the use of git. It seems complete.
git clone --depth=3
will clone only the last 3 commits
À propos des différents rebase :
standard : synchroniser une branche par rapport à une autre
interactif : réécrire l'historique de la branche courante
onto : rattacher le premier commit d'une branche à la HEAD d'une autre branche
(shared by Riduidel : https://nicolas-delsaux.hd.free.fr/Shaarli/?TfMhpQ)
A python tool that generate beautiful diagrams from code
Sometimes lawful evil depending on circumstances; often a true neutral though.
But yet a lawful neutral thanks to Internet :D
Great metaphores :)
(shared by aeris on Twitter)
Easy to understand ^^'
Dans Windows 10, lorsque vous cherchez des fichiers présents sur votre ordinateur, le système fait appel aux serveurs de Bing. Donc lorsque Bing est en panne, vous ne pouvez plus rien retrouver sur votre poste. Comment a-t-on pu en arriver là ?
[fast-translate in english]
When you search for files on your computer with Windows 10, the system requests bing's servers. So when bing's servers are down, you can't search for anything on your PC. How did it come to this ?
(shared by @clochix on Twitter)
À propos des congés portés à 12 jours...
Wesh
140 To d'archives. De tout: musique, jeux, logiciels, bande dessinées...
(shared by Sebsauvage)
Applying a range of commit in git : git cherry-pick fromCommit..ToCommit
Legit.
(shared by Riduidel)
About asynchronous streams: default behavior is that it terminates earlier when an error is generated by the stream. How to close the stream before returning the error ?
À partir du moment où on se demande ce que ça va donner en photo, alors l’expérience est tuée. La logique dominante devient : est-ce que ça ferait un bon post Instagram ?
just in case
Ok, then use the WebP format if possible with a fallback to JPEG :
<picture>
<source srcset="/pfad/Katze.webp" type="image/webp">
<img src="/pfad/Katze.jpg"> <!-- fallback if webp not supported -->
</picture>
Binding python and rust
Using Tmuxinator 🥰
“Oui mais tu peux configurer un script sh pour quand tu lances tmux toussa toussa”. Oui, j’ai pas ton temps, frère. Je suis là pour être productive et botter des culs avec mes nouvelles Doc Martens.
😎
Et l'autre manière est de scripter tout cela : un exemple de home.lord.
Mais OUI
(via Sebsauvage)
In computer programming, green threads are threads that are scheduled by a runtime library or virtual machine (VM) instead of natively by the underlying operating system (OS). [...]
Wikipedia ♥
Des pc low-cost en perspective. Un RaspberryPi 4 qui boot sous KDE pour un démarrage en 45 secondes.
Source code of Appolo-11 ! Ok I understand nothing x)
So professional as usual x)
Useful to get the Finanzamt-Nummer
Avec l'article sur les phrases de passes : comment les générer et pourquoi ?
Mais quelle surprise ! Alors qu'on nous avais dis le contraire
(shared by le hollandais volant : https://www.cnil.fr/fr/edf-et-engie-mises-en-demeure-pour-non-respect-de-certaines-conditions-de-recueil-du-consentement)
If it's true, it's huge.
The swiss society Crypto AG has sold encryption equipment to 120 countries for decade, including armies (Latin America, India, Pakistan, the Vatican, etc.).
Except that the CIA has controlled this company since 1970. So they can decipher communications.
And that lasted until 2018.
(shared by sebsauvage : https://sebsauvage.net/links/?vOvAeQ)
[fiction] From C code with a lot of bugs to Rust with improvments
Récap en français du Warrior du Dimanche.
But the question seems uneccessary : yes RSS give content for free, but you can truncate the content and only give an overview. If you want to make money with it, install a paywall...
(via Warrior Du Dimanche)
Priority order :
- Importance
- transition
- !important
- animation
- normal rules
- Origin
- Website
- User
- Browser
- Specificity
- inline (within a style HTML property)
- id
- class | attribute | pseudo-class
- type | pseudo-element
- Position --> Order of the rules (rules defined later are first applied)
About Huffman coding
(via sebsauvage)
Overview of the recutils tools to manage a database with plain text files
To be clear, we don’t think you should rewrite everything in rust just because.
Tendance to RIIR x)
&str
, String
or &String
?
In most cases, &str
is what is needed.
Un bon retour d'expérience
À retenir :
- Avoir une pièce/un lieu dédié ;
- Se préparer à sa journée de TT comme un jour classique ;
- Conserver les même horaires ;
- Pendant les horaires de travail, travailler, et uniquement cela ;
- Gérer l'organisation de sa journée indépendamment des contraintes de la maison.
- Bonus : gérer la jalousie des collègues :-)
(shared by Orangina Rouge)
A list of useful crate for testing, particularly :
debug_assert()
is run only in debug mode and removed in production builds.
The crate static_assertions
with the macro const_assert!
test const functions-and data during compilation.
(shared by Riduidel)
Une voiture qui consomme 1L/100km: qui roule à 158km/h avec boîte automatique et atteint les 100 km/h en 12s. Elle pèse ~800 kg.
(via Orangina Rouge)
Avec l'article original. C'est quand même fun et ouvre la voie sur pleins de possibilité !
Thanks a lot for this post; it is much clearer in my mind.
And the explanation for the prelude
module.
Ça a l'air passionant !
Good idea ! Blur all images that doesn't have a alt attribute.
img:not([alt]) {
filter: blur(5px);
}
Or you can set a `border: 5px solid red` too.
Feel free to highlight accessibility problems :)
Crée par Bronco
Away to fix it:
In .bashrc or .bash_profile : export TERM=xterm-256color
In .vimrc :
syntax enable
colorscheme YOUR_COLORSCHEME_NAME
set termguicolors
It is hard to know if the equipment are patched... It's ugly; datas are not encrypted at a moment during transmission 😔
That's why end-to-end encryption is so important.
(via https://sebsauvage.net/links/?kbFs9w)
TL;DR
Codium is the FLOSS of VScode. It is exactly the same software; without Microsoft trackers, ...
font-display
property in a @font-face and loading stylesheet through XHR response
Currently testing this extension for Firefox (available for Chromium & co too). How much can the browser be "vimified" ? Simple cheatsheet in the descritption.
(shared by the Mastering Vim Quickly newsletter)
About the messy implementations of <input>
This comes from the fact that any code changes need to be reviewed and blessed before they can land on the master branch. More eyes means less bugs means you’re less likely to commit broken code and break the internet.
A poll about lifetime and when variables are dropped. And I failed for good
If someone says that MacOS is more secure, then this link will be useful
About 4G, 5G, 6G and the run to get more bandwidth
I try not to think about that :)
Comme Sebsauvage, j'ai aussi hurlé après avoir vu la popup "16,87 € remboursés" sur le ticket de voyage SNCF; avec les petites conditions en bas. L'absence de respect est flagrant. C'est prendre les voyageurs/clients pour des pigeons et du fric sur pattes.
Et tout les exemples sont pertinents en plus !
(via sebsauvage)
« Arnaquer une personne, c’est risqué, arnaquer des millions de personne, c’est un investissement. »
Rendre le monde inconfortable pour monétiser le confort...
(en) : A bug in Windows 7 precludes user from rebooting or stopping computers
er...LOL ?
git merge-base branch1 branch2
will find the common ancestor commit of two branches.
Tip : check that only one commit is applied out of each command
git log branch1..common
git log branch2..common
- Cherry-pick the fix commit in a new branch (based on a common ancestor of the 2 branches) which will be then merged into them.
- Partial fix will be the same technique but the merge will be reverted in the feature branch before merging the feature branch in the master (see this)
DeepL is the reference now for automatic translations. I use it since 2 years and it has never failed me :)
(shared by sebsauvage)
Note : AV1 need 50% less bandwith than H264.
Wikipédia explains it very well
strace
programm allow us to figure out what a program does under the hood.
Part 2 (x86 asm, linux kernel)
Part 3 (ftrace, disk layouts, ext4)
J’ai peu d’amis, je dirais que je n’en ai qu’un vrai, et être un véritable ami prend du temps. J’évoquais la contraction du temps plus haut, nous avons bien plus de contacts qu’avant, les réseaux sociaux, la connexion permanente, pourtant il devient de plus en plus difficile de prendre le temps de s’intéresser réellement aux gens, de suivre leur vie pour de vrai. Je fais donc ce choix, comme je limite les loisirs, je limite mes relations avec les gens pour en avoir peu mais de qualité. Cela fait aussi partie des points sur lesquels je veux travailler, le mot peut vous paraître inapproprié mais c’est pourtant le cas, on travaille sa nature, essayer d’aider mes proches, le mieux possible, éviter au plus l’oisiveté.
Cette explication, mais c'est ma vie
Solution : box
the iterator and give the proper lifetime in signature function :
pub fn values<'a>(&'a self) -> Box<Iterator<Item = &i32> + 'a> {
// ...
}
Headshot ?
(shared by aeris on Twitter)
About regex for checking email addresses
Surprise ! On ne s'y attendais pas dis donc
reify (verb):to consider or represent (something abstract) as a material or concrete thing : to give definite content and form to (a concept or idea).
monomorphization is the term used in Rust.
About the classical couple heap/stack in rust, memory allocation, ... very instructive !
A new web framework for Rust; seems that Actix has suffered recently and other web framework in Rust are emerging