Categories
Tech 中文文章 日本語記事

Custom sort order in music libraries: macOS and Android (en, zh-hans, ja)

在 macOS 和 Android 平台实现音乐库中的自定义排序
macOS と 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.
本文末尾附有中文版。
この記事の最後には日本語バージョンがあります。

Categories
Tech

RWG: an Experiment on Semi-Automated AI (?) Agent for Genkai Shiritori Mobile

Few days ago, a new game, Genkai Shiritori Mobile (GSM), was released by Baton Co., Ltd. and a web media and YouTubers team QuizKnock. Shiritori is a traditional Japanese word game where each player says a new word that starts with the last letter (or rather kana) of the previous word. Genkai Shiritori is a game originated from QuizKnock where they added a few new rules on top of the simple Shiritori game, including:

  • Including a random factor of playing cards: the next player must say a word with the number of kanas on the card drawn.
  • Time limit: each player has a total of 5 minutes of time per game

After the Genkai Shiritori video series has gain popularity on YouTube, QuizKnock then modified the rules further and made into a mobile game. This article is introducing my analysis, attempts and thoughts on building a semi-automated AI (?) agent, which I later named it as Random Word Generator.

Categories
Tech

Fixed Xposed’s incompatibility issue with LBE on my AOSP lollipop by flashing a SELinux Permissive Kernel.

Fixed Xposed’s incompatibility issue with LBE on my AOSP lollipop by flashing a SELinux Permissive Kernel, it also solved the issue where a “soft reboot” is required for activating Xposed framework.

My environment: Samsung Galaxy Note 3 with AOSP Lollipop (BlissRom), Xposed for Lollipop alpha, LBE security for lollipop.

Search keyword: SELinux permissive, LBE, Xposed, lollipop, 5.0, android, kernel, not activated, soft reboot, Android L.

Categories
Tech 中文文章

在其他启动器中使用小米系统的拨号和短信

a. 什么是小米系统

小米系统是MIUI团队开发的一个独立APK应用。集成了小米桌面+锁屏+短信+联系人+拨号功能。现在正在处于封测阶段,每个激活码只能使用一次,且仅通过QQ群发放给内测用户。

b. 适用范围

希望使用其他启动器的小米系统内测人员。

c. 方法

我们使用的工具是 Activity Launcher (Play 市场链接)。这款应用可以在桌面添加Android各种应用的Activity的快捷方式。(什么是Activity?)小米系统里面联系人、短信、拨号的Activity都可以在里面找到。
(由于我刚刚把小米系统卸载掉了,所以在此就不上截图了)

  1. 进入 Activity Launcher,在上面的菜单选All Activities。
  2. 读取完毕后从下面的应用里表里展开小米系统
  3. 找到拨号、短信、联系人的Activity。(由于Activity较多,需要多试几个)
  4. 长按,并选择Create Shortcut。
  5. Voila。启动器上面就显示创建好的快捷方式了。