摘要: 下载库:http://www.gnu.org/software/libmicrohttpd/这里有简单的该库介绍以及使用方法(简略)。下载:$ svn checkout https://gnunet.org/svn/libmicrohttpd/使用手册:http://www.gnu.org/software/libmicrohttpd/microhttpd.pdf使用教程:http://www.gnu.org/software/libmicrohttpd/tutorial.pdf(使用手册和使用教程都是讲怎么用这个库的。使用手册主要是API的调用、参数意义以及调用例子、各数据结构等,使用教程是 阅读全文
posted @ 2012-05-23 17:56 小鼬就是我 阅读(10899) 评论(0) 推荐(0) 编辑
摘要: 刚学linux socket。写来一个UDP发送和接受数据包的程序.client_main.c:/* * @file client_main.c * @brief client of the UDP. * @author xiaou */#include <netinet/in.h> // for sockaddr_in#include <sys/types.h> // for socket#include <sys/socket.h> // for socket#include <unistd.h> // for close()#include 阅读全文
posted @ 2012-05-21 18:58 小鼬就是我 阅读(8904) 评论(0) 推荐(0) 编辑
摘要: 开启root账户: $ sudo passwd root $ su $ cp -p /etc/lightdm/lightdm.conf /etc/lightdm/lightdm.conf.bak $ vi /etc/lightdm/lightdm.conf 修改后为:[SeatDefaults]greeter-session=unity-greeteruser-session=ubuntugreeter-show-manual-login=true 重启即可。使用/usr/lib/ibus-sunpinyin/ibus-setup-sunpinyin 命令可... 阅读全文
posted @ 2012-05-21 18:14 小鼬就是我 阅读(1293) 评论(0) 推荐(0) 编辑
摘要: git 命令:git log -2 --name-status docker 命令:1. docker logs : docker logs --tail=200 -f container_name 2>&1 | grep see4what一直输出docker logs。并且用grep进行截取。do 阅读全文
posted @ 2012-05-21 18:11 小鼬就是我 阅读(976) 评论(1) 推荐(0) 编辑
摘要: 注意:1.本文不保证适合所有mac系统环境也必然不适合所有的开源库编译。本人mac os x10.7, xcode4.3环境. 2. 本文作者是完全搞不懂./configure CC是什么东东的菜鸟,所以这不过是菜鸟的分享~补充知识:Shell编程中的“局部变量”和“导出变量”:http://roclinux.cn/?p=1277-----------------------------------------------我是YD的分割线-------------------------------------------------目的:编译出libjpeg.a库,for"模拟器& 阅读全文
posted @ 2012-05-05 22:53 小鼬就是我 阅读(5929) 评论(0) 推荐(0) 编辑
摘要: (自iOS开发文档"Local and Push Notification Programming Guide"里与iOS相关的部分翻译)-----------------------------------------▲客户端处理------------------------------------------建议每次程序启动的时候都调用registerForRemoteNotificationTypes来重新获取设备相关的token,而不要缓存token.这是因为,如果用户重装了iOS或者用户换了设备并且恢复程序备份到一个新的设备,都将导致这个token值不一样。当i 阅读全文
posted @ 2012-04-28 16:15 小鼬就是我 阅读(4415) 评论(1) 推荐(1) 编辑
摘要: 7.真机模拟内存警告: [[UIApplication sharedApplication] _performMemoryWarning];8.如果没法连接模拟器或真机了:删除DerivedData目录,并且清空回收站,也许还要重启xcode4.1.运行即崩溃,log下面提示:Couldn't register com.myApp.debug with the bootstrap server. Error: unknown error code. This generally means that another instance of this process was alread 阅读全文
posted @ 2012-04-11 21:26 小鼬就是我 阅读(809) 评论(0) 推荐(0) 编辑
摘要: 私钥加密,公钥解密这个叫数字签名,而用公钥加密,私钥解密这个是数字加密,第一个是起验证身份的作用,第二个是数据保密的作用。 阅读全文
posted @ 2012-04-10 11:28 小鼬就是我 阅读(456) 评论(0) 推荐(0) 编辑
摘要: 摘自:http://www.apple.com.cn/developer/mac/library/documentation/Cocoa/Conceptual/CocoaFundamentals/CommunicatingWithObjects/chapter_6_section_7.html通告中心同步地将通告派发给它的观察者。发出通告的对象直到所有的通告被发出后,才重新获得程序的控制权。如果需要以异步的方式发送通告,必须使用通告队列。NSNotificationCenter每个任务都有一个缺省的通告中心,您可以通过NSNotificationCenter的defaultCenter类方法来 阅读全文
posted @ 2012-04-06 15:19 小鼬就是我 阅读(5299) 评论(0) 推荐(0) 编辑
摘要: 苹果太不善待开发者了。开发者交钱就不说,还总是纠结在过去版本的库的bug!----------IOS4.x下面,如果UIWebView加载的页面比较大,可能会出现页面不显示的问题。解决如下: if(!UIU_IsIOS5) {//fix a BT bug at IOS4.x !!! UIScrollView * scroll = [webView.subviews objectAtIndex:0]; NSArray * scrollSubviews = scroll.subviews; int countSubviews = [scroll... 阅读全文
posted @ 2012-03-30 16:19 小鼬就是我 阅读(668) 评论(0) 推荐(0) 编辑