First of all, we have to order our files using ls -v and concatenate them to a standar output with cat -n. From this ouput we read the sequence (n) and the name of each file (f). Finally, we rename the files using mv, adding a prefix and the sequence (n)
ls -v | cat -n | while read n f; do mv "$f" "prefix$n.jpg"; done
If we want to add a zero pad (p) to our sequence (n) we can do it easily with printf.
ls -v | cat -n | while read n f; do printf -v p %03d $n; mv "$f" "prefix$p.jpg"; done
How to print a specific HTML element
/in CSS3, HTML5, JavaScript/by GénesisText flickering when Google Maps loads
/in CSS3, HTML5/by GénesisThe solution to this issue is easier than you think. You have the Roboto font in your CSS but the user maybe doesn’t so the browser falls back to another font. As soon as Google Maps loads Roboto is available producing a kind of flickering effect when changing fonts.
One of the many solutions is to ensure the user gets Roboto in first place. Just add the next code into your head tag.
Ubuntu 19.10 Login in CSS
/in CSS3, HTML5/by GénesisDear fellas, it looks like the lockdown is coming to an end, at least in some countries. To celebrate this (oh yes, coding), I would like to share an article where we explain how to recreate the Ubuntu Login using only CSS and semantic HTML. It is a cool exercise for those who are starting with CSS or wanna refresh some concepts. We will simulate a click event as well but remember that you can use your own OS login or even give your personal touch. Hope you like it ^^
Ubuntu 19.10 Login in CSS on Medium.
Renaming Files in a folder to Sequential Numbers with a Prefix
/in Tooling/by GénesisFirst of all, we have to order our files using ls -v and concatenate them to a standar output with cat -n. From this ouput we read the sequence (n) and the name of each file (f). Finally, we rename the files using mv, adding a prefix and the sequence (n)
If we want to add a zero pad (p) to our sequence (n) we can do it easily with printf.
Hello Covid
/in App, CSS3, HTML5, JavaScript/by GénesisHello Covid is an interactive story, built to support and reassure children under the age of 7, regarding the COVID-19.
This content is a resource for families and educators to allow discussions and conversations with kids regarding the current situation and how they feel about it.
It also try to tell the children who the coronavirus is and how we can deal with it to avoid anxiety and frustration.
It is important to point out that this resource does not seek to be a source of scientific information.
Here are some screenshot examples:
Codebase in GitLab repositories
Read the interactive story online
Download the app on any Android device