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

patch 153

Vim

VIM - Vi IMproved 7.0 (2006 May 7, compiled Oct 31 2006 22:35:14) Included patches: 1-153sign がちょっとおかしくないか? Patch 7.0.133 Problem: When searching included files messages are added to the history. Solution: Set msg_hist_off for…

firefox のサイドバーを右に

公式 Help ページに載っているやり方は 2.0 で効果無し ここ Firefox - Move sidebar to the right | Userstyles.org に情報あり。 #browser { -moz-box-direction: reverse; }助かりました!

firefox のフォントサイズ

firefox の問題じゃなかった。 xorg.conf に DisplaySize を書いていなかったから。

DVD から音声だけの ripping

音楽 DVD から音楽だけ曲毎に抜き出して mp3 にする。 >mencoder dvd://1 -chapter 7-7 -aid 160 -o 07.avi -oac mp3lame -lameopts cbr:br=192 -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:v4mv >mplayer 07.avi -dumpaudio -dumpfile 07.mp3まず、その…

GC 版 Zelda はオンライン販売のみ

http://www.famitsu.com/game/news/2006/10/11/103,1160562153,61528,0,0.html めんどくせーな!

upgrade today ;)

ちょっとサボることこれだもんな。 [blocks B ]

ざけんな

ばか、あほ、まぬけ。やってられん。

コードサイズ

2つの vector を merge して 1つの vector を作るコードをリファクタリングして、2つのvectorを削除した。変りに size_t の変数を2つ用意した。行数もそれほど変らなかった。 でもコードサイズが 10K ぐらい増えた… merge を stable_partition & for_each に…

patch 132

Vim

VIM - Vi IMproved 7.0 (2006 May 7, compiled Oct 15 2006 23:49:01) Included patches: 1-132vimgdb がちょっとおかしい。break コマンドのパスの途中に "^M" が混入している。いつからだろう。まぁ動いているからいいんだけど。 patch も 132 になって re…

自業自得

歯医者でガリガリとやられて死んだ。もうやってられん!

upgrade today ;)

[ebuild U ] sys-libs/timezone-data-2006n [2006m] 336 kB [ebuild U ] dev-libs/nspr-4.6.3-r1 [4.6.3] USE="-debug% -ipv6" 1,271 kB [ebuild U ] net-libs/libpcap-0.9.5 [0.9.4] USE="-ipv6" 423 kB [ebuild U ] app-arch/tar-1.15.92 [1.15.91] USE="-…

fat interface?

極論いっちゃうとコンテナとアルゴリズムは標準を使う。 コンテナに入れる要素とアルゴリズム用の関数オブジェクトをカリカリ書く。 というのが良いスタイルなのかなあ…コメントを貰ったのでちょっと追記。std::back_inserter は container に push_back を…

#if 0 でコメントアウトを良く使うので

Vim

" wrap #if 0 ... #endif vmap ,c <Esc>'>o#endif<Esc>'<O#if 0<Esc><CR> vmap ,C "zy<Esc>'<O#if 0<Esc>'>o#else<CR>#endif<Esc>2k<CR>",c" は visual-block の上下に "#if 0" と "#endif" を追加する。直後のカーソル位置は "#if 0" の行。 ",C" は "#endif" のかわりに "#else#endif" を追加する。直後のカーソル位</cr></esc></cr></o#if></esc></cr></o#if></esc></esc>…

札幌 1 - 1 山形

ロスタイムで追い付かれる。 orz... やっぱ、時間を置いたのが良くなかったか。

boost::bind

便利。メンバデータも bind 出来るのが良い。ちょっと気になる: simple な functor を独自に書くのに比べると inline 化が抑止されるかもしれない。 boost::bind に置き換えるとコードサイズが微妙に小さくなるケースがあったので。お題となるクラス class …

若者はなぜ3年で辞めるのか?

若者はなぜ3年で辞めるのか? 年功序列が奪う日本の未来 (光文社新書)作者: 城繁幸出版社/メーカー: 光文社発売日: 2006/09/15メディア: 新書購入: 17人 クリック: 447回この商品を含むブログ (613件) を見る『若者はなぜ3年で辞めるのか?』 : Espresso Dia…

vimgrep 良いね

Vim

nmap <silent> <F5> :execute 'vimgrep! /TODO\\|FIXME/j **/*.cpp **/*.c **/*.h **/*.hpp'<CR>:copen10<CR> nmap <silent> <F10> :execute 'vimgrep! /<C-R>=expand('<cword>')<CR>/j **/*.cpp **/*.h **/*.hpp **/*.c'<CR>:copen10<CR> nmap <silent> <F11> :execute "vimgrep! /\\<" . expand('<cword>') . "\\>/j **/*…</cword></f11></silent></cr></cr></cr></cword></c-r></f10></silent></cr></cr></f5></silent>

fat interface?

気付くとこんな感じの I/F を書いてる class Contents { struct Content { // データメンバがいっぱいあるって事を言いたいわけです int d1_; float d2_; bool d3_; // (*1) で push_back を oneliner したいがために ctor を定義する Content(int d1, float…

gdb で vector の要素をみる

メモ d:id:pyopyopyo:20061004#p1

update to 120

Vim

VIM - Vi IMproved 7.0 (2006 May 7, compiled Oct 8 2006 22:20:38) Included patches: 1-120なんか速くなった気がするんだけど... 117 が効いているのかな?

音楽 DVD 買うのなんて10年ブリだ

新しき日本語ロックを君に語りかける~サンボマスター初期のライブ映像集~ [DVD]アーティスト: サンボマスター出版社/メーカー: ソニー・ミュージックレコーズ発売日: 2005/11/02メディア: DVD クリック: 10回この商品を含むブログ (27件) を見るすばらしい。…

boost::function

マクロだらけで何が書いてあるのか全然わからんぞ!

const 参照を定数値で初期化できる

const int& n = 999; cout << "n=" << n << endl;実行結果 n=999これ、何で出来るんだろう?裏があるのかな?

M+ TESTFILGHT 012

出てます。

upgrade today ;)

[ebuild U ] sys-libs/timezone-data-2006m [2006l] 335 kB [ebuild U ] dev-libs/libassuan-0.9.2 [0.6.10] 245 kB [ebuild U ] media-libs/libtheora-1.0_alpha7 [1.0_alpha6-r1] USE="encode -doc -examples" 0 kB [ebuild U ] sys-libs/db-1.85-r3 [1.85…

fc-match

~/.fonts.conf の設定内容を確認するコマンド。

upgrade today ;)

[ebuild U ] media-libs/libtheora-1.0_alpha7 [1.0_alpha6-r1] USE="encode -doc -examples" 1,634 kB [ebuild U ] media-libs/xvid-1.1.0-r2 [1.1.0-r1] USE="(-altivec) -doc" 625 kB [ebuild U ] x11-terms/xterm-221 [220] USE="truetype -Xaw3d -paste…

upgrade today ;)

[ebuild U ] media-sound/alsa-headers-1.0.13 [1.0.12] 2,348 kB [ebuild U ] sys-apps/coreutils-6.3 [6.2] USE="-acl -nls (-selinux) -static" 4,999 kB [ebuild U ] media-libs/alsa-lib-1.0.13 [1.0.12] USE="-debug% -doc" 693 kB [ebuild U ] app-cr…

gstlfilt

STL Error Decryptor for C++ 難解なコンパイルエラーを少しでも軽減してくれる。実体は perl script。