Eric Way's Personal Site

I Write $\sin(x)$ Not Tragedies

Solving SQL Murder Mystery With Logica

Logica is a logic language for data manipulation developed by Google. It can be compiled into several SQL dialects, including BigQuery, SQLite and PostgreSQL. SQL, as a programming language, has several design flaws and suffers from bad readability especially when it comes to complex data queries. Logica has been aimed at mitigating those problems with SQL, and this post attempts to show that it does a quite good job in enhancing code readability and reusability, taking the SQL Murder Mystery as an example. Read more

Dual boot: Fix a broken GRUB

I have dual boot Windows 10 and Arch Linux Manjaro on my PC. It happened recently that after updating grub, grub terminal does not show up on booting and shortly afterwards Manjaro would always be launched, which meant Windows became inaccessible for me. Apparently the grub update interfered with the configurations on my machine and made it unable to work properly. Here is how I solved the problem. Read more

Green Hackenbush 博弈

经典游戏Green Hackenbush。给定一个有根图,每次删除一条边,每条边删除后,不再和根相连的所有边也自动删除。无法删除者为负。公平游戏版本中,两个玩家都可以删所有的边。 Read more