Get a Boost Mobile SIM, it's the T-Mobile variant with carrier name "BSTM", it's "Boost T-Mobile" or "BooSTMobile"? To add more frustration, the exact same SIM shows "Boost" on iPhone.

I usually don't care much about carrier name displayed but they should really come up with something at least better than this BS™.

Read more »

Stumble across this bug when try to move some old code from jQuery to vanilla JS.

To response "Done" button in text input:

1
2
3
4
document.querySelector('#queryInput').addEventListener('keydown', e => { 
if (e.code == 'Enter')
doQuery();
});

Old code with e.which == 13 works fine, as e.which property is depreciated, I tried to use e.code. This works everywhere except Android Chrome.

KeyboardEvent

To identify a keypress with KeyboardEvent, we have:

Read more »

This is for Kiwi Browser on Android, other browsers with user js support might also work.

Below script sets phone to proper full screen mode(hopefully) for video, assuming the phone is in locked portrait mode: portrait for portrait video and landscape for landscape video.

Update on 3/23/2024:

Recent Youtube videos don't go landscape when fullscreen. The problem is on Youtube side -- both stock Chrome 122 and kiwi 124 fails -- as videos don't rotate to landscape automatically, and Youtube WAS one of the few sites that actually take this into consideration and got landscape full screen before recent change.

The script also take care of Youtube.

Read more »

Logitech's OMM(onboard memory manager) is originally designed for pro-gamer, but many use it as a replacement for G-HUB. The OMM itself is fully portable: one single file, don't write anything to system, don't run in background and can be fully unloaded once finishing setup -- exactly what a software should be.

However there is a bug in OMM as it can't set media keys -- volume adjust, mute, pause... -- properly. There're some reports(1. 2.) on reddit but only got useless canned response from Logitech. A walkaround is to use G-HUB to set the media keys and OMM for the rest, but it's annoying.

Update: there is a new version 2.0.1639 released on 9/5/23, different interface same bug. The article is based on an old version but applies to both.

Read more »

Just deployed hexo on github pages. Never used hexo before and one thing annoying me is the images in markdown.

On typora I have following settings:

typora-image

This works well as typora will copy images to the relative path...and of coz it's not working with hexo.

Read more »
0%