Sign up

Karn Wong

Not verified No WebSub updates No webmention support Not yet validated

Homepage and blog by Karn Wong

Generator
Zola
Public lists
I ♥ RSS
Fetched

Karn Wong
• Unknown

CPU upgrade is a breeze, only if you know how

I want to update my pc config to use a more powerful cpu (from Ryzen 1300x --> Ryzen 3600). Watched a few videos and it didn't look complicated enough, so I order the new CPU and plan to install it myself. Things didn't go exactly to plan. To sum up relevant things I didn...

Karn Wong
• Unknown

There are caveats behind every statement

You may have come across news headlines with something like "woman diagnoses herself with rare disease."

If you take this statement at face value, you might think "hmmm so this woman, out of the blue, just diagnose herself with a rare disease."

What most people don't often realize is that for a rare disease to be considered, she must have gone through many different doctors who diagnosed her with various diseases, but she feels that neither of them accurately describe her symptoms. She might do some research, and came across a rare disease that perfectly describe her symptoms.

A more accurate (but more verbose) headline would be "doctors failed to accurately diagnose woman with rare disease".

Takeaway? Think twice before taking anything at face value.

Karn Wong
• Unknown

Visualizing map region prefix/suffix

import geopandas as gpd import geoplot as gplt import matplotlib.pyplot as plt import numpy as np import pandas as pd from geoplot import polyplot from pythainlp.tokenize import syllable_tokenize, word_tokenize Data structure name: target region name geometry: spatial col...

Karn Wong
• Unknown

Impute pipelines

Imagine having a dataset that you need to use for training a prediction model, but some of the features are missing. The good news is you don't need to throw some data away, just have to impute them. Below are steps you can take in order to create an imputation pipeline. fro...

Karn Wong
• Unknown

Word-based analysis with song lyrics

2023 version: https://github.com/kahnwong/lyrics-analysis I listen to a lot of music, mostly symphonic heavy metal. What's interesting is that in this genre, each album often has different themes, also each band focus on different topics in terms of lyrics. For instance, Ni...

Karn Wong
• Unknown

ความน่าปวดหัวของการถอดอักษรไทยเป็นตัวโรมัน

*ตัวโรมัน = a b c d e f g ... วันดีคืนดีชาวต่างชาติอยากมาเมืองไทย แต่จะมาเพราะอะไรนี่ก็ไม่ขอยุ่ง ไม่ได้สู่รู้เบอร์นั้น อนุมานว่ามาจากแถบยุโรป อเมริกาอะไรเทือกนี้ก็น่าจะเครื่องลงที่สุวรรณภูมิ ปัญหาที่จะเจออย่างแรกเลยก็คือ ชื่อป้ายชื่ออะไรไม่ได้ออกเสียงเหมือนที่ตัวโรมันเขียนไว...

Karn Wong
• Unknown

Loanwords are okay

Does it matter if you language has a lot of loanwords? To be considered a loan, it has to be of foreign origin, and speakers from the borrowing end can understand and use in various contexts. It's perfectly okay for the meaning to shift on the borrowing end, as semantic shif...

Karn Wong
• Unknown

Indic name mistransliteration in Thai version of Harry Potter

I read Harry Potter as a kid, and I couldn't shake the feeling that one character's name is a bit off. I couldn't quite pinpoint exactly why. Turns out, my hunch was right – the Thai translator used the wrong transliteration. In Thai, "Parvati Patil" is "ปาราวตี พาติล." This...

Karn Wong
• Unknown

Definition of 'a Word'

You often hear people say "you need to know x words in y language to be able to understand basic conversations.". This is a bit misleading, since the definition of "word" is varied. For example, in Chinese (yes, I know, Chinese as a language doesn't exist, but I digress) one...

Karn Wong
• Unknown

Resettled refugees in Sweden

One of my friends is a Syrian refugee, who was granted asylum in Sweden last year. I also want to try data analysis, so it fits that I should analyze something that's relevant to my friend. This is my first ever analysis in pandas, apologies for code abomination in advance. ...

Karn Wong
• Unknown

How angur became องุ่น

More often than not, Thai loanwords are of Indic, Khmer, English or Chinese origin. Although loans from other languages do exist. For instance, องุ่น (grape). This word is of Persian origin (read: Iran), which is انگور, literally angur. In Thai it's angun. Notice that it's n...

Karn Wong
• Unknown

The confusing case of Thai romanization system

You decided to visit Thailand for whatever reason I don't want to know. (It's not my business.) Assuming you're in from outside of Asia, you'll land at Suvarnabhumi Airport. The problem? The locals don't pronounce it that way. All the names and signs here are romanized using...