Notes

Stolen Focus on Phone Apps

Recently I finished a book called Stolen Focus: Why You Can’t Pay Attention – and How to Think Deeply Again. With it, I realized that a lof of our time spent on screen are designed to be distracted away by something else and it’s really hard to focus on 1 stuff at a time. At any moment, if you don’t take effort, you will be swarmed by notifications, badges, cravings for rewards, fear of missing out, and many more tricks. The author postulates that this is what makes us, collectively, have lower focus than what we used to have in the past, i.e. focus being stolen away from us.

Stolen Focus on Phone Apps Read More »

Setting Up Git SSH Key on Windows

I recently bought a new laptop and went through the hassle of setting up Git SSH key again. There are many guides somewhere on the Internet but it’s all over different places and they tell you to do different things with different outcomes. Also, the guide from GitHub is less than ideal as it requires using “Git Bash” which I do not like. So I’m writing things down for my future reference.

Setting Up Git SSH Key on Windows Read More »

Been Rusting in a Ruble

In the past 3 years, I’ve been learning Rust in Decembers for Advent of Code, and each time, I learned something new.

In the most recent Advent of Code (2019), I did not finish all the challenges, but I enjoyed it a lot! My early decision to modularize some repetitive function really paid off in the later puzzles.

The most important concept of Rust language is borrowing. After things have been borrowed, it must be returned. As simple as this concept is, there may be lots of times one get frustrated by the compile errors of the Rust compiler. Oh, Rust compiler is so strict that Rust beginners will be very relieved if their codes compiles!

Been Rusting in a Ruble Read More »

Play and Pause on BBC Sounds from Bluetooth Headset

I love BBC Radio 1 and I listen to it on the BBC Sounds website. But I noticed something weird. This web player is able to respond to my play/pause command from my Bluetooth headset!

This is quite weird, since not even popular websites like YouTube supported this kind of controls from a Bluetooth headset.

So I started researching.

Play and Pause on BBC Sounds from Bluetooth Headset Read More »