public static void compressPic(){ try { Thumbnails.of(new File("/home/y/my_temp/ydbg-xy-pic").listFiles()) .size(...
分类:
其他好文 时间:
2015-06-18 19:34:56
阅读次数:
716
public static void renamePic(){ File f = new File("/home/y/my_temp/ydbg-xy-pic-dest"); File files[] = f.listFiles(); for(...
分类:
其他好文 时间:
2015-06-18 18:50:37
阅读次数:
127
绘制格点数据的散点图,用scaterm函数。脚本程序:f = addfile('D:/Temp/GrADS/model.ctl')ps = f['PS'][0,(10,60),(60,140)]axesm()mlayer = shaperead('D:/Temp/map/country1.shp')...
分类:
其他好文 时间:
2015-06-18 16:58:04
阅读次数:
218
int kernel_x;int kernel_y;int mat_x;int mat_y;int **kernel;int **mat;int pos_archor_x;int pos_archor_y;void getValue(int pos_x,int pos_y){ int temp_x_...
分类:
编程语言 时间:
2015-06-18 13:06:14
阅读次数:
187
选择排序 1)原理:对于一个将要排序的数组A[n],先找出最小元素(升序排列),将其与A[0]交换,接着在数组下标为1~n-1的元素中寻找最小值,与A[1]交换,直到排序结束。 2)C语言实现:void main()
{
int t,temp,count, *p;
printf("please input the count :");
scanf_s("%d",...
分类:
编程语言 时间:
2015-06-18 11:29:13
阅读次数:
149
在C#中,ref的意思是按引用传递。可以参考C++:view plaincopy to clipboardprint?inta=10,b=20; voidswap(intx,inty) { inttemp=x; x=y; y=temp; }如果简单的调用这个swap,比如:swap(a, b),那么...
#include
#define SIZE 8
typedef int SqList[SIZE];
void SelectSort(SqList &Sq,int n)//13,38,65,97,76,27,49,49
{
int temp=0;
for(int i=0;i<n;++i)//选择的趟数
{
for(int j=i;j<n;++j)//其实只比较了n-i次
...
分类:
编程语言 时间:
2015-06-18 09:40:23
阅读次数:
124
copy muma.exe \\host\c$\windows\temp\foobar.exe ##IPC拷贝木马文件 WMIC远程运行命令wmic /node:host /user:administrator /p 密码 process call create “c:\windows\te...
分类:
其他好文 时间:
2015-06-17 21:10:23
阅读次数:
200
转自:http://www.cnblogs.com/dkblog/archive/2007/07/27/1980873.html在Web应用中的如何设置日志文件的路径呢?最笨的方法是写绝对路径,但很不方便。而Spring的做法是使用一个Servlet Listener,在WebContainer启动...
分类:
其他好文 时间:
2015-06-17 18:03:08
阅读次数:
156
function show_obj(obj){ var temp,p1Str=""; for(temp in obj){ p1Str=p1Str+temp+":"+obj[temp]+" -- "; } alert(p1S...
分类:
Web程序 时间:
2015-06-17 14:47:25
阅读次数:
107