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 »

Exploring Singapore

2 August 2020

Last week I took a week off work to explore Singapore. It was an odd decision, as almost no one are taking leave these days. As I haven’t been on leave ever since Chinese New Year (back in January), I did really need a break from work. Besides that, it was a good excuse to travel around Singapore.

Ever since I come to Singapore in 2013, most of my earlier years has been confined in Pulau NTU. After I started working, I also don’t really like to go explore that much because these attractions are crowded especially on weekends. That is why this is the perfect time to explore Singapore since all the tourist attractions are empty as there are no tourists from overseas!

If I include the weekends, this means that I’m off from work for 9 days, and I did use them well: 4 days traveling and 3 days of resting 😊

Exploring Singapore 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 »

What is the default value of Chrome’s minimum font size?

Background

One fine day at work, I took up a task which involves reducing the font size of a text from the current 12px to 9px. From my experience, this won’t turn up well in some versions of Chrome, as Chrome imposes some minimum font size, when the browser is set to a specific language. This minimum font size restriction, apparently, is controllable at the browser settings (ref 1, ref 2).

Question

I would go and raise this issue to the designer and product manager, but one question popped up:

What is the default value of this minimum font size setting?

What is the default value of Chrome’s minimum font size? Read More »