Learning to Declutter and Clear Your Mind

I’m a mental hoarder. If you were to look inside my head, you would find all types of mental clutter. Boxes labeled “random shower thoughts”, trashcans full of personal bullshit, and a closet overflowing with reminders, ideas and useless information. This creates a negative impact on my ability to recall and recollect. I often find myself in this awkward situation where this was something I know I took a mental note of, but I just can’t remember what it was.

I Want to Do Everything so I Do Nothing

One of the most challenging areas of self discipline in life is time management. I often find myself in situations where I do not have enough time to complete all the things that I want to do. And it’s not because I am procrastinating; the second I get home from work I jump right into some new side project or video. The problem is that there are simply too many things that I want to do right now, and learning the personal discipline to say no to myself is challenging.

Scrape Google Search Using Puppeteer

For my side project, I needed to scrape Google search using a headless browser. I ended up using the Nodejs library called puppeteer. It’s a headless browser that uses chromium. Install puppeteer npm install puppeteer Scrape Google Search using Puppeteer First, let’s go to the google homepage, type something in, and click the search button. try { (async () => { const browser = await puppeteer.launch(); const page = await browser.

Complacency After College

Up until graduation day, everything made sense. I’ll go to class, get good grades, then land a decent paying job so that I can move out of my parents and “start my life”. Amazingly, all of that happened fresh out of college at 22 years old. Back then, a couple of my peers have told me, “Damn dude, you’re living the dream.” In reality, I felt like I was far from it.

Install Hyperledger Fabric on Kubernetes

I recently had the “amazing 🙄” opportunity to spend two weeks figuring out how to install hyperledger fabric on Kubernetes. There aren’t many guides on the internet besides this one. Unfortunately, I found it to be very vague and missing some keys steps. For this tutorial, let’s go step-by-step on how to install hyperledger on kubernetes. We are going to use some information from the guide linked above, along with some stuff my team and I were able to figure out along the way.

Getting Too Absorbed in Your Side Projects

When I start working on a side project, I fall into a really bad habit of getting too absorbed in it. The second I get home from work, I will start coding and testing for hours until I have to force myself to go to bed with only six hours of sleep at best. All the while, my laundry starts to pile up, my kitchen doesn’t get cleaned, and my social contacts get neglected from any meaningful conversation.

Why I Switched From WordPress to Hugo

WordPress isn’t awful. In fact, I recommend WordPress to everyone who wants to start a blog. Despite this, I switched from WordPress to Hugo a couple of weeks ago. The real reason came down to cost and simplicity. Cost Running a WordPress blog meant that I needed a good shared hosting environment with a MySQL server and PHP execution. I first tried Hostgator, and it was sufficient enough while my blog had less than a hundred of visitors per month.

Happiness and Anticipation

I am beginning to see the relationship between happiness, anticipation and dopamine. Dopamine is a neurotransmitter that is responsible for reward-driven behavior and pleasure seeking. (Psychology Today). When we get a hit of dopamine, we feel good! Anticipation is the simple act of looking forward; usually to a pleasurable experience but it could also be negative. In my previous post about Proven Ways to be Happy Again, I mentioned this thing called hedonic adaptation.

Scientifically Proven Ways to Be Happy Again

During the winter holidays (peek depression season), I took a free online course called The Science of Well-Being offered by Yale University. It was actually recommended in a HackerNews comment that I came across in a thread about different MOOC (Massive Online Open Courses) to take. Other than my obsession with self help porn, I took this course because I wanted to learn on how to be happy again with life.

Read System Environment Variables in Angular

A few weeks back I was working on a project where I needed to read system environment in Angular 7 from a Docker container before it builds. After days of searching, I came across a solution from multiple sources on the internet. Keep one thing in mind, you will only be able to inject environment variables before your Angular app builds. Unlike Nodejs, you will not get real time access because you are running in an browser environment.