Saturday, April 16, 2011
Linux CVS User Setting
http://www.linuxquestions.org/questions/linux-software-2/cvs-no-such-system-user-why-608994/
CHSHコマンドで失敗して
存在しないシェルを指定して変更してしまいました。
その後、間違いに気づいて再度chshするのですが
chsh: PAM authentication failed
と言って怒られまくりました。
日本語だと「chsh: PAM認証失敗」となるようです
解決方法は以下のリンクにありました。
http://ubuntuforums.org/showthread.php?t=1702833
/etc/pam.d/chshの中にある
auth required pam_shells.so
という行が、現在のユーザのシェルをチェックして
存在しないとchshを実行させないようになっているようです。
これを一旦コメントアウトしてから、
chshでシェルのパスを修正し、
コメントアウトを外すと上手く行きます。
その後、間違いに気づいて再度chshするのですが
chsh: PAM authentication failed
と言って怒られまくりました。
日本語だと「chsh: PAM認証失敗」となるようです
解決方法は以下のリンクにありました。
http://ubuntuforums.org/showthread.php?t=1702833
/etc/pam.d/chshの中にある
auth required pam_shells.so
という行が、現在のユーザのシェルをチェックして
存在しないとchshを実行させないようになっているようです。
これを一旦コメントアウトしてから、
chshでシェルのパスを修正し、
コメントアウトを外すと上手く行きます。
Wednesday, March 10, 2010
Tomcat Get Method Request
Tomcat process all get-method-request as if it's query-string is encoded in "iso-latin-1".
To change it add attribute
useBodyEncodingForURI="true" in the Connector element of server.xml.
To change it add attribute
useBodyEncodingForURI="true" in the Connector element of server.xml.
Monday, February 1, 2010
web.xml wildcard
web.xml wildcard.
if you have a file "/dir1/dir2/page.html" and
write web.xml servlet mapping like
<servlet-mapping>
<servlet-name>any_servlet</servlet-name>
<url-pattern>/dir1/dir2/*</url-pattern>
</servlet-mapping>
request to page.html always end with Http 404 not found.
if you have a file "/dir1/dir2/page.html" and
write web.xml servlet mapping like
<servlet-mapping>
<servlet-name>any_servlet</servlet-name>
<url-pattern>/dir1/dir2/*</url-pattern>
</servlet-mapping>
request to page.html always end with Http 404 not found.
Wednesday, January 20, 2010
Avoid browser cache of flash files
To certain date time.
<META http-equiv="expires" content="Mon, 19 Jan 2009 11:34:25 GMT">
Pragma (some browser doesn't support ex. IE5)
<META http-equiv="PRAGMA" content="NO-CACHE">
Query String.
Change link string as a http query string with "?".
<embed src="example.swf?12345">
<META http-equiv="expires" content="Mon, 19 Jan 2009 11:34:25 GMT">
Pragma (some browser doesn't support ex. IE5)
<META http-equiv="PRAGMA" content="NO-CACHE">
Query String.
Change link string as a http query string with "?".
<embed src="example.swf?12345">
Monday, January 18, 2010
Target other frame using javascript
Change(move) other frame's page from one child frame.
function moveFramePage() {
parent.other_frame_name.location = "http://target_page.html";
}
function moveFramePage() {
parent.other_frame_name.location = "http://target_page.html";
}
Tomcat start context value
Using Context Element inside server.xml or Context file.
Using web.xml
<Context path="/path" docBase="localPath" ...... >
<parameter name="resource_name" value="resource_path">
</Context>
Using web.xml
<env-entry>Calling in java source code.
<env-entry-name>paramName</env-entry-name>
<env-entry-type>java.lang.String(or any type)</env-entry-type>
<env-entry-value>paramValue</env-entry-value>
</env-entry>
Context initCtx = new InitialContext();
String paramValue = (String) initCtx.lookup(paramName);
Subscribe to:
Posts (Atom)