原来一直以为是代码问题,改了又改。就是只能本机收。
后来查各种资料或案例,见有人说虚拟机不能收。灵机一动,把服务端放虚拟机里。OK。虚拟机是win7x64 宿主机是win8x64。
又找是否win8系统原因导致的。
http://blog.csdn.net/lixiang987654321/article/details/41697533
在公司最近项目中,有关设备搜索采用UDP广播方式搜...
1、Android 中要实现国际化比较简单。
字符串国际化:只要在 res 文件夹下新建对应语言的 values 文件夹就好了,
如,英语环境下的,文件夹命名为:values-en
美国英文环境:values-en-rUS
中文环境为:values-zh
大陆地区中文环境: values-zh-cn
在 eclips...
分类:
移动开发 时间:
2015-07-18 18:38:30
阅读次数:
184
最近由于项目需求变更,需要本人对其中的某个业务功能进行修改。本人按照前台页面找action,根据action找代码的逻辑进行了修改(公司项目是ssh框架,struts配置全部是通过注解的方式进行,配置简单方便)。当然测试人员也成功的进行了测试,发现没有任何问题,成功发版。奇葩事情来了,在发版环境中,修改的代码总是没用! 没办法,问题还是要解决,在确认了发版环境的确是最新代码之后,回自己座位找原因。...
分类:
其他好文 时间:
2015-07-18 18:38:35
阅读次数:
152
#include
#include
#include
using namespace std;
long long n,m;
long long int a[100];
long long int b[100];
int gcd(int a,int b){
return b == 0? a: gcd(b,a%b);
}
int main(){
int t;
scanf("%d",&t...
分类:
其他好文 时间:
2015-07-18 18:37:44
阅读次数:
112
《SICP?2.1 数据抽象简介》看得不爽,吐槽一下。
The basic idea of data abstraction is to structure the programs that are to use compounddata objects so that they operate on ''abstract data.'' 接口操作于抽象数据。
At the same ...
分类:
其他好文 时间:
2015-07-18 18:38:58
阅读次数:
104
It is possible to write ten as the sum of primes in exactly five different ways:
7 + 3
5 + 5
5 + 3 + 2
3 + 3 + 2 + 2
2 + 2 + 2 + 2 + 2
What is the first value which can be written as the sum o...
分类:
其他好文 时间:
2015-07-18 18:40:05
阅读次数:
118
看图“作业”,涂鸦一文。潮期无尽,红尘万里,到过天涯海角。天堂遗鸟总蹁跹,又何必、千年城堡。...
分类:
其他好文 时间:
2015-07-18 18:36:52
阅读次数:
131
问题碰到这样的问题,感觉很神奇。
定子方程,短幅内摆线方程:
{x1y1=(R?r)sinτ+esin(z2τ)?resinθ=(R?r)cosτ?ecos(z2τ)+recosθ\left\{\quad
\begin{array}{rl}
x_1&=(R-r) \sin \tau+e \sin \left(z_2 \tau\right)-r_e \sin \theta \ y_1&=(...
分类:
其他好文 时间:
2015-07-18 18:38:21
阅读次数:
204
打开Wing IDE后,进入“编辑”列的“偏好设置”页面,如图1所示:
图1
设置用4个spaces代替tab, 如图2所示
图2
设置保护眼睛的绿...
1.配置java环境变量:
(1)新建变量名:JAVA_HOME,变量值:C:\Program Files\Java\jdk1.7.0
(2)打开PATH,添加变量值:%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin
(3)新建变量名:CLASSPATH,变量值:.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools...
分类:
其他好文 时间:
2015-07-18 18:37:37
阅读次数:
141
Problem Description
要求(A/B)%9973,但由于A很大,我们只给出n(n=A%9973)(我们给定的A必能被B整除,且gcd(B,9973) = 1)。
Input
数据的第一行是一个T,表示有T组数据。
每组数据有两个数n(0
Output
对应每组数据输出(A/B)%9973。
Sample Input
2
1000 ...
分类:
其他好文 时间:
2015-07-18 18:36:54
阅读次数:
109
git clone时,出现这个错误.
remote: Counting objects: 4592517, done.
remote: Compressing objects: 100% (1140430/1140430), done.
error: RPC failed; result=56, HTTP code = 2008.82 MiB | 4.72 MiB/s
f...
分类:
其他好文 时间:
2015-07-18 18:38:55
阅读次数:
118
今天我们首先来说为什么要介绍这个新组件RecyclerView,因为前几天我发布了一个常用面试题ListView的复用及如何优化的文章,介绍给一些开发者,但是我看到有关的反馈说:现在都不再用listview了,代替的是RecyclerView,确实是,但是用的毕竟是少数,所以可能很多人对于这个组件不是很了解,那么我们就来介绍一下吧!
1、什么是RecyclerView
Recycler...
分类:
移动开发 时间:
2015-07-18 18:36:27
阅读次数:
195
'NSInternalInconsistencyException', reason: 'unable to dequeue a cell with identifier ActiveListCell - must register a nib or a class for the identifier or connect a prototype cell in a storyboard'...
分类:
其他好文 时间:
2015-07-18 18:37:10
阅读次数:
104
首先安装好apache+php+mysql
将禅道解压到apache下,zentaopms\www\install.php 进行安装...
分类:
其他好文 时间:
2015-07-18 18:38:34
阅读次数:
113
Codeforces Round #240 (Div. 2) (ABCDE题解)...
分类:
其他好文 时间:
2015-07-18 18:36:19
阅读次数:
95
修改表名alter table table_name rename to new_table_name增加列alter table tablename add columns(c1 string comment 'xxxx',
c2 long comment 'yyyy')修改列名alter table tablename change column c_Old c_New int comment...
分类:
其他好文 时间:
2015-07-18 18:36:19
阅读次数:
257