In April 2019, I packed my bags and left Vietnam for a solo trip to teamLab exhibition in Japan, Tokyo. It was a chaotic and depressing time — a fresh grad with uncertain prospects, broken relationships and reputations. This seemed like a perfect psychedelic getaway without having to smoke weed.
In retrospect the four days in Tokyo turned out to be more than a fleeting smoke of a joint, but a bedrock experience to withstand the incoming mental breakdown and subsequent hardships, COVID, and more hardships.
29th April 2019 — excerpt from a journal
“People are remembered not for living…
At the new company I have been working on dealing with side effects of production environment, catching bugs and operation issues. Nearing the end of 3 month probation period, the team decided I could get on with a new feature that involved translating an existing python app to JS.
One of the things to be calculated was IRR, and there was this neat, dependecy-free library for JS. However I did not need to use all the functions, so I looked into the source code and extracted the IRR function.
Upon QA, we found there was a large gap between Python…
Where is my home? What makes a home? Where are people’s homes displaced by poverty, multiple/fragmented identities, and why do some houses don’t feel homely?
These questions have beleaguered my mind for the past two years leaving multiple homes — people I’ve called home, place and time I called home for a while but realized they weren’t homes after studying architecture and design. The start of this realization was at a simple introductory level architecture course examining Pritzker Prizer award winners in the final semester of university in Hong Kong.
Four ideas from the class and extracurriculars were of particular…
If you have installed network-cmds with http://apt.saurik.com repo on Cydia, you will get Bad CPU error because it’s only built for 32 bit, iOS 12+.
To get network-cmds working on iOS 11, go to https://ios-repo-updates.com/repository/bingner-elucubratus/package/network-cmds/, add the given repository, and go into Networks folder of the repo or search for network-cmds. It was added in 2019, so there were no references to this on any recent forums.
The repo has a lot of low-level networking packages which I haven’t dug into but maybe useful for people looking to exploit networking on iOS.
This is a personal development note and review for writing Node with Stripe API and Firebase for a React Native application. Key takeaways and learning points are:
One method of cracking Vigenere cipher without knowing the keyword or length of keyword is Kasiski’s method. The goal of Kasiski’s method is to find the length of keyword, and after finding the length of keyword one can use Chi-square(χ2) method to find the keyword (to be discussed in the next part).
Kasiski method looks for patterns and repeated strings, and identifies mathematical relations within the cipher text, such as distance between repeated letters, to derive correct length of keyword with high probability. The general algorithm of Kasiski’s method is as follows:
I was digging through a pile of old documents and found this “hacking” guide typed up back in China, during those night study sessions at Chinese / International boarding high school. Good old days of doing whatever you can to get access to information and privacy.
In freshman year, the high school insisted to buy overpriced Lenovo laptops from them (it was cheaper to buy the same model from the market), even when most of students had their own personal laptops. …
Tower of Hanoi was a mathematical puzzle invented by Lucas 1883, France. There are many legends and myths about it as well. One myth I know is that the world will end if 64 tower disks’ Tower of Hanoi is completed. Lets see why the myth could be true.
A1: If the number of disks is even, move the first disk to tower 2. If the number of disks is odd, move the first disk to tower 3.
A2: All other numbers of disks have this same pattern: first move all disks except the base disk to tower 2…
Last week I was given a small fun task to work on by P-Sense, a wifi tracking company in Hong Kong: creating some data visualization (bar or line graphs) for hourly foot traffic of some floor in a building based on huge amount of MAC address data collected from the APs in the building. After consulting my friend on data visualization part, I decided to give ‘seaborn’ python library a try.
The data set looked something like this in .csv (the data below has been made up)
My general steps to compose a script was: