タグ

2009年6月28日のブックマーク (4件)

  • ネットで遭遇したありえない小飼系弾氏

    http://anond.hatelabo.jp/20090627152057最近ブームに便乗してWeb2.0(笑)中の女子でつ。|´・ω・)ノ今年に入ってかなりたくさんのアルファブロガーさんのRSS購読を繰り返してきたのですが、ありえないレベルの低さにヘキエキ特にあたしがホッテントリ厨なので小飼系の弾氏中心なってしまうのですがいやはやひどいひどいノ(´д`*) ありえないランキング 5 まともな書評を書く術を知らない特に多いのが誤読あー、この人自分の興味あるとこしか読む気無いんだとdan the ~ とかどや顔で締められた日には(゚Д゚; 4 速読アピール「俺、速読系なんだよね」とか(-Д-)それ何 wpm (words per minuet )?人間業じゃないから 3 マナーがひどいたとえば、一緒に歩く時、女子をサスペンダー側に歩かせるとかどうどうとサスペンダーつけるとかサスペンダーな

  • 20090622 Bp Study#22

    The document appears to contain code snippets and examples related to Scala programming. It includes examples of defining functions, lists, pattern matching, classes, objects, and lift framework code. The snippets demonstrate concepts like mapping, filtering, currying, and working with case classes and objects in Scala.Read less

    20090622 Bp Study#22
  • myfinder's blog: Unicode::EastAsianWidthを使う

    文字列を特定サイズの画像に埋め込むプログラムを書く機会があり、文字幅を計算する必要に迫られた。 すなわち「全角」を2文字「半角」を1文字分として数えたい、というケース。 (画像に埋め込むフォントは等幅を想定してます) 文字幅を計算する必要がある、ということはlengthなんかの文字数でのカウントはできない。 そこでいろいろ考えたりググったりしてみたところ、tokuhiromさんのblogでUnicode::EastAsianWidthの話を見つけた。 このモジュールはUnicodeコンソーシアムの定めるEastAsianWidthに基づき「全角に該当する文字」「半角に該当する文字」etcにあたるUnicode属性を提供するもので、useすると下記のようなUnicode属性が正規表現で使えるようになる。 /(?:(\p{InFullwidth}+)|(\p{InHalfwidth}+))/g

    sugyan
    sugyan 2009/06/28
    Unicode::EastAsianWidth
  • App Engine Recipe - Getting db.ReferenceProperty key without loading entity

    class Foo(db.Model): linked = db.ReferenceProperty() someFoo = Foo.get_by_id(1) # Assume we've got an entity with id = 1 # Get key of linked Foo without loading linked entity linkedFooKey = Foo.linked.get_value_for_datastore(someFoo) See discussion here: http://groups.google.com/group/google-appengine/msg/c970bb3636acfa51 Note a suggestion in the above discussion to use a metaclass for automa

    sugyan
    sugyan 2009/06/28
    entityをロードせずにkeyだけを取り出す方法について