voidsetup(){size(200,200,P3D);noFill();smooth();}voiddraw(){background(0);translate(width/2,height/2,-(width/2));rotateY(map(mouseX,0,width,-PI,PI));stroke(100);box(150);rotateX(map(mouseY,0,height,-PI,PI));stroke(150);box(75);}
分类:
其他好文 时间:
2014-09-09 09:10:49
阅读次数:
348
intrectX,rectY;intrectSize=90;colorrectColor;colorbaseColor;booleanrectOver=false;voidsetup(){size(640,360);rectColor=color(0);baseColor=color(102);rectX=width/2-rectSize/2;rectY=height/2-rectSize/2;}voiddraw(){update(mouseX,mouseY);noStroke();if(rectOver){..
分类:
移动开发 时间:
2014-09-08 11:00:17
阅读次数:
697
把参数放到作用域里面去.如:action中:request.setAttribute("参数名","值");页面上:request.getAttribute("参数名");request.getParameter()方法完全可以获得URL参数,检查下是否参数名写错你使用的是不是BaseAction....
分类:
其他好文 时间:
2014-09-08 10:45:46
阅读次数:
245
MVC结构,其实就是三个Model,Contraller,View单词的简称,Model,主要任务就是把数据库或者其他文件系统的数据按照我们需要的方式读取出来。View,主要负责页面的,把数据以html的形式显示给用户。Controller,主要负责业务逻辑,根据用户的 Request进行请求的分配...
分类:
Web程序 时间:
2014-09-08 09:35:16
阅读次数:
433
续《一个IO的传奇一生(13)——Linux中的MD开源RAID(1)》4.6make_request函数说明函数原型:staticintmake_request(request_queue_t*q,structbio*bi)参数:*q,请求队列*bi,IO请求数据结构各个RAIDLevel的IO请求函数相同,但是他们的实现是不一样的。RAID1中make_request(..
分类:
系统相关 时间:
2014-09-08 03:19:17
阅读次数:
393
官方链接:http://storm.incubator.apache.org/documentation/Guaranteeing-message-processing.htmlWhat does it mean for a message to be “fully processed”?A tup...
分类:
其他好文 时间:
2014-09-08 00:59:26
阅读次数:
482
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {HttpServletRequest req...
分类:
其他好文 时间:
2014-09-07 23:40:45
阅读次数:
310
floati=0;booleanf=false;floatxx,yy,zz;voidsetup(){size(200,200,P3D);noFill();smooth();frameRate(25);}voiddraw(){background(0);xx=width/2;yy=height/2;zz=-(width/2);translate(xx,yy,zz);rotateX(map(i++,0,height,-PI,PI));rotateY(map(i++,0,height,-PI,PI));stroke..
分类:
其他好文 时间:
2014-09-07 18:38:46
阅读次数:
266
/*引入需要的 module*/var http=require("http");var fs=require("fs");var server=http.createServer(function(request,response){ if(request.method==="GET"){ ...
分类:
Web程序 时间:
2014-09-07 14:43:25
阅读次数:
218
//console.log("hello world");var http=require("http");var server=http.createServer(function(request,response){ console.log(request.method); cons...
分类:
Web程序 时间:
2014-09-07 13:27:25
阅读次数:
239