Added tikzjax support

Just added support for tikzjax since I received some feedback about my hand-drawn diagrams are hard to read…now I can use nice graphs like these: source: https://tikzjax.com/ source: https://tikzjax.com/ source: https://tikz.net/ ...

January 25, 2025 · updated January 26, 2025 · 1 min ·  meta

Our legal (and moral) system flavors the jerks

Disclaimer: The author’s knowledge about the legal system by no means applies to anywhere outside of his homeland. But what is legal or illegal should be similar enough for the discussion below - at least for first world countries, I guess. That said, the author is not a lawyer and does not have accurate knowledge of any concrete laws. But one does not need to know (too many of) them for this article. ...

January 3, 2025 · updated January 5, 2025 · 8 min ·  thoughts

Why use binary search when you can guess where it should be

Why ignore 50% of what we know about the data1 Everyone learnt binary search in Algo 101. It is the fastest way (among comparison based searches) to find an element in a sorted array. All you need to carry out the algorithms is the comparison between the target element and the element at the current position. It is widely applicable because it assumes so little from the data. But for many real life problems, we do often know something apart from merely the comparison between the two numbers. For examples: ...

Work at the level of abstraction that works for you

Ladder of abstraction Well the title is obviously a tweak of the “ladder of abstraction”. For those who does not know, “ladder of abstraction” refers to the classic essay by Bret Victor. I am kind of stealing this terminilogy for the reader to visualize climbing up and down on the ladder of abstraction to make it easier to explain the nature of different jobs. The main question this blog post deals with is: ...

October 29, 2024 · updated October 29, 2024 · 4 min ·  thoughts

Relaxation is the result of mastery. With thoughts about problem solving

Relaxation as a result of mastery, instead of a prerequisites In many sports/ crafts that I have experienced, relaxation is considered by many the prerequisites of mastery: In playing piano, your fingers, wrists, arms and shoulders have to be relax or you will find it extremely hard to press the right keys fluently; In online games that require fast reactions, rookies hands are stiff and they press buttons with unnecessary strength and range of motion, which stops them from pressing right buttons at the right time smoothly; In jiujitsu, being reasonably relax helps you to perform efficient moves, saving your energy and gives you more choices in different situations in which you have to adapt and react quickly. Mainstream arguments I have seen in the above fields are that relaxation is a prerequisite of getting good at these skills: “You have to relax or your chords sound horrible!”, “you have to relax to improve your techniques”. Yet most people have to go through a good amount of practice untill they become relaxed and start being good at those skills. Did they not understand how to relax their bodies when they were beginners? Everyone knows how to relax their bodies - just lie on a comfortable massage bed and you will be relax. The hard part is being relax while doing things that we are not good at. ...

September 1, 2024 · updated September 1, 2024 · 4 min ·  thoughts

Reinventing Catalan numbers

Counting binary trees I was thinking about of the problem of balancing a binary tree, and my mind stumbled across to the question “How many different binary trees with labelled nodes can you make without changing the traversal order?”. After figuring out the answer myself I realized that the numbers of such binary trees are just Catalan numebrs (I was not really into combinatorics - now I am). For example, the following has traversal order 1->2->3->4->5->6->7 ...

August 10, 2024 · updated December 28, 2024 · 3 min ·  mathematics

From casual description of Turing Machine to the density of uncomputable functions

Defining the machine by describing it In Sipser’s Introduction to the theory of computation, a alternative way of defining a Turing machine (other than defining the formal 7-tuple, which is a PITA) - by its “description”. Example (from the proof of $A_{TM}$ is deciable): M = “On input <B, w>, where B is a DFA and w is a string: 1. Simulate B on input w. 2. If the simulation ends in an accept state, accept . If it ends in a nonaccepting state, reject .” ...

Why do I hate using chatGPT to replace search engines

My pc is overheated how do i cool it down because it is my life1 Someone said that chatGPT will replace Google. Some kids/ early teenagers do often ask chatGPT for things that could have been found by Googling. I really hate the idea of replacing search engines by chatGPT. The problem I have with it is not really about AI, but about how do we interact with it. When we were kids and learnt how to use search engines, we acquired the skills of capturing important parts of the questions in our minds and turn them into keywords. Bashing questions like “my hard disk is full how can I get more space” usually get worse results than things like “hard disk space full solutions” as their counterparts. ...

July 30, 2024 · updated August 13, 2024 · 3 min ·  thoughts

Unity Game Reversing(1): Setup

Introduction Recently I am trying to reverse engineering a simple Windows desktop game made with Unity. I took a look on some reference but found that the setup can be a bit frustrating. This post is attempting to make the setup clearer and more followable. Reference links are listed below. Tools Our target is to decompile and debug the Assembly-CSharp.dll inside the folder <game root folder>\<GANE_NAME>_Data\Managed\, which contains custom code the game developer wrote, not the code of Unity or other frameworks. It is written in C#. We need the below tools: ...

April 17, 2023 · updated February 23, 2025 · 2 min ·  security

LOTS Project - Paypal

Introduction LOTS project, founded by mrd0x, is a collection of websites which is likely be trusted but can be used to evade detection when conducting phishing, C&C, exfiltration and downloading tools. In this post I will introduce a way to abusing PayPal and hopefully will be contributing to the LOTS project. This series is (intentively) for my ideas on novel exfiltration/ C&C channels. Exfiltraftion by Paypal In Paypal, one can dispute an order and upload his/ her evidence. This feature can be used as data exfiltration channel. ...

October 2, 2022 · updated February 23, 2025 · 1 min ·  security