While reviewing some AI-generated code, I came across this line: document.querySelectorAll<HTMLElement>('[data-menu-item-id]').forEach((button) => { The forEach callback accesses the button parameter's dataset attribute. To avoid TypeScript errors, the agent added a type assertion to the querySelector call. This introduces a dormant bug that will surface as soon as the CSS selector matches an element that isn't … Continue reading Leverage the System; Don’t Fight It
It’s all About that Data
Functional programming isn't about functions; it is about data. Have you ever heard someone say functional programming is all about working with functions? That's like saying woodworking is all about working with wood - Not really. It is about creating something that has a purpose. To achieve that, woodworking uses wood, and functional programming uses … Continue reading It’s all About that Data
Concerning Separation of Concerns
Back when we were first discovering the power of CSS, there was a simple rule of thumb: if you have to edit the markup to change the presentation, you are doing it wrong. Projects like the CSS Zen Garden were founded on this premise. But it was never quite that simple. On a tiny page, … Continue reading Concerning Separation of Concerns
Passwords aren’t enough
I remember when using an email and a password was all you needed to log in to any online account. Apparently, that is no longer the case. I learned this the hard way while trying to recover a secondary Instagram account. Passwords aren't enough Whenever I tried to log in to my primary account, I … Continue reading Passwords aren’t enough
Expanding a Logical Volume in Linux
I recently encountered an error in my local server when trying to import a database: ERROR 1005 (HY000) at line 11313: Can't create table kprod_db.languages (errno: 135 "No more room in record file" The important detail is "No more room in record file". In my case, this means my disk is full. But how can … Continue reading Expanding a Logical Volume in Linux
Stubborn Hidden Files in Mac OS
In Unix-based operating systems, filenames starting with a period (.) are hidden from file listings, both using the command line and in GUIs. This is true in mac OS too, but removing the period at the start of the filename may not produce the expected behavior, and the file may remain hidden. I came across … Continue reading Stubborn Hidden Files in Mac OS
Subdomain HTTPD Customizations in DirectAdmin
DirectAdmin makes it really easy to manage a web server. However, convenience comes with a price: You are limited to the options and capabilities DirectAdmin offers. A few days ago, I published a new tool. It is a tiny URL shortener/redirection service with destination editing capabilities. Once I had the first complete version, I rushed … Continue reading Subdomain HTTPD Customizations in DirectAdmin
Notes on DirectAdmin
DirectAdmin no longer uses default MySQL accounts In previous versions of DirectAdmin, when a DirectAdmin account was created, DirectAdmin would also add a default MySQL user with the same name as the DirectAdmin account. This user would be added to any database created by the account thereafter. This helped users log in to phpMyAdmin without … Continue reading Notes on DirectAdmin
Connecting to Host from Container – Podman + PASTA
Things have changed slightly since I first addressed this matter, so an update is in order. Podman v5 introduced PASTA as the new default network mode for rootless containers. Because of how pasta works, the containers can no longer reach the host using the host's IP. The container and the host share the same IP … Continue reading Connecting to Host from Container – Podman + PASTA
Code, don’t Encode
Simplicity in code is King. Every programmer goes through a phase where they want to write complicated code. I know this is a common practice among junior devs, and sometimes you find some more experienced programmers making the same mistake. I can’t speak for all of us, but I believe this idea of writing complicated … Continue reading Code, don’t Encode








