Posts

UTF8 to Shift_JIS in Javascript

Background The TextEncoder() in js does not support Shift_JIS , which means you may need to find some alternative ways to turn UTF-8 Japanese/Kana character into Shift_JIS encoding format for further handling in your use-case (such as FeliCa chip personalisation).  To verify whether a pair of hex values is in SJIS format - use this site . [1]  Know more about Japanese Character Set See this presentation by MySQL. Half-width Katakana in UTF-8 In Unicode, half-width katakana, which is called as hankaku (半角), is represented from position U+FF61 to U+FF9F .         0 1 2 3 4 5 6 7 8 9 A B C D E F FF60 。 「 」 、 ・ ヲ ァ ィ ゥ ェ ォ ャ ュ ョ ッ FF70 ー ア イ ウ エ オ カ キ ク ケ コ サ シ ス セ ソ FF80 タ チ ツ テ ト ナ ニ ヌ ネ ノ ハ ヒ フ ヘ ホ マ FF90 ミ ム メ モ ヤ ユ ヨ ラ リ ル レ ロ ワ ン ゙ ゚       Read this article to learn more . Existing library encoding.js If you cannot use external library for any reason Implement yours...

Useful free/opensource productivity software

Image
Here is a list of my suggested free productivity software that I am using it daily for my work. Most of them are free or opensource project. I will keep this list updated from time to time.   Screenshot + Editor [Portable | Freemium]   PicPick - https://picpick.app/en   Windows Photos replacement / Photo Viewer [Portable | Open Source]    ImageGlass - https://imageglass.org  

Mifare UID Decimal formats

Example: Sector 0 Block 0 Data: 80 CD E6 D6 7D 88 04 00 88 98 00 20 00 00 00 F8 Single size UID (4-byte) UID "in order" (Big Endian): 80 CD E6 D6 UID "in reverse bytes order" (Little Endian/Intel): D6 E6 CD 80 Decimal: 3605450112     References:  https://www.starnfc.com/mifare-1k-uid-number-format  https://www.mifare.net/support/forum/topic/mifare-uid-number

Outdoor / camping shops in HK

View on Google Maps  

Ways to test port connections & ports occupied by Windows services

Image
Test Port Connection Powershell Host Port Test-NetConnection  localhost -Port 9010       - OR - New-Object System.Net.Sockets.TcpClient(" localhost ", 80 )   Find out the port occupied by which application / service   1. Find out the process ID Netstat -aon | findstr [port]   2. Find the application name by PID Tasklist | findstr [pid]

(Low cost / No Cost) Hario Skerton burr wobble fix / mod

Image
 Photo from Reddit Post   Before modification, Skerton gives an inconsistent grind size and people may look for more expensive grinder for espresso. Long story short, here is the quick fix with low cost / no cost: The inconsistent is caused by the burr wobble - so we need to fix the shaft to make sure the bottom burr stays in position at all time.    All you need is a straw / paper straw as spacer.    Result:  

Visual Studio Code Docker Extension Error-- "Error: Process 'docker context ls --format="{{json .}}"' exited with code 1"

Image
  Fix for Error: Process 'docker context ls --format="{{json .}}"' exited with code 1     The problem was a corrupt meta.json file, (full of null´s inside the file). Quit Desktop Docker Delete %userprofile%.docker Open Docker Destop Problem fixed!   Source

Python Virtual Env - VS Code - .venv Terminal "Activate.ps1 cannot be loaded"

 This is caused by execution policy of PowerShell. We can fix it by adding "-ExecutionPolicy Bypass" in settings.json. Ctrl + Shift + P > type settings.json > Add the below lines "terminal.integrated.profiles.windows" : { "PowerShell" : { "source" : "PowerShell" , "icon" : "terminal-powershell" , "args" : [ "-ExecutionPolicy" , "Bypass" ] } }, "terminal.integrated.defaultProfile.windows" : "PowerShell" , Restart VS Code     https://stackoverflow.com/questions/56199111/visual-studio-code-cmd-error-cannot-be-loaded-because-running-scripts-is-disabl/67420296#67420296 

Luminar4 for FREE 限時免費

Image
https://skylum.com/hans/chip-luminar4  

"is not usable for indexed lookups due to unsupported collating sort order SortOrder"

Image
When using some sort of software or you are working on some projects with Microsoft Access, this error may occurs because of the known limitation of Jackcess library. Workaround:  Change the "New database sort order" to "General" (or "General - Legacy"). Reference: https://stackoverflow.com/questions/27893630/unsupported-collating-sort-order-error-updating-access-database-from-java https://stackoverflow.com/questions/31948096/how-to-change-sortorder-to-avoid-unsupported-collating-sort-order-error/31972659#31972659

Unboxing 開箱 | Fire-Maple 火楓 烈風 戶外卡式爐頭

Image
Fire-Maple Outdoor Butane Gas Cassette Stove     秋風起,到行山露營季節發現寒風下欠缺戶外煮食爐具,苦惱於SOTO ST-310及Kovea類似卡式石油氣爐頭之間突然見到火楓有新型號推出,功能火力及價錢上甚是討好,姑且 賭命 一試。       此爐不算輕,廠方數字336.9g [1],實測346g / 419g (連盒)。看中的是其防風功能及結構穩固,爐身不鏽鋼工藝尚可,雖不及日韓牌子但仍可接受,算是對價錢有個交代吧。               電子打火及接頭正常發揮,火力亦算穩定,戶外表現有待測試...    試爐片   後記: 發現香港有賣KOVEA卡式樽爐,而且 價錢相宜 。   [1] http://www.firemaple.cn/productinfo/1290809.html