自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(69)
  • 资源 (5)
  • 问答 (1)
  • 收藏
  • 关注

对国内4个常用CDN公共库加速服务的简单测试

由于本人的香港主机带宽较小,所以考虑使用国内的一些CDN公共库加速服务。使用之前,我挑选了4个比较常用的简单测试了一下,分别是百度、新浪、七牛、360。本人是晚上在家中测试的,电信12M宽带。测试代码如下:<html><head> <!-- 百度 --> <script src="http://libs.baidu.c...

2014-09-24 21:31:45 344

很诡异的ftp上传失败

最近发现在家中使用FlashFXP给香港的云龙主机上传文件的时候经常停在某个文件就不动了,然后超时失败。FileZilla也是如此。尝试过几种方式都不行:1. 使用各种版本的FlashFXP2. 升级了服务端的vsftpd版本3. 使用主动模式(PORT)或者被动模式(PASV)4. 关闭防火墙杀毒软件等等 对比了其他情况又是正常的:1. 改成SFTP over...

2014-09-20 20:23:16 207

原创 Failed to load c++ bson extension, using pure JS version

$ [sudo] npm explore npm -g -- npm install node-gyp@latest$ [sudo] npm install -g mongodb  https://github.com/TooTallNate/node-gyp/wiki/Updating-npm%27s-bundled-node-gyp

2014-04-27 23:03:06 374

原创 去除文件中的换行符

awk '{printf("%s",$0)}' file.txt > file.txt.tmp && mv file.txt.tmp file.txt 

2014-04-26 13:14:58 560

原创 破解MarkdownPad2

使用UltraEdit等编译器通过16进制的方式打开安装目录下的MardownPad2.exe文件,搜索 2C 02 16 2A 02 02 03将 16 改为 17,保存。重新启动就会看到已经激活专业版了...

2014-01-11 01:58:03 88

原创 UNIX时间戳与ISO-8601时间格式之间的转换

strtotime('2010-03-24 08:15:42');date('Y-m-d H:i:s', 1156219870); select FROM_UNIXTIME(1156219870);select UNIX_TIMESTAMP('2013-01-10 12:33:00'); 

2013-12-18 23:58:20 2214

原创 eclipse 忽略jquery压缩文件报错

Project -> Properties -> JavaScript -> Include Path -> Source,编辑Exclusion patterns:加入指定的文件

2013-11-26 19:53:09 97

Perl进阶笔记

my @book = ( "Seek Away", "For True");my %info = ( "name" => "jason", "age" => 22);my %guy = ( "book" => \@book, "info" =&

2013-11-10 00:43:01 143

原创 nginx启动SSL默认不输入密码

如果nginx配置了SSL,在每次启动nginx的时候都会需要你手动输入证书的密码,如果不想输入,可以cp server.key server.key.origopenssl rsa -in server.key.orig -out server.key这样启动nginx的时候就不需要输入密码了。 当然也可以保留密码,改用expect的方式,这个可以参考expect自动登录S...

2013-10-30 14:27:54 1009

原创 nginx + php-fpm 服务器配置

增加.htm格式的文件解析为php 修改nginx.conf,在server{}内,添加 location ~ \.php|\.htm$ {root           /home/www;fastcgi_pass   127.0.0.1:9000;fastcgi_index  index.php;fastcgi_param  SCRIPT_FILENAME  $...

2013-10-30 14:23:24 116

原创 各种电影视频格式标题的含义

1.CAM(枪版)——珍爱生命,远离枪版CAM 通常是用数码摄像机从电影院盗录。有时会使用小三角架,但大多数时候不可能使用,所以摄像机会抖动。因此我们看到画面通常偏暗人物常常会失真,下方的字幕时常会出现倾斜。 由于声音是从摄像机自带的话筒录制,所以经常会录到观众的笑声等声音。因为这些因素,图象和声音质量通常都很差。2.TS——只比枪版好一点TS 与CAM版的标准是相同的。但它使用的是外置音源(一...

2013-10-21 22:24:50 1690

原创 PHP获得用户的真实IP地址

/** * 获得用户的真实IP地址 * * @access public * @return string */function real_ip(){ static $realip = NULL; if ($realip !== NULL) { return $realip; } if...

2013-09-28 21:50:34 92

原创 前端跨域通信各方法总结

原文:http://zciii.com/blogwp/crossdomain/  

2013-08-31 00:57:29 84

原创 时间转换

/* * Unix timestamp -> 普通时间 */gmdate('Y-m-d H:i:s', 1377494514); 

2013-08-26 13:24:14 91

原创 不知有没有人觉得Intellij IDEA ULTIMATE 12 特别容易崩溃

不知有没有人觉得Intellij IDEA ULTIMATE 12 特别容易崩溃

2013-08-24 18:46:47 132

原创 jQuery.proxy可以往函数里传参

for (j = td_counter; j < rows; j++) { td = document.createElement("td"); td.innerHTML = ' '; td.onclick = $.proxy(this.onclick, this, i); tr.appendChild(td);}

2013-08-06 10:33:05 301

原创 扩展prototype.js Object.deepExtend深度扩展

Object.deepExtend = function(destination, source) { for (var property in source) { if (source[property] && source[property].constructor && source[property].constructor =...

2013-07-29 23:08:06 367

原创 prototype.js1.7.1在IE下getOffsetParent()会返回body

prototype1.7.1在IE下getOffsetParent()会返回body可用ancestors()[0]

2013-07-29 20:32:13 102

原创 Javascript string repeat 重复拼写字符串

function repeat(s, n){ var a = []; while(a.length < n){ a.push(s); } return a.join('');}//或者String.prototype.repeat = function( num ){ return new Arra...

2013-07-17 17:31:45 94

原创 Intellij IDEA不能创建和显示rcS文件

1. File -> Settings2. Select “File Types"3. In the bottom of the window there is a field called “Ignore files and folders" that contains “rcs".4. Remove the rcs part from the above field and...

2013-07-15 10:00:59 135

原创 PowerDesigner怎样才能在修改表的字段Name的时候Code不自动跟着变

http://blog.csdn.net/hongqishi/article/details/7050255

2013-05-07 10:01:28 140

原创 搭建JW Player编译环境

环境 Centos6.3首先从svn中获取源码,以6.3版本为例 svn co http://developer.longtailvideo.com/svn/tags/mediaplayer-6.3 按照README中的说明,安装 Flex SDK和Ant * Flex SDK 4.1: http://sourceforge.net/adobe/flexsdk/wiki/...

2013-04-18 14:53:00 123

原创 Javascript 判断本地文件是否存在

function fileExists(url) { var http = new XMLHttpRequest(); http.open('HEAD', url, false); http.send(); return http.status!=404;} 

2013-04-15 14:42:56 1787 1

原创 可以参考的javascript编码风格

https://github.com/aralejs/aralejs.org/wiki/JavaScript-%E7%BC%96%E7%A0%81%E9%A3%8E%E6%A0%BC

2013-03-22 23:04:47 88

原创 VIM 设置tab为4空格

set tabstop=4set shiftwidth=4set expandtab

2013-03-22 23:02:49 106

原创 javascript 禁止鼠标右键

function doProhibit(){ if(window.Event) document.captureEvents(Event.MOUSEUP); function nocontextmenu() { event.cancelBubble = true event.returnvalue = false; r...

2013-03-22 13:29:06 166

原创 CASE expression of SQLite

 CASE x WHEN w1 THEN r1 WHEN w2 THEN r2 ELSE r3 ENDCASE WHEN x=w1 THEN r1 WHEN x=w2 THEN r2 ELSE r3 END

2013-03-22 10:55:52 82

原创 Struts2 常规

struts2 源码目录 => struts-2.3.7\src\core\src\main\java

2013-03-09 00:43:23 53

原创 Intellij 编辑properties中文(自动native2ascii)

在编辑器的设置里找到File Encodings1. 把Default encoding for properties files 选上UTF-82. 再把下面的Transparent native-to-ascii conversion打上勾

2013-03-03 18:28:53 1019

Win7因为NPF不能正常使用Wireshark

Win7可能因为没有默认启动NPF而不能正常使用Wireshark抓包工具,虽然可以以管理员运行cmd,然后net start npf。但是这样每次要使用wireshark都需要这样手工执行一下命令,很不方便。事实上,可以设置开机默认启动NPF: sc config npf start= system注意,等号后面是有一个空格的。...

2012-12-15 15:37:38 979

原创 使用ctags和vim快速查看内核源代码

在源码目录下 ctags -R --exclude=.pc建立tag需要点时间,请耐心等待。然后就可以用vim快速查找函数、结构体等的定义与声明 例如查找sk_buff,使用vi -t sk_buff,如果定义只有一处,它会立即自动打开这个文件,并跳转到结构体上,否则会提示你选择哪个文件的哪一处定义。...

2012-12-11 14:53:04 232

原创 Centos Xampp phpmyadmin access forbidden

妹的,在centos下使用xampp的时候,http://localhost没问题,phpmyadmin access forbidden的情况下不是传说中的/opt/etc/extra/httpd-xampp.conf        #Deny from all而是加上一句require all granted...

2012-11-12 15:34:53 129

原创 在Source Insight集成Astyle(代码格式化)

 Windows平台下也有好多人都喜欢用SourceInsight编辑C/C++程序,但是SourceInsight没有提供对代码格式化的功能,如果将Artistic Style集成到SourceInsight中,那就可以为它扩展出代码格式化的功能了。假定AStyle.exe的目录是“C:/ArtisticStyle/”,在该目录下有一个“c.opt”文件是用来保存配置的文件。下面简要地...

2012-11-06 10:34:04 180

原创 VI 退出时保留退出前屏幕内容

在~/.vimrc中增加set t_ti=set t_te= 

2012-11-01 14:12:14 405

原创 chrome.exe --enable-easy-off-store-extension-install

chrome.exe --enable-easy-off-store-extension-install

2012-10-23 19:33:58 952

原创 CSS3 圆角按钮

<html><head><title>My project</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><style>.button { display: inlin

2012-09-21 22:13:55 113

原创 CSS 圆角

先说一下Firefox的圆角属性:-moz-border-radius: {1,4} | inherit如果你想设置四个角都是一样圆角的话,可以像这样子直接设置-moz-border-radius:5px;也可以单独设置元素的上左、上右、下右、下左四个角的值,分别用-moz-border-radius-topleft、-moz-border-radius-topright、-moz-bor...

2012-09-21 22:11:02 60

原创 CSS 边框阴影

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>&

2012-09-21 20:30:18 59

原创 Gvim 共享粘贴板 启动时最大化

修改 gvim\Data\settings\_vimrc set clipboard+=unnamed   //与windows共享粘贴板 colorscheme evening  //使用evening配色 if has('win32')     au GUIEnter * simalt ~x   //启动时自动最大化endif...

2012-09-21 20:17:43 136

原创 span元素的width问题

 最近遇到一个问题,无法为span元素设置width属性。查看CSS文档得知,浏览器会忽略行内元素(inline,或称:内联元素)的width属性。网上给出的一种解决方法:span { background-color:#f00; display:block; width:200px;}但是这样会使 span 和它前后的元素分属两行,也就是说 span 其实是变成类似 d...

2012-09-13 12:53:51 215

PurifyPlus7.0.1_for_Linux part2

PurifyPlus7.0.1_for_Linux part2

2015-11-07

PurifyPlus7.0.1_for_Linux part1

PurifyPlus7.0.1_for_Linux part1

2015-11-07

cicsj2ee.jar

cicsj2ee.jar,java用于连接cics的类

2015-10-30

JavaSE6 API chm格式

2014-08-29制作,chm格式的JavaSE6版本API

2014-08-29

Sockets in the Kernel

Sockets in the Kernel

2012-12-09

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

TA关注的人

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