包含头文件
功能:创建一个套接字用于通信
原型
int socket(int domain, int type, int protocol);
参数
qdomain :指定通信协议族(protocol family)
qtype:指定socket类型,流式套接字SOCK_STREAM,数据报套接字SOCK_DGRAM,原始套接字SOCK_RAW
qprotocol :协议类型
q返...
分类:
其他好文 时间:
2014-05-11 13:39:49
阅读次数:
269
Linux下编译OpenDDS OpenDDS同样支持Linux
family,本文使用的Linux环境为Ubuntu 12.04LTS,make版本GNU Make 3.81,Perl版本v5.14.2。1
OpenDDS编译前准备下载ACE+TAO与OpenDDS。ACE+TAO下载地址http...
分类:
系统相关 时间:
2014-05-10 07:30:41
阅读次数:
1198
一、概念
策略模式(Strategy):它定义了一系列的算法,并将每一个算法封装起来,而且使它们还可以相互替换。策略模式让算法的变化不会影响到使用算法的客户。(原文:The
Strategy Pattern defines a family of algorithms,encapsulates ea...
分类:
其他好文 时间:
2014-05-10 06:27:07
阅读次数:
431
1.兼容360浏览器 字体大小设置 开发中需要使用em单位1 font-size: 0.83em; 2
font-family: "Arial";3 -webkit-text-size-adjust: none;
分类:
Web程序 时间:
2014-05-10 02:34:08
阅读次数:
289
css中的font-family属性可以让我们自定义字体。在页面前端,宋体已经明日黄花,号称最贵中文字体的微软雅黑大行其道。英文字体万年不变,依然还是"arial","verdana","sans
serif"这些字体。在做项目期间,碰到一个问题。看下面的截图。箭头标记的地方需要对齐。这里就带来一个...
分类:
其他好文 时间:
2014-05-09 03:33:52
阅读次数:
377
前言
以前写代码的时候总是喜欢在body元素中写字体属性,用以控制全局字体样式,后来发现表单元素中的字体样式并不能被控制,郁闷的不行。 解决方法
因为表单元素无法继承body的字体属性,所以要单独设置。body { font-family: Arial, Helvetica, san...
分类:
其他好文 时间:
2014-05-08 18:57:44
阅读次数:
288
Legal or Not
Problem Description
ACM-DIY is a large QQ group where many excellent acmers get together. It is so harmonious that just like a big family. Every day,many "holy cows" like HH, ...
分类:
其他好文 时间:
2014-05-08 11:11:28
阅读次数:
339
font-family的调用方法:
div {
font-family:Arial,'Times New Roman','Microsoft YaHei',SimHei;
font:bold 12px/0.75em Arial,'Times New Roman','Microsoft YaHei',SimHei;
}
根据font-family的原则,假如客户终端不认...
分类:
Web程序 时间:
2014-05-07 12:27:13
阅读次数:
468
windows下将IPython Qt Console的快捷方式修改为:
"C:\Python\IPython Qt Console.exe" --ConsoleWidget.font_family="Courier New"
--ConsoleWidget.font_size=9 --Conso....
分类:
编程语言 时间:
2014-05-04 19:24:27
阅读次数:
1195
??
SQL Server online consultants came across an interesting scenario where one of our client was unable to restore a native SQL Server backup successfully performed from one instance running on M...
分类:
数据库 时间:
2014-05-04 17:42:50
阅读次数:
394