上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 37 下一页
摘要: boost::asio::streambuf的定义如下:namespace boost {namespace asio {/// Typedef for the typical usage of basic_streambuf.typedef basic_streambuf<> streambuf;} // namespace asio} // namespace boost basic_streambuf继承于std::streambuf,如下: class basic_streambuf : public std::streambuf, private noncopyable 阅读全文
posted @ 2012-08-26 16:00 袁晓平 阅读(3152) 评论(0) 推荐(0) 编辑
摘要: 需求,最近做ios程序,需要将用户密码和帐号保存到本地磁盘,而用用户不止一个,想到boost库里的serialization比较适合,用户就用标准库里的map来保存,也就是std::map<std::string, std::string>,代码如下:UserInfo.h://// UserInfo.h// app1//// Created by xp y on 12-8-23.// Copyright (c) 2012年 xp y. All rights reserved.//#ifndef __app1__UserInfo__#define __app1__UserInfo__ 阅读全文
posted @ 2012-08-23 21:45 袁晓平 阅读(1653) 评论(0) 推荐(0) 编辑
摘要: cd /Users/test/Library/Developer/Xcode/DerivedData/iPhone-acjjpwfwhnpvlcdpfanyrczgtnkr/Build/Intermediates/iPhone.build/Debug-iphoneos/iPhone.build/Objects-normal/armv7/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ar -r -v ./ASIHttpRequest.a ./ASIAuthenticationDialog.o ./ASIDataCompressor 阅读全文
posted @ 2012-08-16 23:04 袁晓平 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 1.创建证书创建证书的过程比较简单,打开实用工具-钥匙串访问。然后在菜单栏里点击钥匙串访问-证书助理-创建证书来打开向导。第一个步骤比较重要,必须要把名称命名为iPhoneDeveloper,将类型设定为代码签名,将"让我覆盖这些默认值"选中。之后的步骤无需更改,一路点击“确定”和“继续”来完成这个向导就可以。 2.修改Xcode的配置文件和二进制文件下面的步骤稍微有点繁琐,您应该了解UNIX命令行的基本操作,并了解一种命令行文本编辑器,本文使用的是vim。尽管这里会给出完整的代码,但是关于修改和保存代码的基本操作,不再赘述。下面的操作请先将Xcode按Command+Q完 阅读全文
posted @ 2012-08-16 21:07 袁晓平 阅读(817) 评论(0) 推荐(0) 编辑
摘要: 从kernel.org下载3.4.6版本的kernel源码,至/home/musictom/Downloads解压tar -xvfj linux-3.4.6.tar.bz2cd linux-3.4.6make menuconfig根据自己的需要进行配置后makesudo make installsudo make modules_installln -s /boot/vmlinuz-3.4.6 /vmlinuz-3.4.6mkinitramfs -o /boot/initrd.img-3.4.6 /lib/modules/3.4.6 ln -s /boot/initrd.img-3.4.6 / 阅读全文
posted @ 2012-07-29 21:52 袁晓平 阅读(217) 评论(0) 推荐(0) 编辑
摘要: this linker was not configured to use sysrootsC compiler cannot create executables在ubuntu下想编译linux kernel,键入命令make menuconfig时,报出this linker was not configured to use sysroots查了一下,是因为/usr/local/bin/ld在编译前没有被配置为configure --with-sysroot所以下载了binutils-2.22想编译一个带sysroot的键入命令 ../binutils-2.22/configure -- 阅读全文
posted @ 2012-07-28 23:52 袁晓平 阅读(2938) 评论(0) 推荐(0) 编辑
摘要: 从http://linuxtv.org/downloads/drivers/下载源代码,里面按时间分了版本,一般选最新的,我选择的是2012-7-25版本的,地址为http://linuxtv.org/downloads/drivers/linux-media-2012-07-25.tar.bz2放到/home/musictom/Downloads/driver目录下tar -xvf /home/musictom/Downloads/driver/linux-media-2012-07-25.tar.bz2打开terminal,cd /home/musictommake -C /lib/mod 阅读全文
posted @ 2012-07-26 00:38 袁晓平 阅读(529) 评论(0) 推荐(0) 编辑
摘要: 支持CTE的复杂语句调用:原始调用SQL语句:with t as (select ma_id from sa_affair_info where ad_id=2203 and ai_affair_status=2 and ai_is_pass='true'),q as(select m.* from SA_Main_Affair m join t on t.ma_id=m.ma_index_no),p as (select ai.* from sa_affair_info ai join q on ai.ma_id=q.ma_id where ai_affair_status= 阅读全文
posted @ 2012-07-23 11:36 袁晓平 阅读(485) 评论(0) 推荐(0) 编辑
摘要: cd /home/musictommkdir gdb-7.4-i386-pc-cygwin-outcd gdb-7.4-i386-pc-cygwin-out../gdb-7.4/configure --with-gmp=/usr/local --with-mpc=/usr/local/ --with-mpfr=/usr/local/ --prefix=/usr/local/gcc-4.7.1-i386-pc-cygwin/ --with-build-libsubdir=/usr/local/lib/makemake install中途会遇到错误:configure: error: no ter 阅读全文
posted @ 2012-07-22 12:49 袁晓平 阅读(680) 评论(0) 推荐(0) 编辑
摘要: 步骤:1、先编译gmp mpfr mpc这几个库,注意configure时--prefix=/usr/local/2、中间碰到过can not compute suffix的错误,在命令export LD_LIBRARY_PATH=/usr/local/:${LD_LIBRARY_PATH}export LD_RUN_PATH=/usr/local/:${LD_RUN_PATH}也不行,最后修改了/home/musictom/.bash_profile加上了如下行:PATH="/bin/:/lib/:/usr/sbin/:/usr/local/bin/:/usr/i686-pc-mi 阅读全文
posted @ 2012-07-21 23:03 袁晓平 阅读(1393) 评论(0) 推荐(0) 编辑
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 37 下一页