C/C++中占位修饰符*的用法

In the process of solving problems, I came across this code snippet for formatting output: printf("%*s%s%*s\n",__________);
The required output format is: ________123456________//The underscores represent spaces

Read more »

配置SublimeText为C/C++的轻量级IDE

As a C++ programmer, I have long been accustomed to using tools like GCC, but I must say that GCC’s error messages are terrible. Although there are error prompts, it often requires manual debugging to understand them… Now, the good news is here, the accuracy of Clang‘s messages is incomparably better than that of GCC.

Read more »

使用Wolfram|Alpha求积分

Actually, using WolframAlpha to compute integrals is quite overkill (but it’s also a strict requirement for laziness). Recently, I’ve been studying Wolfram Language and slowly discovering new ways to play with it.

Read more »

使用Koding在线管理静态博客

Previously, I would complete articles on local and then publish them, having already set up a bunch of things like node.js, hexo, git, etc. on my own computer. So, it’s very convenient to use on my computer, but if I switch to another computer, it’s tragic; everything needs to be configured by myself, so I almost end up in a non-usable state whenever I change computers.

Read more »

读《数学之美》

I have had “The Beauty of Mathematics” for some time now, and as a book I’ve been reading during my leisure time, it has indeed piqued my interest a great deal. Since I don’t allocate much time to reading, averaging only one or two chapters a day, I finished all the chapters yesterday and was left wanting more.

Read more »

分析密码学中的数学原理

Recently, I’ve been intrigued by the mathematical models in computers discussed in “The Beauty of Mathematics” and the number theory from “What is Mathematics.” Today, I managed to suppress my laziness for a moment, and I’m going to analyze the mathematical models in cryptography!

Read more »

提取优酷订阅视频的RSS源

I’ve been tinkering with RSS these past few days and have collected quite a few RSS sources. For lazy people like us, knowing the news without opening a webpage is what RSS is truly about. Recently, I managed to get the RSS output for QQ Space (not very practical…) as well as for Sina Weibo and Sina Blog. However, I still prefer Logic Thinking (on Youku), which does not provide an RSS subscription. So far, I haven’t discovered any particularly effective methods to extract Youku subscription RSS feeds. Various online conversion sites are mostly useless, and I can’t tolerate the hassle of having to open a webpage to do this. So, I decided to dive into how to turn Youku subscriptions into an RSS feed, and I succeeded! It was very satisfying.

Read more »

Windows下自定义Dvorak键盘布局

After several twists and turns, I finally sorted out the Dvorak layout in Windows (though with some modifications).
Let’s start with the layout diagram of Dvorak.

Read more »