Pas de souci ; toute façon faire du script shell n'est pas toujours évident (raison pour laquelle dès que ça dépasse quelques lignes il vaut mieux se tourner vers un langage plus évolué que l'on maîtrise) ; et en mode exploration (usage interactif donc, comme ici) on ne se focalise pas sur la « beauté du code » (il vaut mieux d'ailleurs que ce soit les plus simple + intuitif + compréhensible…)
J'ai voulu surtout rendre hommage à l'ami grep en pointant quelques raccourcis que l'on oublie souvent.
Comme souvent avec OCaml, ton gist est juste beau (et on suit littéralement le raisonnement de l'arbre de décision.) Merci.
“It is seldom that liberty of any kind is lost all at once.” ― David Hume
Si une des parties prenantes est présente ici (quoique ça peut se faire sur un autre site aussi, auquel cas je prends volontiers le lien), j'aimerais bien un retour du passage de Bazaar vers Git.
“It is seldom that liberty of any kind is lost all at once.” ― David Hume
On est d'accord que s'il y a une enquête de police qui le lie à ce compte (après tout on ne sait pas si c'est Tartempion qui est derrière ce compte LinuxFr ou vraiment Tanguy et que son compte n'a pas été usurpé) alors on pourra lui offrir des oranges fleuries. Mais une personne de l'agence d'emmerdement évoquée ne peut pas lui tomber dessus en s'appuyant sur cet écrit. C'était ça le sens de ma remarque. Ceci dit, restons prudents…
“It is seldom that liberty of any kind is lost all at once.” ― David Hume
Oui, je parlais de prouver qu'il a bien commis les dites actions et que ce n'est pas juste des racontars sur Internet ;-) C'est juste un peu léger de se baser sur écrit qui pourrait être fantasmagorique ou relaté le fait d'une autre personne du voisinage…
“It is seldom that liberty of any kind is lost all at once.” ― David Hume
Vous proposez un mot du dictionnaire (lequel ?), le jeu vous dit quelles lettres sont dans le mot à trouver et quelles lettres sont à la bonne place, quelles lettres n'y sont pas.
J'ai joué mais je ne suis pas doué. Je connais combien de mots de cinq lettres en anglais …
Pour le vocabulaire, il faut pratiquer comme on dit.
J'étais tombé sur des jeux intéressants, de type Boggle, sur smartphone droid : Lexic puis Lexica qui prend en charge d'autres langues en plus de moderniser l'interface (par contre le code a pris un embonpoint terrible ces derniers temps…)
Par contre mon pc connaît plus de 15k mots d'anglais de cinq lettres, oui oui. Et il est capable de valider ces mots par une liste de règles (contient un "a", a un "e" à telle position, ne contient pas de "p", …). J'ai pu trouver 'favor' en quatre essais à coup de grep et grep -v. C'est donc un travail pour un ordinateur.
Pour rester sur l'appareil de poche, en tant que cruciverbiste et un peu verbicruciste, j'étais tombé sur Crossword et peut-être Regex Crosword que je n'ai pas testé.
“It is seldom that liberty of any kind is lost all at once.” ― David Hume
Exactement ! Je pense qu'il n'a pas lu jusqu'au bout la longue diatribe que je termine par « Cependant, si tu préfères vraiment produire des fichiers .TeX alors tu peux utiliser htlatex ou xhlatex ou latex2html etc. (TtH, lwarp, Hevea, make4ht, …), etc » (le dernier « etc » sous-entendait ConTeXt et LuaLaTeX, mais j'avais fait un focus sur LaTeX mentionné dans le journal…)
“It is seldom that liberty of any kind is lost all at once.” ― David Hume
« The problem with YAML is that it was designed as a “data serialization language” and thus to map the data constructs usually found in programming languages. That makes it too complex for the simple task of storing plain lists of items. » https://www.gnu.org/software/recutils/manual/Purpose.html
Cette remarque s'applique aussi à JSON qui en est la forme compacte pour machines… De plus, ici, on suggère ce format parce-qu'il a des outils pour le manipuler en dehors d'un éditeur de texte ; comme l'illustre https://gopher.tildeverse.org/sdf.org/0/users/dbucklin/posts/maintenance.txt
“It is seldom that liberty of any kind is lost all at once.” ― David Hume
La divulgation éthique comme ça se fait d'habitude ne s'applique pas trop à l'hexagone… Rien que d'annoncer qu'on a trouvé une faille et on vous tombe dessus, alors qu'ailleurs la question ne se posait même pas : on l'embauche directement… ou on lui file une récompense… Et on a bien vu par la suite leur volonté à corriger les failles…
“It is seldom that liberty of any kind is lost all at once.” ― David Hume
J'avais adoré tous les lire. Je ne sais pas si en relisant aujourd'hui j'aimerais autant. Mais te blâme pas : tout le monde ne peut pas aimer les mêmes choses.
“It is seldom that liberty of any kind is lost all at once.” ― David Hume
légalisés …vouz comprenez braves gens, c'est pour lutter contre les méchants terroristes et puis nous sommes les gentils de la démocratie donc vous n'avez rien à craindre
“It is seldom that liberty of any kind is lost all at once.” ― David Hume
Eux décident rien, font juste le constat d'après leur baromètre (et comme on dit, si la mesure ne convient pas il faut changer de thermomètre, ou un truc comme ça ?)
“It is seldom that liberty of any kind is lost all at once.” ― David Hume
[^] # Re: Autre approche : grep
Posté par Gil Cot ✔ (site web personnel, Mastodon) . En réponse au journal sur le fonctionnement du jeu Wordle. Évalué à 4.
Pas de souci ; toute façon faire du script shell n'est pas toujours évident (raison pour laquelle dès que ça dépasse quelques lignes il vaut mieux se tourner vers un langage plus évolué que l'on maîtrise) ; et en mode exploration (usage interactif donc, comme ici) on ne se focalise pas sur la « beauté du code » (il vaut mieux d'ailleurs que ce soit les plus simple + intuitif + compréhensible…)
J'ai voulu surtout rendre hommage à l'ami
grep
en pointant quelques raccourcis que l'on oublie souvent.Comme souvent avec OCaml, ton gist est juste beau (et on suit littéralement le raisonnement de l'arbre de décision.) Merci.
“It is seldom that liberty of any kind is lost all at once.” ― David Hume
# changement d'outils…
Posté par Gil Cot ✔ (site web personnel, Mastodon) . En réponse à la dépêche Sortie de Kicad 6, la référence libre pour la CAO électronique. Évalué à 3.
Si une des parties prenantes est présente ici (quoique ça peut se faire sur un autre site aussi, auquel cas je prends volontiers le lien), j'aimerais bien un retour du passage de Bazaar vers Git.
“It is seldom that liberty of any kind is lost all at once.” ― David Hume
[^] # Re: Pour faire respecter le stop pub
Posté par Gil Cot ✔ (site web personnel, Mastodon) . En réponse au journal Nous avons remarqué que vous n'utilisez PAS de bloqueur de publicités !. Évalué à 2.
On est d'accord que s'il y a une enquête de police qui le lie à ce compte (après tout on ne sait pas si c'est Tartempion qui est derrière ce compte LinuxFr ou vraiment Tanguy et que son compte n'a pas été usurpé) alors on pourra lui offrir des oranges fleuries. Mais une personne de l'agence d'emmerdement évoquée ne peut pas lui tomber dessus en s'appuyant sur cet écrit. C'était ça le sens de ma remarque. Ceci dit, restons prudents…
“It is seldom that liberty of any kind is lost all at once.” ― David Hume
[^] # Re: Pour faire respecter le stop pub
Posté par Gil Cot ✔ (site web personnel, Mastodon) . En réponse au journal Nous avons remarqué que vous n'utilisez PAS de bloqueur de publicités !. Évalué à 2.
Oui, je parlais de prouver qu'il a bien commis les dites actions et que ce n'est pas juste des racontars sur Internet
;-)
C'est juste un peu léger de se baser sur écrit qui pourrait être fantasmagorique ou relaté le fait d'une autre personne du voisinage…“It is seldom that liberty of any kind is lost all at once.” ― David Hume
[^] # Re: Rien ne se perd
Posté par Gil Cot ✔ (site web personnel, Mastodon) . En réponse au journal Nous avons remarqué que vous n'utilisez PAS de bloqueur de publicités !. Évalué à 5.
Ça s'appelle des bonus les spams chez eux
XD
“It is seldom that liberty of any kind is lost all at once.” ― David Hume
[^] # Re: Autre approche : grep
Posté par Gil Cot ✔ (site web personnel, Mastodon) . En réponse au journal sur le fonctionnement du jeu Wordle. Évalué à 6.
Je remplacerais bien :
par (pas juste plus court mais un processus en moins aussi) :
On peut appliquer la même à
et aussi minimiser l'appel à une commande externe
Mais en fait, on connait déjà la fréquence des lettres discriminantes grâce à l'analyse fréquentielle : ETAOIN SHRDLU pour les douze premières…
Dans le cas présent, on pourrait appliquer ton algo à un dictionnaire fixe,
words5letters
obtenu parque j'aurais tendance à juste écrire :
Mieux, le dictionnaire fixe pourrait ne contenir que la liste mise à nue par la rétro-ingénierie de ce journal.
Dans cette liste, on pourra donc retrouver melds et ses anagrammes avec :
Et cheap et peach à partir de trois lettres seront donnés par (sauf erreur de ma part) :
“It is seldom that liberty of any kind is lost all at once.” ― David Hume
[^] # Re: SUTOM
Posté par Gil Cot ✔ (site web personnel, Mastodon) . En réponse au journal sur le fonctionnement du jeu Wordle. Évalué à 3.
Le verlan certainement pour éviter les poursuites de Fr2 qui lui-même n'a pas repris Lingo pour les mêmes raisons. Comme qui dirait, c'est quasiment comme l'un et presque comme le notre haha.
“It is seldom that liberty of any kind is lost all at once.” ― David Hume
# lexique d'entrainement en poche
Posté par Gil Cot ✔ (site web personnel, Mastodon) . En réponse au journal sur le fonctionnement du jeu Wordle. Évalué à 3.
Pour le vocabulaire, il faut pratiquer comme on dit.
J'étais tombé sur des jeux intéressants, de type Boggle, sur smartphone droid : Lexic puis Lexica qui prend en charge d'autres langues en plus de moderniser l'interface (par contre le code a pris un embonpoint terrible ces derniers temps…)
Un peu dans le même esprit, mais plutôt comme Le mot le plus long sans le célèbre plateau de Hasbro, il y a 9P
Pour rester sur l'appareil de poche, en tant que cruciverbiste et un peu verbicruciste, j'étais tombé sur Crossword et peut-être Regex Crosword que je n'ai pas testé.
“It is seldom that liberty of any kind is lost all at once.” ― David Hume
[^] # Re: Bug report
Posté par Gil Cot ✔ (site web personnel, Mastodon) . En réponse au lien Firefox en panne. Évalué à 2.
Bien vu Misc & Xavier Claude ; en fait c'est http3 qui chie dans la colle du coup. Pas top.
“It is seldom that liberty of any kind is lost all at once.” ― David Hume
[^] # Re: PDF LaTeX → HTML
Posté par Gil Cot ✔ (site web personnel, Mastodon) . En réponse au journal informatique-libre.be (ébauche de). Évalué à 2.
Exactement ! Je pense qu'il n'a pas lu jusqu'au bout la longue diatribe que je termine par « Cependant, si tu préfères vraiment produire des fichiers .TeX alors tu peux utiliser htlatex ou xhlatex ou latex2html etc. (TtH, lwarp, Hevea, make4ht, …), etc » (le dernier « etc » sous-entendait ConTeXt et LuaLaTeX, mais j'avais fait un focus sur LaTeX mentionné dans le journal…)
“It is seldom that liberty of any kind is lost all at once.” ― David Hume
[^] # Re: Pourquoi j'ai voté pour la série de John Harrison....
Posté par Gil Cot ✔ (site web personnel, Mastodon) . En réponse au sondage Mon adaptation de Dune préférée. Évalué à 2.
Un commentaire divin… Amen
“It is seldom that liberty of any kind is lost all at once.” ― David Hume
[^] # Re: Pour faire respecter le stop pub
Posté par Gil Cot ✔ (site web personnel, Mastodon) . En réponse au journal Nous avons remarqué que vous n'utilisez PAS de bloqueur de publicités !. Évalué à 2.
Prouve…
“It is seldom that liberty of any kind is lost all at once.” ― David Hume
[^] # Re: Bug report
Posté par Gil Cot ✔ (site web personnel, Mastodon) . En réponse au lien Firefox en panne. Évalué à -1.
Foutue télémétrie…
“It is seldom that liberty of any kind is lost all at once.” ― David Hume
[^] # Re: 7 épisodes de 5 à 6 minutes : passionnant et ultra condensé mais essentiel
Posté par Gil Cot ✔ (site web personnel, Mastodon) . En réponse au lien Jurassic Web [ArteTV]. Évalué à 2. Dernière modification le 13 janvier 2022 à 01:02.
Ce sobriquet juste parce-que ça répond OK quelque soit le code (donc pas de vérification)
Me souvenais pas de cette séquence mais le résultat donne bien cela.
“It is seldom that liberty of any kind is lost all at once.” ― David Hume
[^] # Re: Et………… Lisp !
Posté par Gil Cot ✔ (site web personnel, Mastodon) . En réponse au journal Le Tiobe nouveau est sorti. Évalué à 2.
Certaines personnes pensent/croient/rêvent que c'est mort alors que nenni
https://linuxfr.org/users/devnewton/liens/rust-versus-go-round-1-fight#comment-1875161
“It is seldom that liberty of any kind is lost all at once.” ― David Hume
[^] # Re: re: Rust versus Go : round 1, fight !
Posté par Gil Cot ✔ (site web personnel, Mastodon) . En réponse au lien Rust versus Go : round 1, fight !. Évalué à 2.
On ne pourrait mieux dire :-)
“It is seldom that liberty of any kind is lost all at once.” ― David Hume
[^] # Re: Même son de cloche d'un développeur Gentoo
Posté par Gil Cot ✔ (site web personnel, Mastodon) . En réponse au lien Python: Please stop screwing over Linux distros. Évalué à 2.
Lien bien plus intéressant… Merci.
“It is seldom that liberty of any kind is lost all at once.” ― David Hume
[^] # Re: VB devant JavaScript ??
Posté par Gil Cot ✔ (site web personnel, Mastodon) . En réponse au journal Le Tiobe nouveau est sorti. Évalué à 4.
Le biais des usagers qui font les requêtes…?
“It is seldom that liberty of any kind is lost all at once.” ― David Hume
[^] # Re: suggestion de format
Posté par Gil Cot ✔ (site web personnel, Mastodon) . En réponse au journal Une base de données libre pour les CPU x86 grand public. Évalué à 3.
« The problem with YAML is that it was designed as a “data serialization language” and thus to map the data constructs usually found in programming languages. That makes it too complex for the simple task of storing plain lists of items. » https://www.gnu.org/software/recutils/manual/Purpose.html
Cette remarque s'applique aussi à JSON qui en est la forme compacte pour machines… De plus, ici, on suggère ce format parce-qu'il a des outils pour le manipuler en dehors d'un éditeur de texte ; comme l'illustre https://gopher.tildeverse.org/sdf.org/0/users/dbucklin/posts/maintenance.txt
“It is seldom that liberty of any kind is lost all at once.” ― David Hume
[^] # Re: 7 épisodes de 5 à 6 minutes : passionnant et ultra condensé mais essentiel
Posté par Gil Cot ✔ (site web personnel, Mastodon) . En réponse au lien Jurassic Web [ArteTV]. Évalué à 3.
La divulgation éthique comme ça se fait d'habitude ne s'applique pas trop à l'hexagone… Rien que d'annoncer qu'on a trouvé une faille et on vous tombe dessus, alors qu'ailleurs la question ne se posait même pas : on l'embauche directement… ou on lui file une récompense… Et on a bien vu par la suite leur volonté à corriger les failles…
“It is seldom that liberty of any kind is lost all at once.” ― David Hume
[^] # Re: 7 épisodes de 5 à 6 minutes : passionnant et ultra condensé mais essentiel
Posté par Gil Cot ✔ (site web personnel, Mastodon) . En réponse au lien Jurassic Web [ArteTV]. Évalué à 2.
Ah, ils n'ont pas poussé e bouchon jusqu'à parler du lobby imbécile bancaire
“It is seldom that liberty of any kind is lost all at once.” ― David Hume
[^] # Re: Pourquoi j'ai voté pour la série de John Harrison....
Posté par Gil Cot ✔ (site web personnel, Mastodon) . En réponse au sondage Mon adaptation de Dune préférée. Évalué à 2.
J'avais adoré tous les lire. Je ne sais pas si en relisant aujourd'hui j'aimerais autant. Mais te blâme pas : tout le monde ne peut pas aimer les mêmes choses.
“It is seldom that liberty of any kind is lost all at once.” ― David Hume
[^] # Re: Je l'avais dit :(
Posté par Gil Cot ✔ (site web personnel, Mastodon) . En réponse au lien La police a utilisé illégalement les données de traçage covid en Allemagne pour une enquête. Évalué à 2.
légalisés …vouz comprenez braves gens, c'est pour lutter contre les méchants terroristes et puis nous sommes les gentils de la démocratie donc vous n'avez rien à craindre
“It is seldom that liberty of any kind is lost all at once.” ― David Hume
[^] # Re: Hmmmm
Posté par Gil Cot ✔ (site web personnel, Mastodon) . En réponse au journal Le Tiobe nouveau est sorti. Évalué à 3.
Eux décident rien, font juste le constat d'après leur baromètre (et comme on dit, si la mesure ne convient pas il faut changer de thermomètre, ou un truc comme ça ?)
“It is seldom that liberty of any kind is lost all at once.” ― David Hume
# TCL can't die
Posté par Gil Cot ✔ (site web personnel, Mastodon) . En réponse au journal Le Tiobe nouveau est sorti. Évalué à 2.
En tout cas il a fortement marqué le powershell…
“It is seldom that liberty of any kind is lost all at once.” ― David Hume