#-*- coding:UTF-8 -*-#-*- author:Zahoor Wang
-*-import codecs, os, sys, platform, stringdef env():return platform.system()def
read_file(uri, charset =...
分类:
编程语言 时间:
2014-05-16 04:30:50
阅读次数:
306
tmux里面用鼠标滚轮来卷动窗口内容在 tmux里面,因为每个窗口(tmux
window)的历史内容已经被tmux接管了,所以原来console/terminal提供的Shift+PgUp/PgDn所显示的内容并不是当前窗口的历史内容,所以要用C-b
[进入copy-mode,然后才能用PgUp/...
分类:
其他好文 时间:
2014-05-16 03:48:27
阅读次数:
374
CentOS安装软件出现错误:bash: /usr/local/bin/rar:
/lib/ld-linux.so.2: bad ELF interpreter: No such file or
directorygoogle了一把才发现是64位系统中安装了32位程序解决方法:yum install...
分类:
系统相关 时间:
2014-05-16 03:31:51
阅读次数:
621
#!/bin/bashfor i in 1 2 3 4 5 6do echo
$idone看文件#!/bin/bashdir=$(ls /etc)for i in $dirdo echo $idone判断#!/bin/bashread
-p "please input a dirname:" ...
分类:
其他好文 时间:
2014-05-16 03:21:30
阅读次数:
279
先看看定义该类的头文件——CCRef.h 1
/**************************************************************************** 2
Copyright (c) 2010-2012 cocos2d-x.org 3 Copy...
分类:
其他好文 时间:
2014-05-15 22:01:38
阅读次数:
446
1.慢查询日志:slow_launch_time=2
查询大于某个时间的值(单位:s)slow_query_log=on/off
开启关闭慢查询日志slow_query_log_file=/opt/data/host-slow.log
慢查询日志位置2.连接数:max_connections MyS...
分类:
数据库 时间:
2014-05-15 21:44:08
阅读次数:
447
有时候会碰到如题这种问题,从网上查知解决办法,非常管用为eclipse.exe创建一个快捷方式,然后快捷方式上右键-属性,在目标栏填入E:\eclipse\eclipse.exe
-vm "C:\Program Files\Java\jdk1.6.0_16\bin\javaw.exe" -data ...
分类:
系统相关 时间:
2014-05-15 21:31:41
阅读次数:
317
After ASP.NET 3.5 has been installed you need
to modify the web.config file of your MOSS web site with a few Ajax specific
entries. Typically, the web...
分类:
Web程序 时间:
2014-05-15 21:16:22
阅读次数:
528
A linked list is given such that each node
contains an additional random pointer which could point to any node in the list
or null.Return a deep copy ...
分类:
其他好文 时间:
2014-05-15 21:00:06
阅读次数:
325
Log4J的配置文件(Configuration
File)就是用来设置记录器的级别、存放器和布局的,它可接key=value格式的设置或xml格式的设置信息。通过配置,可以创建出Log4J的运行环境。1.
配置文件Log4J配置文件的基本格式如下:#配置根Loggerlog4j.rootLogge...
分类:
其他好文 时间:
2014-05-15 18:06:51
阅读次数:
233