We did a quick out and back to Buck Gulch Falls in Novato with the little ones.
What a great way to close out the year.
life, coding, technology, outdoors, photography
We did a quick out and back to Buck Gulch Falls in Novato with the little ones.
What a great way to close out the year.
I’ve wanted to play around with worker threads in Node JS, so I put together this little repository that demonstrates how it all works. Check it out here.
In order to simulate multiple threads that are each processing data, each worker thread uses a randomly generated timeout between 100 to 700 milliseconds. In addition, it has a random number of loops (between 10 and 1000) that must be completed before the worker is terminated.
It’s kind of fun to watch the tasks run and automatically complete inside the terminal (check out the screenshot of the output up top).
In 2008, I was fortunate enough to attend a talk and rally by Archbishop Desmond Tutu in support of Tibetan freedom at the United Nations Plaza in San Francisco. This rally was held ahead of the controversial 2008 Olympic torch relay that was making its way through San Francisco during the week.
—
Much later, I read “The Book of Joy”, a series of conversations between the Dalai Lama and Archbishop Desmond Tutu. In my opinion, it’s one of those rare and potentially life changing books. Two men, who have both faced many challenges, share how they managed to remain optimistic and hopeful despite the incredible challenges they’ve faced in their lives.
—
What a kind, beautiful soul and someone that we needed in our world today.
Recently, I’ve been digging into ways to better organize my notes, links, and other digital detritus. There’s a lot of it and it’s all over the place!
I stumbled upon a concept called the “second brain” after reading a discussion on Hacker News. Essentially, it’s a way to better organize your digital life, so that you can easily store (and look up) information.
Essentially, a second brain is a personal knowledge management system that serves as an extension of your mind so you don’t have to think as hard or remember as much. You offload thinking and remembering to your private second brain.
Like Sherlock Holmes’ “mind palace”, it’s a place to store all of your lingering thoughts and curate the information you consume on a daily basis from books, the Internet and other sources so that you don’t get overwhelmed with unnecessary info and take action with the knowledge that matters.
Sign me up!
One of the interesting tools that someone in the Hacker News thread mentioned was an app called Obsidian.
I’ve been playing around with it recently and am cautiously optimistic. It has apps for MacOS, iOS (…and other systems, if you’re of that persuasion).
Plus, no vendor lock in! It’s all Markdown files stored on your local devices (and using your preferred cloud storage service).
December is upon us! That means the latest edition of the Advent of Code is here.
The Advent of Code is essentially a daily programming challenge featuring a new problem each day through Christmas. The problems all relate to a certain theme. This year, it sounds like we’re going on an undersea adventure.
— Day 1: Sonar Sweep —
You’re minding your own business on a ship at sea when the overboard alarm goes off! You rush to see if you can help. Apparently, one of the Elves tripped and accidentally sent the sleigh keys flying into the ocean!
Before you know it, you’re inside a submarine the Elves keep ready for situations like this. It’s covered in Christmas lights (because of course it is), and it even has an experimental antenna that should be able to track the keys if you can boost its signal strength high enough; there’s a little meter that indicates the antenna’s signal strength by displaying 0-50 stars.
Your instincts tell you that in order to save Christmas, you’ll need to get all fifty stars by December 25th.
Collect stars by solving puzzles. Two puzzles will be made available on each day in the Advent calendar; the second puzzle is unlocked when you complete the first. Each puzzle grants one star. Good luck!
I’ll be partaking using my preferred language of choice: x86 assembly.
I kid, I kid. JavaScript.