首页 > 其他
Socket通信服务端和客户端总结
服务端:1.创建一个Socket对象。用来侦听的。2.绑定端口和IP3.开启侦听4.开始接受客户端连接5.创建一个代理通信Socket对象。用来通信的。6.发送消息接收消息7.收到客户端的道别,也会回一个:我也走了8.关闭Socket客户端:1.创建Socket对象2.连接服务器3.发送消息接受消息...
分类:其他   时间:2014-12-27 20:16:47    收藏:0  评论:0  赞:0  阅读:261
天平砝码称重量
源blog地址http://onlywish.me用天平称重量有1,3,9,27,81的砝码输入一个121以内的数。求出称重方法:如:输入10 显示 9+1;输入 7 显示 9-3+1;下面是答案(自己写的,非标准):#include #include int sum = 0; int array[...
分类:其他   时间:2014-12-27 20:16:27    收藏:0  评论:0  赞:0  阅读:244
#研发中间件介绍#定时任务调度与管理JobCenter
说是定时任务,其实我只是登记了要调用的远端接口、通讯协议、Crontab 时间格式表达式、执行机器组、超时时间、报警接收人等而已。由 JobCenter 按时通知对端的接口,并接收任务执行者的进度反馈和最终执行结果,这些响应均为 JSON 格式。还可以为同一个定时任务添加多个执行机器,JobCent...
分类:其他   时间:2014-12-27 20:16:17    收藏:0  评论:0  赞:0  阅读:300
学校acm比赛题
这道题 用位运算必然简单 但是苦逼的是自己不熟练 那就 用本办法输入一个十进制数 转换成二进制翻转 去掉高位的零 然后再转化为十进制 输出! 1 #include 2 #include 3 #include 4 int main() 5 { 6 int i, x, sum, sum1, n...
分类:其他   时间:2014-12-27 20:16:07    收藏:0  评论:0  赞:0  阅读:241
Gradle Goodness: Renaming Files while Copying
With the Gradle copy task we can define renaming rules for the files that are copied. We use the rename() method of the copy task to define the naming...
分类:其他   时间:2014-12-27 20:14:47    收藏:0  评论:0  赞:0  阅读:293
字符编码
1. ASCII(American Standard Code for Information Interchange,美国信息互换标准代码),是基于常用的英文字符的一套电脑编码系统。我们知道英文中经常 使用的字符、数字符号被计算机处理时都是以二进制码的形式出现的。这种二进制码的集合就是所谓的AS....
分类:其他   时间:2014-12-27 20:14:37    收藏:0  评论:0  赞:0  阅读:269
Centos 6.5 下安装socket5代理
---恢复内容开始---1. 安装先安装依赖库yum -y install gcc gcc-c++ automake make pam-devel openldap-devel cyrus-sasl-devel 下载源码包 编译安装wget http://downloads.sourceforge....
分类:其他   时间:2014-12-27 20:14:17    收藏:0  评论:0  赞:0  阅读:419
大数阶乘问题!
对于 新手的我来说 写起来 还是有一点吃力 好在写出来了! 1 #include 2 int main() 3 { 4 int m; 5 scanf( "%d" , &m ); 6 int a[50000] = {0,1}; 7 //static int a[...
分类:其他   时间:2014-12-27 20:14:07    收藏:0  评论:0  赞:0  阅读:391
选择之难
最近的碰上工作的选择的问题,才发现以前自己最终的选择比较容易啊,你应该如何如何的说法,那就是一坨热乎乎的东西,不搁自己身上不知道啊。 选择之难,在于未知。 未知有二,一个是未来的未知,不知道这个决定下了以后,自己的未来会受到什么的影响。 一个是不知道选择的范围,或者说这个范围圈定在什么地方,自己看不...
分类:其他   时间:2014-12-27 20:13:57    收藏:0  评论:0  赞:0  阅读:286
配置eth0
1.其中以eth0 为首的部分是本机的以太网卡配置参数,这里显示了网卡的设备名/dev/eth0 和硬件的MAC 地址 lo 则代表Link encap:本地环回 2.eth0,eth1,eth2……代表网卡一,网卡二,网卡三……lo(回路设备)代表127.0.0.1,即localhost e...
分类:其他   时间:2014-12-27 20:13:27    收藏:0  评论:0  赞:0  阅读:763
Leetcode:Longest Substring Without Repeating Characters 解题报告
Longest Substring Without Repeating CharactersGiven a string, find the length of the longest substring without repeating characters. For example, the ...
分类:其他   时间:2014-12-27 20:13:17    收藏:0  评论:0  赞:0  阅读:403
ie兼容图片缩小后模糊失真(锯齿)问题
无标题文档
分类:其他   时间:2014-12-27 20:12:27    收藏:0  评论:0  赞:0  阅读:1390
KVM虚拟化技术简介
kernel-based Virtual Machine的简称,是一个开源的系统虚拟化模块,自Linux 2.6.20之后集成在Linux的各个主要发行版本中。它使用Linux自身的调度器进行管理,所以相对于Xen,其核心源码很少。KVM目前已成为学术界的主流VMM之一。 KVM的虚拟化需要硬件支持...
分类:其他   时间:2014-12-27 20:12:07    收藏:0  评论:0  赞:0  阅读:452
周浩晖 - 斗宴(2014年12月27日)
《斗宴》作 者:周浩晖译 者:系 列:出 版:中国华侨出版社字 数:220千字阅读完成:2014年12月27日
分类:其他   时间:2014-12-27 20:11:37    收藏:0  评论:0  赞:0  阅读:250
Gradle Goodness: Adding Tasks to a Predefined Group
In Gradle we can group related tasks using the group property of a task. We provide the name of our group and if we look at the output of the tasks ta...
分类:其他   时间:2014-12-27 20:11:08    收藏:0  评论:0  赞:0  阅读:362
Leetcode:【DP】Longest Palindromic Substring 解题报告
Longest Palindromic Substring-- HARD 级别Question SolutionGiven a string S, find the longest palindromic substring in S. You may assume that the maximum...
分类:其他   时间:2014-12-27 20:10:07    收藏:0  评论:0  赞:0  阅读:412
Gradle Goodness: Profiling Information
If we want to know more about how much time is spent in tasks we can use the --profile command-line option. Gradle will generate a report file in the ...
分类:其他   时间:2014-12-27 20:09:57    收藏:0  评论:0  赞:0  阅读:345
IO(字符流)
1. 由于Java采用16位的Unicode字符,因此需要基于字符的输入/输出操作。从Java1.1版开始,加入了专门处理字符流的抽象类Reader和Writer,前者用于处理输入, 后者用于处理输出。2. Java程序语言使用Unicode来表示字符串和字符,Unicode使用两个字节来表示一.....
分类:其他   时间:2014-12-27 20:09:37    收藏:0  评论:0  赞:0  阅读:413
IO(File)
1. 一个File类的对象,表示了磁盘上的文件或目录2. File类提供了与平台无关的方法来对磁盘上的文件或目录进行操作3. File对象可用来获取或处理与磁盘文件相关的信息,如:权限,时间,日期和目录路径4. File类的构造方法: File(String directoryPath) Fil.....
分类:其他   时间:2014-12-27 20:09:27    收藏:0  评论:0  赞:0  阅读:275
RedHat6使用CentOS yum源 更新的方法(换yum)
首先:备份系统自带的yum源列如:在我的电脑上ReadHat 自带的yum目录: etc/yum.repos.d #rhel-source.repo 备份命令:mv rhel-source.repo rhel-source.repo.save #这样就备份成了rhel-sou...
分类:其他   时间:2014-12-27 20:09:07    收藏:0  评论:0  赞:0  阅读:1463
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!