A video I streamed in my Twitch channel:
https://www.twitch.tv/carlesmateo_com
I create a project from the scratch and I refactor it to use OOP while explaining and demonstrating the advantages. Watch it in 4K for best quality.
A video I streamed in my Twitch channel:
https://www.twitch.tv/carlesmateo_com
I create a project from the scratch and I refactor it to use OOP while explaining and demonstrating the advantages. Watch it in 4K for best quality.

If you are getting an error like this when you try to provision using rsync or running commands from SSH from a Docker Instance from a worker node in Jenkins, having your SSH Key as a variable in Jenkins, here is a way to solve it.
These are the kind of errors that you’ll be receiving:
Load key "ssh_yourserver": invalid format web@myserver.carlesmateo.com: Permission denied (publickey). rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: unexplained error (code 255) at io.c(235) [sender=3.1.3] script returned exit code 255
So this applies if you copied your .pem file as text and pasted in a variable in Jenkins.
You’ll find yourself with the load key invalid format error.
I would suggest to use tokens and Vault or Consul instead of pasting a SSH Key, but if you need to just solve this ASAP that’s the trick that you need.
First encode your key with base64 without any wrapping. This is done with this command:
cat keys/key_azure_myserver_carlesmateo_com.pem | base64 --wrap=0
In your Jenkins steps you’ll add this code:
#!/bin/bash echo "Creating credentials" echo $SSH_YOURSERVER | base64 --decode > ssh_yourserver echo "Setting permissions" chmod 600 ssh_yourserver
Having a certificate then you can define new steps that will deploy to Production by rsyncing:
#!/bin/bash
echo "Deploying www..."
rsync -e "ssh -i ssh_carlesmateo -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" -av --progress --exclude={} --stats --human-readable -z www/ web@myserver.carlesmateo.com:/var/www/myawesomeproject/www/
Note that in this case I’m ignoring Strict Host Key Checking, which is not the preferred option for security, but you may want to use it depending on your strategy and characteristics of your Cloud Deployments.
Note also that I’m indicating as User Known Hosts File /dev/null. That is something you may want to have is you provision using Docker Containers that immediately destroyed after and Jenkins has not created the user properly and it is unable to write to ~home/.ssh/known_hosts
I mention the typical errors where engineers go crazy and spend more time fixing.
![]() | Aquest és el guió per al proper programa El nou món digital a Ràdio Amèrica Barcelona, a emetre Dilluns 11 de Juliol de 2022. 2022-07-11 14:30 Irish Time / 15:30 Zona horària Catalunya / 06:30 Pacific Time. Disclaimer: Treballo per a Activision Blizzard. Totes les opinions són meves i no representen cap companyia. This is the excerpt of my radio program at Radio America Barcelona on Monday 2022-07-11 14:30 Irish Time / 15:30 Catalonia Time / 06:30 Pacific Time. Disclaimer: I work for Activision Blizzard. Opinions are my own. My opinions do not represent any company. |
Aquesta és la pàgina del programa de ràdio emés l’11 de Juliol de 2022.
This is the page for the radio program streamed July 11th 2022. Soon I will upload the video in Catalan. Here is the version in English:
Hi ha moltes novetats, i el temps de programa és limitat, així que he marcat en blau aquells articles dels que vull parlar.






I també disponible al cinema des de l’1 de Juliol:

Programa anterior: RAB El nou món digital 2022-06-27 [CA]
Programa següent: RAB El nou món digital 2022-07-18 [CA|EN]
Tots els programes: RAB
![]() | Aquest és el guió per al proper programa El nou món digital a Ràdio Amèrica Barcelona, a emetre Dilluns 4 de Juliol de 2022. 2022-07-04 14:30 Irish Time / 15:30 Zona horària Catalunya / 06:30 Pacific Time. Disclaimer: Treballo per a Activision Blizzard. Totes les opinions són meves i no representen cap companyia. This is the excerpt of my radio program at Radio America Barcelona on Monday 2022-07-04 14:30 Irish Time / 15:30 Catalonia Time / 06:30 Pacific Time. Disclaimer: I work for Activision Blizzard. Opinions are my own. My opinions do not represent any company. |
And the program in English:



https://www.frontiersin.org/articles/10.3389/fnbot.2022.918001/full
Programa anterior: RAB El nou món digital 2022-06-27 [CA]
Program següent: RAB El nou món digital 2022-07-11 [CA|EN]
Tots els programes: RAB
Following the official documentation:
https://www.jenkins.io/doc/book/installing/docker/#setup-wizard
The steps are:
Create the network bridge named jenkins
docker network create jenkins
to execute Docker commands inside jenkins nodes we will use docker:dind
docker run \ --name jenkins-docker \ --rm \ --detach \ --privileged \ --network jenkins \ --network-alias docker \ --env DOCKER_TLS_CERTDIR=/certs \ --volume jenkins-docker-certs:/certs/client \ --volume jenkins-data:/var/jenkins_home \ --publish 2376:2376 \ docker:dind \ --storage-driver overlay2
Created a Dockerfile with these contents:
FROM jenkins/jenkins:2.346.1-jdk11 USER root RUN apt-get update && apt-get install -y lsb-release RUN curl -fsSLo /usr/share/keyrings/docker-archive-keyring.asc \ https://download.docker.com/linux/debian/gpg RUN echo "deb [arch=$(dpkg --print-architecture) \ signed-by=/usr/share/keyrings/docker-archive-keyring.asc] \ https://download.docker.com/linux/debian \ $(lsb_release -cs) stable" > /etc/apt/sources.list.d/docker.list RUN apt-get update && apt-get install -y docker-ce-cli USER jenkins RUN jenkins-plugin-cli --plugins "blueocean:1.25.5 docker-workflow:1.28"
Build it:
docker build -t myjenkins-blueocean:2.346.1-1 .
Run the Container:
docker run \ --name jenkins-blueocean \ --restart=on-failure \ --detach \ --network jenkins \ --env DOCKER_HOST=tcp://docker:2376 \ --env DOCKER_CERT_PATH=/certs/client \ --env DOCKER_TLS_VERIFY=1 \ --publish 8080:8080 \ --publish 50000:50000 \ --volume jenkins-data:/var/jenkins_home \ --volume jenkins-docker-certs:/certs/client:ro \ myjenkins-blueocean:2.346.1-1
See the Id of the running Containers:
docker ps

As in my case my jenkins container Id is 77b6a5a7ae8d in order to know the jenkins administrator password I check the logs for my jenkins Container with docker logs 77b6a5a7ae8d:
docker logs 77b6a5a7ae8d
Running from: /usr/share/jenkins/jenkins.war
webroot: EnvVars.masterEnvVars.get("JENKINS_HOME")
2022-06-26 21:02:05.492+0000 [id=1] INFO org.eclipse.jetty.util.log.Log#initialized: Logging initialized @549ms to org.eclipse.jetty.util.log.JavaUtilLog
2022-06-26 21:02:05.583+0000 [id=1] INFO winstone.Logger#logInternal: Beginning extraction from war file
2022-06-26 21:02:05.613+0000 [id=1] WARNING o.e.j.s.handler.ContextHandler#setContextPath: Empty contextPath
2022-06-26 21:02:05.674+0000 [id=1] INFO org.eclipse.jetty.server.Server#doStart: jetty-9.4.45.v20220203; built: 2022-02-03T09:14:34.105Z; git: 4a0c91c0be53805e3fcffdcdcc9587d5301863db; jvm 11.0.15+10
2022-06-26 21:02:05.986+0000 [id=1] INFO o.e.j.w.StandardDescriptorProcessor#visitServlet: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
2022-06-26 21:02:06.020+0000 [id=1] INFO o.e.j.s.s.DefaultSessionIdManager#doStart: DefaultSessionIdManager workerName=node0
2022-06-26 21:02:06.020+0000 [id=1] INFO o.e.j.s.s.DefaultSessionIdManager#doStart: No SessionScavenger set, using defaults
2022-06-26 21:02:06.021+0000 [id=1] INFO o.e.j.server.session.HouseKeeper#startScavenging: node0 Scavenging every 600000ms
2022-06-26 21:02:06.463+0000 [id=1] INFO hudson.WebAppMain#contextInitialized: Jenkins home directory: /var/jenkins_home found at: EnvVars.masterEnvVars.get("JENKINS_HOME")
2022-06-26 21:02:06.647+0000 [id=1] INFO o.e.j.s.handler.ContextHandler#doStart: Started w.@7cf7aee{Jenkins v2.346.1,/,file:///var/jenkins_home/war/,AVAILABLE}{/var/jenkins_home/war}
2022-06-26 21:02:06.668+0000 [id=1] INFO o.e.j.server.AbstractConnector#doStart: Started ServerConnector@4c402120{HTTP/1.1, (http/1.1)}{0.0.0.0:8080}
2022-06-26 21:02:06.669+0000 [id=1] INFO org.eclipse.jetty.server.Server#doStart: Started @1727ms
2022-06-26 21:02:06.669+0000 [id=25] INFO winstone.Logger#logInternal: Winstone Servlet Engine running: controlPort=disabled
2022-06-26 21:02:06.925+0000 [id=32] INFO jenkins.InitReactorRunner$1#onAttained: Started initialization
2022-06-26 21:02:07.214+0000 [id=39] INFO jenkins.InitReactorRunner$1#onAttained: Listed all plugins
2022-06-26 21:02:10.781+0000 [id=47] INFO jenkins.InitReactorRunner$1#onAttained: Prepared all plugins
2022-06-26 21:02:10.794+0000 [id=35] INFO jenkins.InitReactorRunner$1#onAttained: Started all plugins
2022-06-26 21:02:10.803+0000 [id=42] INFO jenkins.InitReactorRunner$1#onAttained: Augmented all extensions
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/var/jenkins_home/war/WEB-INF/lib/groovy-all-2.4.21.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2022-06-26 21:02:11.634+0000 [id=30] INFO jenkins.InitReactorRunner$1#onAttained: System config loaded
2022-06-26 21:02:11.635+0000 [id=30] INFO jenkins.InitReactorRunner$1#onAttained: System config adapted
2022-06-26 21:02:11.642+0000 [id=48] INFO jenkins.InitReactorRunner$1#onAttained: Loaded all jobs
2022-06-26 21:02:11.645+0000 [id=46] INFO jenkins.InitReactorRunner$1#onAttained: Configuration for all jobs updated
2022-06-26 21:02:11.668+0000 [id=67] INFO hudson.model.AsyncPeriodicWork#lambda$doRun$1: Started Download metadata
2022-06-26 21:02:11.675+0000 [id=67] INFO hudson.model.AsyncPeriodicWork#lambda$doRun$1: Finished Download metadata. 4 ms
2022-06-26 21:02:11.733+0000 [id=52] INFO jenkins.install.SetupWizard#init:
*************************************************************
*************************************************************
*************************************************************
Jenkins initial setup is required. An admin user has been created and a password generated.
Please use the following password to proceed to installation:
3de0910b83894b9294989552e6fa9773
This may also be found at: /var/jenkins_home/secrets/initialAdminPassword
*************************************************************
*************************************************************
*************************************************************
2022-06-26 21:02:22.901+0000 [id=52] INFO jenkins.InitReactorRunner$1#onAttained: Completed initialization
2022-06-26 21:02:23.013+0000 [id=24] INFO hudson.lifecycle.Lifecycle#onReady: Jenkins is fully up and running
In my case the password is at the bottom, between the stars: 3de0910b83894b9294989552e6fa9773
Go with your browser to: http://localhost:8080

You can see how to deploy a new droplet also named Instance or VM to DigitalOcean Cloud Provider in this video.
You can see how User Data works in this other video.
The userdata script is run as root the first time the instance is deployed.
I provisioned using this userdata script:
#!/bin/bash sudo apt update && sudo apt install -y net-tools vim mc htop less strace zip gzip lynx curl wget git apache2 cd /opt/ git clone https://gitlab.com/carles.mateo/ctop.git
If you look for ctop.py check this page:
For information about User Data from Digital Ocean:
https://docs.digitalocean.com/products/droplets/how-to/provide-user-data/
For the first part of June I’ve been quiet on Social Media as I was on holidays and taking some scheduled tests for my health in the hospital.

I started streaming live Python coding sessions in Twitch. I’m giving it a try to see if coders have engagement.
The Software I use to broadcast from Linux is OBS.
I started with my Open Source project ctop.
I had a very long and interesting session on 2022-06-06 about OpenZFS, Data Centers, NVMe, iSCSI, Hard Drives, Storage, performance, Data Centers…
More funny things happened like when I was installing a VirtualBox VM live, and the ZFS pool became irresponsible due hardware errors in one SATA Spinning drive.
Things from broadcasting live…
Some of the feedback I got from talented Engineers is that even if the original matter to talk about was interesting, seeing everything falling apart live due to unexpected hardware problems, and me troubleshooting live is being the best of the show… which I found very amusing.
I keep doing my radio space for Radio America Barcelona, once per week, addressed to the Catalan Community across the world and expats.
This radio program, streamed also via Twitch, is available in Catalan language only. RAB.
I’ve been working in version 1.0.8 branch, and after a session of refactor on Twitch where I found a bug in MenuUtils class, I fixed it and released v. 1.0.8. You can see the video on the link.
Now I’m working on the branch v. 1.0.9.
I’ve been working in the branch 0.8.9.
My first Twitch broadcast was about adding Unit Testing to MemUtils class.
You can see all my videos:
http://www.youtube.com/channel/UCYzY-2wJ9W_ooR64-QzEdJg
I recommend you the videos in this page about Operating OpenStack at Scale.
Some of my Blizzard colleagues talk on it.
This week I decommissioned my last physical server in a Data Center.
It has been a long journey since I created my company to launch my own projects, and I started having my own infrastructure, back at 2000.
I was offering VPS at that time, with VMWare as Hypervisor.
This last Rack Server served me well for 21 years.
Now everything is Cloud, and is not viable to host and maintain servers unless this is your main occupation. Server’s motherboards die, hard drives die and they need to be replaced. Maintaining infrastructure it’s a full time job and you require somebody to do it. Also using fixed servers only prevents you from moving fast, locks a lot of money, and from spawning more compute capacity.
If you are curious this Rack Server is a Super Micro with Intel Xeon processor and SCSI drives.
I keep blocking thousands of IP Addresses every day.
When I see a pattern of an IP trying an attacks against the Server I look at the IP and if it’s from a hosting provider I just block the entire range.
I keep blocking any IP Address coming from Russia or Belarus since they invaded Ukraine.
I visited the hospital for a programmed following on my health.
The analysis are super good, and it’s super clear that I’ve improved radically. My discipline with the diet, taking the medicines and doing exercise regularly has been crucial.
My Doctor is confident that I’ll have a full recovery, but to do so I need to loss a lot of weight in a year or two.
So, I need to focus on my health and in doing exercise, being happy and avoid any kind of negative stress.
The cost of the travels and the medicines have put some stress into my economy, but I’m fortunate that I can handle it.
I’m really enjoying new Start Wars series Obi Wan, and I’ve been profoundly shocked to read that there are fans being racist against the black characters.
https://www.theverge.com/2022/5/31/23148468/star-wars-obi-wan-moses-ingram-third-sister
So just writing here to show my support to human beings from all races, genders including transgender, LGTB+, conditions and preferences.
So if you get an error like this:
Can't locate IPC/Run.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./check_ipmi_sensor line 35. BEGIN failed--compilation aborted at ./check_ipmi_sensor line 35.
The solutions is simple.
sudo yum makecache yum install perl-IPC-Run
You’ll see the list of mirrors and an output similar to this:
Loaded plugins: fastestmirror, versionlock Loading mirror speeds from cached hostfile centos-updates | 3.4 kB 00:00:00 epel | 4.7 kB 00:00:00 extras | 3.4 kB 00:00:00 Resolving Dependencies --> Running transaction check ---> Package perl-IPC-Run.noarch 0:0.92-2.el7 will be installed --> Processing Dependency: perl(IO::Pty) >= 1.08 for package: perl-IPC-Run-0.92-2.el7.noarch --> Running transaction check ---> Package perl-IO-Tty.x86_64 0:1.10-11.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved =============================================================================================================================================================================== Package Arch Version Repository Size =============================================================================================================================================================================== Installing: perl-IPC-Run noarch 0.92-2.el7 centos-base 122 k Installing for dependencies: perl-IO-Tty x86_64 1.10-11.el7 centos-base 42 k Transaction Summary =============================================================================================================================================================================== Install 1 Package (+1 Dependent package) Total download size: 163 k Installed size: 397 k Downloading packages: (1/2): perl-IO-Tty-1.10-11.el7.x86_64.rpm | 42 kB 00:00:00 (2/2): perl-IPC-Run-0.92-2.el7.noarch.rpm | 122 kB 00:00:11 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 15 kB/s | 163 kB 00:00:11 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : perl-IO-Tty-1.10-11.el7.x86_64 1/2 Installing : perl-IPC-Run-0.92-2.el7.noarch 2/2 Verifying : perl-IPC-Run-0.92-2.el7.noarch 1/2 Verifying : perl-IO-Tty-1.10-11.el7.x86_64 2/2 Installed: perl-IPC-Run.noarch 0:0.92-2.el7 Dependency Installed: perl-IO-Tty.x86_64 0:1.10-11.el7 Complete!
![]() | Aquest és el guió per al programa El nou món digital a Ràdio Amèrica Barcelona, que es va emetre Dilluns 27 de Juny de 2022. 2022-06-27 14:30 Irish Time / 15:30 Zona horària Catalunya / 06:30 Pacific Time. Disclaimer: Treballo per a Activision Blizzard. Totes les opinions són meves i no representen cap companyia. This is the script of my radio program at Radio America Barcelona on Monday 2022-06-27 14:30 Irish Time / 15:30 Catalonia Time / 06:30 Pacific Time. For my English speaking friends and followers I recorded an English version. :) Disclaimer: I work for Activision Blizzard. Opinions are my own. My opinions do not represent any company. |
English version (recorded later):


Programa anterior: RAB El nou món digital 2022-06-20 [CA]
Proper programa: RAB El nou món digital 2022-07-04 [CA]
Tots els programes: RAB
![]() | Aquest és el guió per al proper programa El nou món digital a Ràdio Amèrica Barcelona, a emetre Dilluns 20 de Juny de 2022. 2022-06-20 14:30 Irish Time / 15:30 Zona horària Catalunya / 06:30 Pacific Time. Disclaimer: Treballo per a Activision Blizzard. Totes les opinions són meves i no representen cap companyia. This is the excerpt of my radio program at Radio America Barcelona on Monday 2022-06-20 14:30 Irish Time / 15:30 Catalonia Time / 06:30 Pacific Time. Disclaimer: I work for Activision Blizzard. Opinions are my own. My opinions do not represent any company. |

“streamer” and “cloud gaming,” according to AFP. Going forward, the far more convoluted terms joueur-animateur en direct and jeu video en nuage must be used for any government communications.
Diuen que volen fer servir paraules que qui no juga a videojocs ni sap informàtica puguin ententre… com si redefinim martell com cosa de ferro que amb la mà modela metall…
https://www.engadget.com/i-am-groot-august-10-release-date-201401124.html

El XBOX Game Show Extended del 14 de Juny d’enguany:
Setmana passada: RAB El nou món digital 2022-06-13 [CA]
Setmana següent: RAB El nou món digital 2022-06-27 [CA]
Tots els programes: RAB