今天在工作的时候发现自己update 一个表的某个字段超时,想了好久,首先想到的办法是,延长操作时间:mysql> set innodb_lock_wait_timeout=100mysql> show variables like 'innodb_lock_wait_timeout'; 但是时间....
分类:
数据库 时间:
2014-06-21 11:38:08
阅读次数:
277
import threadingfrom time import sleepfrom msalt_proxy.client import Clientdef f(t): print t cli=Client(t,'*',role='server') cli.sys.ping()from mul...
分类:
编程语言 时间:
2014-06-21 11:05:27
阅读次数:
251
Question:There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity s...
分类:
其他好文 时间:
2014-06-21 08:34:52
阅读次数:
172
A string is a sequence of characters. You can access the characters one at a time with the bracket operator. The second statement selects ch...
分类:
其他好文 时间:
2014-06-21 08:19:51
阅读次数:
197
## if (I am a Programmer || I have a strong sense of time) I use ag___##1. 安装命令行ag(代码中行首的“\\”是多余的)```bash\#!/usr/bin/env bash\#Author Leslie Guan\#ma....
分类:
其他好文 时间:
2014-06-21 07:55:03
阅读次数:
241
问题如下:根据脚本参数的个数$#进行一个循环,在依次输出每个参数$1 $2 $3......我有一个循环变量i$i 取到这时的i为1,我想使用这个1再去调用$1,也是就是打印出第一个参数就是$($i)的意思来取到第几个参数,当然$($i)是不好用的当时纠结了好久,最后上百度提问,两位高手给出了答案....
分类:
其他好文 时间:
2014-06-21 06:56:25
阅读次数:
192
注意,这里面的sleep()函数,如果在windows环境下,就是Sleep(),如果是linux是sleep(),主要在于是使用gcc,还是vs的编译器。#include #include #include #include void put_date(void){time_t current;s...
分类:
其他好文 时间:
2014-06-21 00:55:34
阅读次数:
295
Shell编程中Shift的用法Bash中,数组变量的赋值有两种方法: (1) name = (value1 ... valuen)此时下标从0开始 (2) name[index] = value 下面以一个简单的脚本来说明,脚本内容如下:#!/bin/shuntil [ $# -eq 0 ]...
分类:
其他好文 时间:
2014-06-21 00:53:38
阅读次数:
1952
// Question: There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexi...
分类:
其他好文 时间:
2014-06-21 00:22:23
阅读次数:
255
MongoDB安装 MongoDB具有跨平台的优良特性,提供了对主流的操作系统支持,我们可以根据自己使用的操作系统,选择下载对应的安装包。图1.MongoDB支持各个版本的操作系统 MongoDB在各个操作系统上的安装都比较简单,我们只需要下载安装包,解压到某个目录下,然后指定存储目录并执行mong...
分类:
数据库 时间:
2014-06-21 00:12:09
阅读次数:
445