按option后会有提示:Do not use the label object to set
the text color or the shadow color. Instead, use the setTitleColor:forState: and
setTitleShadowColor:f...
分类:
其他好文 时间:
2014-05-26 18:47:48
阅读次数:
212
启动tomcat的时候出现异常 严重: StandardServer.await:
create[8005]: java.net.BindException: Address already in use: JVM_Bind at
java.net.PlainSocketImpl...
分类:
其他好文 时间:
2014-05-26 18:18:35
阅读次数:
183
近期使用winSock做的一个网络项目中,使用TCP+Socket连接编写的一个多线程的网络程序,功能是client负责不断地向server端发送数据,服务端负责接收数据。client是一个DLL,服务端程序是一个随机启动的NT
Service服务程序。程序在夜间无人操作的执行过程中,client常...
分类:
其他好文 时间:
2014-05-26 18:00:58
阅读次数:
256
原文:使用Socket通信实现Silverlight客户端实时数据的获取(模拟GPS数据,地图实时位置)在上一篇中说到了Silverlight下的Socket通信,在最后的时候说到本篇将会结合地图。下面就来看看本文实现的功能:Silverlight
与服务器利用Socket通讯,实时从服务器获取数据...
分类:
Web程序 时间:
2014-05-26 17:37:01
阅读次数:
515
继续并发,貌似并发的文章很少有人看啊~哈~
今天准备详细介绍java并发包下的Executor,以及Java提供了很多灵活的且极其方便的线程池的创建。
嗯,那就慢慢说,大家肯定都学过Socket,JavaSe的时候写聊天程序,游戏的服务器,以及Android程序自己需要提供服务器的,都会拿Socket来自己写个:
最初我们的服务器可能写成这样:
1、单线程服务器
package com....
分类:
编程语言 时间:
2014-05-25 22:45:11
阅读次数:
318
核心代码DAO类
package com.examp.use_SQLite.dao;
import java.util.ArrayList;
import java.util.List;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
i...
分类:
移动开发 时间:
2014-05-25 21:34:09
阅读次数:
327
最近写了一个接受socket数据包,然后再重组上层协议包的东西。每次read到数据就将数据添加到一个链表的尾部,然后检查是否收到了一个完整的包。为了减少内存碎片,把用过的链表节点添加到另外一个链表中,这样下次可以从这个cache链表中重用节点。
在debug的时候我把cache list中的数据打印出来,代码如下:
struct seg_node
{
void* bu...
分类:
其他好文 时间:
2014-05-25 21:31:09
阅读次数:
326
package com.examp.use_SQLite.dao;
import java.util.ArrayList;
import java.util.List;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import andr...
分类:
移动开发 时间:
2014-05-25 21:29:20
阅读次数:
258
Problem Description
Some days ago, I learned the concept of LCM (least common multiple). I've played with it for several times and I want to make a big number with it.
But I also don't want to use...
分类:
其他好文 时间:
2014-05-25 16:39:53
阅读次数:
266
Problem Description
Some days ago, I learned the concept of LCM (least common multiple). I've played with it for several times and I want to make a big number with it.
But I also don't want to use...
分类:
其他好文 时间:
2014-05-25 16:32:49
阅读次数:
214