boost库有一个asio,支持串口通信。步骤:
1、产生一个boost::asio::io_service(前摄模式,类似于完成端口,不过,可以针对不同IO对象)
2、构造一个boost::asio::serial_port,有两种方法: (一)boost::asio::serial...
分类:
其他好文 时间:
2014-05-05 23:58:48
阅读次数:
681
The general mechanism for executing tasks is
the executor service. If you think in terms of tasks and let an executor service
execute them for you, yo...
分类:
编程语言 时间:
2014-05-05 23:32:44
阅读次数:
389
在《Zygote进程【3】——SystemServer的诞生》一文中介绍了SystemServer的诞生,本文来看一下SystemServer中初始化的系统服务。
AccountManagerServiceAccessibilityManagerService
ActivityManagerService
AlarmManagerService
AppWidgetService...
分类:
移动开发 时间:
2014-05-03 00:16:21
阅读次数:
404
首先需要建立相应的report报表 如图:
这里的sql如下:
SELECT
PC.Name AS Category, PS.Name AS Subcategory,
DATEPART(yy, SOH.OrderDate) AS Year,
'Q' + DATENAME(qq, SOH.OrderDate) AS Qtr,
SUM(DET.UnitPrice * DET.Ord...
分类:
其他好文 时间:
2014-05-02 05:21:11
阅读次数:
335
1、具体报错如下
2014-5-1 23:02:38 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet [jsp] in context with path [/UploadFile] threw exception [An exception occurred proce...
分类:
其他好文 时间:
2014-05-02 04:53:03
阅读次数:
325
- (void)viewDidLoad{ [super viewDidLoad]; // Do any
additional setup after loading the view, typically from a nib. [NSThread
sleepForTimeInte...
分类:
移动开发 时间:
2014-05-02 00:25:42
阅读次数:
441
搞 了一下午:
给出代码:
1 root@ubuntu:/home/aries/Aries/gsoap# cat add.h
//gsoapopt cw
//gsoap ns2 schema namespace: urn:add
//gsoap ns2 schema form: unqualified
//gsoap ns2 service name: add
//gsoap ns2 ser...
分类:
Web程序 时间:
2014-05-01 22:03:30
阅读次数:
530
VMware也用了一年了,一直好好的,今天突然出现启动不了VMware里的linux系统了,Authorization
Service问题,在windows系统里查看服务,找到VMware Authorization Service,点启动,弹出无法启动VMware
Authorization Se...
分类:
Windows程序 时间:
2014-05-01 19:04:13
阅读次数:
2955
在javafx中一个JVM进程只能存在一个Application类,这个Application类只能调用一次launch()方法来启动它。
那我们如果启动一个新的窗口呢?
javafx中Stage类继承了Window代表着一个窗口,所以我们只需要构造一个Stage并将之显示即可。
Stage secondWindow=new Stage();
Scene scene=new Scene(ro...
分类:
编程语言 时间:
2014-04-30 22:33:38
阅读次数:
605
iOS开发中访问相册摄像像头
源码下载地址http://download.csdn.net/detail/jingjingxujiayou/7270479
在AppDelegate.m文件中
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launch...
分类:
移动开发 时间:
2014-04-30 22:27:38
阅读次数:
497