上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 45 下一页

2011年5月18日

不能以root用户运行chrome

摘要: 最后 还是在 http://aimbots.net/tutorials/23809-howto-run-google-chrome-non-root-user-when-logged-root-user.html 找到办法 共有两步 看命令:1 xhost +2. sudo -i -u zzx /opt/google/chrome/chrome 阅读全文

posted @ 2011-05-18 15:48 风乔 阅读(454) 评论(0) 推荐(0) 编辑

检测usb

摘要: http://www.microchip.com/forums/tm.aspx?m=340892#ifndef USB_H #define USB_H #include #include #include class USB : public QObject { private: const static int INTERFACE = 0; const ... 阅读全文

posted @ 2011-05-18 10:20 风乔 阅读(308) 评论(0) 推荐(0) 编辑

libusb检测U盘插入

摘要: Oops, my fault, hic. I should run as root and I'll get what I need. :PThanks, Have a nice day!http://libusb.sourceforge.net/doc/examples-code.htmlhttp://fedoraforum.org/forum/showthread.php?t=17845... 阅读全文

posted @ 2011-05-18 09:54 风乔 阅读(1856) 评论(0) 推荐(0) 编辑

2011年5月10日

qt 检测u盘插入

摘要: 已经找到解决方法,下面只描述最主要的部分,其他部分不是难题,问题主要在于怎么样发现U盘的插入与拨出,使用qt自带的QDBus可以实现,下面为连接代码,当系统有设备插入时,可以调用slotDeviceAdded(QString udi)函数。在pro文件中应该加入QT +=dbus复制代码 1. #include 2. //以下为检测设备的插入 3. QDBusConnec... 阅读全文

posted @ 2011-05-10 18:01 风乔 阅读(2855) 评论(0) 推荐(0) 编辑

qt 解析XML

摘要: QDomDocument parsing Example XML file JohnDoejohn.doe@example.comhttp://en.wikipedia.org/wiki/John_DoeJaneDoejane.doe@example.comhttp://en.wikipedia.org/wiki/John_DoeMattiMeikäläinenmatti.meikalaine... 阅读全文

posted @ 2011-05-10 13:09 风乔 阅读(714) 评论(0) 推荐(0) 编辑

2011年5月9日

Linux下如何用QT检测到U盘已经插入,并实现mount与umount

摘要: Linux下如何用QT检测到U盘已经插入,并实现mount与umount因为开发一个自动插入U盘就自动复制,并且要能在复制开始前先对U盘进行格式化。想让Linux先对U盘进行格式化,然后再对U盘进行加载,加载完成后开始复制,复制完成后自动卸载。解决方法,使用qt自带的QDBus可以实现,下面为连接代码,当系统有设备插入时,可以调用slotDeviceAdded函数。Copy code... 阅读全文

posted @ 2011-05-09 11:56 风乔 阅读(3963) 评论(0) 推荐(0) 编辑

c++ 读取图片RGB

摘要: #include"stdio.h"#include"iostream.h"#include"string.h"#include #include"stdlib.h"#include"windows.h"unsigned char *pBmpBuf;//读入图像数据的指针int bmpWidth;//图像的宽int bmpHeight;//图像的高RGBQUAD *pColorTable;//颜色表... 阅读全文

posted @ 2011-05-09 11:09 风乔 阅读(3702) 评论(0) 推荐(0) 编辑

2011年5月8日

MFC读取图片发送

摘要: CFile myfile; myfile.Open(filename,CFile::modeRead|CFile::typeBinary); char buff[GetLength+1] = {0}; myfile.Read(buff,myfile.GetLength()); send(socket,buff,myfile.GetLength... 阅读全文

posted @ 2011-05-08 18:43 风乔 阅读(672) 评论(0) 推荐(0) 编辑

2011年5月3日

安装编译openssl

摘要: http://www.techsww.com/tutorials/libraries/openssl/installation/installing_openssl_on_ubuntu_linux.php 阅读全文

posted @ 2011-05-03 10:42 风乔 阅读(102) 评论(0) 推荐(0) 编辑

2011年4月29日

openssl aes 加解密

摘要: /**AES encryption/decryption demo program using OpenSSL EVP apisgcc -Wall openssl_aes.c -lcryptothis is public domain code.Saju Pillai (saju.pillai@gmail.com)**/#include #include #include ... 阅读全文

posted @ 2011-04-29 18:33 风乔 阅读(614) 评论(0) 推荐(0) 编辑

上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 45 下一页

导航