python3中的str和bytes Read More
一、同步与异步 (1)所谓同步就是一个任务的完成需要依赖另外一个任务时,只有等待被依赖的任务完成后,依赖的任务才能算完成,这是一种可靠的任务序列。 要么成功都成功,失败都失败,两个任务的状态可以保持一致。 (2)异步是不需要等待被依赖的任务完成,只是通知被依赖的任务要完成什么工作,依赖的任务也立即执 Read More
JS 是一个很神奇的语言,内制的的很多函数可以帮我们进行数(进)制转换;JS中可以直接使用16进制; var a = 0xff; //255 将任意进制字符串转换为十进制,如二进制,八进制,十六进制, 第二数数不写即为最常用的转换为整型十进制; parseInt("11", 2); // 3 2进制 Read More
dig(Domain Information Groper) dig @dnsserver name querytype dig @dnsserver name querytype 如果你设置的dnsserver是一个域名,那么dig会首先通过默认的上连DNS服务器去查询对应的IP地址,然后再以设置 Read More
BeanFactoryPostProcessors affect BeanDefinition objects because they are run right after your configuration is read in.There are no bean instances cre Read More
机器可以只有加法而没有减法, 这样计算机运算的设计就更简单了. 1-1 = 1 + (-1) = 0 于是人们开始探索将符号位参与运算, 并且只保留加法的方法. 首先来看原码: 一、原码 计算十进制的表达式: 1-1=0 1 - 1 = 1 + (-1) = [00000001]原 + [10000 Read More
1.objenesis About Objenesis is a small Java library that serves one purpose: To instantiate a new object of a particular class. When would you want th Read More
Spring事务处理主要分以下三个主要的过程: (1).读取配置的事务处理属性,并转化为Spring事务处理所需要的内部数据结构 (2).事务配置属性与线程绑定 (3).交由PlatformTransactionManager的具体实现类来实现,如DataSourceTransactionManag Read More
代理 根据 HTTP 1.1 的定义,proxy 是: An intermediary program which acts as both a server and a client for the purpose of making requests on behalf of other cli Read More
引子 WebSocket 是个好东西,为我们提供了便捷且实时的通讯能力。然而,对于 WebSocket 客户端的鉴权,协议的 RFC 是这么说的: This protocol doesn’t prescribe any particular way that servers canauthentic Read More