一、Redhat上VNC Server配置本文以当前Linux系统未安装VNC服务器为基本,如果已安装请跳过第1节!前提:1.安装 TigerVNC Server# yum search tigervnc-server# yum install tigervnc-server.x86_64# vnc...
分类:
其他好文 时间:
2014-07-07 10:58:00
阅读次数:
180
Btree:1. 尽量使用覆盖索引, 即三星索引2. 多列索引如果带范围的话, 后续列不会作为筛选条件3. 多列索引应选择过滤性更好的充当前缀索引4. 尽量按主键顺序插入, 减少页分裂, 采用自增ID在高并发情况下, 可能造成明显征用, 或者更改innodb_autoinc_lock_mode配置....
分类:
数据库 时间:
2014-07-07 09:59:48
阅读次数:
212
Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5 6 7might become4 5 6 7 0 1 2).You are given a target value t...
分类:
其他好文 时间:
2014-07-03 22:10:05
阅读次数:
295
Follow up for "Search in Rotated Sorted Array":What ifduplicatesare allowed?Would this affect the run-time complexity? How and why?Write a function to...
分类:
其他好文 时间:
2014-07-03 21:59:51
阅读次数:
199
select 语句主要语法:SELECT select_list [ INTO new_table ] FROM table_source [ WHERE search_condition ] [ GROUP BY group_by_expression ] [ HAVING search...
分类:
其他好文 时间:
2014-07-03 21:34:18
阅读次数:
347
2014-7-1 应用在某内网应用排序管理页面跳转:function goSortManage() { var name = 'TypeID'; var TypeID = "0"; var url = location.search; //获取url中"?"符后的字串 var theRequest....
分类:
Web程序 时间:
2014-07-03 00:43:57
阅读次数:
299
Givenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= 3, there are a total of 5 unique BST's. 1.....
分类:
其他好文 时间:
2014-07-02 22:13:23
阅读次数:
191
(一)二分的模版:
int binary_search(int *array, int length, int key) {
int start = 0, end = length - 1;
while(end >= start) {
int middle = start + (end - start) / 2;
int tmp = array[middle];
if(tmp <...
分类:
其他好文 时间:
2014-07-02 08:19:05
阅读次数:
211
ERROR 1665 (HY000): Cannot executestatement: impossible to write to binary log since BINLOG_FORMAT = STATEMENTand at least one table uses a storage engine limited to row-based logging.InnoDB is limited to row-logging when transaction isolation level is REA...
分类:
数据库 时间:
2014-07-02 07:46:46
阅读次数:
322
测试参数:sysbench--test=/root/sysbench0.5/sysbench/tests/db/insert.lua
--mysql-table-engine=innodb--oltp-table-size=1000000
--max-requests=0--max-time=300--num-threads=16
--oltp-tables-count=10--report-interval=10
--mysql-host=10.8.8.100--mysql-port=3312--..
分类:
数据库 时间:
2014-07-02 06:44:36
阅读次数:
280