自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

baiyangliu

不积跬步,无以至千里

  • 博客(128)
  • 资源 (12)
  • 收藏
  • 关注

原创 将memcached添加到系统服务

#! /bin/sh## chkconfig: - 55 45# description: The memcached daemon is a network memory cache service.# processname: memcached# config: /etc/sysconfig/memcached# pidfile: /var/run/memcached/memca

2014-03-28 00:25:03 2151

原创 SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".SLF4J: Defaulting to no-operation (NOP) logger implementationSLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for furth

2013-12-25 12:10:32 1093

原创 maven-javadoc-plugin 中文乱码

org.apache.maven.plugins maven-javadoc-plugin 2.9.1 true UTF-8 UTF-8 UTF-8 attach-javadocs jar 添加环境变量:JAVA

2013-12-25 10:58:10 4543 1

原创 Apache + PHP 上传文件时出现Internal Server Error

The server encountered an internal error or misconfi*ration and was unable to complete your request.Please contact the server administrator at  [email protected] to inform them of the time this er

2013-11-13 17:52:13 2631 1

原创 设置Windows为ntp服务器

@echo offecho Windows Registry Editor Version 5.00 > ntp.regecho [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters] > ntp.regecho "LocalNTP"=dword:00000001 > ntp.regecho [

2013-11-12 01:48:29 1319

原创 Starting MySQL… ERROR! The server quit without updating PID file

Linux系统宕机后,MySQL无法启动。可以尝试将 my.cnf 删除即可~~

2013-11-04 11:22:27 894

原创 Centos 6.4 minimal kamailio编译安装

安装websocket模块所需库 yum install libunistring libunistring-devel提示:/usr/bin/ld: cannot find -lmysqlclient解决办法:rpm -ivh MySQL-shared-5.6.14-1.linux_glibc2.5.x86_64.rpm提示:chown: invalid user

2013-10-15 22:36:50 5272

转载 Siremis 安装

Install And Maintain Kamailio v4.0.x Version From GITMain author: Daniel-Constantin Mierla This is a step by step tutorial about how to install and maintain Kamailio SIP Server version 4.0.

2013-10-14 13:03:48 2215 1

原创 android抓包工具

下载

2013-09-30 00:06:38 1196

原创 service httpd does not support chkconfig

cp /usr/local/apache2/bin/apachectl /etc/rc.d/init.d/httpdchkconfig --add httpd报 service httpd does not support chkconfig 错误出错原因:apachectl 这个脚本文件缺乏 chkconfig 和 description 这两个标签说明。解决方法:

2013-09-25 22:12:19 2050

原创 python version 2.7 required,which was not found in the registry

新建一个register.py 文件,把一下代码贴进去,保存,运行即可## script to register Python 2.0 or later for use with win32all# and other extensions that require Python registry settings## written by Joakim Loew for Secr

2013-09-17 23:24:12 889

原创 添加nginx到windows服务

1.下载rktools并安装2.执行以下命令:"D:\Program Files (x86)\Windows Resource Kits\Tools\instsrv" nginx "D:\Program Files (x86)\Windows Resource Kits\Tools\srvany.exe"3.新建nginx.reg,并执行Windows Registry Edito

2013-09-02 22:50:32 1041

原创 PHP 操作 MongoDB SQL对照表

SQL StatementMongo Query Language StatementCREATE TABLE USERS (a Number, b Number)Implicit or use MongoDB::createCollection().INSERT INTO USERS VALUES(1,1)$db->users->insert(arra

2013-08-16 17:04:46 1113

原创 Jetty Struts2 Result ‘Null’ Not Found

OGNL会执行执行安全检测,但是并不被GAE所支持,解决方法是创建一个监听器,将安全检查处理器置空OgnlRuntime.setSecurityManager(null);web.xml添加 com.llx.gps.listener.Struts2ListenerOnGAE package com.llx.gps.listener;import

2013-08-15 02:17:49 1776

原创 Browser.php

<?php/** * File: Browser.php * Author: Chris Schuld (http://chrisschuld.com/) * Last Modified: August 20th, 2010 * @version 1.9 * @package PegasusPHP * * Copyright (C) 2008-2010 Chris Schuld

2013-08-12 16:05:42 1088

原创 No input file specified

1.修改nginx主配置文件nginx.conf默认安装的nginx配置文件中定义fastcgi处是:fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;改成:fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;2.修改

2013-08-01 16:25:58 785

原创 MySQL-5.6.12 Replication

参见MySQL安装master:172.16.1.233slave:172.16.1.2341.修改配置文件mastervim /etc/my.cnf[mysqld] log_bin = mysql-bin log_bin_index = mysql-bin.index sync_binlog = 1 innodb_flush_log_at_trx_

2013-07-31 18:14:14 1055

原创 CentOS 6.4 编译安装 MySQL-5.6

环境:CentOS-6.4-x86_64-minimalmysql-5.6.12.tar.gzyum -y install make gcc-c++ cmake bison-devel ncurses-develgroupadd mysqluseradd -g mysql mysqlcurl -o mysql-5.6.12.tar.gz http://cd

2013-07-30 14:48:46 1362

原创 Nginx集群

配置文件#user nobody;worker_processes 1;error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info;pid logs/nginx.pid;events { worker_connection

2013-07-26 18:14:30 1482

原创 lvs + keepalived 高可用

1.编译和安装curl -o keepalived-1.2.7.tar.gz http://www.keepalived.org/software/keepalived-1.2.7.tar.gztar xvf keepalived-1.2.7.tar.gzcd keepalived-1.2.7./configuremakemake install2.配置cp /usr/

2013-07-26 18:06:38 1177

原创 php+nginx配置

php+nginx配置参见nginx编译和安装1.   下载curl –o php-5.5.1.tar.gzhttp://ar2.php.net/distributions/php-5.5.1.tar.gz2.   编译和安装tarphp-5.5.1.tar.gzcd php-5.5.1./configure--with-mysql --prefix=/usr/local/

2013-07-25 14:10:13 929

原创 nginx.spec

Name: nginxVersion: 1.5.2Release: 1%{?dist}Summary: Robust, small and high performance HTTP and reverse proxy serverGroup: System Environment/DaemonsLicense: BSDURL: http://nginx.net/Source0

2013-07-24 02:53:58 1752

原创 CentOS-6.4-x86_64-minimal Nginx编译和安装

Nginx编译和安装1.   环境1)        CentOS-6.42)        gcc-4.4.73)        nginx-1.5.24)        pcre-8.215)        zlib-1.2.86)        make2.   准备工作1)  下载pcre-8.21.tar.gzzlib-1.2.8nginx

2013-07-23 16:59:33 1770

原创 Ant编译(build.xml)

2013-06-17 10:55:59 849

原创 必须声明元素类型 "hibernate-mapping"

[2013-05-16 16:25:15,359] ERROR org.hibernate.internal.util.xml.ErrorLogger - HHH000196: Error parsing XML (2) : 必须声明元素类型 "hibernate-mapping"。[2013-05-16 16:25:15,359] ERROR org.hibernate.internal.u

2013-05-16 16:25:51 9349 1

原创 vbs打开文件对话框

Function SelectFile() Set wShell=CreateObject("WScript.Shell") Set oExec=wShell.Exec("mshta.exe ""about:FILE.click();new ActiveXObject('Scripting.FileSystemObject').GetStandardStream(1).WriteLine(FI

2013-04-27 00:53:37 4288

原创 π

Pi = 3.1415926535 8979323846 2643383279 5028841971 6939937510  : 505820974944 5923078164 0628620899 8628034825 3421170679  : 1008214808651 3282306647 0938446095 5058223172 5359408128  : 150481

2013-04-17 19:03:48 3595

原创 ExtJS时间扩展控件(显示年月日时分秒)

效果如下:Ext.ux.DateTime.js/** * @author baiyang * @date 2013-04-10 23:28:02 */Ext.define('Ext.ux.form.TimePickerField', { extend : 'Ext.form.field.Base', alias : 'widget.timepicker', alter

2013-04-10 23:17:51 7692 5

原创 Html利用锚点标记代替iframe实现页面无刷新加载

在Html中,有时为了实现页面的无刷新加载,相信有不少人会用到iframe标签。尤其是在做后台管理系统的时候,经常会在左边放置一个导航菜单,然后将正文显示在iframe中,类似如下写法:xxx 当然这样做有他的好处,但是有时处理起来还是有诸多的不便,iframe实际上就是一个子页面(肤浅理解,对错?)。例如:在父页面中的js方法,只能通过parent.xxx的形式来访问;有时为了检测用户

2013-04-08 15:44:31 4203 1

原创 Java生成Gif验证码 AnimatedGifEncoder

import java.io.*;import java.awt.*;import java.awt.image.*;/** * Class AnimatedGifEncoder - Encodes a GIF file consisting of one or * more frames. * * Example: * AnimatedGifEncoder e = ne

2013-03-17 12:08:08 2133

原创 SSH框架整合(整合Spring,Hibernate,Struts,c3p0,log4j,mysql)

该工程为搭建好的框架,方便以后使用工程缩略图:lib目录缩略图:下载地址

2013-03-16 03:13:38 1857 1

原创 error C2440: “类型转换”: 无法从“overloaded-function”转换为“LPTHREAD_START_ROUTINE”

解决方法:static UINT WINAPI ThreadFunc(LPVOID param){ IDialysisConnector* obj = (IDialysisConnector*)param; obj->TheFunctionYouWantToCallInThread(); // call the member function

2013-03-12 23:29:14 10150

原创 VC++获取MD5

md5.h#ifndef MD5_H#define MD5_H#include #include /* Type define */typedef unsigned char byte;typedef unsigned int uint32;using std::string;using std::ifstream;/* MD5 declaration. */cla

2013-03-10 00:43:35 2716

原创 Tomcat启用Gzip压缩功能

<Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443" URIEncoding="UTF-8" compression="on" compressionMinSize="1024" noCompressionUserAgents="gozilla,

2013-03-06 23:43:15 908

原创 Ext.util.md5

Ext.util.MD5 = function(s, raw, hexcase, chrsz) { raw = raw || false; hexcase = hexcase || false; chrsz = chrsz || 8; function safe_add(x, y) { var lsw = (x & 0xFFFF) + (y & 0xFFFF); var msw

2013-03-05 13:58:22 1801 1

原创 ExtJS 隐藏grid标题

hideHeaders: true

2013-03-01 13:42:10 1385

原创 Ext store.loadData()执行后不显示数据

原型如下:loadData( Ext.data.Model[]/Object[] data, [Boolean append] )注意第一个参数是对象类型的,所以在传参的时候,不要将JSON字符串直接传入,而需要传入解析后的对象,即Ext.JSON.decode(json)

2013-02-28 19:16:57 6934

原创 ExtJS 去掉TreePanel左上角的红色小三角

当Tree的节点被编辑后,会在左上角出现一个难看的小三角。解决方法如下:var m = Ext.create('Ext.data.NodeInterface', {}); m = g.createNode(m); m.set('id', members[j].Id); m.set('text', members[j].Name); m.set('leaf', tru

2013-02-28 16:36:46 1223

原创 jQuery MD5插件

(function($) { var rotateLeft = function(lValue, iShiftBits) { return (lValue >> (32 - iShiftBits)); }; var addUnsigned = function(lX, lY) { var lX4, lY4, lX8, lY8, lResult; lX8 = (lX & 0x8

2013-02-02 11:18:30 965

原创 csdn代码格式化

对于以上的代码样式,想必大家非常熟悉,下面给出一个参考示例:<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><% String docRoot = System.getProperty("docRoot"); String file = reque

2013-01-27 16:17:17 909

Flex 访问数据

Flex 4.6 访问数据,PDF中文高清版 flex_4.6_accessingdata

2012-11-23

Flex 获取文件MD5值

Flex 获取文件MD5值插件,调用格式为: var md5:String=by.blooddy.crypto.MD5.hashBytes(file.data);

2012-11-22

数据库连接工具RazorSQL

数据库连接工具,带注册机,可以连接多种数据库,包括SolidDB

2012-11-22

C++设计和演化

C++设计和演化.pdf Bjarne Stroustrup 著 裘宗燕 译

2012-11-22

Java反编译

Java反编译工具,可以查看.class文件,并且自动查找该路径下的其他相关class文件

2012-10-16

二维码编解码小工具

基于Google的库,用C#写的二维码编解码小工具

2012-06-06

SQL Server代码格式化插件

好用的SQL Server代码格式化插件,有代码提示等功能

2012-06-03

自己编写的模拟聊天程序

vc6.0编写的聊天程序原代码,只要将本程序在两台机器上安装,就可以相互聊天了

2010-06-07

C语言库函数大全CHM版

C语言 库函数 使用大全CHM版

2010-06-06

清华大学 李春葆 数据结构上机源程序

数据结构教程(第3版) 李春葆 尹为民

2010-06-03

空空如也

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

TA关注的人

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