タグ

2009年2月21日のブックマーク (9件)

  • java:securityfilter [paulownia.jp]

    いくつか依存JarがあるのでMavenを使うと楽。 <dependency> <groupId>securityfilter</groupId> <artifactId>securityfilter</artifactId> <version>2.0</version> </dependency> web.xmlにフィルタ設定を記述 <filter> <filter-name>securityfilter</filter-name> <filter-class>org.securityfilter.filter.SecurityFilter</filter-class> <init-param> <param-name>config</param-name> <param-value>/WEB-INF/securityfilter-config.xml</param-value> </in

    yyamano
    yyamano 2009/02/21
    validateはコンフィグファイルのバリデーションをおこなうかどうかを指示するパラメータ。
  • Realm認証のカスタマイズ

    2005/07/12 09:37 ※ 商品のリンクをクリックして何かを購入すると私に少額の報酬が入ることがあります【広告表示】 J2EEではアプリケーションサーバにビルトインされた認証のアルゴリズムがあります。 例えばtomcatにはダイアログベース(レスポンスコード403をブラウザに返す)ものとフォームベース(ユーザ・パスワードの入力画面を返す)ものが用意されています。 ただし、あるURIに対して参照する権限を有しているかどうかという種類の認証アルゴリズムなので、そのままでは利用できない局面が存在します。 一つの認証文字列(ユーザ・パスワードの組み合わせ)で、複数の権限グループあるいは一つの権限グループに複数の立場で属している場合には、デフォルトのままでは対処不能です。 そこで、認証後に複数の権限グループや立場から任意のものを一つ選択してもらう画面を用意することにしました。 が、J2EE

    yyamano
    yyamano 2009/02/21
    securityfilter
  • Constructor Injection vs. Setter Injection

    A big pro for constructor injection is the possibility to build immutable objects out of it. ReplyDelete That's all sounds very good, immutability is good. But, I don't agree that code is easier to read with constructor injection. When there are many depended objects, and especially, if they are of the same class it becomes hard to read and to write such code. In your example you have Database db

    Constructor Injection vs. Setter Injection
    yyamano
    yyamano 2009/02/21
    Setter InjectionよりConstructor Injectionがおすすめ。正しい状態のオブジェクトを簡単に生成できるし、immutableにできる。Joshua BlochのBuilder patternも一緒に使うとよい。DSLのBuilderとこのBuilder patternの関係は?
  • How to undelete any open, deleted file on linux. | final cog

    Introduction There are many situations where a file has been deleted (typically by an overnight log-cleaning process), yet the inode is still held open by a process reading from, or writing to, it. Recovery of such a file is simple, regardless of whether it is on ext2, ext3, reiserfs or any other filesystem. When a file is deleted in linux, it is simply 'unlinked'. The inode, which contains the fi

    yyamano
    yyamano 2009/02/21
    procfsのfdを使う
  • Washington Times releases open source projects: Open Source - The Washington Times - Home

    The Washington Times has always focused on content. After careful review, we determined that the best way to have the top tools to produce and publish that content is to release the source code of our in-house tools and encourage collaboration. The source code is released under the permissive Apache License, version 2.0. The initial tools released are: django-projectmgr, a source code repository

    yyamano
    yyamano 2009/02/21
    django-projectmgr、django-supertagging、django-massmedia、django-clickpass
  • Is the Relational Database Not an Option in Cloud Computing?

    InfoQ Software Architects' Newsletter A monthly overview of things you need to know as an architect or aspiring architect. View an example

    Is the Relational Database Not an Option in Cloud Computing?
    yyamano
    yyamano 2009/02/21
    key valueストアが向いているのは、(1)heavily document-oriented、(2)development environment is heavily object-oriented、(3)データストアがチープで、簡単にインテグレーションできる、(4)on-demand、high-end scalabilityが重要なとき。MSとDrizzleの動き。
  • https://www.hi-matic.org/diary/index.cgi?20090217

    yyamano
    yyamano 2009/02/21
    "「そのencodingに対して正しいmultibyte列か否か」はCESレベルでの範囲チェックだけで済ませるような実装の方が多い"
  • 某日記(中期)

    .帰ってきたよ。 .2/8: 函館→富良野 .2/9: 富良野→帯広→占冠→富良野 .2/10: 富良野→幾寅→富良野 .2/11: 富良野→旭川→札幌→北斗星 .JR東日の水利権取り消しへ 信濃川不正取水問題 - 真夏の電力使用のピーク時などには供給電力が不足する恐れもある。運賃の値上げについては「絶対にない」(同社)と否定している。 考えられる対策: 列車数が減る。なぜか非電化区間も減る。国鉄型全廃して走ルンですばっかりに。なぜか列車のクーラーがよく壊れる。 双子が来る。 なぜか千葉の労務が厳しくなる。ス(ry運賃上げられないので穴埋めに只見線米坂線八戸線大湊線津軽線五能線花輪線山田線岩泉線を廃止。 .「走ルンですばっかりに」は割とシャレになってないかもしれぬ。前倒しで新型に置き換えていくかもねえ。 .日では GDP に占める外需の割合は十数パーセントなんだよな。これはアメリカ

    yyamano
    yyamano 2009/02/21
    "Solaris の M:N 実装では、userland 側は「どの LWP をどのスレッドに割り付けるか」は管理していても、個々の LWP の実行状態については把握してない"
  • git show-branch の見方 - 言語ゲーム

    git が使いにくいのはコマンド設計の悪さの他、レポジトリの状態と自分の位置を確認するのが難しいからだと思います。例えば Subversion ならある瞬間のファイルはパス名とリビジョン番号で一意に定まるので、時間的、空間的位置を把握するのは簡単です。しかし git ではそこにブランチが加り、ファイルは SHA1 という恐ろしい記法で管理されます。そこで色々試してみて git show-branch を活用するするとだいぶ理解しやすくなる事が分かりました。 来の git show-branch の役割は、複数のブランチやタグが分岐してから現在までの記録を表示する事です。例えばたまたま手元で仕事中のブランチ bui-test と master、そして タグ idst-r612-merged を比較するとこんな風になります。ブランチ名を指定しないとローカルのブランチを全部指定したのと同じにな

    git show-branch の見方 - 言語ゲーム