上一页 1 ··· 65 66 67 68 69 70 71 72 73 ··· 188 下一页
摘要: t 阅读全文
posted @ 2020-03-03 09:11 papering 阅读(143) 评论(0) 推荐(0)
摘要: 小结 1、cpy的垃圾回收会对调用__del__多次;pypy仅仅一次; https://www.liaoxuefeng.com/wiki/1016959663602400/1016966024263840 PyPy是另一个Python解释器,它的目标是执行速度。PyPy采用JIT技术,对Pytho 阅读全文
posted @ 2020-03-03 09:04 papering 阅读(322) 评论(0) 推荐(0)
摘要: 1、 accept: 电话铃响起了…… 当客户端的连接请求到达时,服务器端应答成功,连接建立,这个时候操作系统内核需要把这个事件通知到应用程序,并让应用程序感知到这个连接。这个过程,就好比电信运营商完成了一次电话连接的建立, 应答方的电话铃声响起,通知有人拨打了号码,这个时候就需要拿起电话筒开始应答 阅读全文
posted @ 2020-02-29 07:47 papering 阅读(234) 评论(0) 推荐(0)
摘要: 小结: 1、bind listen 区别 2、一个套接字可以接收的并发数目 bind 函数只是让我们的套接字和地址关联,如同登记了电话号码。如果要让别人打通电话,还需要我们把电话设备接入电话线,让服务器真正处于可接听的状态,这个过程需要依赖 listen 函数。 初始化创建的套接字,可以认为是一个" 阅读全文
posted @ 2020-02-29 07:41 papering 阅读(198) 评论(0) 推荐(0)
摘要: 比如一台机器有两块网卡,IP 地址分别是 202.61.22.55 和 192.168.1.11,那么向这两个 IP 请求的请求包都会被我们编写的应用程序处理。那么该如何设置通配地址呢? 对于 IPv4 的地址来说,使用 INADDR_ANY 来完成通配地址的设置;对于 IPv6 的地址来说,使用 阅读全文
posted @ 2020-02-29 07:35 papering 阅读(500) 评论(0) 推荐(1)
摘要: https://mp.weixin.qq.com/s/YfHszSORHP_-W7pJA8PEcg 如何设计一个高可用、高并发秒杀系统 作者:vincentsu,腾讯 PCG 后台开发工程师 如今的互联网已经在海量服务领域有了很成熟的理论,因此自己也很庆幸,能够从 0 到 1 完整践行海量服务。微视 阅读全文
posted @ 2020-02-29 07:12 papering 阅读(389) 评论(0) 推荐(0)
摘要: 小结: 1、在创建套接字时,选择tcp/udp。 要创建一个可用的套接字,需要使用下面的函数: int socket(int domain, int type, int protocol) type 可用的值是: SOCK_STREAM: 表示的是字节流,对应 TCP; SOCK_DGRAM: 表示 阅读全文
posted @ 2020-02-28 17:10 papering 阅读(425) 评论(0) 推荐(0)
摘要: 付宝研究员王益:“对我影响最大的三本编程书” 阅读全文
posted @ 2020-02-17 22:37 papering 阅读(164) 评论(0) 推荐(0)
摘要: e^π和π^e谁大的问题 阅读全文
posted @ 2020-02-17 22:36 papering 阅读(368) 评论(0) 推荐(0)
摘要: https://stackoverflow.com/questions/3232943/update-value-of-a-nested-dictionary-of-varying-depth import copy d = {'k': 'kv'} j_sc = {'k1': copy.copy(d 阅读全文
posted @ 2020-02-13 01:13 papering 阅读(193) 评论(0) 推荐(0)
摘要: 不精确 具有相对性 对人类活动的观察导出 依赖于人的主观判断力 通常符合人的直觉 阅读全文
posted @ 2020-02-12 23:33 papering 阅读(257) 评论(0) 推荐(0)
摘要: 啊 阅读全文
posted @ 2020-02-10 23:51 papering 阅读(297) 评论(0) 推荐(0)
摘要: https://mp.weixin.qq.com/s/I5va3PI1oGIj8R_n3Nw2yw 1115. 交替打印 FooBar - 力扣(LeetCode) https://leetcode.cn/problems/print-foobar-alternately/description/ 阅读全文
posted @ 2020-02-10 12:06 papering 阅读(154) 评论(0) 推荐(0)
摘要: a 阅读全文
posted @ 2020-02-09 12:52 papering 阅读(237) 评论(0) 推荐(0)
摘要: https://docs.python.org/3.7/whatsnew/3.7.html#pep-552-hash-based-pyc-files 阅读全文
posted @ 2020-01-21 16:51 papering 阅读(220) 评论(0) 推荐(0)
摘要: Most basic operations in Go are not synchronized. In other words, they are not concurrency-safe. https://go101.org/article/channel.html 阅读全文
posted @ 2020-01-20 23:36 papering 阅读(245) 评论(0) 推荐(0)
摘要: 小结: 1、 When a goroutine sends a value to a channel, we can view the goroutine releases the ownership of some values. When a goroutine receives a value 阅读全文
posted @ 2020-01-20 23:32 papering 阅读(197) 评论(0) 推荐(0)
摘要: 1 阅读全文
posted @ 2020-01-20 23:30 papering 阅读(556) 评论(0) 推荐(0)
摘要: https://softwareengineering.stackexchange.com/questions/113256/what-is-the-difference-between-btree-and-rtree-indexing 52 BTree BTree (in fact B*Tree) 阅读全文
posted @ 2020-01-20 19:50 papering 阅读(208) 评论(0) 推荐(0)
摘要: https://www.jb51.net/article/29885.htm @echo off&setlocal enabledelayedexpansion set li0=┌───────────────────┐ set li1=│┌┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┐│1 for /l % 阅读全文
posted @ 2020-01-20 17:35 papering 阅读(797) 评论(0) 推荐(0)
摘要: https://docs.python.org/zh-cn/3/library/asyncio-dev.html#running-blocking-code 阅读全文
posted @ 2020-01-20 17:23 papering 阅读(351) 评论(0) 推荐(0)
摘要: a 阅读全文
posted @ 2020-01-19 21:24 papering 阅读(189) 评论(0) 推荐(0)
摘要: spring boot 接口改变全局变量 阅读全文
posted @ 2020-01-19 21:23 papering 阅读(2431) 评论(1) 推荐(0)
摘要: /src/os/exec/exec.go:83 阅读全文
posted @ 2020-01-19 19:28 papering 阅读(237) 评论(0) 推荐(0)
摘要: https://yq.aliyun.com/articles/73861 alibaba/Alibaba-Java-Coding-Guidelines: Gitbook for AJCG https://github.com/alibaba/Alibaba-Java-Coding-Guideline 阅读全文
posted @ 2020-01-19 11:32 papering 阅读(422) 评论(0) 推荐(0)
摘要: https://en.wikipedia.org/wiki/DirectX 1994年末,微软即将推出新一代操作系统Windows 95。决定新操作系统的最终价值的因素在于究竟新系统能运行哪些程序。微软的三个员工:Craig Eisler、Alex St. John、Eric Engstrom十分关 阅读全文
posted @ 2020-01-18 16:24 papering 阅读(741) 评论(0) 推荐(0)
摘要: How to kill go routine? https://stackoverflow.com/questions/37997608/kill-a-method-in-an-infinite-loop-golang I am working with a piece of code that h 阅读全文
posted @ 2020-01-16 11:17 papering 阅读(519) 评论(0) 推荐(0)
摘要: 4752÷48 111111111×111111111 阅读全文
posted @ 2020-01-16 09:57 papering 阅读(281) 评论(0) 推荐(0)
摘要: s 阅读全文
posted @ 2020-01-15 19:02 papering 阅读(194) 评论(0) 推荐(0)
摘要: package main import ( "fmt" "log" "syscall" "unsafe" ) var ( user32 = syscall.MustLoadDLL("user32.dll") procEnumWindows = user32.MustFindProc("EnumWin 阅读全文
posted @ 2020-01-15 17:35 papering 阅读(543) 评论(0) 推荐(0)
摘要: Golang调用windows下的dll动态库中的函数 package main import ( "fmt" "syscall" "time" "unsafe" ) const ( MB_OK = 0x00000000 MB_OKCANCEL = 0x00000001 MB_ABORTRETRYI 阅读全文
posted @ 2020-01-15 12:14 papering 阅读(1413) 评论(0) 推荐(0)
摘要: https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowpos https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winus 阅读全文
posted @ 2020-01-15 11:45 papering 阅读(2150) 评论(0) 推荐(0)
摘要: 布隆过滤器 数据同步业务 :google-guava+spring-boot-api+mybatis, 缺失值全匹配查找 阅读全文
posted @ 2020-01-14 21:01 papering 阅读(595) 评论(0) 推荐(0)
摘要: https://github.com/google/cityhash We like to test hash functions with SMHasher, among other things. SMHasher isn't perfect, but it seems to find almo 阅读全文
posted @ 2020-01-14 14:26 papering 阅读(287) 评论(0) 推荐(0)
摘要: https://design-patterns.readthedocs.io/zh_CN/latest/structural_patterns/bridge.html 阅读全文
posted @ 2020-01-13 21:01 papering 阅读(208) 评论(0) 推荐(0)
摘要: 时序图 阅读全文
posted @ 2020-01-13 17:35 papering 阅读(564) 评论(0) 推荐(0)
摘要: https://web.stanford.edu/class/cs166/lectures/13/Small13.pdf 阅读全文
posted @ 2020-01-13 16:36 papering 阅读(262) 评论(0) 推荐(0)
摘要: https://zh.wikipedia.org/wiki/Microsoft_Windows的訊息迴圈 微软视窗操作系统是以事件驱动做为程序设计的基础。程序的线程会从操作系统获取消息。应用程序会不断循环调用GetMessage函数(或是PeekMessage函数)来接收这些消息,这个循环称之为“事 阅读全文
posted @ 2020-01-11 18:14 papering 阅读(662) 评论(0) 推荐(0)
摘要: http://www.tcpipguide.com/free/t_SimplexFullDuplexandHalfDuplexOperation-2.htm 阅读全文
posted @ 2020-01-11 18:09 papering 阅读(235) 评论(0) 推荐(0)
摘要: Linux 技巧:让进程在后台运行更可靠的几种方法 https://www.ibm.com/developerworks/cn/linux/l-cn-nohup/index.html 我们经常会碰到这样的问题,用 telnet/ssh 登录了远程的 Linux 服务器,运行了一些耗时较长的任务, 结 阅读全文
posted @ 2020-01-11 16:07 papering 阅读(352) 评论(0) 推荐(0)
上一页 1 ··· 65 66 67 68 69 70 71 72 73 ··· 188 下一页