Andrea Casarin

Andrea Casarin

Published on: 11/11/2023, 12:01:18 PM - Reading time: 3 minutes

Getting started with Python and Pandas

Python has established itself as as a reputable language in the realms of scripting and programming. Of all the sectors, data science stands out as one where Python has shown great promise, mainly attributable to its library Pandas. Arguably, one of the most utilized Python libraries for data manipulation, Pandas have grown in popularity, given its powerful features and direct compatibility with Excel for Python coding. This has enabled it to reach a wide audience, making data science fascinatin

Published on: 10/15/2023, 3:52:36 PM - Reading time: 2 minutes

The one trick to fix Ansible errors output

As long as everything is all right My job involves a lot of things, but managing infrastructure as code using Ansible holds a special spot in my heart. Each day is driven by the thrill of seeing ansible's efficiency and how easily it simplifies tasks over the traditional scripts. Not limited to just managing infrastructure, Ansible has proven invaluable for an assorted variety of tasks. From configuration management, application deployment, to orchestrating complex IT tasks. It plays a cruci

Published on: 9/8/2023, 4:15:00 PM - Reading time: 2 minutes

Autonomous AI Agents in minutes

Introduction to Autonomous AI Agents Artificial Intelligence (AI) continues to revolutionize the technology landscape, with one of the most promising advancements being Autonomous AI Agents. Autonomous AI agents are systems powered by AI that can make decisions on their own and take actions to achieve specific goals, without any human intervention. Given their ability to self-direct, they are at the cutting edge of AI development. This article will delve deeper into the concept of autonomous A

Published on: 8/12/2023, 3:00:18 PM - Reading time: 2 minutes

Ruby on Rails and JS, an hard relationship

Since RoR 4, the management of JavaScript in Ruby on Rails has undergone several evolutions over the years. Initially, the Rails asset pipeline, powered by Sprockets, handled JavaScript files along with other static assets. Then came the Webpacker gem in Rails 5.1, offering a more modern approach to handling JavaScript, leaning into the JavaScript ecosystem with npm and Webpack. Most recently, Rails 7 introduced a new method with Importmap, which simplifies JavaScript management by allowing dire

Published on: 7/9/2023, 1:13:22 PM - Reading time: 2 minutes

VIM for fun and profit

Coming from Visual Studio Code For Visual Studio Code (VS Code) users who are seeking to expand their coding capabilities, exploring Vim can be a transformative experience. Vim, a powerful and highly customizable text editor, offers a unique approach to code editing that focuses on efficiency, speed, and minimalism. While VS Code provides a rich and user-friendly integrated development environment (IDE), Vim takes a different approach by providing a lightweight and keyboard-centric editing exp

Published on: 6/10/2023, 11:30:22 AM - Reading time: 3 minutes

Testing Rails Applications Frontend Using Capybara and Selenium on Docker

Modern web applications rely on dynamic content, interactive features, and responsive designs to provide a seamless user experience. Ensuring that these applications perform optimally requires extensive testing of both the frontend and backend components. For Rails applications, Capybara and Selenium WebDriver are commonly used tools for testing frontend functionality, while Docker provides a lightweight containerization platform for easy deployment and scaling of your application. This guide w

Published on: 5/13/2023, 1:32:22 PM - Reading time: 1 minute

Ruby on Rails cache poisoning

The cache poisoning attack is a sophisticated method used by hackers to manipulate data in a server's cache. This article discusses one of the most common cache poisoning attacks that exploit the HTTP X-Forwarded-Host header. This type of attack is particularly insidious because it can result in the display of harmful content to users, data manipulation, or theft of sensitive information. The HTTP X-Forwarded-Host header is commonly used in network environments where a proxy server or load bala

Published on: 4/8/2023, 10:12:46 AM - Reading time: 2 minutes

Docker for Mac 98% faster with VirtIOfs

If you are a developer who uses Docker Desktop on your Mac, you might have noticed that it can be quite slow when it comes to file sharing between the host and the guest operating systems. This can affect the performance and responsiveness of your applications, especially if they rely on a lot of disk IO operations. Fortunately, there is a new feature that can significantly improve the file sharing speed and make your development experience much smoother: VirtIOfs. VirtIOfs is a virtualization

Published on: 3/11/2023, 11:32:20 AM - Reading time: 2 minutes

ChatGPT "kinda" integrates itself with Alfred App on MacOS

Alfred is a popular productivity app for macOS that allows you to launch apps, search for files, and automate tasks using custom workflows. If you would like to integrate OpenAI's GPT-3 based ChatGPT with Alfred, you can do so by building a custom workflow in Alfred. Here's a step-by-step guide on how to integrate ChatGPT with Alfred, written by ChatGPT itself: 1. Install the Alfred app on your Mac if you haven't already. 2. Create a new workflow in Alfred by clicking on the "Workflows" t

Published on: 2/11/2023, 12:37:40 PM - Reading time: 2 minutes

Docker build caching in GitLab

As a software developer, you’re probably familiar with the time it takes to build a Docker image, especially if your application is complex and requires many dependencies. But did you know that you can speed up your builds by using caching strategies? In this article, we’ll explore the different ways to optimize your Docker builds in GitLab, by using the BUILDKIT_INLINE_CACHE, tagging with both latest and sha_commit, and using the docker-compose cache from option. BUILDKIT_INLINE_CACHE Th

Published on: 1/14/2023, 1:14:04 PM - Reading time: 1 minute

Databases on NFS shares

Last week I was trying to deploy a MariaDB container to my home lab which has to use TrueNAS share as persistent storage. I'm currenly using NFS storage for my homelab docker cluster. I wasn't working right, due to some Lock errors. So I found out that running a Sqlite db or really anything which requires files lock over NFS keep is really buggy when managed remotely via rpc.statd and rpc.lockd. You can however opt for local locks, if the share is mount only by one user/server. To enable loca

Published on: 12/10/2022, 10:22:38 AM - Reading time: 1 minute

Kubernetes state and metrics monitoring

When moving your workload from some VMs to a Kubernetes cluster you may find yourself losing grasp on what's happening, it happens to all of us. However K8S has some great ways to make sure you are on top of your cluster status, you just have to make sure you setup them right. metrics-server Gets resource metrics from Kubelets and exposes them through the Kubernetes Api Server via Metrics API, think at them as: * CPU * memory * network usage Used primarly for horizontal and vertical auto

Published on: 11/13/2022, 1:51:38 PM - Reading time: 0 minute

Postgres, where and null

Some days ago I was working on a project which uses Postgres as DBMS. Postgres is great, but it has some significant differences if you are used to MySql. I learned one of them the hard way. While doing a simple select query I was looking for tuples which were where x != 42 trying to extract all of them regardless of x being some number or null. That didn't work as I expected. In Postgres if you select something via where x != 42 it will not extract tuples where x is null. So, if you are doin

Published on: 10/8/2022, 8:05:00 AM - Reading time: 0 minute

OpenSSH ssh-dsa and ssh-rsa

OpenSSH 8.8 is deprecating ssh-rsa and ssh-dss as key types. In the SSH protocol, the "ssh-rsa" signature scheme uses the SHA-1 hash algorithm in conjunction with the RSA public key algorithm. It is now possible to perform chosen-prefix attacks against the SHA-1 algorithm for less than USD$50K. [https://www.openssh.com/txt/release-8.7] So you will get this error: no matching host key type found. Their offer: ssh-rsa,ssh-dss You can add those algorithms back, with: HostKeyAlgorithms +ssh-