24 pages

Tweet

origami

When I received fliers on the street, I often felt the urge to make use of it. No, I don’t mean making paper planes, that no fun making paper planes. What about origami? (Though technically, making paper planes is origami) I remembered when I was in primary school, our maths teacher had taught us how to craft 3D shapes out of paper pieces.

Now as I am talking about maths, you may notice origami is very similar with constructing shapes using ruler and compass. Actually, I’ve heard origami is more powerful than ruler and compass because it can solve the unsolvable “trisect any angle” problem. When I was still holding the flier and walking, I started wondering what the basic mathematical operations of origami are. The first one could be folding a line in half, which forms the perpendicular bisector of the line. The other one might be folding an angle in half, which gave us the diagonal line. When all they do is to cut things in half, is cutting things in third even possible? I went straight to the library to find the answer.

The answer is stupidly simple: Just fold the line in half two times and cut out the extra segment. It’s like Columbus’s egg, my stubborn mind can’t solve it.

But I still wanted a technical answer. Surprisingly, there weren’t many videos talking about the maths behind origami. Oddly, I could easily learn how to trisect angles by folding paper, but not for trisecting lines, which should be a much easier task.

So I tried that out myself. When using ruler and compass, the knack of that problem is to cast an already trisected line onto the new line using parallel lines. But how to make parallel lines in origami? Just remember that the perpendicular line of a perpendicular line is a parallel line. Let me share my experience: To get a more accurate result, the angle between the already trisected line and the new line should be small to make it easier to fold the perpendicular lines.

Speech Note

I used to think voice typing was a poor technology invented for people who couldn’t type correctly. It’s full of errors after all, especially in Chinese, where many words share the same sound and differ only in tones.

I changed my view after I tried Speech Note, which integrates common voice recognition models. The evolution of voice recognition surprised me with its accuracy. Thanks to my graphics card’s CUDA, it transcrbes Chinese sentences in just a few seconds. Its performance is far better than Google’s voice recognition on my phone.

The minor errors from the model can be easily corrected with AI, making voice typing a much more efficient input method now.

Maybe I type too much and have forgotten how to speak. And voice typing is a great way to practice.

C++ Practice

I haven’t practised much C++. Instead, I keep nudging my python scripts. That doesn’t look good. What kinds of project can C++ make?

I realised it’s not necessary to learn C first…

Stop Teaching C (youtube)


The quote “There are only two kinds of languages: the ones people complain about and the ones nobody uses” is said by Bjarne Stroustrup, the father of C++.
https://www.stroustrup.com/quotes.html

What I learn from economics

The society follows the principles of economics:

  • No one should do everything on their own, even if they could.

  • To make a living, you just need to focus on one thing that only you can do.

    • Do one thing and do one thing well, like the Unix philosophy.
    • Ironically, that means as computer science student, I shouldn’t be learning even a little bit of economics.
  • Economic predictions don’t work if we don’t consider factors besides money, such as happiness and health. Since economists can only think in terms of money, we can convert everything we care about into prices.

    • If you think about it, you realise that pretty much everything can be converted into prices.
    • However, if no exchange could be done, this so-called price is not very meaningful.
  • If you want to make a lot of money, be a monopoly. Get a lisence, certificate, degree and anything that gives you the privilege to do the job so you can earn more than you should. Sure, it’s great for you, but not so great for society.

  • Otherwise, if you are in free competition, you need to work hard to be as efficient as your competitors. It’s tough, but it’s better for the consumers. That’s capitalism.

New to JavaScript

I was playing “Blood on the Clocktower” with my friends using an web app. As the game progresses, the host sents and receives information to and from the players. But the web app lacks the way for the host to communicate with the players so the host need to directly message the players and wait for their response. This slows down the game.

Since the web app is open source, I thought I may modify the code and host the game on my own website. However, the app could not run on my computer since it was writen in an older verison of Vue. I am new to JavaScript and learning JavaScript frameworks immediately is a bit overwhelming. I thought reading source code might be good shoutcut but now it seems that there’s no such thing, sigh.

Update breakage

I shouldn’t update the system when I am doing work… what a classic mistake. The bookmark bar of Firefox became blank and the button layout is stirred up. I spent the whole night trying to open new profiles and imported all the setting twice but somehow it couldn’t fix the problem. I have no choice but to remove all the profiles and reinstall firefox.

Joppy updates and spilt its API into clientAPI and serverAPI. I have to change my import statement in my python script to make it work. I now understand why people fixate on old versions.

Bad mood holiday

I hate holiday. It gives me a fake sense of comfort that I could slack off. Time flies no matter what I do. I always get stuck in deep regret and really annoyed by myself.

‘This is such a tiny thing. I shouldn’t be angry and waste any more time on this.’ This meta emotion makes me feel angrier. What a vicious circle, until I can’t take this anymore and cried. After that, I could sit down and write this reflection very easily. It’s hard to admit, but emotion plays heavily of the tug-of-war between motivation and procrastination.

Better Search Engine

The search results from marginalia.nu are much more interesting than those from Google. I’m tired of those bloated SEO sites and adding “reddit” or “site:zhuanlan.zhihu.com” after every query! By the way if you like the old internet, there’s another search engine called Wiby to help you find old and weird websites.

Links:

https://news.ycombinator.com/item?id=28550764

https://ericmurphy.xyz/blog/discoverability/

2024/04/02 18:59

Anything that is fun and useless will eventually be blocked by my own hands. It’s just a matter of time and frame of mind.

Relationship management software

Never Eat Alone suggests making a list to group people according to contact frequencies. Although the book recommends to stick to simple technology like pencil and paper, I still want a specialised software and I found monica.

Monica (official site) calls itself a Persoal Relationship Management (PRM) software。On the other hand, Customer Relationship Management(CRM)is for people in the business sector to mangement their customer profiles (Never eat alone is a bit business-oriented at the outset). I think it’s beneficial to go the extra mile and put the same amount of effort to manage our own networks. Monica is open-source. You can run it on local server using the docker image they provide. 1

example

It looks promising but after trying it, it doesn’t enphasise enough on the features that I most needed, which is to remind me to keep in touch with people. Email notification is not going to work (and I don’t have a email server for now). The tagging and sorting functions are not very handy, while the handy event reminder panel can be replaced by other calendar software. It’s usable, but there should be some simpler tools that satisfy my needs. Maybe just pure text files.

The devs are working on a revised version called Chandler (monicahq.com). See how it goes.


It’s not necessary to spend a lot of time maintaining relationships. You don’t need to dedicate hours—all you need is to contact your friends at a stable frequency. More importantly, you have to genuinely want to reach out to them. Unfortunately, this is what I lack.

No tools can incentivise me to do this. All I can do for now is to keep records.

Acutually, I’ve been using Track & Graph to record things for me, although it’s not specialised for this.


  1. docker is a tool for running websites. It’s a bit complicated to install that on Windows. If you know nothing about this, it’s better to try their official service. ↩︎