Writing Better React Code: A Guide to Clean, Efficient Practices
As React continues to evolve, it is essential for developers to stay updated with best practices that enhance code readability, maintainability, and performance. This guide outlines the key practices to follow in 2024 for writing cleaner and more efficient React applications, including the latest changes introduced in React 19. 1. Use Functional Components and Hooks…
CSS Flexbox: Building a Pricing Table
Introduction: CSS Flexbox is a powerful tool for web developers to create flexible and responsive layouts. One of the most common use cases of Flexbox is building a pricing table, which is a key element in many websites. In this article, we will discuss the advantages and disadvantages of using CSS Flexbox for building a…
Ten tips from 40-year-old DBAs for younger DBAs
As an experienced 40-year-old Database Administrator (DBA), here are ten pieces of advice I would like to offer to young DBAs: Continuously Learn and Stay Up-to-date with Technological Trends: Database technology is constantly evolving, with new database systems, management tools, and security best practices emerging all the time. Maintaining curiosity and continuously learning new knowledge…
Discovering Computer Science: My Path Through CS50x with Projectstake Academy
Charting New Waters Every great adventure begins with a step into the unknown. For me, that step was joining Projectstake Academy’s CS50x program—a journey that transformed how I perceive the world of technology and software development. I got to know about Projectstake Academy from a friend who shared his experiences and testimonies with me. The…
AvgPool1d() in PyTorch
Buy Me a Coffee☕ *Memos: My post explains Pooling Layer. My post explains MaxPool1d(). My post explains MaxPool2d(). My post explains MaxPool3d(). My post explains requires_grad. AvgPool1d() can get the 2D or 3D tensor of the one or more values computed by 1D average pooling from the 2D or 3D tensor of one or more…
Pooling AMQP TLS connections in Elixir for high throughput and low latency
In the fast-paced, data-driven world of computing, reliable message brokers are critical for communication between services. One of the most widely adopted protocols in this domain is the Advanced Message Queuing Protocol (AMQP). As an open standard, AMQP has seen large-scale adoption across industries for its reliability, flexibility, and ability to handle both transactional and…
How do DBAs get promoted in the workplace
As a Database Administrator (DBA), achieving career advancement typically necessitates a holistic approach that encompasses technical proficiency, management skills, business acumen, and more. Here are some specific strategies and steps to help you: ** Deepen Technical Expertise** Master Multiple Database Technologies: Ensure a profound understanding of various database management systems (such as Oracle, SQLynx, MySQL,…
How AI is Becoming Your Best Friend (and Secret Weapon) as a Web Developer
In the world of web development, there’s always something trying to make our lives easier (or harder, depending on the bug). Enter AI, the new kid on the block who’s here not only to help but also to take your productivity to superhero levels. Whether you’re designing sleek interfaces, managing endless lines of code, or…
Building Scalable SaaS Solutions with Spring Boot
Building Scalable SaaS Solutions with Spring Boot In today’s dynamic software landscape, multi-tenancy has emerged as a critical architectural pattern for building Software-as-a-Service (SaaS) applications. This approach enables a single instance of an application to serve multiple independent groups of users, known as “tenants,” while ensuring data isolation, security, and scalability. Spring Boot, renowned for…
XRPL: Console log the ledger index
Tools needed: Node.js NPM VS Code Create a new repository, initialize NPM, and install the XRPL.js package: mkdir helloWorld cd helloWorld npm init npm i xrpl Create a new app.js file in the repository: touch app.js Open the file and paste this code into it: // Pull the XRPL package into the file const XRPL…
How to Resolve the Theme File Editor Missing Error in WordPress
The WordPress dashboard provides a crucial tool known as the Theme File Editor. This integrated feature allows users to directly modify theme files from within the dashboard, streamlining customization processes. However, it’s not uncommon for the Theme File Editor to suddenly disappear, which can cause confusion and frustration. Top 5 Solutions to Enable the Theme…
What does a senior DBA do all day
Data Integrity and Security Data Integrity: **DBAs are highly concerned with the accuracy and consistency of data, which serves as the foundation of database management. They ensure data integrity by implementing data integrity constraints, conducting data audits, and performing data validation. Data Security: Ensuring data security is another core focus for DBAs. This includes data…
Create a secure AWS RDS instance with CDK
TLDR; This is the GitHub package with the code. This is the class that has everything. You can consume it as an NPM module too. This is not comprehensive, and many things can be added to make it better. Background Building infrastructure is complicated. Building secure infrastructure is even more complicated. With the vast amount…
Top 7 Backend-as-a-Service (BaaS) for Next.js
When considering a Backend-as-a-Service (BaaS) for a Next.js application, several options stand out due to their features, ease of integration, and community support. Let’s explore the best BaaS providers suitable for Next.js development: 1. Firebase Firebase is a comprehensive BaaS platform developed by Google, known for its real-time database capabilities and robust authentication system. Features:…
How to install bootstrap 5 with Webpacker in a Ruby on Rails 6 application on Ubuntu
Open the terminal Solution Add bootstrap yarn add bootstrap Output The command yarn add bootstrap is used to add the Bootstrap framework to your project using Yarn, which is a package manager for JavaScript and front-end dependencies. Bootstrap is a popular open-source front-end framework that provides a collection of pre-designed HTML, CSS, and JavaScript components…
Jetmaker – open source framework for building distributed systems in Python
Project: Jetmaker It is a framework for Python developers to connect multiple distributed nodes into one single system, so distributed apps can access one another’s data and services. And it also provides tools to synchronize all the nodes just like how you do in multithreading and multiprocessing Github link: https://github.com/gavinwei121/Jetmaker Documentation: https://remeny-technologies.gitbook.io/jetmaker-documentation Please follow and…
Coding Just for Fun
When was the last time you worked on something just for fun? No deadlines, no expectations, no pressure. Just pure pleasure and curiosity, without worrying about the final result or what others will think. Without thinking about: Overengineering Best practices Clean code Hexagonal architecture Performance Scalability Business requirements User needs Productivity Coding for the sake…
Create Your Professional Resume Website with GitHub and Quarto
Why Use Quarto and GitHub Pages? Before we dive into the how-to, let’s understand why this combination is so powerful: Dual Format: You get both an HTML website and a PDF version of your resume. This means you have a professional online presence and a traditional document to share when needed. Easy Updates: Your resume…
Arithmetic with Uncertainty
from Playing with Uncertainty If you know the temperature in Fahrenheit, then it’s easy enough to convert it to Celsius: def f_to_c(f): “””Convert Fahrenheit to Celsius.“”” return (f – 32) * 5 / 9 So if it’s 68 degrees Fahrenheit, that’s the same as f_to_c(68) = 20 degrees Celsius. But what if we don’t know…
Box Model in CSS: The Ultimate Guide to Crafting Precise Layouts
Among Web design concepts, the Box Model is a basic knowledge area in CSS that very much concerns layout design. The Box Model explains the way elements placed on the page are laid and situated, which influences horizontality, and general coherence. Beyond outlining the background and border of the Box Model, this guide guides you…
Building Real-Time Applications with Socket.io
Introduction: Socket.io is a JavaScript library that allows real-time communication between web clients and servers. It enables the creation of interactive and dynamic applications such as chat rooms, multiplayer games, and live streaming. With its easy-to-use API and cross-platform compatibility, Socket.io has become a popular choice for building real-time applications. In this article, we will…
Quick tip: Build Vector Embeddings for Video via Python Notebook & OpenAI CLIP
Abstract As AI continues to impact many types of data processing, vector embeddings have also emerged as a powerful tool for video analysis. This article delves into some of the capabilities of AI in analysing video data. We’ll explore how vector embeddings, created using Python and OpenAI CLIP, can be used to interpret and analyse…
How I Created a Tool — Medium2Markdown
Recently, I faced a problem when I was creating my personal blog which was using Markdown for all my written content. Every blog was on Medium, and it was taking a lot of time to convert those blogs to Markdown files. Hence, I worked on this project. This application is a simple way to generate…
Git: Why Version Control is a Developer’s Best Friend
Version control systems are essential tools in software development, and Git is by far the most popular. It’s more than just a tool to keep track of code changes—Git helps teams collaborate, ensures your code is safe, and makes your workflow much smoother. Here’s why every developer should know Git. 1. Collaborating with Others When…
Canceling a Coroutine Simplified ❌
Just like making a function main safe, you are also responsible for making it cancelable. It won’t do it itself. In lifecycle dependent environment like Android, you should try to make each suspend function cancelable. Because any job can be cancelled at any time. Why is that important? Allow me to explain via an example,…
Avoid AWS Billing Surprises: Simplify Cloud FinOps
A few months ago, in our organisation, we encountered a situation where we saw an unexpected spike in our AWS bill at the end of the month. This prompted a thorough investigation, and we realized that we hadn’t accounted for a particular scenario at production scale, leading to an unexpected overspend. This experience initiated a…
How I lost prospects because of a Nextjs server action
Hey everyone! It has been a really long time! (4 YEARS OMG??) Since then i got my diploma, “ai” is taking over (🤡) and I moved to my parent’s attic 😂 I also started a completely new project and I’ve decided that I will find the time to share some learnings now and then from…
Hugging Face: Interacting with Roberta and Hugging Face for the first time
This is my first interaction with Hugging Face. The free and open Ai option Date: September 15, 2024 Prerequisites: I bought a 1T external SSD and created this tutorial using the external hard drive. I am using a windows computer. This is where the tutorial begins. Change directory to D drive $D: create directory on…
Handling Complex Multi Step Forms with Formik and Yup
Introduction: When creating forms on our own, we are tasked with managing our forms values, writing our custom event handlers for every input, handling error states manually and the worst part is creating verbose validation logic. This might be manageable for simple forms, but for more complex forms, it becomes imperative to use a form…
A Comprehensive Guide to Writing JSX in React (with Vite)
Day #18 of #100daysofMiva, I’ve been working on various React and Vite projects, both public and private. Today, I just want to write about jsx, it’s technicalities and what I’ve learnt so far. JSX (JavaScript XML) is a syntax extension used in React that allows developers to write HTML-like code within JavaScript. It’s a core…