Categories
Tech

Translate Text in Sphinx Templates and Configurations

Weeks ago when I was playing around with the docs of EFB and the Crowdin translation widget, I realized that the default theme for Sphinx — Alabaster isn’t really doing well in term of translation. It seems like the author isn’t really confident on that (or simply didn’t care since 4 years ago).

As the theme itself is open source, and Sphinx is flexible enough, couldn’t we just translate it ourselves? It turns out that things are not that complicated.

Categories
Tech

How to Write Integration Tests for a Telegram Bot

This is my 6th article on Telegram, the IM platform of my preference. In this article I’m going to introduce about how I wrote the integration tests for my EFB Telegram Master channel — a Telegram interface for EFB, using a userbot-like strategy.

To get started, you need to have a bot ready to be tested, and a Telegram client app key that is registered with your account. While alternative tools are available, we will be using Telethon and PyTest in this article.

Categories
Designs

Telegram Chat Backgrounds/Patterns Extracted

Here is a collection of all extracted chat background/patterns came with Telegram in their original resolution, extracted from Telegram for Android 5.14.0. In Telegram, they are also sometimes called Wallpapers.

This consists of 39 photographs that are there since no long after first Telegram release, 7 patterns in PNG added sometime after that, and 33 patterns in SVG (vector) added recently in 2019. All patterns are monochrome — black drawings and transparent background.

Categories
Tech

Awesome Command Line Tools

This is a list of awesome command line tools collected by SelfhostedServer. They have provided a detailed article for each of the tools in their paid membership subscriptions. The list below is based on the list of article titles from SelfhostedServer which are freely available, and attached with a short description from each project.

If you are interested in reading more about these tools, I’d recommend you to subscribe to the articles on SelfhostedServer (in Chinese).

Categories
News 中文文章

我的第三国 J-1 豁免申请记录

Abstract
This article talked about how I applied for my J-1 waiver from a third country. As this article mainly involves concepts and organisations related to China, it is written in zh-CN.

Categories
Tech

An alternative way to prevent spammers entering Telegram Groups

Telegram is a growing platform of instant messaging which has gained great popularity in the past few years. With its openness and superior user-friendliness, it has attracted a lot of users, along with spammers.

Categories
Random

Note: U.S. Equivalency of Australian 3-year Bachelor degree for H-1B visa

While I was trying to look for if I am eligible for H-1B visa petition. I wasn’t able to find much information online on this matter, as most Australians would use E-3 visa to work in the U.S. instead of H-1B. Since I have found it out finally, I thought it’d be good to share it here as well, in case anyone else may also need it. TL;DR:

Categories
Tech

Message delivery issues in EFB Telegram Master channel (comparing to generic IM services)

Different from how usually an IM would work, EFB Telegram Master channel (ETM) strongly rely on Telegram Bot platform. This had made ETM more difficult to deal with messages failed to deliver.

This article is first published on ETM Wiki on 20 April, 2019.

Categories
Random

Fula spawnaw,
lu rì’ìrtut a wìntxu nìleyn
ronsrel mek letì’awpo nik.

信じたものは、都合のいい妄想を繰り返し映し出す鏡。
— cosMo@暴走P

Fula spawnaw,
lu rì’ìrtut a wìntxu nìleyn
ronsrel mek letì’awpo nik.

信じたものは、都合のいい妄想を繰り返し映し出す鏡。
— Sä’ip Hatsne Mìkuä / cosMo@暴走P
Categories
Tech

Custom sort order in music libraries: macOS and Android

Custom sort order in music libraries is a rather rare need. Most major languages use phonograms in their scripts, where the natural sort order is more or less identical to what is seen in Unicode (probably after some normalizations). On the other hand, languages using logograms (logosyllabic scripts, mainly Chinese characters in our context) does not have their characters sorted in their primary natural (usually phonetic) order in Unicode.
This causes a problem where a list of text sorted in Unicode code point order can be odd and difficult to look up from in these languages. Custom sort order in music libraries is thus useful when you have songs in one of these languages, or even a mix of them.

As this article involves mainly with concepts common among Chinese and Japanese language users, this article is also written in zh-hans and ja.
本文有中文版
この記事は日本語バージョンがあります。