2015年2月10日
摘要: CREATE TABLE T ( [f1] VarCHAR(100), [f2] VarCHAR(100))goINSERT INTO T VALUES ('a','abc')INSERT INTO T VALUES ('a','b')INSERT INTO T VALUES ('b','XX')g... 阅读全文
posted @ 2015-02-10 14:32 尚書 阅读(447) 评论(0) 推荐(0) 编辑
  2015年2月2日
摘要: cd /tmp; curl https://www.kernel.org/pub/linux/utils/util-linux/v2.25/util-linux-2.25.tar.gz| tar -zxf-; cd util-linux-2.25;sudo apt-get install autop... 阅读全文
posted @ 2015-02-02 11:31 尚書 阅读(1728) 评论(0) 推荐(0) 编辑
摘要: 占坑 阅读全文
posted @ 2015-02-02 11:27 尚書 阅读(209) 评论(0) 推荐(0) 编辑
  2014年11月27日
摘要: Microsoft Open Tech group 在 GitHub上开发了一个REDIS Win64的版本,项目地址是:https://github.com/MSOpenTech/redis 可以在项目主页右边找到 zip包下载地址: https://github.com/MSOpenTech/redis/archive/2.8.zip 阅读全文
posted @ 2014-11-27 12:17 尚書 阅读(7937) 评论(0) 推荐(1) 编辑
摘要: If you go to the current version and open up the bin > release folder, you'll get a ZIP file containing the relevant files as well as a Word document called RedisService.docx with the following instructions: 阅读全文
posted @ 2014-11-27 11:17 尚書 阅读(516) 评论(0) 推荐(0) 编辑
  2012年12月17日
摘要: using System;using System.Globalization;using System.IO;using System.Security.Cryptography;using System.Text;namespace Pub.Class{ public static class EncryptExtensions { private static readonly byte[] AESKeys = {0x41, 0x72, 0x65, 0x79, 0x6F, 0x75, 0x6D, 0x79, 0x53, 0x6E, 0x6F, 0x77, 0x6... 阅读全文
posted @ 2012-12-17 11:05 尚書 阅读(607) 评论(0) 推荐(0) 编辑
  2012年12月12日
摘要: Random r = new Random(Guid.NewGuid().GetHashCode()) 阅读全文
posted @ 2012-12-12 15:01 尚書 阅读(218) 评论(0) 推荐(0) 编辑
  2012年4月3日
摘要: Mongo的主从同步,以及备份与恢复 阅读全文
posted @ 2012-04-03 20:05 尚書 阅读(7454) 评论(0) 推荐(0) 编辑
摘要: Mongodb 更多操作 阅读全文
posted @ 2012-04-03 20:02 尚書 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 备份:mongodump -h 127.0.0.1 -d test -o c:\backup\mongoDb\data\%date:~0,4%-%date:~5,2%-%date:~8,2%\%time:~0,2%-%time:~3,2%还原:mongorestore -h 127.0.0.1 -d test c:\backup\mongoDb\data\2012-04-03\19-48\test 阅读全文
posted @ 2012-04-03 20:01 尚書 阅读(2668) 评论(0) 推荐(0) 编辑