快速排序算法。python实现。 1 # -*- coding: utf8 -*- 2 3
import random 4 5 def partition(mylist, low, high): 6 pivotkey = mylist[low] 7
while low = piv...
分类:
其他好文 时间:
2014-05-17 01:25:40
阅读次数:
305
Cloud computing is a model for enabling ubiquitous,
convenient, on-demand network access to a shared pool of configurable computing
resources (e.g., n...
分类:
其他好文 时间:
2014-05-17 00:47:31
阅读次数:
224
今天碰到了一个查询异常问题,上网查了一下,感谢原创和译者如果你使用的数据库连接类是 the
Data Access Application Blocks "SqlHelper" 或者 SqlClient Class , 你在执行一个很费时的SQL
操作时候,可能就会碰到下面的超时异常。-------...
分类:
其他好文 时间:
2014-05-16 23:19:16
阅读次数:
333
yanzhihong@yzh:~/nook3$ file noogie.img
noogie.img: x86 boot sector; partition 1: ID=0xc, active, starthead 1,
startsector 32, 155616 sectors, code of...
分类:
其他好文 时间:
2014-05-16 08:31:35
阅读次数:
236
class base64{ /** * 加密字符串 * @access static * @param
string $data 字符串 * @param string $key 加密key * @return string */ publ...
分类:
Web程序 时间:
2014-05-14 10:18:23
阅读次数:
333
首先查看数据盘的信息,找到新添加的数据盘,如/dev/xvdbfdisk
-l然后将数据盘分区fdisk /dev/xvdb#然后根据提示#输入 n ,表示设定新的分区#输入 p ,表示Primary
partition(主分区)#输入 1 ,表示只分1个区。再次查看数据盘的信息,便会发现数据盘分区...
分类:
其他好文 时间:
2014-05-14 06:57:25
阅读次数:
256
Inject.h#pragma oncetypedef DWORD (WINAPI
*PFNTCREATETHREADEX)( PHANDLE ThreadHandle, ACCESS_MASK DesiredAccess, ...
字符串 string block ---- copyFoundtion对象用 (array,
NSObject) ---- StrongUI控件 代理 ---- weak基本数据类型 ---- ...
分类:
其他好文 时间:
2014-05-13 17:20:23
阅读次数:
207
ORACLE RMAN备份及还原
RMAN可以进行增量备份:数据库,表空间,数据文件
只有使用过的block可以被备份成backup set
表空间与数据文件对应关系:dba_data_files / v$datafile_header
在noarchivelog模式下,可以使用RMAN备份read-only和offline的表空间
O...
分类:
数据库 时间:
2014-05-13 16:18:47
阅读次数:
556
引言:
在Linux中使用ls -l filename命令查看filename的属性时,会列出文件的9种属性,例如:ls -l /etc/fstab
-rw-r--r-- 1 root root 1102 2013-10-12 02:33 /etc/fstab
从左到右分别是类型与权限、文件个数、该文件或目录的拥有者、所属的组、文件大小、创建时间、文件名
以上这些文件属性的信息...
分类:
系统相关 时间:
2014-05-13 11:30:43
阅读次数:
529