ケーススタディで学ぶMercurialのRebase拡張(Mercurial Advent Calendar 2011 1日目)

今年から始まったMercurial Advent Calendar 2011 - [PARTAKE]の1日目です。(あんまりフライングといわれるので記事コピーしました。)最初は小ネタという事で、MercurialのRebase拡張の使い方についてケーススタディで説明したいと思います。いろいろパター…

ケーススタディで学ぶMercurialのRebase拡張(Mercurial Advent Calendar 2011 1日目)

今年から始まったMercurial Advent Calendar 2011 - [PARTAKE]の1日目です。(日付間違っただけでフライングじゃないよ。。)最初は小ネタという事で、MercurialのRebase拡張の使い方についてケーススタディで説明したいと思います。いろいろパターンを上げて…

SCMBootCamp in Tokyo 2 でMercurialのサポーターをしてきました。

SCMBootCamp in Tokyo 2(scmbc)でMercurialのサポーターという事でサポーターをしてきました。主催者のid:kyon_mmさん、サポーターの皆さん、参加者の皆さんお疲れさまでした。代表的なまとめはこちら。 2011/11/19 SCMBootCamp in Tokyo 2 #scmbc - Togette…

バレンタインチョコ欲しい! 欲しいプレゼントは… PlayStation 3 (160GB) チャコール・ブラック (CECH-2500A) 【メーカー生産終了】出版社/メーカー: ソニー・コンピュータエンタテインメント発売日: 2010/07/29メディア: Video Game購入: 21人 クリック: 40…

http://www.emacswiki.org/emacs/BzrForEmacsDevs の The Bazaar Work Routine を適当訳

雰囲気だけ。 The Bazaar Work Routine Bazaarでの作業手順 Overview of the Bazaar work routine: Bazaarでの作業手順の概要 1. Tell Bazaar your name and email address; these will be used as defaults to identify your commits. (Usage: bzr whoami “…

UrlRewriteFilterとRoutingFilterの共用

できんじゃん。 RoutingFilterをForwordでも動かし、かつJSPのダイレクトアクセスを許し、UrlRewriteFilterで.jspできたら削ってリダイレクトする処理を書けば実現できる。

SAStrutsでUrlRewriteFilterを利用するときのurlrewrite.xmlの内容

情報共有として 二段構えにできるよう整理。 <urlrewrite> <rule> <name>静的ファイルは除外</name> <from>/(css|js|images)/(.*)</from> <to last="true">/$1…</to></rule></urlrewrite>

カスタムタグを作るときに

カスタムタグを作るときに親のtldまでコピペするのは面倒。xdocletで使える定義されていないし。メンテナンスできないし。 なので、tldを抽出してxdocletのテンプレート(taglib_tld.xdt)に組み込める形式に変換するantを書いた。 taglib_tld.xdtに組み込め…

tiles:insert で SAStrutsのActionの結果を挿入する。(できた)

nullを返す場合、Requestへのセットはやらないんですね。SAStrutsのチュートリアルのlayoutを使う事を想定 package tutorial.action; import javax.annotation.Resource; import org.seasar.struts.annotation.ActionForm; import org.seasar.struts.annotat…

tiles:insert で SAStrutsのActionの結果を挿入する。(うまくいなかい)

SAStrutsのチュートリアルのlayoutを使う事を想定 package tutorial.action; import javax.annotation.Resource; import org.seasar.struts.annotation.ActionForm; import org.seasar.struts.annotation.Execute; import tutorial.form.IncludeTestForm; pu…

memo

SAStrutsプロジェクトをmavenで作成したときのログ。 % mvn archetype:generate -DarchetypeRepository=https://www.seasar.org/maven/maven2/ \ -DarchetypeGroupId=org.seasar.sastruts \ -DarchetypeArtifactId=sa-struts-archetype -DarchetypeVersion="…

SAStruts初心者が調べた記事一覧

こんなページ調べました 参考URL Seaser2 Seasar2 - Seasar2 Seasarに関してこの2年間やってきたこと - ひがやすを blog SeasarのプロダクトMap - 主観で纏めてみた - - newta(にゅーた)の日記 Seasar関連の便利クラス - 出羽ブログ Struts使ってるならApatc…

anything-find-file (anyting-complete.el) のc-sourcesの先頭に要素を追加

anything-find-fileでカーソル位置のファイル(ffap-line、ffap-guesser)を開くとかしたいと思うんだ。C-x C-fはファイルを開くキーバインドだし。 ;; anything-find-file setting. (setq anything-find-file-additional-sources-at-first '(anything-c-sourc…

「[http://okajima.air-nifty.com/b/2010/01/post-abc6.html:title]」をといてみた

人生を書き換える者すらいた。: 人材獲得作戦・4 試験問題ほか そりゃもう、2日以上費やしましたよ。。。

Emacs kara im.kayac.com ni access suru

http-post-simple.el to json.el ga required.

お客さんにExcelのシートを送る前にすべてのシートがA1が選択された状態にする。

Ctrl+HomeとCtrl+PageDownに疲れたあなたに

hideshow.elとhideshowvis.elで、折りたたみ時にjavadoc形式のコメントのヘッドラインを表示させる

TODO javadoc以外のコメントのヘッドライン表示 if () {とは違い{が次の行に来ていた場合のhs-hide-toggleの挙動 (defun get-javadoc-comment-headline (start end) "Return Javadoc comment headline." (save-excursion (save-restriction (narrow-to-regio…

anything.elでphtmlやrhtmlを開くときにウェブブラウザで開こうとするのを防ぐ

phpのコードやrubyのコードが含まれているので、たぶんウェブブラウザでは開きたくない。 diff --git a/plugins/anything-config.el b/plugins/anything-config.el index 8e0a797..607e61d 100644 --- a/plugins/anything-config.el +++ b/plugins/anything-…

yasnippet-0.6.1cとauto-complete-yasnippet

こんな感じにした。こっちは動くかなら diff --git a/plugins/auto-complete-yasnippet.el b/plugins/auto-complete-yasnippet.el index b4ea9a8..c47b447 100644 --- a/plugins/auto-complete-yasnippet.el +++ b/plugins/auto-complete-yasnippet.el @@ -3…

yasnippet-0.6.1b(c?)を使うとanything-c-yasnippet.elが動かない

yasnippet-0.6.1b(c?)では、yas/snippet-table-hashのデータ構造とyas/expand-snippetの引数の順番が以前のバージョンとは違うらしい。 以下パッチ diff --git a/plugins/anything-c-yasnippet.el b/plugins/anything-c-yasnippet.el index b74c115..79020d9…

auto-install.elをバッチモードで動かす その2

以前の案ではコンパイルに失敗すると止まったので書き直した。 バッファーにauto-install.elの出力を書き出して終了を表す文字列が表示されたらwaitループを抜ける。 (progn (setq install_dir (expand-file-name "#{install_dir}") load-path (cons install…

anything-read-bufferの件つづき

read-bufferって内部でread-buffer-functionが定義されていればそれを、定義されていなければcompleting-readを呼び出す。 anything-completing-readがanythingの結果がnilの場合keyboard-quitしているんだからanything-read-bufferがkeyboard-quitしないの…

anything-read-bufferがシグナルのquitをハンドリングするのでkill-bufferでC-gで取り消したつもりがバッファが削除される

Twitter / troter: kill-buffer->interactiv ...とりあえずコレで回避できるけど絶対正攻法ではない。this-commandとかよくわからない (defadvice anything-read-buffer (around transmissive-keyboard-quit-anything-read-buffer) (let ((it ad-do-it)) (if…

anything-complete.elのanything-read-file-name-follow-directoryでシンボルpromptが未束縛というエラー

多分これで直ります。id:rubikitchさんどうでしょうか? @@ -907,12 +907,13 @@ used by `anything-lisp-complete-symbol-set-timer' and `anything-apropos'" (interactive) (let ((anything-map (anything-read-file-name-map)) ;; anything-read-file-nam…

anything-complete.elでちょっと思ったこと

anything-complete.elのanything-find-fileはアクションが選択できない。sudoしたいとき不便なのでkeymapを上書きする。ついでにsuじゃなくてsudoにする。 (setq anything-su-or-sudo "sudo") (define-key (anything-read-file-name-map) "\C-i" 'anything-s…

auto-install.elをバッチモードで動かす

めも emacs --batch -no-init-file -no-site-file --directory ~/.emacs.d/elisp/ \ --eval " (progn (require 'auto-install) (require 'cl) (setq auto-install-directory (concat (car load-path) \\"/\\") auto-install-save-confirm nil auto-install-p…

遅延初期化する attr_reader を追加するモジュール(改良)

すっきりさせてみた。 # add lazy initialization attribute definition module LazyInitializationAttribute def LazyInitializationAttribute.append_features(mod) super def mod.lazy_attr_accesser name, hook=nil, &block attr_writer name lazy_attr_…

遅延初期化する attr_reader を追加するモジュール

module LazyInitializationAttribute def LazyInitializationAttribute.append_features(mod) super mod.const_set("LAZY_INITIALIZE_BLOCK_TABLE", {}) def mod.lazy_attr_accesser name, hook=nil, &block lazy_attr_reader name, hook, &block attr_write…

install-elispをバッチモードで動かす

めも echo "http://www.emacswiki.org/emacs/download/auto-complete.el" | \ emacs --batch --load /path/to/install-elisp.el \ -eval "(setq install-elisp-repository-directory \"~/.emacs.d/elisp/\")" \ -eval "(setq install-elisp-confirm-flag nil…

nokogiri習作 antのビルドファイルの概要を出力

出力結果 targetとコメントを抽出 ruby buildxmltarget.rb apache-tomcat-6.0.18-src/build.xml build-prepare [] compile [] Compile internal server components Copy static resource files build-only [build-prepare,compile,package] package [] Commo…