a little riak book 的无聊总结
#!/bin/bash
# Riak HTTP interface stays true to their intent: 1xx Informational, 2xx Success,
# 3xx Further Action, 4xx Client Error, 5xx Server Error
### put
PORT=10...
分类:
其他好文 时间:
2014-06-25 08:22:11
阅读次数:
178
题目描述There are a bunch of stones on the beach; Stone color is white or black. Little Sheep has a magic brush, she can change the color of a continuous ...
分类:
其他好文 时间:
2014-06-22 23:46:15
阅读次数:
199
大字节序(Big Endian):低地址存高位小字节序(Little Endian):高地址存地位int main(){ int x=1; char *temp = NULL; temp= (char *)&x; if (*temp =...
分类:
其他好文 时间:
2014-06-22 23:23:02
阅读次数:
202
常见的80x86 CPU是先存放小值,再存放大值。这是小端字节(Little endian)序列。
而数字在互联网上传输的时候,是大端字节序列(Big endian)。所以,网络编程里有一个api是htons(),用来将主机字节顺序转化成为网络字节顺序。
常见的CPU平台如下:
处理器
操作系统
字节顺序
Alpha...
分类:
其他好文 时间:
2014-06-22 16:32:56
阅读次数:
228
走进WAVE文件
WAVE是录音时用的标准的Windows文件格式,文件的扩展名为“wav”,数据本身的格式为PCM或压缩型,属于无损音乐格式的一种,符合RIFF(Resource
Interchange File Format)规范。所有的WAV都有一个文件头,这个文件头音频流的编码参数。数据块的记录方式是小端(little-endian)字节顺序,标志符并不是字符串而是单独的符号
表1...
分类:
系统相关 时间:
2014-06-22 16:18:11
阅读次数:
326
Running KVM and Openvswitch on Ubuntu 12.10 I’ve got an aging VMWare ESXi 4.0 server that needs to be replaced with something a little more modern and...
分类:
其他好文 时间:
2014-06-21 14:53:30
阅读次数:
338
Division
Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 999999/400000 K (Java/Others)
Total Submission(s): 2664 Accepted Submission(s): 1050
Problem Description
Little D is re...
分类:
其他好文 时间:
2014-06-19 12:16:24
阅读次数:
210
http://poj.org/problem?id=3735
大致题意:
有n只猫,开始时每只猫有花生0颗,现有一组操作,由下面三个中的k个操作组成:
1. g i 给i只猫一颗花生米
2. e i 让第i只猫吃掉它拥有的所有花生米
3. s i j 将猫i与猫j的拥有的花生米交换
现将上述一组操作循环m次后,问每只猫有多少颗花生?
再一次感受到了...
分类:
其他好文 时间:
2014-06-14 10:54:33
阅读次数:
234
108685842014-06-11
18:26:52Accepted17541078MS3156K1430 BG++little_w【题解】:【代码】: 1 #include 2 #include
3 #include 4 #define Mod 1000000007 5 #define L...
分类:
其他好文 时间:
2014-06-12 09:15:35
阅读次数:
198