var net = require ('net');
var HOST = '192.168.1.50';
var PORT = 8809;
net.createServer(function(sock){
console.log('CONNECTED:'+sock.remoteAddress + ":"+ sock.remotePort);
sock.on('d...
分类:
编程语言 时间:
2014-07-16 17:26:22
阅读次数:
235
题意:
一串数字 问 有几种这样的组合(x,y,z)使得x>y>z或x
思路:
对于一个数字 比如 f 它计算出的ans值为
( beforef.lessthanf * afterf.biggerthanf )+( beforef.biggerthanf * afterf.lessthanf )
易知 beforef.biggerthanf = locationf - ...
分类:
其他好文 时间:
2014-07-16 17:25:35
阅读次数:
173
什么是匿名Service?凡是没有到ServiceManager上注册的Service,都是匿名Service。
还是拿上一篇的例子来举例,看代码:
status_t MediaPlayer::setDataSource(int fd, int64_t offset, int64_t length)
{
status_t err = UNKNOWN_ERROR;
const s...
分类:
移动开发 时间:
2014-07-16 17:17:32
阅读次数:
379
ping -n 1 -w 10000 224.0.0.0 模拟sleep wget ifconfig.me/ip -q -O - 获取你的外部ip地址 wget -S -O/dev/null "INSERT_URL_HERE" 2>&1 | grep Server 查看服务器软件(比如 Apache...
分类:
其他好文 时间:
2014-07-16 16:58:53
阅读次数:
186
host/customer/delete/1host/customer/get/keyword-祖国host/customer/get/1.xmlhost/customer/get/1.jsonhost/order/posthost/order/post/get/500.jsonrest:repre...
Description
Severe acute respiratory syndrome (SARS), an atypical pneumonia of unknown aetiology, was recognized as a global threat in mid-March 2003. To minimize transmission to others, the best s...
分类:
其他好文 时间:
2014-07-16 14:29:06
阅读次数:
195
外部库存设备清单
第一章中介绍了Ansible的运行需要一个设备库存清单文件,让他可以知道需要访问那些主机设备。Ansible还可以通过脚本让你选择其他的库存清单文件,这个脚本可以可以用任何语言来写,只要他的输出格式符合JSON。
外部库存清单的脚本需要接受2种Ansible的调用,如果用用--list调用,它返回一个可以用的组和主机列表;如果用--host调用,则返回一个可用的主机列表。所有的输出必须是JSON格式,所以你使用的语言最好能轻易的支持这座格式。...
分类:
其他好文 时间:
2014-07-16 12:54:47
阅读次数:
373
1. 设置iis pool: cls Import-Module WebAdministration Get-ChildItem IIS:\apppools | ForEach-Object{ $name = $_.name Write-Host $_.name $pool = Get-Item I...
分类:
其他好文 时间:
2014-07-16 12:26:18
阅读次数:
1084
ROM介绍
1.apk进行odex合并及zipaliang优化-省电及减少内存暂用。
2.测试相机、通话、数据、wifi、蓝牙、等传感器均正常,。
3.提供时间居中防iphone状态栏补丁
4.加入INIT.D启动和V6优化脚本
5.添加AicBootFix省电程序
6.加入sony图像显示引擎
7.添加build优化脚本
8.加入gps增强定位文件
9.加入host广告屏蔽文件
10.加入最新版V4A音效-自动安装驱动
11.加入最新美化版RE管理器3.1.7
...
分类:
其他好文 时间:
2014-07-16 11:17:02
阅读次数:
258
分享一个PHP以mysqli方式连接类完整代码实例,有关mysqli用法实例。一个在PHP中以mysqli方式连接数据库的一个数据库类实例,该数据库类是从一个PHP的CMS中整理出来的,可实现PHP连接数据库类,MySQLi版,兼容PHP4,对于有针对性需要的朋友可根据此代码进行优化和修改。host...
分类:
数据库 时间:
2014-07-16 08:54:00
阅读次数:
488