原创 Ubuntu14.04 安裝JDK7
sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installer
原创 ubuntu 升級後
Error found when loading /root/.profilestdin:is not a tty 解決方法 註解mesg,加入 t
原创 自動關閉tomcat
使用Tomcat/Eclipse調試的時候,經常會發生關閉不正常,非要使用 ps -elf|grep tomcat , kill -9 這樣的操作,費時費勁,因此產生出寫個shell ,希望直接命令去做個事情,以下爲正個shell調試
原创 extjs4 grid sample
Ext.require([ 'Ext.data.*', 'Ext.grid.*']); var TOTAL = 94; //random var fetchedData = function () { this.d
原创 顯示ext4js form 校驗出錯的結果
Ext.create('Ext.form.Panel', { title: 'Simple Form', bodyPadding: 5, width: 350, // The form will submi
原创 liferay 容器下的servlet
web.xml <servlet> <servlet-name>YourServlet</servlet-name> <servlet-class>com.liferay.portal.ke
原创 javaagent學習
pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
原创 追加postgresql table column
DO $$ BEGIN IF not EXISTS (SELECT column_name FROM information_schema.columns WHERE table_schema='spc' and table_name='
原创 Spring Data JPA without Spring Boot
src/main/webapp/WEB-INF/spring/context.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springfram
原创 mybatis 使用 log4j debug sql
配置log4j 輸出 mybattis輸出# Global logging configurationlog4j.rootLogger=ERROR, stdout# MyBatis logging configuration...log
原创 ubuntu install smartgit
sudo add-apt-repository ppa:eugenesan/ppa sudo apt-get update sudo apt-get install smartgithg
原创 Ubuntu expect使用經驗
自動登錄 apt-get install autossh apt-get remove expect autossh.sh set IPandPort yourport set username username set re
原创 Minitab Z-MR chart 是如何計算的
例子數據來源 https://msu.edu/course/stt/200/melfi/mtbdata/Exh_qc.MTW (以下拷貝來源) Z 控制圖 Z 控制圖中的每個數據點 zi MR 控制圖 每個組中的每個數據點 Ri(z 值
原创 vncserver xstartup
/root/.vnc/xstartup #!/bin/sh # Uncomment the following two lines for normal desktop: # unset SESSION_MANAGER # exec /
原创 rabbitmq 遠程登錄
rabbitmqctl add_user username passwordrabbitmqctl set_user_tags username administrator