2007-01-01から1ヶ月間の記事一覧

xorg-server-1.2.0

なんで xorg-server の USE から aiglx が外されているのだろう? [ebuild U ] x11-libs/libXfont-1.2.7 [1.2.6] USE="-debug -ipv6" 561 kB [ebuild U ] media-libs/mesa-6.5.2 [6.5.1-r4] USE="nptl -debug -doc -hardened -motif -xcb" VIDEO_CARDS="i810…

既存のクラスに変更を加える必要がないので、新しいコマンドを容易に追加できる。

複数のコマンドを合成することができる。- 例えば MacroCommand クラス。一般にコマンドの合成は Composite パターンとなる。

コマンドは補助的なオブジェクトではない。- それらは他のオブジェクトと同様に操作され、拡張される。

Command パターンは、オペレーションを呼び出すオブジェクトと実行するオブジェクトを分離する。

Command pattern

構成要素 Command クラス オペレーションを実行するためのインターフェイスを宣言する。 ConcreteCommand クラス(PasteCommand クラスとか) Receiver オブジェクトとアクションの間の継りを定義する Receiver オブジェクトに対して該当するオペレーションの…

patch 188

Vim

7.0.183 accessing memory already freed after ":redir => var" ":let" 7.0.184 cscope interface doesn't work with mlcscope 7.0.185 multi-byte chars in message get attributes from previous char 7.0.186 ml_get error when doing "/\_s*/e" with ut…

ボールドがきついので…

~/.fonts.conf に以下の行を追加する。 <match target="font"> <test target="pattern" name="weight" compare="more"> <const>demibold</const> </test> <edit name="weight" mode="assign"> <const>demibold</const> </edit> </match>ほぼ全てのボールがオフられるけどね。

clone alone

http://www.two-sdg.demon.co.uk/curbralan/papers/accu/CloneAlone.pdf なるほどねぇ。 template <typename Derived, typename Base> Cloner : public Base { public: virtual Base* Clone() const { return new Derived(static_cast<Derived&>(*this)); } }; class Rectangle : public Cloner<Rectangle, Graphic> { public:</rectangle,></derived&></typename>…

clone alone

http://www.two-sdg.demon.co.uk/curbralan/papers/accu/CloneAlone.pdf なるほどねぇ。

Command pattern

http://en.wikipedia.org/wiki/Command_pattern やっぱり、こういうスタイルの方がいいのかなぁ... namespace EditorCommand { class Base { public: virtual void Execute(TextEditor& target) = 0; virtual ~Base() { } }; /** Cut Command */ class Cut :…

command pattern

なんだかよくわからないけれど、いつもしっくりこないパターン。 例えば PowerPlant だとコマンドは LCommander で表現され、LCommander の派生クラスはコマンドチェーンに継れる。 コマンドチェーンはカレントを管理する。例えばウィンドウがフォーカスされ…

beryl

もうはまりまくり。楽しいなぁ GUI は。 firefox の Scroll が遅くなるのは emerald or gtk-2 テーマに問題があるかも。 もしくは Beryl effects かも。

X Damage extension

The Damage extension allows a client to be notified whenever something is drawn to a window. This feature is useful for VNC servers, for screen magnifiers, and for clients using the Composite extension to update the screen.http://xorg.free…

beryl

x11-base/xorg-server の USE フラグに evdev を追加してみる。かわらん。でも evdev 便利だね。kernel boot 時に vesafb を使わないようにすると glxgears での fps が 100 ぐらい上がる(!)。 Xorg.0.log を見ると fb が 32bpp だが i810 が最大 24bpp とい…

make null pointer

http://d.hatena.ne.jp/mb2sync/20070110#p1 なるほど template <typename T> inline T* make_null_pointer() { return 0; }</typename>

patch 182

Vim

7.0.179 crash when recovering without a swap file name 7.0.180 (extra) VMS: build problem and problem with swap files 7.0.181 when reloading a buffer an extra empty line may appear 7.0.182 cannot reach every point in the undo tree after us…

beryl

キー入力が遅くなる問題が解消できず。uim でもなかったし、このマシンの限界なの? あと firefox でのスクロールも遅い(これはしょうがないか)。

GET OUT OF MY MIND - JOY POPS

YouTube にあった。載せた人エライ。 名曲中の名曲。この曲知らない人は不幸。

2.6.19-r3

Linux version 2.6.19-gentoo-r3 (root@allegro) (gcc version 4.1.1 (Gentoo 4.1.1-r3)) #1 Sat Jan 6 23:44:05 JST 20072.6.19 系もやっと落ち着いたので、2.6.18-x を全部消した。

年賀状くれた人ありがとう。

で、返事は書きません。来年書くので勘弁してください。

i2c

Driver `eeprom' (should be inserted): Detects correctly: * Bus `SMBus I801 adapter at 1880' Busdriver `i2c-i801', I2C address 0x54 Chip `SPD EEPROM' (confidence: 8) * Bus `SMBus I801 adapter at 1880' Busdriver `i2c-i801', I2C address 0x57 …

明けたなぁ

今年は良い年であって欲しい。