發表文章

NoSQL

http://blog.toright.com/posts/3809/mongodb-%E6%95%99%E5%AD%B8-linux-%E5%AE%89%E8%A3%9D-nosql-mongodb.html

RESTful

http://blog.toright.com/posts/1399/%E6%B7%BA%E8%AB%87-rest-%E8%BB%9F%E9%AB%94%E6%9E%B6%E6%A7%8B%E9%A2%A8%E6%A0%BC-part-ii-%E5%A6%82%E4%BD%95%E8%A8%AD%E8%A8%88-restful-web-service.html

JDBC出現unhandled exception type IllegalAccessException

狀況: 執行Class.forName(driverName).newInstance(); eclipse出現error訊息:unhandled exception type IllegalAccessException 原因: Class.forName("com.mysql.jdbc.Driver").newInstance(); 這行程式需要exception操作,要做try catch或throws, 而在jsp中,eclipse對於採用<% %>方式寫的程式碼不做異常檢查,因為JSP預設會做try catch。 解決方法:         try{             Class.forName(driverName).newInstance();         }         catch(Exception e){             //for catch Class.forName exception         }

Eclipse預設編碼設定UTF-8

Eclipse預設編碼設定UTF-8 workspace:Window->Preferences->General->Workspace->Text file encoding html:Window->Preferences->Web->HTML files->encoding css:Window->Preferences->Web->CSS files->encoding jsp:Window->Preferences->Web->JSP files->encoding Show line numers:Window->Preferences->General->Editors->Text Editors Reference http://www.ewdna.com/2011/09/eclipse.html

Java Servlet MVC web app

Servlet http://www.javatutorialscorner.com/2014/04/servlet-hello-world-sevlet-using.html https://blogs.oracle.com/swchan/entry/servlet_3_0_annotations http://pro.ctlok.com/2010/02/mvc-servlet-jsp.html http://openhome.cc/Gossip/ServletJSP/FirstServlet.html http://www.codedata.com.tw/java/java-tutorial-the-3rd-class-3-servlet-jsp/ http://pro.ctlok.com/2010/02/java-ee-6-glassfish-v3-mysql-51-ejb-jpa.html http://lawpronotes.blogspot.tw/2010/01/java-ee-6-servlet-30-annotations.html http://www.dotblogs.com.tw/alantsai/Tags/servlet/default.aspx http://openhome.cc/Gossip/ServletJSP/DispatchRequest.html startup啟動 How to Run Java Program Automatically on Tomcat Startup http://crunchify.com/how-to-run-java-program-automatically-on-tomcat-startup/ 週期自動執行 Background Thread for a Tomcat servlet app http://stackoverflow.com/questions/791986/background-thread-for-a-tomcat-servlet-app How to run a background task in a servlet based web application? http://stackoverflow.com...

tcpdump設定執行時間

tcpdump & sleep 1m ; killall tcpdump /path/to/tcpdumpbinary --whatever-args-you-need & sleep 10s && pkill -HUP -f /path/to /tcpdumpbinary reference http://phorum.vbird.org/viewtopic.php?f=2&t=32773 http://www.linuxquestions.org/questions/linux-wireless-networking-41/how-to-limit-the-tcpdump-command-to-a-time-interval-945468/

Linux tcpdump

Linux使用tcpdump命令抓包保存pcap文件wireshark分析  http://liuzhigong.blog.163.com/blog/static/1782723752012851043396/ tcpdump 的用法 http://blog.xuite.net/jyoutw/xtech/23669726 Linux tcpdump命令详解 http://www.cnblogs.com/ggjucheng/archive/2012/01/14/2322659.html