自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(26)
  • 收藏
  • 关注

原创 Nginx Rewrite 去掉重定向的参数

把http://example.com/test.php?para=xxx 重定向到 http://example.com/new若按照默认的写法:rewrite ^/test.php(.*) /new permanent;重定向后的结果是:http://example.com/new?para=xxx如果改写成:rewrite ^/test.php(.*) /new? perman...

2013-07-25 02:09:11 3303

Nginx Auth Basic

 Nginx Basic 认证        增加配置        auth_basic "Restricted Access";        auth_basic_user_file htpasswd;   #密码文件生成/usr/bin/htpasswd -c /app/nginx/conf/htpasswd test...

2012-05-14 14:16:52 146

nginx ssi

 HttpSsiModule This module provides a filter which processes Server-Side Includes (SSI) in the input. The list of the supported commands for SSI is currently incomplete. ...

2012-05-09 16:26:35 140

Navicat for MySQL

http://www.navicat.com/cn/download/download_regform.html?download=navicat100_mysql_cs.exe mysql的客户端工具

2012-05-09 10:55:59 112

rest-client 测试 连接请求的客户端工具

 rest-client 测试 连接请求的客户端工具http://code.google.com/p/rest-client/   

2012-05-09 10:54:53 120

Nginx limit http DELETE SEARCH and other methods

 Limit Available Methods ## Only allow these request methods ## if ($request_method !~ ^(GET|HEAD|POST)$ ) { return 444; }## Do not accept DELETE, SEARCH and other methods ...

2012-05-09 10:49:35 94

Nginx HTTP Post Method: 405 Method not allowed

Apache、IIS、Nginx等绝大多数web服务器,都不允许静态文件响应POST请求,否则会返回“HTTP/1.1 405Method not allowed”错误  测试工具:可以使用 http://code.google.com/p/rest-client/ 或者 curl 命令  如果一定要用post方式访问,对于Nginx,可以修改nginc.con...

2012-05-09 10:45:46 454

Ubuntu 11.10 VirtualBox虚拟机添加USB支持

Ubuntu 11.10 VirtualBox虚拟机添加USB支持 下载VirtualBox Extension Pack    https://www.virtualbox.org/wiki/Downloads安装VirtualBox Extension Pack    在“管理” > “全局设定” > “Extensions”中添加刚才下载的扩展...

2012-05-06 11:53:39 106

原创 $.getJSON

                 //加载地域信息                $.getJSON("http://127.0.0.1:7001/mall-web/Index/getAreaJson?callback=?", function(data){                    alert(1);                    alert($.toJSON...

2012-02-08 17:40:44 111

原创 jQuery 在after或者appten的时候如果代码中包含javascript会被重复执行

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html>    <head>        <meta http-equiv="Content-Type" content="text/htm

2012-02-07 09:32:45 139

原创 java.lang.OutOfMemoryError: PermGen space及其解决方法

PermGen space的全称是Permanent Generation space,是指内存的永久保存区域OutOfMemoryError: PermGen space从表面上看就是内存益出,解决方法也一定是加大内存。说说为什么会内存益出:这一部分用于存放Class和Meta的信息,Class在被 Load的时候被放入PermGen space区域,它和和存放Instance的Heap区域不同...

2011-12-10 22:30:16 61

struts2 convention action跳转action

 使用convention插件的时候,会把 "/Test/Step1" 中的 /Test 当成 namespace ,这样如果跳转action不在同一namespace时就会有问题,所以要手动指定namespace  @Action(value = "/Test/Step1", results = { @Result(name = "Step2", type = "redir...

2011-12-09 09:39:25 113

delphi7 代码格式化

DelForEx.v2.5 ftp://down:delphifans@60.190.193.106//tools/DelForEx.v2.5.zip   

2011-12-08 22:16:46 936

delphi7 显示行号

delphi7 显示行号   CnWizards 是 CnPack 项目组的主力产品之一,中文全称是 CnPack IDE 专家包,英文全称是 CnPack IDE Wizards,简称 CnWizards。CnWizards 是一组集成在 Delphi/C++Builder/BDS 的 IDE 中,用于增强 IDE 功能、提高 IDE 的可用性及开发效率的免费、开放源码工具 ...

2011-12-08 22:14:42 780

原创 spring-security

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/mav...

2011-11-24 13:20:30 86

原创 Struts2上传文件时报错,类型不允许

11/10/27 14:40:53 WARN interceptor.FileUploadInterceptor: Content-Type not allowed: imgFile "T1AO1iXmpqXXb__8US_010043.jpg_160x160.jpg" "upload__e31237e_1333f52e9b0__7ff9_00000018.tmp" image/pjpeg11/1...

2011-10-27 14:43:30 120

原创 jQuery插件Masked Input Plugin实现文本框掩码效果

插件地址: http://plugins.jquery.com/project/maskedinput 依赖: <script src="jquery.js" type="text/javascript"></script><script src="jquery.maskedinput.js" type="text/javascrip.

2011-10-26 17:36:35 165

原创 (转) jQuery-Color-Picker 颜色选择器

jQuery-Color-Picker jQuery 颜色选择器:  使用  <script src="jquery.js" type="text/javascript"></script><script src="iColorPickerLink.js" type="text/javascript"&g

2011-10-25 12:22:04 281

原创 Webloigc 10.3.3.0 启动sample时报错 此时不应有 \QuickTime\QTSystem\QTJava.zip。

问题:weblogic 10.3.3.0启动sample的server时候报 此时不应有 \QuickTime\QTSystem\QTJava.zip。  解决办法:在CLASSPATH=.;C:\Program Files (x86)\QuickTime\QTSystem\QTJava.zip删除C:\Program Files (x86)\QuickTime\QTSyste...

2011-07-14 15:35:15 615

原创 iBATIS 查询返回List<Map>

 ibatis中直执行sql,返回存储Map的List类型; 简单的查询统计之类的,没有必要定义太多的pojo   &lt;!-- 测试Sql --&gt; &lt;select id="sqlQuery" parameterClass="java.lang.String" resultClass="java.util.HashMap" remapResult...

2011-06-03 11:01:13 365

主机文件打开数方法(too many open files)

linux里面修改文件打开数用普通用户登录,执行ulimit -n ,查看文件打开数。如果太小,默认值是1024,则进行如下操作: 使用root用户修改/etc/ security /limit.conf 文件。在文件最后加如下两句话:*   soft nofile 50000*   hard nofile 50000       然后用普通用户...

2011-01-13 13:22:37 209

linux 建立软/硬连接

服务器硬盘使用率过高,查看发现日志记录的硬盘空间太少了,使用软连接将目录指向磁盘空间大的硬盘上1、使用df -lh 查看磁盘空间使用率 2、建立软连接ln -s 源文件 目标文件软链接就是ln -s ** **,它只会在你选定的位置上生成一个文件的镜像,不会占用磁盘空间硬链接ln ** **,没有参数-s, 它会在你选定的位置上生成一个和源文件大小相同的文件...

2010-12-10 14:23:43 105

maven 修改使用jdk版本

方式1、修改maven全局jdk         修改 安装目录\maven2\conf\settings.xml  &lt;profiles&gt; &lt;profile&gt; &lt;id&gt;jdk-1.6&lt;/id&gt; &lt;activation&gt; ...

2010-12-09 12:26:24 600 1

google gson学习

Gson网址http://code.google.com/p/google-gson/ 1.简单的处理list和map Gson gson = new Gson(); List testList = new ArrayList(); testList.add("first"); testList.add("second"); String listToJson...

2009-10-26 12:55:19 91

JSON格式化日期方法

首先我使用的工具是json-lib地址http://json-lib.sourceforge.net/ 也可参考我的http://lyking2001.iteye.com/admin/blogs/504020了解json-lib 对于date类型的转化一直是json中比较复杂的事情,我这只提出一种自己会的方式与大家分享,如果还好更好的方式别忘记告诉我学习下嘿嘿在这先谢了 ...

2009-10-26 11:47:06 320

原创 JSON学习笔记

现在很多开源的项目用来支持json格式的转化http://www.json.org/java/上有详细的介绍 我选择了其中的一个JSON-lib作为json格式转化工具http://json-lib.sourceforge.net/JSON-lib is a java library for transforming beans, maps, collections, java arr...

2009-10-26 10:24:18 70

空空如也

空空如也

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

TA关注的人

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