pickle存取图片#Open your images in binary mode and read them in as binary strings then#save them in a list/dict/tuple , then pickle it.>>> import Image, p...
分类:
编程语言 时间:
2014-08-24 15:24:02
阅读次数:
219
// learn gcc atomic variable
#define _GNU_SOURCE
#include
#include
#include
#include
#include
#include
#include
#include
#define INC_TO 1000000 // every thread adds 1 million times
int glob...
分类:
编程语言 时间:
2014-08-24 12:58:52
阅读次数:
224
clearerr(清除文件流的错误旗标)
相关函数 feof
表头文件 #include
定义函数 void clearerr(FILE * stream);
函数说明 clearerr()清除参数stream指定的文件流所使用的错误旗标。
fdopen(将文件描述词转为文件指针)
相关函数 fopen,open,fclose
表头文件 #include
定...
分类:
编程语言 时间:
2014-08-24 12:58:22
阅读次数:
195
Linux Kernel File IO Syscall Kernel-Source-Code Analysis
分类:
系统相关 时间:
2014-08-24 12:53:22
阅读次数:
411
DownLoad:
http://edelivery.oracle.com
Prepare(Source And Target DB):
Add Environment Varible
vi /home/oracle/.bash_profile
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/li...
分类:
数据库 时间:
2014-08-24 11:43:32
阅读次数:
392
lsof(list open files)是一个列出当前系统打开文件的工具。lsof -i 4 #列举出IP V4 lsof -i tcp 列出所有TCP网络连接lsof -i 列出所有网络连接
lsof -i:80 #查看一下80端口的进程
lsof -i udp:53 #查看 一下udp,53端口
lsof -u zhangy 列出某个用户打开的所有文件lso...
分类:
系统相关 时间:
2014-08-24 11:42:12
阅读次数:
273
1、~/.bash_profile文件添加一下内容并执行source ~/.bash_profile export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK2、/etc/sysconfig/i18n文件修改为以下内容并执行source /etc/sysconfig/i1....
分类:
系统相关 时间:
2014-08-23 22:53:31
阅读次数:
212
用lua简单地异或加密文件,注意解密的key是加密key的倒序: 1 require 'bit' 2 3 local encode = function(inpath, outpath, key) 4 local inf = assert(io.open(inpath, "rb")) 5 ...
分类:
其他好文 时间:
2014-08-23 20:15:51
阅读次数:
5713
Jason MarzDo you hear me ,I'm talking to you,Across the water across the deep blue ocean,under the open sky,ou my baby I'm trying.Boy I hear you in my...
分类:
其他好文 时间:
2014-08-23 12:30:50
阅读次数:
211
一 JDBC链接
通常你希望SessionFactory来为你创建和缓存(pool)JDBC连接. 如果你采用这种方式, 只需要如下例所示那样,打开一个Session:
Session session = sessions.openSession(); // open a new Session
一旦你需要进行数据访问时, 就会从连接池(connection pool)获得一个JD...
分类:
系统相关 时间:
2014-08-23 11:20:01
阅读次数:
266