原创 chmod 777 根目錄導致問題

不小心使用 chmod 777 /導致 sudo su - 使用不了, root 也無法登錄。提示如下 sudo:sudo /etc/sudoers is world writable sudo:no valid sudoers so

原创 less 查找顯示匹配字符

1.在用戶 home目錄創建  ~/.lessfilter    touch ~/.lessfilter 2.添加腳本內容 #!/bin/sh case "$1" in *.awk|*.groff|*.java|*.js|*.m

原创 install pgadmin4

vim /etc/apt/sources.list.d/pgdg.list deb http://apt.postgresql.org/pub/repos/apt/ bionic-pgdg main wget --quiet -O - h

原创 Delete the same JAR with ls result

A folder  has part jars which exist B folder A: /usr/local/tomcat/lib B: /usr/local/tomcat/projectwebapps/yourProject/W

原创 CXF跨域的兩種方法

web.xml 方案1 <filter>         <filter-name>CORS</filter-name>         <filter-class>com.thetransactioncompany.cors.CORS

原创 Extjs4 store filter function

tmpStore= new Ext.data.Store({                                         model: 'monitorGroup' ,                         

原创 Liferay struts2 portlet return JSON

struts.xml     <package name="namexxx"    extends="struts-portlet-default" namespace="/">         <action name="fetchSe

原创 apache-tomcat-7.0.103 error

Client send Get method to get JSON data background throw exception Invalid character found in the request target. The v

原创 go/gocode version

go gocode 版本不一致導致Eclipse不提示的解決方法 go get -u -v github.com/mdempsky/gocode   Eclipse go插件的設置

原创 Liferay postgres 8.4的驅動,9.3數據庫拋出異常

22:00:39,557 ERROR [SchedulerMessageListener:53] Unable to process message

原创 Extjs4 grid header 行隱藏checkbox

由於用戶的需求是在grid中可以單選記錄,同時也可以通過點擊去掉剛剛選擇的記錄,因此checkbox是我們的不二選擇。radio能滿足單選需求,但去掉選擇不方便。 具體實現代碼如下 var sm = new Ext.selection.C

原创 tomcat 容器重複包異常

在$Tomat_home/lib有 -rw-r--r-- 1 0 0 1599570  9月  2 16:48 axis-1.4.jar -rw-r--r-- 1 0 0   31191  9月  2 16:48 axis-jaxrpc-

原创 lieray 配置文件liferay-look-and-feel.xml

在自定義皮膚中配置了文件liferay-look-and-feel.xml,添加了以下內容         <settings>             <setting key="portlet-setup-show-borders-d

原创 Eclipse集成Tomcat

如圖 1. 添加Tomcat 2. 配置tomcat 如圖左邊 需要選擇[Use Tomcat installation (takes control of Tomcat installation) deploy path 不設置tomc

原创 ubuntu14.04 安裝Oracle-jdk-7的設置

Download done. Removing outdated cached downloads... update-alternatives: