大约有 42,000 项符合查询结果(耗时:0.0299秒) [XML]

https://www.tsingfun.com/it/tech/2013.html 

24种设计模式与7大原则 - 更多技术 - 清泛网 - 专注C/C++及内核技术

...原则创建型模式抽象工厂模式(Abstract factory pattern): 提供一个接口, 用于创建相关或依赖对象的家族, 而不需要指定具体类.生成器模式(B...创建型模式 抽象工厂模式(Abstract factory pattern): 提供一个接口, 用于创建相关或依赖对象的...
https://www.tsingfun.com/it/tech/1480.html 

windbg 备忘 - 更多技术 - 清泛网 - 专注C/C++及内核技术

...输进去. 入侵模式调试 在默认情况下,当我们用CDB调试一个已经运行的进程时,它通常作为全功能的调试器附上进程(使用Win32 Debugging API)。在这种模式下,可以设置断点,单步调试代码,得到各种调试事件的通知(例如,异...
https://stackoverflow.com/ques... 

Using os.walk() to recursively traverse directories in Python

... This will give you the desired result #!/usr/bin/python import os # traverse root directory, and list directories as dirs and files as files for root, dirs, files in os.walk("."): path = root.split(os.sep) print((len(path) - 1) * '---', os.path.basename(root)) for file in fi...
https://stackoverflow.com/ques... 

How do you get a directory listing sorted by creation date in python?

...pdate: to sort dirpath's entries by modification date in Python 3: import os from pathlib import Path paths = sorted(Path(dirpath).iterdir(), key=os.path.getmtime) (put @Pygirl's answer here for greater visibility) If you already have a list of filenames files, then to sort it inplace by creati...
https://www.tsingfun.com/it/cpp/2080.html 

什么是 Ringbuffer ? - C/C++ - 清泛网 - 专注C/C++及内核技术

...r ?ringbuffer到底是什么?嗯,正如名字所说的一样,它是一个环(首尾相接的环),你可以把它用做在不同上下文(线程)间传递数据的buffer。(...ringbuffer到底是什么? 嗯,正如名字所说的一样,它是一个环(首尾相接的环)...
https://www.tsingfun.com/it/tech/1336.html 

推荐系统算法初探 - 更多技术 - 清泛网 - 专注C/C++及内核技术

...面对眼花缭乱的打折活动不知道要买啥。在经济学中,有一个著名理论叫长尾理论(The Long Tail)。 套用在互联网领域中,指的就是最热的那一小部分资源将得到绝大部分的关注,而剩下的很大一部分资源却鲜少有人问津。这...
https://www.tsingfun.com/it/tech/969.html 

淘宝网采用什么技术架构来实现网站高负载的 - 更多技术 - 清泛网 - 专注C/C...

...的一些底层技术框架以及自己的一些感触来说说如何构建一个可 伸缩,高性能,高可用性的分布式互联网应用。时间过得很快,来淘宝已经两个月了,在这两个月的时间里,自己也感受颇深。下面就结合淘宝目前的一些底层技...
https://stackoverflow.com/ques... 

How do I programmatically determine operating system in Java?

I would like to determine the operating system of the host that my Java program is running programmatically (for example: I would like to be able to load different properties based on whether I am on a Windows or Unix platform). What is the safest way to do this with 100% reliability? ...
https://www.tsingfun.com/it/cpp/1364.html 

windows下捕获dump之Google breakpad_client的理解 - C/C++ - 清泛网 - 专注C/C++及内核技术

...用者只需要跟ExceptionHandler打交道,在自己的程序里定义一个ExceptionHandler对象,ExceptionHandler会挂上异常处理、CRT参数错误处理、purecall错误处理,当发生crash时,breakpad会写好dump,然后回调通知使用者。进程内dump并不推荐,但也...
https://www.tsingfun.com/it/bigdata_ai/342.html 

搭建高可用mongodb集群(三)—— 深入副本集内部机制 - 大数据 & AI - 清...

...用了Bully算法,可以很方便从分布式节点中选出主节点。一个分布式集群架构中一般都有一个所谓的主节点,可以有很多用途,比如缓存机器节点元数据,作为集群的访问入口等等。主节点有就有吧,我们干嘛要什么Bully算法?...