1. Raft是一种共识(consensus)算法。解决分布式系统的一致性问题的算法之一。 学习Raft算法,收集几个不错的文章和网站: raft算法动画演示: http://thesecretlivesofdata.com/raft/ raft算法官方:https://raft.github.io/ 《Zookeeper:分布式系统入门到实战》https://www.youtube.com/watch?v=BhosKsE8up8   分布式系统有一 ...

    阅读全文
  2. 先从PHP的配置文件php.ini中的session段开始学习session,这里的配置会影响所有php程序。而PHP的Session函数则只针对其程序本身。 首先看一下php.ini中session的默认配置(查看可以跳过),官方文档。 [Session] ; Handler used to store/retrieve data. ; http://php.net/session.save-handler session.save_handler = files ...

    阅读全文
  3. 了解cookie的实际存储对真正了解cookie, session等概念有更好的帮助。 我们知道Session是存在服务器端的,而cookie是存在客户端的。这里准确理解应该是说由客户端的浏览器管理。浏览器管理着所有客服端的数据。不同的浏览器实现不同,主要功能除了实现DOM的显示和渲染,以及内嵌的javascript引擎等功能外,对客服端的数据管理也是一大功能。 由于cookie 等客户端数据由各浏览器管理,从Cookie的存储方式来分,可以看成有两种Cookie:持久化cookie ...

    阅读全文
  4. 114890

    如何定义一个HTTP Request呢?在RFC2616的第五章定义了HTTP请求的格式。请参考官网。 RFC2616对请求的定义摘要: 请求的定义: Request = Request-Line *(( general-header | request-header ...

    阅读全文
  5. 114660

    摘自 http://blog.sina.com.cn/s/blog_8f32dc250100wva8.html  HTTP 文件上传的基本原理:          使用html 的<input type=”file” name=”xxx”> 标签,提交form 的几个属性必须为: method=post&n ...

    阅读全文
  6. JWT简介2018-07-18

    JWT: JSON Web Token, 是一个Open standard for Passing claims (Security information) Between two paties. 申明传输。它是: Self-containded: carries all the informaiton necessary within itself. JSON object on its own. 主要被用在:Mainly used in web appl ...

    阅读全文
  7. Personal pronouns:人称代词 Pronouns - 代词 代词用于指代名词或名词短语。使用代词可以多次重复前文提到的名词。 例如: Jane ate some dinner. She was hungry. (简吃饭了。她饿了。) 代词有多种形式。英语中有七个人称代词。 单数   复数   I 我 we 我们 you ...

    阅读全文
  8. 初识webDAV2018-06-08

    什么是webDAV? Web Distributed Authoring and Versioning (WebDAV) is an extension of the Hypertext Transfer Protocol (HTTP) that allows clients to perform remote Web content authoring operations. WebDAV is defined in RFC 4918 by a working group of th ...

    阅读全文
  9. http://stackoverflow.com/questions/9437584/what-does-webkit-min-device-pixel-ratio-2-stand-for http://stackoverflow.com/questions/16030041/media-query-pixel-density-and-max-width-together http://stackoverflow.com/questions/15975432/webkit-min- ...

    阅读全文
  10. 写断打字效果的js. html: <p class="typeIn">This is the text typed in manually.This is the text typed in manually.This is the text typed in manually. This is the text typed in manually.This is the text typed in manually.</p> ...

    阅读全文
  11. 以下代码 <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="Generator" content="EditPlus®"> <meta name="Author" content=" ...

    阅读全文
  12. 原文摘自 阳台的博文 http://www.cnblogs.com/chris-cp/p/4843407.html   阳台博主的文章不错,值得长期关注。 一、概述:   在配置邮件服务器之前,先解释几个概念。   通常使用Email都很容易,但是Internet的邮件系统是通过几个复杂的部分连接而成的,对于最终用户而言,我们熟悉的Outlook,Foxmail等都是用来收信和发信的,称之为MUA:Mail User Agent,邮件用户代理。 ...

    阅读全文
  13. 一个简单的测试看 function F(){}; f = new F(); for (prop in f) alert(prop); 结果并没有alert什么属性,控制台上可以看到下面的对象。 F __proto__: F constructor: function F(){} arguments: null caller: null length: 0 name: "F" prototype: ...

    阅读全文
  14. 这是2017年编程语言排名。 javaScript 依然稳居榜首,Java 紧随其后;PHP 在此榜单上首次出现下降,被 Python 反超,但仍然很受欢迎,排名第四;Ruby 从第五名降至第七;TypeScript 首次进入前二十强。 stackoverflow 2017年开发者调研报告:JavaScript 连续五年夺得最常用编程语言。 SQL 再次占据第二位,Java 第三。 而 Python 在五年内首次超过了 PHP。 ...

    阅读全文
  15. 一、如何获取JDBC的jar包?     1.<ORACLE_HOME>/jdbc/lib     2.http://www.Oracle.com/technetwork/database/features/jdbc/index-091264.html      二、JDBC driver 版本 与 JDK版本的关系   From JDBC FAQ on Oracle Technology N ...

    阅读全文
  16. 学习media query可以参考官方网址: https://www.w3.org/TR/css3-mediaqueries/ 今天运到一个问题,在使用chrome调试media query效果时,使用调试窗口来调整页面大小,效果如期望的展现。但是如果直接调整浏览器大小,部分大小时候做到了自适应,但是当窗口resize到一定大小后,并没有发生变化。不知道是不是浏览器的bug. 代码如下: @media screen and (max-width: 450px) ...

    阅读全文
  17.   Mac上openoffice加载oracle jdbc失败: reproduce steps: 1.在mac上安装完openoffice后幷下载了Oracle jdbc包ojdbc6.jar; 2. 根据JDBC设置方法,进入openoffice的preference-->openoffice->java设置classpath, 将ojdbc6.jar和所在的文件夹加入到classpath中。 3. 然后选择创建一个数据库datab ...

    阅读全文
  18. React的虚拟的DOM的原理是什么?是怎么实现的? 本文摘自 https://www.zhihu.com/question/29504639 链接:https://www.zhihu.com/question/29504639/answer/73607810   深度剖析:如何实现一个 Virtual DOM 算法 · Issue #13 · livoras/blog · GitHub   ...

    阅读全文
  19. simple html dom parser如何保留换行符? 使用simple html dom parser处理html文档比较方便,大部分情况下默认会将html文档或字符串中的换行符给过滤掉,这不会造成什么大的影响。但是有些情况下需要保留原先的换行符,比如说需要保留<pre></pre>中的原先字符串的原样,所以不能将换行符过滤掉,而需要保留。 方法如下: //The PHP Simple HTML Dom Parser's load f ...

    阅读全文
  20. 44930

    npm cli命令说明文档: 官方文档: https://docs.npmjs.com/cli-documentation/ 以及《npm cli commands - npm指令大全》https://blog.csdn.net/zmrdlb/article/details/53204116 CLI commands > access Set access level on published packages > adduser Add a re ...

    阅读全文