HTTP 1.1新特性 HTTP 2.0新特性 GET和POST区别 HTTP缓存 Connection:Keep-Alive/Close
分类:
Web程序 时间:
2015-07-29 00:35:31
阅读次数:
171
APUE基础 文件 IO 相关操作
open, close, creat, lseek, read, write 函数详解...
分类:
其他好文 时间:
2015-07-28 23:21:12
阅读次数:
528
闲话少说先上代码
# 读方式打开文件
myfile=h5py.File('arr.mat','r')
arr = myfile['arr'][:]
myfile.close()
slt = 'ward'
while
clust_model = sklearn.cluster.AgglomerativeClustering(linkage=slt, affinity="euclidean", n...
分类:
编程语言 时间:
2015-07-28 18:33:11
阅读次数:
418
netty ? 处理远程主机强制关闭一个连接,首先看下api解释: /**
?*?Returns?{@code?true}?if?and?only?if?the?channel?should?not?close?itself?when?its?remote
?*?peer?shuts?down?outpu...
分类:
Web程序 时间:
2015-07-28 16:15:10
阅读次数:
4644
学生管理数据库系统:
建立步骤:
1)导入jar包,建立数据库,与数据库连接。
2)将一些常用函数导入到DbOperator类中,形成一个抽象工具包!静态字执行一次,就是Class.forName(“”);接着就是活的连接;然后就是close方法,(ResultSet rs,Statement st,Connection conn)if(rs或者st或者conn不等于零)然后执行 rs....
分类:
其他好文 时间:
2015-07-28 13:01:17
阅读次数:
124
项目里面有用到插值滤波器的场合,用matlab做了前期的滤波器性能仿真,产生的滤波器系数保存下来输入到FPGA IP中使用即可。下面是仿真的代码 1 % clear all 2 close all 3 4 Nx = 4096; 5 Tx = 16; 6 nx = 0:Nx-1; 7 x = si.....
分类:
其他好文 时间:
2015-07-28 12:26:13
阅读次数:
184
在matlab中读入shp文件很简单,一个函数shaperead就可以了,但输出为shp文件就稍微麻烦一些了。shp文件实际上就是一个struct,因此得到处理结果后,要先将数据变成struct结构,然后调用shapewrite函数就可以了。clc;clear;close all;[pic, R] ...
分类:
其他好文 时间:
2015-07-28 06:33:00
阅读次数:
164
clc;close all;clear;road=shaperead('boston_roads.shp'); %读取shape文件figure,mapshow('boston.tif'); %读取tif遥感影像并显示axis image manual off; %关闭本地坐标系统surveyF.....
分类:
其他好文 时间:
2015-07-27 01:53:41
阅读次数:
367
在matlab中进行图像处理,一般使用的都是图像本地坐标,以左上角(1,1)开始。处理完成后,如果要将结果在带地理坐标的遥感影像中显示,或者需要输出成shp文件,就需要涉及到本地坐标和地理坐标的转换,我们可以使用pix2map函数来实现这个功能。clc;clear;close all;[pic, R...
分类:
其他好文 时间:
2015-07-27 01:52:37
阅读次数:
226
Valid Parentheses
Given a string containing just the characters '(', ')', '{', '}', '[' and ']',
determine if the input string is valid.
The brackets must close in the correct order, "()"...
分类:
其他好文 时间:
2015-07-26 22:43:18
阅读次数:
142