Speed of INSERT StatementsTo optimize insert speed, combine many small operations into a single large operation. Ideally, you make a single connection...
分类:
数据库 时间:
2015-06-20 17:01:20
阅读次数:
152
上一篇文章写的十分的烂,经过科普看语言源码实现用的是quicksort实现的底层排序,在这里模仿一下,勿喷!
package main
import (
"fmt"
"math/rand"
"runtime"
"sort"
"time"
)
func mergeonce(l, r []int) []int {
m := make([]int, 0, len(l)+len(r))
...
分类:
编程语言 时间:
2015-06-20 10:38:33
阅读次数:
167
一、Redis的安装:
wget http://download.redis.io/redis-stable.tar.gz
tar xzfredis-stable.tar.gz
cd redis-stable
make
make install
二、Redis的简单介绍:
1. Redis可执行文件说明:
文件名
说明
redis-ser...
分类:
其他好文 时间:
2015-06-20 09:18:35
阅读次数:
106
第一步:上传redis.2.8.19.tar.gz到linux上使用工具上传:第二步:查看上传的文件第三步:解压tar-zxvfredis-2.8.19.tar.gz解压到当前目录第四补:进入解压目录编译make将.c编译成可执行.o文件第五步:安装到指定目录makePREFIX=/usr/local/redisinstall第六步:拷贝redis.conf..
分类:
系统相关 时间:
2015-06-20 01:39:10
阅读次数:
224
php 编 c-client imap 客户.下载 http://www.washington.edu/imap/mirrors.html第一步,编 c-client官方文档说究竟有点坑,编译报错 “错误:x509v3.h:没有那个文件或文件夹”,搜了下论坛,使用以下的命令编译通过make slx ...
分类:
Web程序 时间:
2015-06-19 14:58:36
阅读次数:
172
There is much confusion among newcomers to AngularJS as to why the$httpservice shorthand functions ($http.post(), etc.) don’t appear to be swappable w...
分类:
Web程序 时间:
2015-06-19 13:14:40
阅读次数:
132
一、下载和安装rediscd/usr/local/src/wgettar-zxvfredis-2.8.3.tar.gz
cdredis-2.8.3
make
mkdir/usr/local/redis
cpredis.conf/usr/local/redis
cd./src
cpredis-server/usr/local/redis
cpredis-benchmark/usr/local/redis
cpredis-cli/usr/local/redis
ln-sv/usr/local/red..
分类:
其他好文 时间:
2015-06-18 22:23:51
阅读次数:
158
实验目的:使用手工编译的方式搭建httpd服务。有时候我真的很想吐槽51cto,因为我不知道好多人发表的一些关于自己的一些观点或者说是言论,为什么会有那么多的访问量,而我发表了42篇博客,每篇博客都是我一字一字打出来的关于实际操作的经验,为什么我上不了推荐博客?我实在..
分类:
Web程序 时间:
2015-06-18 22:23:02
阅读次数:
222
1227: Integer Game
Time Limit: 1 Sec Memory Limit:
128 MB
Submit: 9 Solved: 4
[Submit][Status][Web Board]
Description
Two players, S and T, are playing a game where they make alternate mov...
分类:
其他好文 时间:
2015-06-18 22:17:57
阅读次数:
192
D. Soldier and Number Game
Two soldiers are playing a game. At the beginning first of them chooses a positive integer n and gives it to the second soldier. Then
the second one tries to make m...
分类:
其他好文 时间:
2015-06-18 19:49:48
阅读次数:
111