这个月的全部文章
@kidultff

同步异步、阻塞非阻塞、并发并行的理解

同步与异步:同步:事情一件一件的做。执行事件A时,需要等A完成,再去做事件B。异步:事情可以一起做。执行事件A时,在等待事件A的结果的同时可以去做事件B。状态:等待事件A的结果的同时去做事件B,在做事件B时,每隔一段时间询问一次(轮询)事 ...
  • 0
  • 0
@kidultff

PAT-A 真题 – 1127 ZigZagging on a Tree

Suppose that all the keys in a binary tree are distinct positive integers. A unique binary tree can be determined by a given pair of postorder and inorder traversal sequences. And it is a simple standard routine to print the numb ...
  • 0
  • 1
@kidultff

PAT-A 真题 – 1126 Eulerian Path

In graph theory, an Eulerian path is a path in a graph which visits every edge exactly once. Similarly, an Eulerian circuit is an Eulerian path which starts and ends on the same vertex. They were first discussed by Leonhard Euler ...
  • 0
  • 0
@kidultff

宝塔面板Nginx的Lua-Waf防火墙终极改进 动态封禁IP

宝塔面板自带的Nginx防火墙有些鸡肋,对于大量的恶意攻击只能临时拦截,而不能封禁IP,下面的修改可以帮你做到:CC攻击屡教不改,立即ban!漏洞扫描屡教不改:立即ban!同一个IP段轮流攻击,整个IP段都给你ban了!使用了CDN?没关系,获取了真实IP ...
  • 0
  • 0