1. 在学习Javascript的prototype与__proto__区别时,发现了这样一篇介绍javascript核心的好文章。原文:javascript the core. 本想阅读后好好整理翻译下,不过网上已经有很好的翻译文章,就此省略,链接在此。这里只作简单摘要: javascript核心概念: An Object 对象 An object is a collection of properties and has a single prototype object ...

    阅读全文
  2. 网上的一些javascript测试题,看你能对几道题?   http://dmitrysoshnikov.com/ecmascript/the-quiz/ 1. What’s the result of: typeof typeof(null) A) “undefined” B) SyntaxError C)“string” D) “object&rdquo ...

    阅读全文
  3. 随着web应用的流行,人们越来越关心网络安全。学习网络安全,我们必须找到组织(The Open Web Application Security Project (OWASP))。 本文是学习XSS中收集并整理的资料,不断更新中。 什么是XSS? XSS是Cross Site Script的简写,即常说的跨站脚本攻击。 XSS攻击场景 使用 XSS盗取Cookie 使用XSS创建覆盖 使用XSS产生HTTP请求 以交互方式尝试基于DOM的XSS 绕过 ...

    阅读全文
  4. 这是一个程序员游戏,共10关,看你能否进入第十关: 游戏地址:http://1111.segmentfault.com 第一关: 第二关: 第三关: 第四关 第五关 二维码内容为:http://sf.gg/你被耍了什么都没有 第六关 md5破译“f4de502e58723e6252e8856d4dc8fc3b”得到 2323k14jm。但是还是没有线索。百度google ...

    阅读全文
  5. 这篇blog用于记录一些分享链接 2015/12: How to replace remote files with local files when debugging How to replace Javascript of production website with local Javascript? Fiddler: AutoResponder Reference   ...

    阅读全文
  6. 常常会有数值字符串转换成数值类型的要求。 Integer.parseInt()的使用 public static int parseInt(String s, int radix) throws NumberFormatException Parses the string argument as a signed integer in the radix specified by the second arg ...

    阅读全文
  7. 本文介绍Fiddler执行命令。 使用ALT+Q可以快速进入Exceution Command   Command 解释 Example screenshot/message #1 bold 对会话加粗。 bold ...

    阅读全文
  8. Attributes vs. Properties The difference between attributes and properties can be important in specific situations. Before jQuery 1.6, the .attr() method sometimes took property values into account when retrieving some attributes, which could ca ...

    阅读全文
  9. clientHeight 与  offsetHeight的区别和理解。 clientHeight: =( height + padding Height) Returns the height of the visible area for an object, in pixels. The value contains the height with the padding, but it does not include the scrollBar, border ...

    阅读全文
  10. 问题背景:     1.IE6/7/8支持通过window.event获取对象,通过attachEvent方式添加事件时也支持事件对象作为句柄第一个参数传入 2.Firefox只支持事件对象作为句柄第一个参数传入 3.IE9/Opera/Safari/Chrome两种方式都支持 所以在Firefox中直接引用event会有undefined问题。 为了解决浏览器兼容问题,可以使用下面的方法获取。 var evt = windo ...

    阅读全文
  11. 39790

    MySQL Connector for Java的学习传送门 MySQL Connector/j Examples MySQL Connector/J Release Notes   Connector/J(JDBC) Reference 5.1 Driver/Datasource Class Names, URL Syntax and Configuration Properties for Connector/J  &nbs ...

    阅读全文
  12. 32040

    收集一下MySQL的错误代码以及名称:   MySQL Error Number MySQL Error Name Legacy (X/Open) SQLState SQL Standard SQLState 1022 ER_DUP_KEY 230 ...

    阅读全文
  13. linux下添加PHP的扩展程序cURL. 之前编译的PHP没有cURL扩展,现在需要添加这个扩展程序。百度了一些文章,帮助很大,由于对Linux不是太熟,仍然出现了一些误解和小状况,现在小结一下。 大体方法如网上所言: 进入安装原php的源码目录(比如/envhome/php-5.x/), 1. cd ext 2. cd curl 3. [/phphome/bin/]phpize (这里phpize肯定找不到,所以应该加上路径,如/phph ...

    阅读全文
  14. 今天通过Datatables.net的style认识了Foundation, 有空可以进一步学习一下。 Foundation官网: http://foundation.zurb.com/ 初步认识是与bootstrap类似的web前端框架。   ...

    阅读全文
  15. 第一次使用datatables,在不经意间遇到了这个问题: Uncaught TypeError: Cannot read property 'mData' of undefined 开始以为是与jquery的版本有关,使用了官网提供的版本仍然有这个问题。 后来查到相关话题,原来datatables对table的结构比较严格,必须要有 <thead> </thead> 添加后问题解决。   ...

    阅读全文
  16. 38800

    查看apache的configure编译配置. 如果上次安装后没有make clean的话,在config.nice中可以找到 进入apache home\build\  找到config.nice cat config.nice [root@test_linux build]# cat config.nice #! /bin/sh # # Created by configure "./configure" \ " ...

    阅读全文
  17. 在configure php时: ./configure --prefix=/home/php5.5.8 --with-apxs2=/home/apache/bin/apxs --with-mysql --with-mysqli --with-gd --enable-mbstring --enable-sockets --enable-shared --with-pdo-mysql --with-jpeg-dir=/usr/lib64 --with-freetype-dir=/usr/ ...

    阅读全文
  18. linux下的my.cnf搜索顺序: linux下,/etc/my.cnf->/etc/mysql/my.cnf->SYSCONFDIR/my.cnf->$MYSQL_HOME/my.cnf-> --defaults-extra-file->~/my.cnf 这几个位置还没有的话,就用的是默认值。 也就是说未必有!没有也能工作!!! 以上的顺序可以通过mysql --help来查看   ...

    阅读全文
  19. 本文是简单介绍基于天翼云的Linux环境下,按照apache, php,  mysql官网源码编译手动安装的过程。 如果你期望通过已有的一些安装包快速安装的话,可以忽略本文。 第1部分 Apache 安装Apache 2.4.x。 选择官网下载源码编译的方法安装: Step1: 从官网提供的link下载httpd源码,并解压 wget http://archive.apache.org/dist/httpd/httpd-2.4.7.tar.gz gz ...

    阅读全文
  20. 重新整了一个开发环境,结果发现在调试时候断点不停,设置的断点无效,也不能在第一行停下,于是折腾出本文。 环境:windows + php + eclipsePHP + xdebug 1) 查看php.ini以及phpinfo均显示xdebug以配置成功。 原先配置: extension=php_xdebug.dll zend_extension=D:\php\ext\php_xdebug.dll xdebug.remote_enable=on xdebug. ...

    阅读全文