coding

[Kube][Commands]

[Kube][Commands]

Import the GPG public key of the Alibaba Cloud image curl -fsSL https://mirrors.aliyun.com/kubernetes/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/kubernetes-archive-keyring.gpg sudo apt-get update Check /etc/apt/sources.list.d/kubernetes.list configuration sudo rm -f /etc/apt/sources.list.d/kubernetes.list echo "deb [signed-by=/usr/share/keyrings/kubernetes-archive-keyring.gpg] https://mirrors.aliyun.com/kubernetes/apt/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list Update and install Kubernetes sudo apt-get update sudo apt-get install -y kubelet kubeadm kubectl Confirm whether the installation is successful kubelet --version kubeadm version kubectl version --client Disable Swap (if not disabled) sudo swapoff -a sudo sed -i '/swap/d' /etc/fstab Initialize the Kubernetes cluster. Run the following command to initialize the Kubernetes master node: sudo kubeadm init --pod-network-cidr=192.168.0.0/16 Set up kubectl…
Read More
Como eu reduzi em até 99% o tempo de resposta da minha API

Como eu reduzi em até 99% o tempo de resposta da minha API

ORM's são uma ferramenta poderosa, mas ao mesmo tempo que facilita nossa vida, também torna um pouco obscura a resolução de problemas se você não tiver experiência com os recursos que são oferecidos. Vou resumir como a funcionalidade de Lazy Loading do JPA + Hibernate e implementar HATEOAS reduziu em até 99% o tempo de resposta de um sistema em produção. Inexperiência Esse projeto foi feito no início da minha jornada com Java, onde pude aplicar o pouco conhecimento que eu havia adquirido em um projeto real, com pressão real e expectativas reais. Como era minha primeira experiência, fui aprendendo…
Read More
Learning Parent and Child Shells in Bash Scripts

Learning Parent and Child Shells in Bash Scripts

When writing Bash scripts, you may encounter unexpected behaviors caused by the concept of parent shells and child shells. For instance, variables might not update as expected, or process IDs might not align. To understand and solve these issues, $BASHPID is a handy tool for visualizing process relationships. This article explores how to use $BASHPID to understand the relationship between parent and child shells, while diving into the inner workings of Bash scripts. 1. What is $BASHPID? $BASHPID is a special variable that represents the process ID of the current Bash process. It lets you identify which process is running…
Read More
New Orleans Writers Workshop Recap | Surprise!, Or How To Get Started (01/28/2023)

New Orleans Writers Workshop Recap | Surprise!, Or How To Get Started (01/28/2023)

I want to share the activities of a poetry workshop, New Orleans Writers Workshop titled Surprise!, or How To Get Started , I participated in last year. As I perfect my writing craft, I enjoy exploring and learning different mediums of self-expression. At the of age nine, and greatly influenced by hip hop emcees, I became mesmerize by shaping words into images in rhythmic form. However, as an uneducated youth of hip hop culture, I was unaware that rap is poetry to a beat. But, as I matured, I learned to love poetry and what it has to offer the…
Read More
The 10 Top-Rated Talks at NODES 2024

The 10 Top-Rated Talks at NODES 2024

We did it! A huge thank you to everyone who turned NODES 2024 into such a great conference, especially our passionate speakers, supportive community partners, and the dedicated team behind the scenes. Thousands of you joined us for 24 hours of graph-packed learning and coding, with over 140 unique technical talks spanning topics, time zones, and skill levels. Before we get to the top 10, here are four talks you’ll want to check out. Our keynote speaker, Ben Lorica, host of the popular podcast The Data Exchange, shared valuable insights from a year of conversations with AI leaders. The Trends…
Read More
Security news weekly round-up – 22nd November 2024

Security news weekly round-up – 22nd November 2024

Introduction Welcome, and I hope that you're all doing well. This week's review will be a short one because we have just 3 articles to cover. Why? They are the ones worthy of making it after careful consideration. The articles are about scam and malware. Although we're not immune from these two threats, education and awareness keep us one step ahead of threat actors (TAs). Let's begin. If your mobile carrier labels a call as "Scam Likely", it's best to heed the warning and ignore the number. So many have lost money from picking up such calls and, to make…
Read More
Burnout to Breakthrough: Rediscovering My Passion in Tech and Writing

Burnout to Breakthrough: Rediscovering My Passion in Tech and Writing

The past few months have been challenging. Every task felt daunting. Thinking about them alone drains my body and mind. I kept wondering, what was wrong with me? Am I sick? but got no answers. I felt exhausted mentally, emotionally, and physically. The tasks I used to sweep through felt like roadblocks. Am I getting depressed? I always asked myself. I was supposedly okay. I kept going, and sooner than I expected, I was caught up in the dark web of the non-medical condition that grazes the most passionate individuals; burnout. Burnout consumed me because I didn’t spot the signs…
Read More
How I Built a Custom Smart Lighting Dashboard and Solved Unexpected API Issues

How I Built a Custom Smart Lighting Dashboard and Solved Unexpected API Issues

As someone passionate about home automation and web development, I recently decided to tackle an interesting project: building a custom smart lighting dashboard for my website. My goal was to allow users to control their home lighting system directly from a simple web interface. The dashboard would integrate with third-party smart lighting APIs and offer users features like dimming, scheduling, and even replacing broken components with ease. Little did I know, this project would introduce me to a world of unexpected API conflicts, theme compatibility issues, and the challenges of managing user input for multiple device types. Here’s a walkthrough…
Read More
Transform Your Note-Taking: How Readwise and Obsidian Enhance Memory and Learning

Transform Your Note-Taking: How Readwise and Obsidian Enhance Memory and Learning

If you’re anything like me, Obsidian is your go-to for organising all your notes and ideas (I love LogSeq too, but I chose Obsidian this time).It’s powerful, flexible and keeps everything in one place. But let’s face it — sometimes you come across valuable information in different sources, like PDFs, websites or articles, and you don’t want to go through the hassle of copying and pasting entire files or web pages into Obsidian, or having them in a completely separate place like your bookmark in your browser. That’s where Readwise comes in. With Readwise, capturing information is as easy as clicking a button, whether you’re reading…
Read More
Dev Log #15 – Collisions

Dev Log #15 – Collisions

Today I kept working on my gamified portfolio site with Phaser.js. Progress I've started creating Scenes for the buildings' interiors. One challenge that immediately became apparent was how to make the player aware that they were close to the exit and could action it to leave the building. I've opted for creating an invisible rectangle and using tweens to animate the player's sprite color as a signal. It's neat and I can reuse the code for all buildings. Whereas previously I was using one unique tile for the Game scene's terrain, I've now randomised to create a more organic-looking landscape.…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.