码迷,mamicode.com
首页 >  
搜索关键字:oslo message    ( 9448个结果
android 请求网络异步加载
/** * 封装ProecssDialog对话框 * */ public class LoadDialog extends ProgressDialog { private String title = "进度对话框"; private String message = "加载数据中...."; public LoadDialog(Context context, int theme)...
分类:移动开发   时间:2014-05-18 15:42:07    阅读次数:314
消息传递(Message Passing)
消息传递(Message Passing)   通常可用把并行程序理解为一组相互独立的、能够发关和接收消息的组件,这也称为角色模型(ActorModel),在维基百科上可找到更正式的解释 http://en.wikipedia.org/wiki/Actor_model。虽然使用消息传递的场景往往相当复杂,但是其背后的思想却相对简单,正像下面将要看到的示例一样: 消息传递背后的基本思想是这...
分类:其他好文   时间:2014-05-18 08:16:28    阅读次数:373
mFC 橡皮线
一般都用GDI实现:void CXiangpijinView::OnMouseMove(UINT nFlags, CPoint point) { // TODO: Add your message handler code here and/or call default CVi...
分类:其他好文   时间:2014-05-15 21:04:55    阅读次数:330
CentOS 6.3下Samba服务器的安装与配置
一、简介 Samba是一个能让Linux系统应用Microsoft网络通讯协议的软件,而SMB是Server Message Block的缩写,即为服务器消息块 ,SMB主要是作为Microsoft的网络通讯协议,后来Samba将SMB通信协议应用到了Linux系统上,就形成了现在的Samba软件....
分类:其他好文   时间:2014-05-15 09:44:29    阅读次数:292
学习nodejs -02
断言:学java的时候学过断言,但一直用的很少,node中也有varassert=require(‘assert‘) console.info(‘.......startapp.......‘); varactual=1; varexpect=‘1‘ vara; //判断是否为真 assert(a,‘isnotvalid‘); assert.ok(0,‘isnoteffective‘); //arg[0]为真实值,arg[1]期望值,a..
分类:Web程序   时间:2014-05-15 09:09:47    阅读次数:373
The server encountered an internal error () that prevented it from fulfilling this request.
这是我今天遇到的一个最棘手的问题,耗费了一下午的时间终于解决了。不知道为什么,今天做这个web项目时突然遇到下面这样一个错误:typeExceptionreport message descriptionTheserverencounteredaninternalerror()thatpreventeditfromfulfillingthisrequest. exception org.ap..
分类:其他好文   时间:2014-05-15 00:29:29    阅读次数:328
大并发需要调的几个参数
/proc/sys/net/ipv4/tcp_max_tw_buckets 默认的太小了net.ipv4.tcp_syncookies = 0这个参数是怎么得来的?其实是通过ab 简单的压力测试,/var/log/message 里面会有内核的报错信息。
分类:其他好文   时间:2014-05-14 22:56:49    阅读次数:349
Android多线程——Handler (一) 实现图片下载
在UI线程中创建子线程——》在子线程中获取网络图片--》在线程中通过Message传递二进制图片给Handler,--》Handler在handleMessage()中处理消息packagecom.example.android_handler_message; importjava.io.IOException; importorg...
分类:移动开发   时间:2014-05-14 18:24:57    阅读次数:410
IOS学习第二课 UIAlertView和UIActionSheet
1UIAlertView类似于Android中的Dialog,简单用法如下:UIAlertView*alertView=[[UIAlertViewalloc]initWithTitle:@"Title"message:@"Messate"delegate:nilcancelButtonTitle:@"Cancle"otherButtonTitles:nil,nil];[alertViewshow];2UIActionSheet底部弹出的对话框,较常用,简..
分类:移动开发   时间:2014-05-14 16:24:55    阅读次数:332
分析osip的解析报文
staticint_osip_message_parse(osip_message_t*sip,constchar*buf,size_tlength,intsipfrag){inti;constchar*next_header_index;char*tmp;char*beg;tmp=osip_malloc(length+2);if(tmp==NULL){OSIP_TRACE(osip_trace(__FILE__,__LINE__,OSIP_ERROR,NULL,"Couldnotallocatememory..
分类:其他好文   时间:2014-05-14 16:06:25    阅读次数:296
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!