#include#include#include#include#include#include#define BUFFER_SIZE 1024int main(int argc ,char **argv){ int from_fd,to_fd; int bytes_read,bytes...
分类:
其他好文 时间:
2015-06-22 22:03:30
阅读次数:
175
用会变写个冒泡,做个记录,主要是学习循环的使用
.386
.model flat,stdcall
option casemap:none
include windows.inc
include user32.inc
includelib user32.lib
include kernel32.inc
includelib kernel32.lib
.data
bytes db 'hello,...
分类:
编程语言 时间:
2015-06-22 16:22:46
阅读次数:
145
public static String formatNetSpeed(long bytes) {
String result = size + " B/s";
if (size < 1<<10) { } else if (size < 1<<20) {
result = String.format("%.1f KB/s", si...
分类:
其他好文 时间:
2015-06-20 09:16:12
阅读次数:
107
具体步骤如下:1、查看是否已经分配[root@localhost home]# fdisk -l磁盘 /dev/sda:64.4 GB, 64424509440 字节,125829120 个扇区Units = 扇区 of 1 * 512 = 512 bytes扇区大小(逻辑/物理):512 字节 /...
分类:
系统相关 时间:
2015-06-19 18:18:36
阅读次数:
172
FAT16文件系统 可以保存的文件体积最大值是 4 GB - 1 byte (2^32 bytes - 1 byte); 卷的最大体积是4GB;每个卷上最多可以保存的文件数量是65,536个 (2^16); 根目录下可以保存的文件和文件夹数量最大值是512个(如果使用了长文件名,该数字还会减小)FA...
分类:
其他好文 时间:
2015-06-17 14:53:23
阅读次数:
200
publicclassStringTest{
publicstaticvoidmain(String[]args){
//1
Strings1="abc";
//2
Strings2=newString("cdg");
//3
byte[]bytes={98,88,34,25};
Strings3=newString(bytes);
//4String(byte[]bytes,intoffset,intlength)ConstructsanewStringbydecodingthespecifiedsubar..
分类:
其他好文 时间:
2015-06-17 02:03:33
阅读次数:
163
一个IAR for STM8 v1.3 的工程,换到1.4版后出现如下错误unable to allocate space for sections/blocks with a total estimated minimum size of 0x2341 bytes in (total uncom....
分类:
其他好文 时间:
2015-06-16 18:29:49
阅读次数:
608
问题:UnicodeDecodeError: 'gb2312' codec can't decode bytes in position 2-3: illegal multibyte sequence
原因:python在做将普通字符串转换为unicode对象时,
例如:u_string = unicode(string , "gb2312"),如果你的字符串string中有诸如某些繁体字,例...
分类:
编程语言 时间:
2015-06-16 11:11:19
阅读次数:
545
自SQL Server 2005起,我们有了READ COMMITTED SNAPSHOT ISOLATION level (RCSI) 和SNAPSHOT ISOLATION level (SI)两个事务隔离级别。当你使用这些事务隔离级别时,读操作(SELECT语句)在读的时候不需要S锁(共享锁)...
分类:
其他好文 时间:
2015-06-16 09:15:34
阅读次数:
153
1. Hive自己如何确定reduce数:
reduce个数的设定极大影响任务执行效率,不指定reduce个数的情况下,Hive会猜测确定一个reduce个数,基于以下两个设定:
hive.exec.reducers.bytes.per.reducer(每个reduce任务处理的数据量,默认为1000^3=1G)
hive.exec.reducers.max(每个任务最大的reduce...
分类:
其他好文 时间:
2015-06-15 22:18:36
阅读次数:
177