??
Description
Keeping track of all the cows can be a tricky task so Farmer John has installed a system to automate it. He has installed on each cow an electronic ID tag that the system will read ...
分类:
其他好文 时间:
2014-07-29 13:22:46
阅读次数:
212
len = cyg_io_read(ser_handle1, ucMasterRTURcvBuftmp, &len);//len等于0,cyg_io_read读到的字节数在参数中的红色的len,而不是前面的lencyg_io_read函数的说明中有:Syntax:Cyg_ErrNocyg_io_re...
分类:
其他好文 时间:
2014-07-29 12:19:16
阅读次数:
152
关掉虚拟机。 VM->Settings,选中Hard Disk,在右边出现了Utilities的一个下拉栏,OK,点击它选择Map,这时弹出一个“Map Virtual Disk”窗口,选择系统分区,将“Open file in read-only mode”的默认选择去掉,这时会有个警告的提示框。...
分类:
其他好文 时间:
2014-07-29 11:38:06
阅读次数:
222
#coding:utf-8importConfigParserclassConf():def__init__(self,name):self.name=nameself.cp=ConfigParser.ConfigParser()self.cp.read(name)defgetSections(se...
分类:
编程语言 时间:
2014-07-29 11:25:16
阅读次数:
290
Time Limit: 1000MSMemory Limit: 65536KTotal Submissions: 3394Accepted: 2172DescriptionYour task is to read a picture of a chessboard position and prin...
分类:
其他好文 时间:
2014-07-29 11:07:46
阅读次数:
355
block变量上一篇 讲的是block静态变量的特性,这里我们来看一下_block变量。引用官方:You can specify that an imported variable be mutable—that is, read-write— by applying the__blockstora...
分类:
其他好文 时间:
2014-07-29 10:30:16
阅读次数:
287
#include ssize_t read(int fd, void *buf, size_t count);DESCRIPTION read() attempts to read up to count bytes from file descriptor fd into the buffer.....
分类:
其他好文 时间:
2014-07-28 23:56:34
阅读次数:
548
代码提交代码提交一般有五个步骤:1.查看目前代码的修改状态2.查看代码修改内容3.暂存需要提交的文件4.提交已暂存的文件5.同步到服务器1.查看目前代码的修改状态提交代码之前,首先应该检查目前所做的修改,运行git status命令a)已暂存 (changes to be committed)new...
分类:
其他好文 时间:
2014-07-28 21:28:34
阅读次数:
208
演示不同隔离级别下的并发问题
1.当把事务的隔离级别设置为read uncommitted ,会引发脏读,不可重复读,虚读
A窗口
start transaction isolation level read uncommitted;
start transaction;
select * from account;
=======这个时候发现aaa的账户是1000元,转到...
分类:
数据库 时间:
2014-07-28 00:08:09
阅读次数:
277
ffmpeg部分机器上有花屏的问题
原代码如下:
while(av_read_frame(formatCtx, &packet)>=0 && !_stop && NULL!=window && bInit) {
// Is this a packet from the video stream?
if(packet.stream_index==videoStream) {
...
分类:
移动开发 时间:
2014-07-28 00:01:10
阅读次数:
847