1. 有一分数序列:2/1,3/2,5/3,8/5,13/8,21/13...求出这个数列的前20项之和 无聊,写个js玩玩. 递归写法 function a(n){ if(n==1){return 1;} else if(n==2){return 2;} else{ return a(n-1)+a(n-2);} } function b(n){ return a(n+1)/a(n); } function sum(n){ ...

    阅读全文
  2. 引用一个CSRF讲解示例来帮助理解CSRF攻击。 受害者 Bob 在银行有一笔存款,通过对银行的网站发送请求 http://bank.example/withdraw?account=bob&amount=1000000&for=bob2 可以使 Bob 把 1000000 的存款转到 bob2 的账号下。通常情况下,该请求发送到网站后,服务器会先验证该请求是否来自一个合法的 session,并且该 session 的用户 Bob 已经成功登陆。 黑客 Mallory ...

    阅读全文
  3. 我们常常看到有些网站提供这样的功能,用户可以申请一个自己的名称作为二级域名来做自己的用户主页。格式大体如下: 网站本身域名 website.com 用户user申请自己的space并命名为myspace. 用户希望访问主页地址为 myspace.website.com。这样不同用户就可以申请自己的space名称做为二级域名来。 同样这样二级域名需求,企业也有可能用到。比如www二级域名,forum二级域名,support二级域名, example二级域名。 www.webs ...

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

    阅读全文
  5. 56760

    Bug的基本信息 BugID Subject description Status Owner Reproduce Step Workaround Product Component Version DevPriority SupportPriority FixInVersion ReportBy ProductManager QA Dev HistoryList UpdateProgress ...

    阅读全文
  6. 由阮一峰《ECMAScript 6 入门》的官方电子版 http://es6.ruanyifeng.com/ 支持作者,可以去买一本看看。   ...

    阅读全文
  7. service命令2017-04-12

    转自:http://www.cnblogs.com/qq78292959/p/3633546.html 用途说明 service命令用于对系统服务进行管理,比如启动(start)、停止(stop)、重启(restart)、查看状态(status)等。相关的命令还包括chkconfig、ntsysv等,chkconfig用于查看、设置服务的运行级别,ntsysv用于直观方便的设置各个服务是否自动启动。service命令本身是一个shell脚本,它在/etc/init.d/目录查找指定的 ...

    阅读全文
  8. 作者:踏雪无痕 出处:http://www.cnblogs.com/chenpingzhao/ 转自https://www.cnblogs.com/chenpingzhao/p/4896080.html   一、Console API Console.assert() 判断第一个参数是否为真,false的话抛出异常并且在console输出相应信息。 Console.count() 以参数为标识记录调用的次数,调用时在conso ...

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

    阅读全文
  10. 软件开发会涉及的几个方面。 现在有一个软件项目需要开发,假设你就是项目project leader。那你需要如何管理软件开发呢,有哪些需要考虑的呢?假设你就是一个纯技术管理人员,先不考虑人员和成本。 软件开发 软件测试 软件部署 软件交付和实施 流程管理 代码版本管理 发布管理 Release管理 开发模式 软件开发 常用功能分解(面向对象面向功能设计) 查询 配置 用户 安全 日志 ...

    阅读全文
  11. Spring Cloud学习过程中相关的知识点和软件项目: (1) Cloud Foundry: https://www.cloudfoundry.org/ ​   (2)Pivotal Web Services: https://run.pivotal.io/ (3)Zookeeper: https://zookeeper.apache.org/doc/current/zookeeperSt ...

    阅读全文
  12. 发现这个网站,值得推荐给所有的程序员看一下。 程序员的自我修养:网站链接如下: https://leohxj.gitbooks.io/a-programmer-prepares/content/ 文章简洁明了,列举了程序员必备的基础知识,已经作者收集的很多不错的网站链接。 这里列出该书(网站)的目录链接以供快速访问。 1. 程序员基础知识 1.1. 字符编码 1.2. 技术名词 1.3. 语义 ...

    阅读全文
  13. SVG初体验2017-12-04
    44490

    一段SVG代码开始SVG的学习 <svg version="1.1" id="clock" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="600px" height="60 ...

    阅读全文
  14. Deployment to application servers uses deployment profiles which rely on project metadata for the default mappings. Default contributors to the profiles are based on project dependencies, although you can customize the deployment profiles to change t ...

    阅读全文
  15. 这里是lucida列出的程序员必读书单以供参考。 该文把程序员所需掌握的关键知识总结为三大类19个关键概念,然后给出了掌握每个关键概念所需的入门书籍,必读书籍,以及延伸阅读。旨在成为最好最全面的程序员必读书单。 由于文章较长,本文仅将文中的提到的书籍封面摘录并整理下来以供快速浏览。 程序设计 《编码》    2. 编程语言 C语言    C++    Java C ...

    阅读全文
  16. 启动Tomcat8.5.11时遇到下面的异常: org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 19 at org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131) at org.apache.tomcat.util.bcel. ...

    阅读全文
  17. https://docs.oracle.com/middleware/1221/wls/WLACH/taskhelp/domainconfig/EnableTheDomainwideAdministrationPort.html#WLACH01108   Before you begin The administration port accepts only secure, SSL traffic, and all connections via the p ...

    阅读全文
  18. 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 ...

    阅读全文
  19. As a developer, it is often impossible for you to anticipate all the database columns and UI fields your customers might need, or how each field should look as end user needs change. Flexfields enable customers to configure their applications to meet ...

    阅读全文
  20. # 下载到/var/www/php5目录下 cd /var/www/php5 wget http://mirrors.sohu.com/php/php-5.5.7.tar.gz # 解压 tar zxvf php-5.5.7.tar.gz # 进入PHP的openssl扩展模块目录 cd php-5.5.7/ext/openssl/ /var/www/php5/bin/phpize # 这里为你自己的phpize路径,如果找不到,使用whereis ...

    阅读全文