I recently attended an internal company DNS sharing course, which explained the DNS service in detail. The course introduced the site nstool.netease.com, which can detect your DNS server. The lecturer said we could think about how it works in our spare time. Here I share some of my thoughts on the principle of this service — please point out anything unreasonable.
Pitfalls I Hit with clock()
clock is better suited to measuring program runtime; as a program timer it is completely inaccurate.
The Benchmark Tool of the Alibaba Middleware Contest
Alibaba's middleware contest is on again. This time I really wanted to join — after all, I'll soon no longer be a student. I was busy revising my thesis before June 1 and had no time to write; now I'm finishing it. Tested on 6-3: already 3000 points; tested on 6-10: 4500 points. On 6-20 it ended, and I open-sourced the code.
Oxygen Not Included
Recently I've been hooked on the game Oxygen Not Included...
Several Project Progress Management Tools
Project management is quite a headache too; the project I'm doing recently has this problem. My teacher also asked me to find a few project management tools to use, to make the project a bit more formal.
A Log(n) Solution for the Fibonacci Sequence
While helping a classmate with a written test today I saw a problem about the Fibonacci sequence. Knowing my own knowledge isn't solid, I tried it — sadly I wrote too slowly and the papers were already collected. So I'll share the approach here; I believe it should be correct.
Later (后来)
Sung by Qi Hui — I want to share it with everyone. Quite soulful.
How to debug your Python code effectively(IPython)
This blog shares some methods to use IPython to debug your Python code.
Using Millisecond Timestamps
My graduation project used timestamps to mark traffic packets and later packets' timestamp offsets, but second-level counting simply cannot describe the delay between adjacent packets — the time unit should be at least milliseconds.
Layer 2 / Layer 3 Switches and TTL
Layer 2 and layer 3 switches and TTL