自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

davidwang456的专栏--备份

仅为备份而用,导入操作的,涉及版权请谅解。

  • 博客(286)
  • 资源 (7)
  • 收藏
  • 关注

原创 xss攻击汇总--转

(1)普通的XSS JavaScript注入(2)IMG标签XSS使用JavaScript命令(3)IMG标签无分号无引号(4)IMG标签大小写不敏感(5)HTML编码(必须有分号)(6)修正缺陷IMG标签alert("XSS")">(7)formCharCode标签(计算器)(8)UTF-8的Unicode编码(计算器)(9)7位的UTF-8的Unicode编码是没有分号的(计算器)(10)十六

2014-02-19 16:58:46 725 1

原创 Eclipse error: “The import XXX cannot be resolved”

解决 Eclipse error: “The import XXX cannot be resolved”eclipse中修改:1. 项目-->Properties-->java build path-->source-->add Folder.2. 将缺少的文件包加入source中。 如出现exclusion filters have been added to nestin

2014-02-19 16:58:44 987

原创 The declared package does not match the expected package

eclipse使用import导入源代码到项目中或者通过svn检出等方式导入源码到项目中,控制台容易出现大量错误。但同时直接使用ant脚本进行编译则能编译成功。这个时候请不用担心,打开错误可以看到在很多类的开头部分:package出现错误,提示为:The declared package does not match the expected package错误的原因是:ecl

2014-02-19 16:58:42 2353

原创 IBM Rational Appscan Part 1

By Rohit T|July 23rd, 2012http://resources.infosecinstitute.com/ibm-rational-appscan/IBM Rational Appscan is one of the most widely used tools in the arena of web application penetration testing.

2014-02-19 16:58:40 886

原创 IBM Rational Appscan: Part 2 ---reference

http://resources.infosecinstitute.com/appscan-part-2/By Rohit T|August 16th, 2012-------------------------------------------------------------------------------------------------------------------

2014-02-19 16:58:38 721

原创 阅读redis源代码的一些体会

最近在学习redis及阅读redis等程序的源码时,有一些收获,特记录到下面。1.第一步,阅读源代码借助最好可以跟踪的工具去读,如sourceinsight。   我使用的是windows7环境,又因为是c程序,故使用sourceinsight,当然还有其他的方式,比如阅读java代码可以导入到eclipse。2. 第二步,搭建可以启动该源程序的环境,并能启动成功。   根据最简单

2014-02-19 16:58:36 629

原创 18 Command Line Tools to Monitor Linux Performance

By Ravi Saive Under: Linux Commands, Monitoring Tools On: December 26, 2013http://www.tecmint.com/command-line-tools-to-monitor-linux-performance/It’s really very tough job for every System or Net

2014-02-19 16:58:34 711

原创 代码规范

http://google-styleguide.googlecode.com/svn/trunk/javaguide.htmlhttp://www.oracle.com/technetwork/java/javase/documentation/codeconvtoc-136057.html

2014-02-19 16:58:32 438

原创 MySQL索引背后的数据结构及算法原理--转

MySQL索引背后的数据结构及算法原理作者 张洋 | 发布于 2011-10-18MySQL 索引 B树 优化原文地址:http://blog.codinglabs.org/articles/theory-of-mysql-index.html摘要本文以MySQL数据库为研究对象,讨论与数据库索引相关的一些话题。特别需要说明的是,MySQL支持诸多存储引擎,而各种存储引擎对

2014-02-19 16:58:29 568

原创 10 Linux DIG Command Examples for DNS Lookup--reference

by RAMESH NATARAJAN on FEBRUARY 29, 2012http://www.thegeekstuff.com/2012/02/dig-command-examples/Dig stands for domain information groper.Using dig command you can query DNS name servers for you

2014-02-19 16:58:27 720

原创 The Java serialization algorithm revealed---reference

Serialization is the process of saving an object's state to a sequence of bytes; deserialization is the process of rebuilding those bytes into a live object. The Java Serialization API provides a stan

2014-02-19 16:58:25 508

原创 如何由jdk的安装版本改成非安装版本

背景.官网一般只提供windows下的exe文件,不提供zip打包文件。有些不愿意使用安装版本。解决方法本文以windows 7下安装jdk-6u35-windows-x64.exe为例说明1. 下载jdk-6u35-windows-x64.exe2. 创建一个目录命名为jdk6,名称位置随意。3. 点击jdk-6u35-windows-x64.exe,选择路径为jdk6,

2014-02-19 16:58:23 617

原创 如何看linux是32位还是64位--转

地址:http://hi.baidu.com/hehongrong/item/20c296bcf8d834432aebe3b2如何看linux是32位还是64位如何看linux是32位还是64位查看linux是多少位的几位方法:查看linux机器是32位还是64位的方法:方法一:file /sbin/init    或者   file /bin/ls结果如下

2014-02-19 16:58:21 483

原创 Radix tree--reference

source address:http://en.wikipedia.org/wiki/Radix_treeIn computer science, a radix tree (also patricia trie or radix trie or compact prefix tree) is a space-optimized trie data structure where each

2014-02-19 16:58:19 612

原创 Red–black tree ---reference wiki

source address:http://en.wikipedia.org/wiki/Red%E2%80%93black_treeA red–black tree is a type of self-balancing binary search tree, a data structure used in computer science.The self-balancing is p

2014-02-19 16:58:16 688

原创 The Definitive C++ Book Guide and List--reference

http://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-listReference Style - All LevelsA Tour of C++ (Bjarne Stroustrup) The "tour" is a quick (about 180 pages and 14 chapte

2014-02-19 16:58:14 548

原创 学习中接触的计算机概念

1. 事件模型。从事件角度说,事件驱动程序的基本结构是由一个事件收集器、一个事件发送器和一个事件处理器组成。事件收集器专门负责收集所有事件,包括来自用户的(如鼠标、键盘事件等)、来自硬件的(如时钟事件等)和来自软件的(如操作系统、应用程序本身等)。事件发送器负责将收集器收集到的事件分发到目标对象中。事件处理器做具体的事件响应工作。2. PV(Page View)页面访问量。    UV

2014-02-19 16:58:12 527

原创 Linux getopt()函数 getopt_long()函数---转

http://hi.baidu.com/scoundrelgg/item/d4083f8412eea05d26ebd97fLinux getopt()函数 getopt_long()函数get_opt()函数:函数原型::#include int getopt(int argc, char * const argv[], const char *optstring);

2014-02-19 16:58:10 451

原创 C语言中extern的用法--转

http://blog.sina.com.cn/s/blog_52deb9d50100ml6y.html在C语言中,修饰符extern用在变量或者函数的声明前,用来说明“此变量/函数是在别处定义的,要在此处引用”。1. extern修饰变量的声明。举例来说,如果文件a.c需要引用b.c中变量int v,就可以在a.c中声明extern int v,然后就可以引用变量v。这里需要注意的是,被引用

2014-02-19 16:58:08 499

原创 深入学习keepalived之预备工作--线程

1. 线程的定义1.1 线程定义在scheduler.h文件中,其定义如下所示/* Thread itself. */typedef struct _thread { unsigned long id; /*identify*/ unsigned char type; /* thread type */ struct _

2014-02-19 16:58:06 640

原创 深入学习keepalived之一 keepalived的启动

1.keepalived的启动过程:    启动健康检查子进程和vrrp子进程。其中_WITH_LVS_,_WITH_VRRP_在configure和configure.in文件中定义。源码如下:/* Daemon init sequence */static voidstart_keepalived(void){#ifdef _WITH_LVS_ /*

2014-02-19 16:58:03 1654

原创 Linux下Makefile的automake生成全攻略--转

http://www.yesky.com/120/1865620.shtml作为Linux下的程序开发人员,大家一定都遇到过Makefile,用make命令来编译自己写的程序确实是很方便。一般情况下,大家都是手工写一个简单Makefile,如果要想写出一个符合自由软件惯例的Makefile就不那么容易了。   在本文中,将给大家介绍如何使用autoconf和automake两个工具来帮助我们自

2014-02-19 16:58:01 427

原创 How to Configure Tomcat/JBoss and Apache HTTPD for Load Balancing and Failover

http://java.dzone.com/articles/how-configure-tomcatjboss-andIn this post we will see how to setup a load balanced JBoss or Tomcat environment with the fail-over capability.This post assumes that

2014-02-19 16:57:59 460

原创 Find command usage in Linux with excellent examples--reference

http://www.coolcoder.in/2014/02/find-command-usage-in-linux-with.htmlfind searches the directory tree rooted at each given file name by evaluating  the given expression from left to right, according

2014-02-19 16:57:57 508

原创 iptables详解--转

出处:http://yijiu.blog.51cto.com/433846/1356254iptables详解基本概念:1.防火墙工作在主机边缘:对于进出本网络或者本主机的数据报文,根据事先设定好的检查规则对其检查,对形迹可疑的报文一律按照事先定义好的处理机制做出相应处理对linux而言tcp/ip协议栈是在内核当中,意味着报文的处理是在内核中处理的,也就是说防火墙必须在工作在内核

2014-02-19 16:57:55 558

原创 VRRP协议介绍--转

http://www.cnblogs.com/jony413/articles/2697404.htmlVRRP协议介绍参考资料: RFC 37681. 前言VRRP(Virtual Router Redundancy Protocol)协议是用于实现路由器冗余的协议,最新协议在RFC3768中定义,原来的定义RFC2338被废除,新协议相对还简化了一些

2014-02-19 16:57:53 409

原创 keepalive学习之软件设计

软件架构如下图所示: Keepalived 完全使用标准的ANSI/ISO C写出. 该软件主要围绕一个中央I/O复用分发器而设计,这个I/O复用分发器提供网络实时功能. 主要设计目标着重于从所有的模块抽取一个公共模块,所有模块衍生于公共模块, 这是核心库产生的意义所在———降低代码的重复. 另一方面,设计目标是使用安全和有保障的的代码来保证生产的稳定性和健壮性。为了保证的稳定性和

2014-02-19 16:57:50 653

原创 Linux服务器性能评估与优化--转

http://www.itlearner.com/article/4553一、影响Linux服务器性能的因素 1. 操作系统级 Ø       CPUØ       内存Ø       磁盘I/O带宽Ø       网络I/O带宽 2.        程序应用级 二、系统性能评估标准 影响性能因素评判标准

2014-02-19 16:57:48 470

原创 深入redis内部之redis启动过程之二

接上文,继续分析代码1. 设置线程安全模式 zmalloc_enable_thread_safeness();/*设置线程安全标识符为1*/ void zmalloc_enable_thread_safeness(void) { zmalloc_thread_safe = 1; }2. 内存溢出处理 zmalloc_set_oom_hand

2014-02-19 16:57:46 426

原创 深入redis内部之redis启动过程之一

redis作为一个服务器,它的启动是从main函数开始的。redis.c1. 进程重命名#ifdef INIT_SETPROCTITLE_REPLACEMENT spt_init(argc, argv);#endif定义在config.h/* Check if we can use setproctitle(). 修改进程名称 * BSD syste

2014-02-19 16:57:44 535

原创 Where Should an Architect Begin?--reference

http://www.bitnative.com/2014/01/24/where-should-a-software-architect-begin/Where Should an Architect Begin?Posted on January 24, 2014 by Cory HouseImagine you’re dropped in a new position wit

2014-02-19 16:57:42 441

原创 Understanding Java 8 Streams API---reference

http://java.amitph.com/2014/01/understanding-java-8-streams-api.htmlSince past few versions, Java has started giving importance to concurrency. Java 8 goes one more step ahead and has developed a St

2014-02-19 16:57:40 409

原创 代码重构----使用java有限状态机来消除太多的if else判断

1. 状态机基本概念http://zh.wikipedia.org/wiki/%E6%9C%89%E9%99%90%E7%8A%B6%E6%80%81%E6%9C%BA状态存储关于过去的信息,就是说:它反映从系统开始到现在时刻的输入变化。转移指示状态变更,并且用必须满足来确使转移发生的条件来描述它。动作是在给定时刻要进行的活动的描述。有多种类型的动作:进入动作(entry action

2014-02-19 16:57:38 2374

原创 What is Network Address Translation?---reference

http://whatismyipaddress.com/natWhat is Network Address Translation?Network Address Translation (NAT) is the process where a network device, usually a firewall, assigns a public address to a compu

2014-02-19 16:57:36 516

原创 Basic Data Structures and Algorithms in the Linux Kernel--reference

http://luisbg.blogalia.com/historias/74062Thanks to Vijay D'Silva's brilliant answer in cstheory.stackexchange.com I have been reading some of the famous data structures and algorithms used in the L

2014-02-19 16:57:34 591

原创 Programmer Competency Matrix--ref--http://sijinjoseph.com/programmer-competency-matrix/

Note that the knowledge for each level is cumulative; being atlevel n implies that you also know everything from thelevels lower than n.Computer Science 2n (Level 0)n2 (Level 1)n (

2014-02-19 16:57:31 431

原创 http反向代理之haproxy详解

1.反向代理定义反向代理(Reverse Proxy)方式是指以代理服务器来接受internet上的连接请求,然后将请求转发给内部网络上的服务器,并将从服务器上得到的结果返回给internet上请求连接的客户端,此时代理服务器对外就表现为一个服务器。引用:http://baike.baidu.com/link?url=wtNaAjRzoRxtxruqa0IpdnUpC103uitnt8wj

2014-02-19 16:57:29 483

原创 HAProxy advanced Redis health check---ref

http://blog.exceliance.fr/2014/01/02/haproxy-advanced-redis-health-check/HAProxy advanced Redis health checkPosted on January 2, 2014 by Baptiste AssmannIntroductionRedis is an opensource

2014-02-19 16:57:27 557

原创 Become a Better Programmer: 5 Essential Methods at a Glance--reference

http://www.git-tower.com/blog/become-a-better-programmer-5-essentials/Become a Better Programmer: 5 Essential Methods at a GlanceTobias Günther, January 2014Developing software in a profession

2014-02-19 16:57:25 421

原创 awk - Unix, Linux Command---reference

http://www.tutorialspoint.com/unix_commands/awk.htmNAMEgawk - pattern scanning and processing languageSYNOPSISgawk [ POSIX or GNU style options ] -f program-file [ -- ] file ... gawk [ POSIX o

2014-02-19 16:57:23 950

三种查询方式跟踪Hibernate源码

三种查询方式跟踪Hibernate源码 学习源码必备

2013-02-22

hibernate 的createSQLQuery的几种用法

hibernate 的createSQLQuery的几种用法总结

2012-04-12

Spring AOP框架实现的结构分析

spring aop框架源码级分析 结构图

2012-04-12

JBoss5部署原理

JBoss5部署原理 基本可以了解 具体的可以参考官方文档

2012-03-01

sd卡学习笔记(汉语)

给那些不愿意看英语的人看的 希望你会喜欢!sd卡的

2008-10-29

usb开发资料(好不容易找到的)

学习usb驱动开发的好东西。 看过不后悔!

2008-10-29

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除