//查看被開啟的個數
$lsof | grep java | wc -l
//每秒刷新一次
$watch -n1 'losof | grep java | wc -l'
Reference:
Too many open files
http://stackoverflow.com/questions/636046/file-not-found-why-not
Too many open files
星期二, 8月 30, 2011
星期日, 8月 28, 2011
星期四, 8月 25, 2011
星期一, 8月 22, 2011
[Eclipse] 關掉Java Script Validator
Eclipse一直跳出Javascript Validator擾民的訊息,可以從點選專案後按Properties->Builders->JavaScript Validator(uncheck)就可以了!!
星期三, 8月 10, 2011
星期一, 8月 08, 2011
Hp pavilion tx 1000 drivers for win7
最近幫朋友重灌Hp pavilion tx 1000筆電,由於是老電腦找Drivers就特別麻煩,
有需要的參考看看,不過目前的FN鍵跟觸控面版還是Driver不了。
有需要的參考看看,不過目前的FN鍵跟觸控面版還是Driver不了。
星期日, 8月 07, 2011
[Java] System.properties
From System Properties you can find information about the operating system, the user, and the version of Java.
The property names (keys) and values are stored in a
Properties
structure. (See Properties). A Properties
object can also be used to store your own program properties in a file.Reference:
Java: System Properties
星期五, 8月 05, 2011
[Java] Servlet file upload filename encoding (中文亂碼)
解決中文檔名亂碼問題:在init ServletFileUpload呼叫setHeaderEncoding指定編碼為utf-8,
就能正確取出中文了
servlet file upload filename encoding
就能正確取出中文了
ServletFileUpload upload = new ServletFileUpload(factory); upload.setHeaderEncoding("utf-8"); ListReference:items = null; try { items = upload.parseRequest(request); // System.out.println("item is added."); } catch (FileUploadException e) { System.out.println("FileUploadException:" + e.getMessage()); } if (items != null) { // System.out.println("items count:" + items.size()); Iterator iter = items.iterator(); while (iter.hasNext()) { FileItem item = iter.next(); String filename = item.getName(); } }
servlet file upload filename encoding
訂閱:
文章 (Atom)