package main
import (
"bytes"
"fmt"
"os"
"os/exec"
"path/filepath"
"sync"
)
type jieguo struct {
go_num int
Lock sync.Mutex
}
var searchName string = os.Args[1]
var search_result chan str...
分类:
编程语言 时间:
2015-06-02 15:22:37
阅读次数:
119
[root@desktop2 ~]# fdisk -l Disk /dev/sda: 160.0 GB, 160041885696 bytes 255 heads, 63 sectors/track, 19457 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes ? ?Device Boot? ? ? Start?...
分类:
移动开发 时间:
2015-06-02 09:34:04
阅读次数:
283
EEprom有个特点写数据的时候要注意扇区的划分,读数据时就没有这个问题。
1. 1st :write bytes
/**************************************
* send one byte to I2C for eep
**************************************/
static int I2CByteTX(uint8_t ...
分类:
其他好文 时间:
2015-06-01 16:59:36
阅读次数:
159
/*
* String(byte[] bytes, String charsetName):通过指定的字符集解码字节数组
* byte[] getBytes(String charsetName):使用指定的字符集合把字符串编码为字节数组
*
* 编码:把看得懂的变成看不懂的
* String -- byte[]
*
* 解码:把看不懂的变成看得懂的
* byt...
分类:
编程语言 时间:
2015-05-31 14:06:33
阅读次数:
171
本文来源定义提供字节序列的一般视图。Provides a generic view of a sequence of bytes.流涉及三个基本操作Streams involve three fundamental operations:可以读取流(You can read from streams...
分类:
其他好文 时间:
2015-05-30 14:45:54
阅读次数:
197
方法1:二进制转换成图片1.1MemoryStream ms = new MemoryStream(bytes);ms.Position = 0;Image img = Image.FromStream(ms);ms.Close();this.pictureBox1.Image方法2. C#中byt...
分类:
其他好文 时间:
2015-05-29 11:27:12
阅读次数:
93
Python3最重要的新特性大概要算是对文本和二进制数据作了更为清晰的区分。文本总是Unicode,由str类型表示,二进制数据则由bytes类型表示。Python3不会以任意隐式的方式混用str和bytes,正是这使得两者的区分特别清晰。你不能拼接字符串和字节包,也无法在字节包里搜索字符串(..
分类:
编程语言 时间:
2015-05-28 07:09:05
阅读次数:
302
记录访问的log,为了在出现特殊情况时,方便检查出现问题的地方。log_format accesslog ‘$remote_addr – $remote_user [$time_local] “$request” ‘‘$status $body_bytes_sent “$http_referer” ...
分类:
其他好文 时间:
2015-05-27 13:40:51
阅读次数:
150
# Redis 配置文件
# 当配置中需要配置内存大小时,可以使用 1k, 5GB, 4M 等类似的格式,其转换方式如下(不区分大小写)
#
# 1k =>
1000 bytes
# 1kb => 1024 bytes
# 1m => 1000000 bytes
# 1mb =>
1024*1024 bytes
# 1g => 1000000000 bytes
# ...
分类:
其他好文 时间:
2015-05-26 16:18:56
阅读次数:
192
Apache Flink简介Apache Flink是一个可伸缩的开源批处理和流处理平台。其核心模块是一个数据流引擎,该引擎在分布式的流数据处理的基础上提供数据分发、交流、以及容错的功能。...
分类:
其他好文 时间:
2015-05-25 16:37:04
阅读次数:
185