2008-01-01から1年間の記事一覧
ルーティングの基礎について。 http://www.atmarkit.co.jp/fnetwork/netcom/netcom03/netcom01.html RIP設定が出来るルータであれば楽でいいけど、出来ないルータもあるんだね。。
FTP(vsftpd)でユーザの移動禁止方法 http://safe-linux.homeip.net/other/linux-vsftp-01.htmlhttp://www.atmarkit.co.jp/bbs/phpBB/viewtopic.php?topic=19987&forum=10&6 http://kajuhome.com/vsftpd.shtml
vsftpdのホームディレクトリ設定・/etc/vsftpd/vsftpd.conf に以下を追記 # ユーザーごとの設定ファイルを有効にする。 user_config_dir=/etc/vsftpd/vsftpd_user_conf ・設定ファイルを設置するディレクトリを作成 # mkdir /etc/vsftpd/vsftpd_user_conf ・…
ルートになれるユーザを制限する。 /etc/group wheel:x:10:root,xxxx ←ここに管理を行うユーザー名を加える /etc/login.defs SU_WHEEL_ONLY yes ←最後にこの1行を追加する /etc/pam.d/su #%PAM-1.0 auth sufficient /lib/security/pam_rootok.so # Uncomment…
ルータ、DMZ等について。 http://sakaguch.com/Router.html
フレッツADSLやBフレッツで固定IPサービスを利用する(IP Unnumbered)自宅サーバを立てるときに役に立ちそう。 http://buffalo.jp/download/manual/fs_online/router/common/chapter129.html http://corega.jp/product/navi/barhg_flets.htm
SAStruts 1.0.4-sp2リリース http://d.hatena.ne.jp/higayasuo/20081029/1225277686 ただ、以前のバージョン(1.0.3)のチュートリアルからlibだけ更新したらDBアクセス処理でエラーが発生。 コード jdbcManager.update(hogeEntity).includes("hoge").execut…
OS依存なので注意。 <exec executable="cmd" dir="hoge/fuga"> <arg line="/c hoge.bat" /> </exec> http://d.hatena.ne.jp/argius/20080423/1208965081
シスオペなどで起動する場合。 sqlplus user/pass@connect as sysdba http://www.shift-the-oracle.com/sqlplus/tutorial/sqlplus-option.html
よく忘れるのでメモ。 いまどきクライアントサイドの処理を地道に書くのはどうかと思うけど・・・。 <input type="submit" name="hoge" value="実行" onclick="return confirm('処理を行います。よろしいですか。')" />
http://www.hibernate.org/hib_docs/annotations/reference/en/html/ http://www.hibernate.org/hib_docs/reference/en/html/ http://www.aksystem.jp/computer/HibernateTutorial/HibernateTutorial.htm http://hamasyou.com/archives/Engineer-Soul/hibern…
tomcatのcontext.xmlの設定DB接続情報をSAStrutsのjdbc.diconから、 JNDIを使用してTomcatのcontext.xmlへ外出し。 ○META-INF/context.xml
Realm認証を使った場合、 ログアウト後にログイン画面に遷移させるにはどうするのがベストだろうか。 Logoutアクションで/logout/XXXX.jspとして配置した画面を表示すると、 そのままログイン出来ずに面倒なため。解決策としては、 ログアウト後にmenuアクシ…
META-INF/context.xmlでの認証設定。 ※${CATALINA_HOME}/conf/server.xmlに認証情報を書かない。●context.xml http://d.hatena.ne.jp/Kishi/searchdiary?word=*%5BTomcat%5D
postgreでテーブルのカラム属性を変更する方法。 ※Oracleだとmodify alter table TABLE_A alter COL_1 type VARCHAR(10); http://www.cisvul.jp/blog/2007/04/entry199.php http://oracle.se-free.com/ddl/A1_mod_tbl.html
nowrapにより、改行禁止とする。 htmlのtd属性でも可能。 http://www.tagindex.com/stylesheet/text_font/white_space.html
アクションフォームのプロパティのアノテーションに@Transientを付与する。 http://d.hatena.ne.jp/dewa/20080420/1208715687
http://www.kadoppe.net/2008/02/javaarraylist.htmlリストをソートする方法 Java(1.5) http://www.kadoppe.net/2008/02/javaarraylist.html // マップ Map map1 = new HashMap(); map1.put("name", "Tom");Map map2 = new HashMap(); map2.put("name", "Mik…
Vista標準でMIDIは使用出来ないようです。。①ツールをダウンロード:http://akkordwechsel.de/15-windows-vista-und-der-midi-mapper/ ②C:\Windows\System32にPLWMidiMap.cplを置く。 ③コントロールパネル→その他のオプション→Putzlowitschs Vista-MIDIMapper…
ログアウト時はこれだけでいいみたいですね。 session.invalidate(); 詳細はチュートリアル参照 http://sastruts.seasar.org/setup.html#tutorial
次のように/*で認証範囲の設定を行うとスタイルシートも弾かれてしまうようです。 対処は、url-patternの変更・修正? <web-resource-name>Auth Name</web-resource-name> <url-pattern>/*</url-pattern> </web-resource-collection>
http://slither.dip.jp/index.php?Apache
http://www.kk-net.ne.jp/dotjp/index.html
http://struts.wasureppoi.com/util/05_category.html ログ概念: カテゴリ:出力範囲の設定(パッケージ指定) アペンダ:出力形式の設定(ファイル、コンソール) レイアウト:ログ表示の設定(表示情報、レイアウト)
COALESCE関数。 http://bikibiki.blog72.fc2.com/blog-entry-137.html
サンプル。 <Context path="/${コンテキスト名}" reloadable="false" docBase="${アプリのパス(WEB-INF)}" workDir="${アプリのパス(WEB-INF)}/work" /> http://park15.wakwak.com/~unixlife/java/tomcat-serverxml.html</context>
http://www.kuroduction.com/blog/mt/archives/000520.html
Postgresドライバ読み込み時にエラーが出ます。 クラスパスがうまく通ってないだけのようですが・・・。 →${TOMCAT_HOME}/common/lib/にJDBCドライバを置く。 java.sql.SQLException: org.postgresql.Driver ○JSP <form method="post" action='<%= response.encodeURL("j_security_check")%>'> <input type="text" name="j_username"> <input type="password" name="j_password"> …</form>
メモ。アクションメッセージ JSP <html:messages id="m" message="true">Java messages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage( "messages.upload.complete", new Object[] { path })); エラーメッセージ JSP <html:errors/> ActionMessagesUtilを使うと便利なのかな。</html:errors/></html:messages>
複合PKの場合は、JoinColumnsがないと駄目なようです。 http://d.hatena.ne.jp/tatsuparu/searchdiary?word=*%5Bseasar%5D