Retrospective feelings... A clear continuation of 2024: professional stability and rethinking about the way we, Engineers, should work from now and on. It makes me wonder when I hear individuals discussing about the new horizon of Software Engineering and AI, inside and outside my job, and of course inside XalapaCode community (all the time). So many questions and thoughts. And speaking of which,…
Such a wild dream, isn't it? Python is quite dynamic. Variables can reference strings, then lists, then sets... It's an intrinsic characteristic of the language. I was there, thinking that it could be possible. Never found a safe trail for achieving this, and for a long time, I thought it was just me. Some think that Type Hints could be a starting point of having such feature, without…
Intro to Reality During the COVID-19 pandemic, I worked with an experienced Engineer. He worked several years for Hewlett-Packard, mentioning that it was for him a habit to start his day with a long walk, at 06 AM. I thought it didn't had any particular benefit. Maybe some sort of practice that became necessary during that period, where we all suffered with social distance, isolation, etc., I…
The 4th highest mountain peak (4680m) in Mexico, Xinantecatl (The Naked Lord), often called "Nevado de Toluca". Many agencies offer trips to visit the "Lagunas" (of the Sun and Moon), but few offer the experience of hiking/climbing until you reach its summit. Here's a narrative of my experience. I never hiked and climbed anything higher than 1000m. Something around 11 hours of trekking (some parts…
Yesterday, I was in a event , talking about Transactions, ACID, Isolation phaenomena, etc., under Postgresql. In Postgresql or any other DBMS, Transactions might be running in sequence (serializable) or concurrently, depending on the Isolation level set (they are implemented by DBMS vendors in their own way). The exagerated simple database table presented above, its two records of bank account…
I just want to have a Docker Image of Postgresql on Docker Hub, with preloaded data saved, so I can pull it and create a container whenever I want, even sharing the image with other people for testing general stuff (just as a code repo on Github). I also want to update the preloaded data with data that I'm currently working on, for personal projects (never including sensitive data). Hope these…
The airplane was invited to transport people. Radioactivity was discovered, and supporting on health treatments, was the the sole objective... Lockheed Martin F-35 Joint Strike Fighter, on a simulation of nuclear bomb launch Easily, A.I. is way more powerful than airplanes and radioactivity combined, in a digitally unstoppable world, with unprepared systems, capable at least to define sanctions,…
On the last 24hs, I helped different people, in a variety of ways. A gentleman, not so savvy on social media, computers, etc., starting his business, asked me to help him to create a Facebook page, in order to promote a business that will help not just him, but also his family (including grandchildren). My nephew, is quite confident of his talent and believe that without talent, you can't make…
Seems like yesterday... I was once banned from asking questions, for 1 year. At the beginning, I asked a bunch of stupid questions like "How to create an array of strings in Java?" or "What is the on this array construction?": Senior Moderators couldn't cope with it. Can't fully blame them (although they were mean): the questions were about basic and specifiic programming language concepts and not…
Sometimes it's on our side, specially when we are young, yet sometimes it could be against our will. But it's unbeatable, unstoppable, for poor, rich, old and young. Its perpetual existence in our lives, almost gives and idea of a living entity, isn't it? But beyond our lyrical view, it's more practical than we generally imagine. For us, Developers, from tasks that we need to finish of our…
One may find her/himself creating scripts with initial and final instances of datetime.now(), executing a block of code in between them and then obtaining a delta between the two timestamps, in order to understand how long the code will take for its execution, or measuring performance between two or more approaches. I remember doing this in my early days of programming. It's not a bad approach: it…
Over the years, developing software, I sometimes wonder how much do I know about OOP. There's so much components and applications that one builds, that are just functions or a coupĺe of classes from a regular library import. I guess I'll start some review here. Maybe this could serve to anyone, maybe not. Chairs as Objects Just like a chair can be assembled while reading the instruction manual, an…
I'd generally just search some directory inside /var, which might be quite obvious, but nothing will be better than reviewing the configuration that Postgresql is considering for its internal management. We don't want to do things in a remaining folder from a previous installation, so better know where we are. Plus, it's a safe way to access configuration files, independently of which distro or OS…
I remember doing this (setting up SSH key pair access) like a ninja, without ServerFault or anything else. But these last years as Software Developer, have rusted the SysAdmin sword, let's say. I was getting crazy here, trying to understand what I was missing, and of course, it gotta be something silly. It's always something silly, and indeed it was. So, here's the first note of 2022, with high…
Fantastic Vulnerabilities and Where To Find Them You might already heard about CVE or Common Vulnerabilities or Exposures, which is an initiative sponsored by DHS (Department of Homeland and Security) and CISA (Cybersecurity and Infrastructure Security Agency), overseen by MITRE Corporation . All CVEs are listed on this website maintained by MITRE. If you want to know more about CVEs, how they are…
It's always a good time, to open up a terminal and expressing calculations through code, just as any scientist would do, with the exception that I'm no scientist (at all), although I kind love Computer Science. I'm Software Developer so, it is expected, I guess. Being from another country, speaking another language and having a different education at school when I was young, it feels a little bit…
It's being a while that I work with Docker, and some commands are on top of my head, some don't. These commands are commonly used on a normal container management routine (not including networking layer). If you are getting started with Docker or it's the situation like "can't remember that command...", this might be handy. List Running Containers Create Container Rename Container Run Container…
Generally, we all iterate through a variety of objects in Python, like: Tuples Lists Dictionaries Strings Sets But besides theses objects, you can create your own iterable object! Cool huh? Not that often you might run on this situation, but it's good to know how to build your own iterator and also, you will learn a bit more of Python internals and how the iteration works behind the curtains. The…
On my first steps as Software Developer, I used to develop my own implementations of JSON validation, which worked great, but some JSONs were complex to validate, increasing complexity on improving the custom validators, becaming difficult to keep up these implementations. After some research, I discovered json-schema , which is a specification with drafts written for IETF and has implementations…
Diary Note turns into Article It was supposed to be something short, but it became an article, since that the topic could be quite extensive. It might be a tour for you, and I hope you might find something useful. It also has a tutorial with a lot of images and few text (don't worry). Here we go. First Steps with Cloud Functions I recently started to work with Google Cloud solutions, specially…
A code that fails and no further information is provided, is a situation of despair: no Traceback, no nothing. This is what a Segmentation Fault provides. I was almost starting to questioning my career choice, while I was in a hurry for delivering a code ASAP and this catastrophe happens. What a nightmare. It happened while using MySQL connector for Python . The reason: a Bug on version 8.0.8…