`
lzj520
  • 浏览: 215934 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论
文章列表
Exercise 1.8.  Newton's method for cube roots is based on the fact that if y is an approximation to the cube root of x, then a better approximation is given by the value (x/y2+2y)/3 Use this formula to implement a cube-root procedure analogous to the square-root procedure. (In section 1.3.4 we will ...
可以采用cookies和sessionid的做法,这里是使用sessionid的做法。 使用HttpSessionListener来监听session的创建和销毁,集群内部的tomcat开启session复制。2个应用都试用HttpSessionListener来监听 web.xml:   <listener>   <listener-class>com.com.ActiveUserListener2</listener-class>  </listener> <distributable/> ActiveUserListen ...
for %I in (*.jpg) do convert %I -resize 130x130 -quality 85%  +profile "*" %~nI.jpg
<Directory "D:/java/xx/picphoto/">       Options SymLinksIfOwnerMatch              RewriteEngine  on        RewriteCond %{HTTP_REFERER} !^http://localhost.*$ [NC]              RewriteRule .*\.(gif|jpg|jpeg|JPG)$   http://www.xx.cn/images/xx.gif [R,NC] </Directory>
$wget http://labs.xiaonei.com/apache-mirror/tomcat/tomcat-6/v6.0.18/bin/apache-tomcat-6.0.18.tar.gz $sudo tar zxvf apache-tomcat-6.0.18.tar.gz -C /opt 在/etc目录下 $gedit environment 加入 classpath=/lzj/桌面/jdk.1.6.0_10/lib JAVA_HOME=/lzj/桌面/jdk.1.6.0_10/ 在/opt/apache-tomcat-6.0.18/bin目录下 $sudo ./startup.sh ...
之前一直正常使用的swfupload突然用不了,这是由于flash play10的缘故。所以需要升级到对应的swfupload 2.2.0 升级必须要做的: 更换swfupload.swf、swfupload.js、default.css 将原来的onClick="swfu.selectFiles();的按钮修改为:<span id="spanButtonPlaceholder" ></span> 在setting里加多:    button_image_url : "images/XPButtonNoText_160x22 ...
$sudo apt-get install sun-java6-jdk
ubuntu8.10 : $sudo apt-get update $sudo aptitude install scim-pinyin $sudo apt-get apt-get install scim $sudo apt-get apt-get install scim-pinyin $sudo apt-get apt-get install scim-chinese
先写入一行作为表格头部,然后查询取得一个list,然后循环并调用createCell方法放入excel表中: public void CreateExcel(String filename){   HSSFWorkbook wb = new HSSFWorkbook();   HSSFSheet sheet = wb.createSheet("new sheet");   HSSFRow row = sheet.create ...
客户端使用jquery,设置了上一页和下一页作为分页并显示总页数和当前页数,并把返回的json用div+span显示: $.ajaxSetup({ beforeSend: function() { $("#back").html('<img src="loading.gif">'); }, complete: function() {}, error:function(){$("#back").html('<font color="red">read data error..</fon ...
基于上一篇日志的实例的基础上修改: CRUDService.java: package client; import com.google.gwt.user.client.rpc.ServiceDefTarget; import com.google.gwt.user.client.rpc.RemoteService; import com.google.gwt.core.client.GWT; public interface CRUDService extends RemoteService {      Student[] getStudent(String PageNum)     ...
CRUD.gwt.xml: <module>     <inherits name='com.google.gwt.user.User'/>     <entry-point class='client.CRUD'/>     <servlet path="/CRUD/CRUDService" class="server.CRUDServiceImpl"/> </module> EntryPoint:CRUD.java,使用VerticalPanel 来显示List: package clien ...
upload.jsp: 在这个文件里,使用了新swfload的上传方式,将文件流发送到struts2的doMultipleUploadUsingList.action,uploadStart的这个function,是将页面上的"id"元素的值一起带过去,上传过程中,会在divStatus的DIV中显示上传进度条。 <%@ page  contentType="text/html;  charset=utf-8"%> <html> <head> <!DOCTYPE html PUBLIC "-//W3C/ ...
前台使用SWFUpload: <%@ page  contentType="text/html;  charset=GBK"%> <%@ page import="javax.servlet.*"%> <%@ page import="javax.servlet.http.*"%> <%@ page import="com.yourcompany.util.*"%> <html> <head>  <link href="js/d ...
            <bean id="authenticationProcessingFilter"         class="com.pixel.hibernate.HomeAloneAuthenticationProcessingFilter">         <property name="authenticationManager">             <ref bean="authenticationManager" />         </pr ...
Global site tag (gtag.js) - Google Analytics