自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(63)
  • 问答 (1)
  • 收藏
  • 关注

原创 Geddy--node.js

address:http://geddyjs.org/1.geddy命令使用geddy -p 1234 //在端口1234开启geddy服务geddy -e environment //设定运行地址geddy -b hostname //default为localhost

2013-11-19 17:59:42 863

原创 jquery-1

引用自维基百科:url:http://zh.wikipedia.org/wiki/闭包_(计算机科学)在计算机科学中,闭包(Closure)是词法闭包(Lexical Closure)的简称,是引用了自由变量的函数。这个被引用的自由变量将和这个函数一同存在,即使已经离开了创造它的环境也不例外。所以,有另一种说法认为闭包是由函数和与其相关的引用环境组合而成的实体。闭包的概念出现于

2013-11-12 21:51:14 520

原创 node.js

在官网下载node.js for mac的安装包,在本地点击安装,默认会安装在/usr/local/bin目录下面有node和npm两个bin文件,即算是安装成功。编写的js文件如果想运行,需要在终端指向对应的目录去执行node xx.js命令。

2013-11-11 14:30:59 814

原创 mysql for mac

1. 在mysql的bin目录下执行命令./mysql -u root (若root有密码需输入密码)进入数据库, 2.mysql命令大全:http://see.xidian.edu.cn/cpp/html/1442.html

2013-11-08 17:26:37 473

原创 mac配置linux,nginx,redis,memcached

引用:nginx可参照http://www.sandzhang.com/blog/2010/07/03/linux-mac-os-x-install-nginx/mac下安装这些应用基本都是.configure然后 make  然后 sudo make install ,简单来说nginx需要预装price,memcached需要预装lib event

2013-11-08 10:32:25 564

原创 编程常识

编程思想知识记录:1.字典序和字母序:所谓字典序是指在排序时先比较第一个字符(如字母大写是比小写小的,这个应该是按照ASCII码来比较的),第一个字符相同的串,则比较之后的字符,依次比较下去。排出顺序。字母序则是根据字母的出现来比较,之后仍然是比较之后的字符,依次比较下去。排出顺序。

2013-11-05 21:39:18 465

原创 正则表达式-语法

引用地址:http://dragon.cnblogs.com/archive/2006/05/08/394078.html1.[] 表示只匹配[]内的一个字符[123]  不会匹配1234566788223223串public class PatternTest { public static void main(String[] args) { String input =

2013-10-31 14:01:36 534

翻译 正则表达式

While there are many implementations of regular expressions that differ sometimes slightly and sometimes significantly in syntax(语法) and behavior, there are basically only two kinds of regular expre

2013-10-31 11:02:49 380

转载 设计模式-创建模式

引用:http://www.cnblogs.com/BLoodMaster/archive/2010/03/01/1675856.html工厂方法模式:提供一个简单的决策类,根据条件生成产品。抽象工厂模式:提供一个创建并返回一系列产品的接口。单件模式:某个类只能有一个实例。提供一个全局访问点。(可拓展到有限个实例)生成器模式:将一个复杂对象的构建于呈现分开,以便

2013-10-29 10:02:08 357

原创 mysql root用户密码修改

引用地址:http://blog.sina.com.cn/s/blog_736146830100qzsk.html1.window下关闭mysql服务2. 使用`--skip-grant-tables’ 参数来启动 mysqld。windows下c:\mysql\bin\mysqld --skip-grant-tables3. 然后无密码登录到mysqld server ,>use

2013-10-23 17:31:03 428

原创 webservice

webservice用的jar下载地址:https://jax-ws.java.net/2.2.5/配置webservice需要将从这个地址下载到的项目中的lib包copy到自己项目下的webContent下的lib目录下去。

2013-10-23 11:18:43 379

原创 Memcached-1(官网学习)

1.官网地址:https://code.google.com/p/memcached/wiki/ReleaseNotes1415

2013-10-18 15:00:46 450

原创 urlrewrite

引用:http://blog.csdn.net/tegwy/article/details/4204460

2013-10-09 10:05:41 379

转载 robots和sitemap

地址:http://www.robotstxt.org相关文章引用:http://www.dunsh.org/2006/08/02/robotstxt/robots.txt文件是用来声明允许爬虫访问内容的文件

2013-10-08 10:52:06 767

原创 关于字符编码格式

1.服务器可以设置编码格式2.nginx也可以设置编码格式3.httpCilent工具(jar包),会先获取response中返回的Content-Type中包含的编码格式charset,如果没取到,则取httpClient工具中的default charset 为ISO-8859-1,httpclient中有给各种协议中传输数据的编码格式默认设置。如需要改变,需要在调用的时候去设置

2013-09-27 14:35:03 1859

转载 项目分析(spring+hibernate+velocity)(二)

spring配置:applicationContext-services.xml中配置:Spring2.1添加了一个新的context的Schema命名空间,该命名空间对注释驱动、属性文件引入、加载期织入等功能提供了便捷的配置。我们知道注释本身是不会做任何事情的,它仅提供元数据信息。要使元数据信息真正起作用,必须让负责处理这些元数据的处理器工作起来。 AutowiredAnnota

2013-09-23 17:21:47 584

原创 项目分析(spring+hibernate+velocity)(一)

1.AppInitListener继承了ServletContextListener(监听类) javax.servlet.ServletContextListener(监听应用的启动和停止)javax.servlet.http.HttpSessionListener (监听Session的创建和失效)web.xml里配置了listen监听AppInitListener类

2013-09-23 16:10:48 929

原创 缓存处理

逻辑:缓存主要用于查询(关联的是增删改时候的缓存更新),初次查询,添加缓存,n次查询时先判断缓存是否存在,存在-查缓存,不存在-查数据库分析:缓存处理工具:1.Java缓存框架 EhCache  EhCache 是一个纯Java的进程内缓存框架,具有快速、精干等特点,是Hibernate中默认的CacheProvider引用自(http://www.ibm.com/develope

2013-09-23 09:52:10 822

转载 ehcache

1.项目中的ehcache根据项目中了解到的public class TempDirTest { public  void testDiskPersistence(){// String cacheName="sampleCache"; CacheManager manager = new CacheManager("src/ehcache.xml"); Cache

2013-09-22 15:06:00 441

原创 Ant

1.   Ant是什么?ApacheAnt is a Java library and command-line tool whose mission is to drive processesdescribed in build files as targets and extension points dependent upon eachother. The main known usa

2013-09-12 16:22:38 816

转载 spring源码

link:http://zys0523.iteye.com/blog/1533502http://blog.csdn.net/faye0412/article/details/6609521

2013-08-29 11:43:57 435

原创 日志分析

通过网上好多文章的说明可以了解到:apache  common Logging 为各种各样的日志实现提供了统一的接口,一般的开源项目就是使用的是log4j和common logging,本身sun就自带日志打印,通过使用common logging ,如果项目改变使用的日志输出工具,都不需要改变项目内容,只需要引入引入对应的包即可。中间统一的控制都交给了common Logging

2013-08-14 11:27:13 512

翻译 apache log4j(3)-introduction(4)

Here is a sample configuration file that results in identical output as the previous BasicConfigurator based example.# Set root logger level to DEBUG and its only appender to A1.log4j.rootLogg

2013-08-14 09:57:18 653

翻译 apache log4j(3)-introduction(3)

Appenders and LayoutsThe ability to selectively enable or disable logging requests based on their logger is only part of the picture. Log4j allows logging requests to print to multiple destinati

2013-08-14 09:56:47 655

翻译 apache log4j(3)-introduction(2)

Level InheritanceThe inherited level for a given logger C, is equal to the first non-null level in the logger hierarchy, starting at C and proceeding upwards in the hierarchy towards the root logger

2013-08-14 09:56:15 569

翻译 apache log4j(3)-introduction(1)

Short introduction to log4j: Ceki Gülcü, March 2002Copyright 2000-2002 The Apache Software Foundation. All rights reserved. This software is published under the terms of the Apache Software License

2013-08-14 09:54:48 646

原创 ObjectNotFoundException

[2013-08-13 14:22:07] org.springframework.orm.hibernate3.HibernateObjectRetrievalFailureException: No row with the given identifier exists: [com.tywire.tadu.wap.db.Tip#60150]; nested exception is or

2013-08-13 14:30:09 1633

原创 c3p0异常

org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is java.sql.SQLException: An SQLException was provoked by the followi

2013-08-13 14:17:38 838

翻译 apache log4j(2)-Download

Download Apache log4j 1.2.17Apache log4j 1.2.17 is distributed under the Apache License, version 2.0.The link in the Mirrors column should display a list of available mirrors with a default

2013-08-12 16:51:46 759

翻译 apache log4j(1)

Welcome to Apache log4j, a logging library for Java. Apache log4j is an Apache Software Foundation Project and developed by a dedicated team of Committers of the Apache Software Foundation. For more i

2013-08-12 16:33:04 473

原创 异常-配置数据库错误

严重: Exception sending context initialized event to listener instance of class com.tywire.tadu.wap.utils.AppInitListenerorg.springframework.beans.factory.BeanCreationException: Error creating bean wit

2013-08-01 10:19:15 854

转载 关于技能的文章

http://www.csdn.net/article/2013-07-19/2816284

2013-07-22 10:50:39 793

原创 单点登陆

百度百科定义:单点登录(Single Sign On),简称为 SSO,是目前比较流行的企业业务整合的解决方案之一。SSO的定义是在多个应用系统中,用户只需要登录一次就可以访问所有相互信任的应用系统。它包括可以将这次主要的登录映射到其他应用中用于同一个用户的登录的机制。支持产品:WebSphere通过Cookie记录认证信息,WebLogic则是通过Session共享认证信息,用Cookie方

2013-07-18 14:14:37 1415

原创 web.xml

完成对监听器Listener,Filter,加载顺序的了解,

2013-07-11 14:40:16 418

原创 andorid-study-1

1.项目来源淘宝开源平台oplayer项目:http://code.taobao.org/project/explore/2.项目分析(一)首先搭建好相关的android开发环境(网上到处都是)。(二)目录分析a.res目录-存放各种资源文件的目录           drawable-为了获取资源类型,使用mContext.getResources().getDrawab

2013-07-10 14:46:40 461

原创 tair

原文地址:http://code.taobao.org/p/tair/wiki/deploy/

2013-07-09 10:31:16 528

原创 Maven

1.检查JDK安装能看到jdk的安装路径和版本等信息引用文章:http://www.cnblogs.com/dcba1112/archive/2011/05/01/2033805.html2.

2013-07-09 10:30:54 432

原创 一个不是算法的算法

private List getrechargeTypeListOrder(List rechargeCardTypeList) { List rechargeCardTypeBOList = new ArrayList(); Integer weight = 0; Integer weightcompare = 0; Integer index = 0; for (int j

2013-07-08 16:14:10 599

原创 识别码知识-UUID

1.UUID百度百科相关介绍:UUID含义是通用唯一识别码 (Universally Unique Identifier),这 是一个软件建构的标准,也是被开源软件基金会 (Open Software Foundation, OSF) 的组织应用在分布式计算环境 (Distributed Computing Environment, DCE) 领域的一部分。UUID 的目的,是让分

2013-07-05 15:17:34 847

原创 Fiddler--抓包工具

博客地址:http://www.cnblogs.com/TankXiao/archive/2012/02/06/2337728.html

2013-07-04 17:25:01 501

空空如也

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

TA关注的人

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