Refactor categories and tags across multiple posts to improve organization and clarity

This commit is contained in:
Fundor333
2025-04-16 00:36:22 +02:00
parent 542ea34f07
commit df82e77f6c
32 changed files with 69 additions and 56 deletions

View File

@@ -16,6 +16,7 @@ series:
- Hugo tricks
- Django tricks
- Indiweb, webmentions and friends
- Horror stories
reply:
repost:

View File

@@ -8,16 +8,16 @@ tags:
description: Docker, cos'è e come funziona
slug: docker-la-balena-con-i-container
categories:
- dev
- rant
feature_link: "https://unsplash.com/photos/hHntcuiLbOg"
feature_text: "Photo by Antoine Petitteville on Unsplash"
---
Oggi parliamo di balene e di Virtual Machine, ovvero parliamo di
Docker.
Docker.
![Docker](docker-logo.png)
<!--more-->
<!--more-->
La prima volta che ho incontrato Docker è stato leggendo un articolo
sulle macchine virtuali e su come rendere uguale l'ambiente di develop,
testing e di produzione. Quando lo ho letto non capivo bene come
@@ -67,7 +67,7 @@ Puoi distribuire il file di configurazione (semplice file di testo,
solitamente anche molto breve) al posto che condividere un intero disco
virtuale e è più compatto rispetto alla virtual machine per quanto
riguarda lo spazio occupato, in quanto c'è solo le librerie richieste e
nessun altra componente del sistema operativo o delle librerie.
nessun altra componente del sistema operativo o delle librerie.
In oltre, in caso di multiple istanze di docker risulta spesso più
performante, sopratutto quanto più sono simili le immagini.
@@ -75,7 +75,7 @@ performante, sopratutto quanto più sono simili le immagini.
Bisogna imparare a fare i file docker e, nel caso di una solo istanza di
docker in funzione sulla macchina potrebbe essere più pesante di una
macchina virtuale.
macchina virtuale.
Personalmente ultimamente lo uso molto per sviluppare siti web. Questo
mi permette di avere una unica installazione di php e di mysql senza

View File

@@ -12,7 +12,8 @@ aliases:
- "/blog/orrori-delle-parentesi/"
feature_link: "https://unsplash.com/photos/XMpXzzWrJ6g"
feature_text: "Photo by Annie Spratt on Unsplash"
series:
- Horror stories
---
(°,,,°)
@@ -27,16 +28,16 @@ A fragment of code with parentesies at the end of the row...
>
>Don't do this.
>
>Seek help instead of this.
>Seek help instead of this.
>
><a href="https://t.co/1EYb7BLHkb">pic.twitter.com/1EYb7BLHkb</a></p>— hiscursedness@mastodon.art (@HisCursedness) <a href="https://twitter.com/HisCursedness/status/788690145822306304?ref_src=twsrc%5Etfw">October 19, 2016</a></blockquote>
\\|/(x,,,x)\\|/
This is one of the think you must not do.
This is one of the think you must not do.
The *bon ton* of coding show you how you need to write the code.
You need to write in a way which you will can read it easy in eons in the future with different coders.
You need to write in a way which you will can read it easy in eons in the future with different coders.
If you write code like this ***when*** you came back to it, because you will, you will soffer for your older decision, cursing yourself for years to come because you will need to rewrite some part or all of the orrible code you wrote.
So thing allwayse to write good code because the coder-karma is a monster and has your home adress and come when you don't have time to rewrite the horror-code.

View File

@@ -4,7 +4,7 @@ date: 2017-04-04 00:00:00 +0000
slug: e-sono-passato-a-hugo
tags:
- hugo
- blog
- blogging
description: Come e perchè sono passato a Hugo da Pelican
categories:
- rant

View File

@@ -3,7 +3,6 @@ date: 2017-05-16 12:27:11 +0200
tags:
- docker
- hugo
- blog
title: Hugo into Docker
categories:
- dev

View File

@@ -6,7 +6,7 @@ categories:
- dev
tags:
- python
- coding
- dev
aliases:
- "/dev/pipenv-e-come-tutto-e-in-uno/"
description: Assistiamo al matrimonio di Pipfile, Pip e PipEnv

View File

@@ -5,7 +5,6 @@ tags:
- convention
- pycon
- python
- rant
slug: e-talk-al-pycon9
description: E vado a parlare al Pycon9 per colpa di questo blog, della mia piccola
passione per i generatori di siti statici e di un certo informatico

View File

@@ -7,10 +7,11 @@ tags:
- rant
categories:
- dev
- zeta target
- rant
slug: beards-mugs-men
description: A response about mugs to a rant about beards
description: A response about mugs to a rant about beards
series:
- Horror stories
---
I use DevRant, a social for rant by developer. One day I find [this](https://devrant.com/rants/1684566/some-empty-headed-helpdesk-girl-skipped-into-our-office-yesterday-afternoon-desp) rant.
@@ -65,7 +66,7 @@ I love it and I find it sometime too realistic in my experience. But sometime af
## Commoner mug
Standard mug. Only one color with or without the phrase "Best Dad/Mum/Something Ever!".
Full of pens, always Bic or some type of ultra-low-price pen. Sometime there is a magnifier if the owner is in the legal or tax department.
Full of pens, always Bic or some type of ultra-low-price pen. Sometime there is a magnifier if the owner is in the legal or tax department.
Never ever used as a mug.
@@ -112,5 +113,5 @@ Only sometime you will find a sysadmin with the *vim command sheet*'s mug.
This are some of the type of mug I find in my worklife. If i find other i will create a second part of this post.
[^1]: An exquisite tea from the Fujian province, where it is grown in gardens. Its name is due to its pearl-like shape. With a pronounced jasmine aroma, it has a soft taste and digestive properties that make it very recommendable for drinking on its own after meals.
[^1]: An exquisite tea from the Fujian province, where it is grown in gardens. Its name is due to its pearl-like shape. With a pronounced jasmine aroma, it has a soft taste and digestive properties that make it very recommendable for drinking on its own after meals.
[^2]: From a true story

View File

@@ -7,10 +7,12 @@ tags:
- coding
- rant
categories:
- zeta target
- dev
- rant
slug: buzzwords-buzzwords
description: Un rant sulle buzzwords
series:
- Horror stories
---
Questo non è un post normale. E non tratto di programmazione ma di un problema molto grosso che affligge me e altri tecnici: le _buzzword_. Questo articolo, se letto nel mio blog con i JavaScript attivi farà in modo di mostrare alcune _buzzword_ sotto forma di termini tipo {{< buzzword >}}.

View File

@@ -8,11 +8,12 @@ tags:
- api
categories:
- dev
- fingerfood
slug: django-rest-framework-multiple-post
description: How to make a massive put with Django Rest Framework
feature_link: "https://unsplash.com/photos/8QYjpgFdiLU"
feature_text: "Photo by Kevin Canlas on Unsplash"
series:
- Django tricks
---
I need to have a massive **put** in my rest endpoint and Django Rest Framework doesn't do it. So I make my personal method for mycase.

View File

@@ -8,7 +8,6 @@ tags:
- coding
categories:
- dev
- zeta target
slug: mew-and-programming
description: Why you can find a Mew under a truck on Pokemon Blue, Red and Green
---

View File

@@ -11,7 +11,6 @@ tags:
slug: "Adding Progress Bar in Python"
categories:
- dev
- fingerfood
description: "Sometime you need to add a Progress Bar to your script and this is how"
---

View File

@@ -10,7 +10,6 @@ tags:
slug: "dotfiles-bot-yaml"
categories:
- dev
- zeta target
description: "Using the same dotfiles on multiple computer in the easy way"
---
@@ -194,11 +193,11 @@ For example *git* is:
In this yaml the bot links in the path __*~/.gitconfig*__ to the file __*gitconfig*__ and make the same with __*~/.gitignore_global*__.[^2]
In this way I can build multiple file for all the case I need. Some example is *ssh* or *zsh* or the *emacs* config in my [repo](https://github.com/fundor333/dotfiles) which use the configuration describe in this post. There are some files not used like a __*requirements.txt*__ or __*choco.ps1*__ that I don't know if it's a good idea.
In this way I can build multiple file for all the case I need. Some example is *ssh* or *zsh* or the *emacs* config in my [repo](https://github.com/fundor333/dotfiles) which use the configuration describe in this post. There are some files not used like a __*requirements.txt*__ or __*choco.ps1*__ that I don't know if it's a good idea.
In any case if you write a good *dotfiles repo* with *dotbot* you need to keep the __*idempotency*__[^3] of the bot execution so you are __*mathematically*__ certan that the execution don't make different installation with the same command.
If you want to copy some part of my config you can do it but remember:
If you want to copy some part of my config you can do it but remember:
>Dotfiles are supposed to contain your personal settings — what works for someone else isnt necessarily optimal for you. If certain configurations worked for everybody, those settings would have been built into programs as defaults. Blindly cloning someone elses dotfiles, especially without having an understanding of how everything works, is not the optimal approach.
>

View File

@@ -12,6 +12,8 @@ categories:
- dev
- fingerfood
description: "Import excel to django with easy and usefull form"
series:
- Django tricks
---
Sometime you need to import "old data" or other type of stuff from an Excel file into your Django and save it in the correct models. This an impossible task without the correct plugin and you need the correct one.
@@ -112,12 +114,12 @@ In this fragment we loop on the array and, for each row, create an user for that
</form>
{{< / highlight >}}
And this is the form for the upload, the last part of the project.
And this is the form for the upload, the last part of the project.
__NB__: use the *enctype="multipart/form-data"* for upload files. If you can't upload files
With all this code you can read all the xls you ever want but remember:
With all this code you can read all the xls you ever want but remember:
> This code work only if you allways have the same xls's structure.
>
> You can change the pyexcel module for change the type of file read
> You can change the pyexcel module for change the type of file read

View File

@@ -11,6 +11,8 @@ slug: "make-tea-not-big-data"
categories:
- rant
description: "A rant about workspace and data managment with tea"
series:
- Horror stories
---
# The story

View File

@@ -4,7 +4,7 @@ date: 2021-07-27T10:00:00+02:00
feature_link: "https://unsplash.com/photos/9Gz5bMWdGYE"
feature_text: "Photo by Sara Julie on Unsplash"
tags:
- blog
- blogging
- devops
- hugo
slug: "Hugo-with-lazy-loading-and-webp"

View File

@@ -11,7 +11,7 @@ tags:
- barcode
slug: "django-with-barcode-and-qrcode"
categories:
- post
- dev
- fingerfood
description: "How to make a django form for reading BarCode and QRCode"
series:

View File

@@ -14,6 +14,8 @@ description: "How Github Copilot write my post and scare me two times"
mp-syndicate-to:
- https://brid.gy/publish/twitter
- https://brid.gy/publish/mastodon
- series:
- Horror stories
---
I was writing another post for my blog with VS Code when Github Copilot write all the introduction for me.

View File

@@ -12,11 +12,10 @@ tags:
slug: "indieweb-webmention-and-h-entry-in-my-blog"
categories:
- dev
- coding
description: "Adding Indieweb and Webmention in my blog"
series:
- Indiweb, webmentions and friends
- Hugo tricks
---
## Some history of this blog

View File

@@ -10,6 +10,7 @@ tags:
slug: "add-data-at-the-end-of-the-google-sheet"
categories:
- dev
- fingerfood
description: "How I write a row of data at the end of a Google Sheet with Python Api"
mp-syndicate-to:
@@ -29,7 +30,7 @@ This tutorial expect you to have follow the [Google prerequisit's post](https://
In our case we need:
* a API Key with writing power
* a API Key with writing power
* the email for the project (create with the app)
* a gsheet with data

View File

@@ -9,7 +9,8 @@ tags:
- pyconit
slug: "following-the-elephant-toots-with-the-python"
categories:
- develop
- dev
- fingerfood
description: "How I follow all who Toots about PyconIt2023"
mp-syndicate-to:
@@ -37,7 +38,7 @@ I need to break the task in little steeps for easyer development:
3. Follow all the users (you need to follow someone to add to a list)
4. Add all the users in the list _PyconIt2023_
So I wrote this code for a commandline
So I wrote this code for a commandline
~~~ python
from typing import Annotated

View File

@@ -8,6 +8,7 @@ tags:
- micropub
- microformat
- bridgy
- hugo
slug: "more-stuff-i-do-with-webmention-micropub-and-bridgy"
categories:
- dev

View File

@@ -9,8 +9,8 @@ tags:
- command line
slug: "why-i-stop-making-script-and-start-to-make-bash-terminal-commands"
categories:
- coding
- hacking
- dev
- fingerfood
description: ""
mp-syndicate-to:
@@ -97,9 +97,9 @@ def check_https(url:str):
console.print(f"[green]{url}")
else:
console.print(f"[red]{url}")
```
```
With this command added the cli become more compless with a help autogenerate.
With this command added the cli become more compless with a help autogenerate.
At the end the script/cli will look like some like this
``` python
@@ -144,10 +144,10 @@ def check_https(url:str):
console.print(f"[green]{url}")
else:
console.print(f"[red]{url}")
if __name__ == "__main__":
app()
```
```
Like this I have multiple other CLI for email, printers, networks, servers, etc and I have something more clean and organize than a bin of scripts.
@@ -158,6 +158,6 @@ At the end of the day having a lot of script can be a growing problem but if you
Have nice time making your CLI
### **Update**
### **Update**
[Here]({{< ref "/post/2024/why-do-i-disinstall-pipenv-and-use-only-poetry" >}} "Here") you can find some update about the way I write code and my personal utility

View File

@@ -4,7 +4,7 @@ date: 2024-07-28T11:37:47+02:00
feature_link: "https://www.midjourney.com/home/"
feature_text: "by IA Midjourney"
tags:
- blog
- blogging
- devops
- hugo
- module

View File

@@ -11,7 +11,7 @@ tags:
slug: "why-do-i-disinstall-pipenv-and-use-only-poetry"
categories:
- dev
- coding
- fingerfood
description: "I choose to don't use pipenv and move to poetry and pyproject and other stuff for dev with python"
mp-syndicate-to:
@@ -50,14 +50,14 @@ In the beginning, I wrote all my project with a _pipfile_[^3] in mind which is a
[^3]: [Pipenv e come tutto è in uno]({{< ref "/post/2017/pipenv-e-come-tutto-e-in-uno" >}} "Pipenv e come tutto è in uno")
If it is a personal project you need to run only on your machine and not relese anyware else it is a great tool because Pipenv is build for deploy only.
If it is a personal project you need to run only on your machine and not relese anyware else it is a great tool because Pipenv is build for deploy only.
But with the new white hairs on my head I change my mind.
If I want to become something bigger than a little dev I find usefull have all the code and the test ready for mass distribuition or having a simpler system to install on a pc or server as a command like a _Click_ program.
If I want to become something bigger than a little dev I find usefull have all the code and the test ready for mass distribuition or having a simpler system to install on a pc or server as a command like a _Click_ program.
So I search more and find pyproject and I want to try it.
But PyProject without a tool is horrible, no other words...
But PyProject without a tool is horrible, no other words...
It's easy to read but you need to know all the parameters and keywords for editing or updating soo... No, I don't like it, but maybe there are some tools for edit pyproject in a easy way so I search for something more funtional and easy to use and _poetry_ was suggested to me. [^poetry-over-pipenv]
[^poetry-over-pipenv]: Beautifull article about Poetry over others [I move from pipenv to poetry in 2023 - Am I right ?](https://dev.to/farcellier/i-migrate-to-poetry-in-2023-am-i-right--115)
@@ -79,13 +79,13 @@ poetry config --local virtualenvs.in-project true
With poetry we have the _venv_ so now we need to define the style of the code and check if the code is following it.
So I find [Editor config](https://editorconfig.org/), one of the best thing I found on the web.
So I find [Editor config](https://editorconfig.org/), one of the best thing I found on the web.
It is a tool split in two part:
1. A config file (.editorconfig) with the indication for all the type of the file of the project and how they must be formatted[^editorconfig]
2. A checker (something implemented in an IDE, an IDE Plugin, CI) which format or check the code following the .editorconfig file configuration.
[^editorconfig]:I have a multifile format file done by me but if you need to start you can generate your own [here](https://editorconfig.timseverien.com/)
[^editorconfig]:I have a multifile format file done by me but if you need to start you can generate your own [here](https://editorconfig.timseverien.com/)
In my case every time I save something the editor (VSCode in my case) will reformatting the code following the .editorconfig settings.
@@ -97,7 +97,7 @@ I feel the need for this tool because I worked with some developer who wrote _Sp
This is something I use as safety net for myself. Some time I work at night or with time restriction I make error or make something not python-like but spaghetti-like and this is bad, very bad.
For this reason I add _pre-commit_[^pre-commit] for autofix and check all this minor error.
For this reason I add _pre-commit_[^pre-commit] for autofix and check all this minor error.
And because I add _pre-commit_ I add more dotfiles for configurations of all the parts of the project and the tools for make more check and fix some of the problems.
[^pre-commit]: [Using pre-commit hooks to write better code](https://praful932.dev/blog-2-pre-commit-hooks/)

View File

@@ -6,7 +6,7 @@ feature_text: "by IA Midjourney"
tags:
- dev
- rant
- blog
- blogging
slug: "why-have-a-blog-in-the-fast-social-media-era"
categories:
- rant
@@ -16,7 +16,7 @@ mp-syndicate-to:
- https://brid.gy/publish/mastodon
images:
keywords:
- blog
- blogging
- site
- social media
series:

View File

@@ -9,7 +9,7 @@ tags:
- blogging
- indiweb
categories:
- blog
- dev
images:
keywords:
series:

View File

@@ -6,6 +6,9 @@ feature_text: "by IA Midjourney"
description: "How I have syndications'links fill by the machine"
isStarred: false
tags:
- hugo
- github
- github actiom
categories:
- dev
images:

View File

@@ -8,6 +8,7 @@ tags:
- zsh
categories:
- dev
- fingerfood
images:
keywords:
- bash

View File

@@ -7,7 +7,7 @@ description: There are some page you need to have in your blog if your blog is f
tags:
- dev
categories:
- blog
- rant
images:
keywords:
series:

View File

@@ -11,7 +11,7 @@ tags:
- blogging
categories:
- dev
- blogging
- rant
series:
- "A dev need a blog"
---

View File

@@ -7,7 +7,7 @@ tags:
- social
- instagram
categories:
- blog
- rant
images:
keywords:
- meta