从Emacs官方站点下载最新版解压后,运行./configure
得到错误信息:configure: error: The following required libraries were not found:
libXpm libjpeg libgif/libungif libtiff
用下面的命令安装依赖库:yum -y install libjpeg-devel.x86_64 gi...
分类:
其他好文 时间:
2014-06-15 15:05:23
阅读次数:
233
1,Tomcat启动报错如下:Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'memcachedClient' defined in
file [/usr/local/apache-tomcat-6.0.37_6500/webapps/trade...
分类:
编程语言 时间:
2014-06-15 14:12:10
阅读次数:
283
#include #include #include #include struct message{ int i; int j;};void *hello(struct message *str){ printf("child, the tid=%lu, pid=%d\n",pt...
分类:
编程语言 时间:
2014-06-15 09:40:46
阅读次数:
526
匿名类型提供了一种方便的方法,可用来将一组只读属性封装到单个对象中,而无需首先显式定义一个类型。类型名由编译器生成,并且不能在源代码级使用。每个属性的类型由编译器推断。可通过使用new关键字和对象初始值创建匿名类型。以下示例显示了用两个名为Amount和Message的属性进行初始化的匿名类型。1 ...
分类:
其他好文 时间:
2014-06-14 16:40:22
阅读次数:
264
1、服务器端程序 可以在TcpClient上调用GetStream()方法来获的链接到远程计算机的网络流NetworkStream。当在客户端调用时,他获的链接服务器端的流;当在服务器端调用时,他获得链接客户端的流。 class Program { static void M...
分类:
其他好文 时间:
2014-06-14 15:29:33
阅读次数:
231
高效的TCP数据拆包器 接收器,每秒拆1KB的包达到30万以上...
分类:
其他好文 时间:
2014-06-14 14:54:35
阅读次数:
353
本文分析了WinSock的整体流程,配以图片,通俗易懂...
var ivar = [:]
ivar.className // __NSDictionaryI
var i = 1
i.className // error: 'Int' does not have a member named 'className'
If you want to get the type of a primitive, you have to use bridgeToOb...
分类:
其他好文 时间:
2014-06-14 14:28:55
阅读次数:
234
刚刚移植了一下uip的telnetd,还是比较简单方便的.
首先添加文件,注意usershell是自己写的.
在tcp.c中添加tcp端口监听程序
添加#include "telnetd.h"
void tcp_demo_appcall(void)
{
if(uip_conn->lport == HTONS(TCP_ClinetPort))
{
tcp_c...
分类:
Web程序 时间:
2014-06-14 13:13:03
阅读次数:
281
写了几天,用OSG,实现了集群渲染,感觉还不错,线性加速比还算可以。采用KDTree 、八叉树管理场景,场景数据通过UDP和TCP。
不用拷贝文件,直接在线读取。效率基本满帧。如图:
这个 3*2 的一个投影墙:(渲染节点)...
分类:
其他好文 时间:
2014-06-14 12:14:35
阅读次数:
2302