摘要: 1.安装:1 sudo apt-get install slapd ldap-utils2.配置:1)1 sudo ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/ldap/schema/cosine.ldif2 sudo ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/ldap/schema/nis.ldif3 sudo ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/ldap/schema/inetorgperson.ldif测试可以省略这三条2)1 sudo ldapadd -Y EXT 阅读全文
posted @ 2013-07-08 17:38 孜求嵌道 阅读(3414) 评论(0) 推荐(0) 编辑
摘要: 配置:DigitalOcean 512MB内存 20GB SSD硬盘 1TB流量 70元4个月下载速度:1 wget http://cachefly.cachefly.net/100mb.test && rm -f 100mb.test1 --2013-06-26 01:38:45-- http://cachefly.cachefly.net/100mb.test2 Resolving cachefly.cachefly.net (cachefly.cachefly.net)... 205.234.175.1753 Connecting to cachefly.cachefly 阅读全文
posted @ 2013-07-06 12:34 孜求嵌道 阅读(706) 评论(0) 推荐(0) 编辑
摘要: 转自:http://blog.chinaunix.net/uid-693168-id-3458444.html原始材料源自官方文档,中间夹杂小结Direct Property AnimationAnimations are created by applying animation objects to property values to gradually change the properties over time. These property animations apply smooth movements by interpolating values between prop 阅读全文
posted @ 2013-07-03 15:57 孜求嵌道 阅读(418) 评论(0) 推荐(0) 编辑
摘要: 一、环境 1.linux kernel 2.6.34 2.华为E3131二、相关工具 1.usb-modeswitch-1.2.5 http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-1.2.5.tar.bz2 2.usb-modeswitch-data http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-data-20121109.tar.bz2 3.libusb-0.1.12 ... 阅读全文
posted @ 2013-06-06 13:26 孜求嵌道 阅读(4327) 评论(0) 推荐(0) 编辑
摘要: 1.信号函数声明:signal sendSignal()连接信号:1)onSendSignal: XXX 2) sendSignal.connect(XXX)参考:http://www.360doc.com/content/12/0304/15/1671317_191598055.shtml2.动态加载qml函数定义: 1 function createQmlObjectFromFile(file, parentObj, properties) 2 { 3 var qmlComponent = Qt.createComponent(file); 4 5 if (q... 阅读全文
posted @ 2013-05-28 14:47 孜求嵌道 阅读(633) 评论(0) 推荐(0) 编辑
摘要: 一.添加openssl库configure相关命令:-no-openssl ........ Do not compile support for OpenSSL.-openssl ........... Enable run-time OpenSSL support.-openssl-linked .... Enabled linked OpenSSL support.这里采用动态编译./configure -openssl如果采用静态编译OPENSSL_LIBS='-L/opt/ssl/lib -lssl -lcrypto' ./configure -openssl-lin 阅读全文
posted @ 2013-04-16 18:21 孜求嵌道 阅读(3564) 评论(0) 推荐(0) 编辑
摘要: 测试动态库函数是否存在: 1 #include <stdio.h> 2 #include <dlfcn.h> 3 4 int main(void) 5 { 6 void *soHandle = dlopen("*.so", RTLD_LAZY); 7 if (!soHandle) 8 { 9 printf("%s\n", dlerror());10 return -1;11 }12 void *fun = dlsym(soHandle, "avio_test");13 if (!fun)14 {15 ... 阅读全文
posted @ 2013-03-25 18:31 孜求嵌道 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 加载opengl信息的函数: 1 void LogGraphicsInfo() 2 { 3 #if defined(HAS_GL) || defined(HAS_GLES) 4 const GLubyte *s; 5 6 s = glGetString(GL_VENDOR); 7 if (s) 8 CLog::Log(LOGNOTICE, "GL_VENDOR = %s", s); 9 else10 CLog::Log(LOGNOTICE, "GL_VENDOR = NULL");11 12 s = glGetString(GL_RENDERER);13 阅读全文
posted @ 2013-03-25 12:11 孜求嵌道 阅读(600) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.cnblogs.com/zhujudah/archive/2012/03/22/2411240.html1.#假如希望在字符串中包含宏参数,ANSI C允许这样作,在类函数宏的替换部分,#符号用作一个预处理运算符,它可以把语言符号转化程字符串。例如,如果x是一个宏参量,那么#x可以把参数名转化成相应的字符串。该过程称为字符串化(stringizing).#incldue <stdio.h>#define PSQR(x) printf("the square of" #x "is %d.\n",(x)*(x))int 阅读全文
posted @ 2013-03-06 16:15 孜求嵌道 阅读(134) 评论(0) 推荐(0) 编辑
摘要: Qt中没有网络设置的组件,初步的想法是通过execvp函数调用shell命令进行网络设置。所以首先,要保证shell命令的可用性,ifconfig,route等。先创建一个文本框:1 ipLabel = new QLabel(tr("&Ip:"));2 ipLineEdit = new QLineEdit("192.168.1.224");3 ipLabel->setBuddy(ipLineEdit);再设置输入格式和注册Field:1 ipLineEdit->setInputMask("000.000.000.000;_& 阅读全文
posted @ 2013-02-20 10:19 孜求嵌道 阅读(4430) 评论(0) 推荐(1) 编辑