sockaddr结构体sockaddr的缺陷:struct sockaddr 是一个通用地址结构,这是为了统一地址结构的表示方法,统一接口函数,使不同的地址结构可以被bind() , connect() 等函数调用;sa_data把目标地址和端口信息混在一起了struct sockaddr { un...
分类:
其他好文 时间:
2014-07-16 19:22:47
阅读次数:
232
之前做JavaEE的工程都是用的Myeclipse,没有用Eclipse 做过比较大的东西。 刚刚试了把别人的项目导入到自己的Eclipse里,吓尿,一百多个error。但大部分都是:HttpServlet cannot be resolved to a type之类的,要不就是JSP不能被r...
分类:
编程语言 时间:
2014-07-15 23:15:30
阅读次数:
332
[root@localhostLiveOS]#mountsquashfs.img/mnt/squashfs/mount:/mnt/sdb1/iso/LiveOS/squashfs.imgisnotablockdevice(maybetry`-oloop‘?)[root@localhostLiveOS]#mount-oloop/mnt/squashfs/mount:can‘tfind/mnt/squashfs/in/etc/fstabor/etc/mtab[root@localhostLiveOS]#mount..
分类:
其他好文 时间:
2014-07-15 10:53:58
阅读次数:
870
Cannot find a class or type named "MultiMarker" 是一种常见错误,产生的原因是Library里面有1个以上的ar库。以我的电脑为例,我装了NyAR2、NyAR4psg,所以运行的时候Processing先搜索NyAR2,结果找不到MultiMarker类...
分类:
其他好文 时间:
2014-07-15 00:47:37
阅读次数:
228
import java.util.Scanner;/** * Created by Administrator on 14-5-13. * 计算斐波那契数列 * * Result M(Problem prob) { if () return ; // The problem cannot be so...
分类:
其他好文 时间:
2014-07-15 00:39:15
阅读次数:
408
1.当执行此命令的时候ntpdate us.pool.ntp.org 出现一下错误提示name server cannot be used: Temporary failure in name resolution2.解决办法(添加DNS服务器)vi /etc/resolv.conf添加: name...
分类:
其他好文 时间:
2014-07-14 20:12:04
阅读次数:
272
1.使用get方式时,url类似如下格式:
[html] view
plaincopy
index.jsp?id=100&op=bind
GET报问头如下:
[html] view
plaincopy
GET /sn/index.php?sn=123&n=asa HTTP/1.1
Accept: */*...
分类:
编程语言 时间:
2014-07-14 18:42:29
阅读次数:
336
服务端:#!/usr/bin/pythonimportsockets=socket.socket()host=‘10.67.15.96‘port=889s.bind((host,port))s.listen(5)whileTrue:c,addr=s.accept()print‘++++++‘c.send(‘server‘)b=c.recv(1024)printbc.close()客户端:#!/usr/bin/pythonimportsockets=socket.socket()host=‘10.6..
分类:
其他好文 时间:
2014-07-14 16:24:40
阅读次数:
183
决定终结这个问题!(网上要想找到完整的解答实在太难了)http://blog.sciencenet.cn/blog-676535-541444.html 前两天手贱,把虚拟机玩崩溃了,只好重装虚拟机,把以前的工作再做一遍。在安装好qt-creator之后,编译程序遇到了下面这个错误 cannot.....
分类:
其他好文 时间:
2014-07-14 15:29:25
阅读次数:
341
这种情况一般虚拟机的位数(32和64)不匹配造成的。重新下一个和你虚拟机匹配的JDK版本就行了
其中带有X64的都是64位,其他32位...
分类:
编程语言 时间:
2014-07-14 13:38:52
阅读次数:
263