前の月 / 次の月 / 最新

戯れ言


この日記のはてなブックマーク数 Bloglinesで閲読登録 ADD TO Hatena::RSS Subscribe with livedoor Reader Add to Google

01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

2009 : 01 02 03 04 05 06 07 08 09 10 11 12
2008 : 01 02 03 04 05 06 07 08 09 10 11 12
2007 : 01 02 03 04 05 06 07 08 09 10 11 12
2006 : 01 02 03 04 05 06 07 08 09 10 11 12
2005 : 01 02 03 04 05 06 07 08 09 10 11 12

2007-08-31 Fri

Emacs 翻訳環境 [Emacs]

http://ubulog.blogspot.com/2007/08/emacs.html



2007-08-12 Sun

CGI の出力に SSI [Apache]

Apache 2系統でCGIの出力の中で、SSI が使えるらしい。

http://httpd.apache.org/docs/2.0/ja/mod/mod_mime.html#addoutputfilter

ほんと? かなぁと思って試したら動いた。設定はこんな感じ。

AddHandler cgi-script .cgi
AddOutputFilter INCLUDES .cgi
<Files *.cgi>
        SetOutputFilter INCLUDES
</Files>


もちろん、ただでさえ CGI は処理が重いのに、さらに重くなること請け合い (^_^;



2007-08-05 Sun

気になる CPAN モジュール [CPAN]

CPAN の rpm パッケージを作る cpanspec がよさげ
http://d.hatena.ne.jp/woremacx/20070804/1186202588

これを読んでて気になった CPAN モジュール

Module::Depends::Intrusive
http://search.cpan.org/~rclamp/Module-Depends-0.13/lib/Module/Depends/Intrusive.pm

うーん......使い方がよくわからん。Module::Depends と使い方は一緒らしい。
Module::Depends は、META.yml から情報をひっぱるらしいけど、Module::Depends::Intrusive は Makefile.PL や Build.PL を フェイク環境で実行して、調べるみたい。

use YAML;
use Module::Depends::Intrusive;
my $deps = Module::Depends::Intrusive->new->dist_dir('.')->find_modules;
print "Our dependencies:\n", Dump $deps->requires;
<<

で、CGI-Application-Dispatch のソースコード内で実行してみる。

Our dependencies:
---
CGI::Application: 3.2
Exception::Class: 0
Exception::Class::TryCatch: 0
Test::More: 0
perl: 5.6.0


あれー? Module::Depends と結果が変わらんなぁ......もしかして、META.yml があれば、それを優先して見るのかな?

META.yml がない Template とかのソースコードで実行してみると、Module::Depends で調べられなかった、依存モジュールが表示された。なるほど......



2007-08-03 Fri

Ajax Webアプリケーションフレームワーク Ext 1.1 [Javascript][Ajax]

http://journal.mycom.co.jp/news/2007/08/02/047/index.html



WAS は JVMやGCをどのように扱っているのか [Java]

http://www.atmarkit.co.jp/fjava/rensai4/websphere03/websphere03_1.html



ThinkPad T43p でデュアルディスプレイ再び [Linux]

うちの会社では、開発部は全員(最近はデザイナー系も)ディアルディスプレイになってるんですが、ATI で公開されている fglrx ドライバが、Debian(sid) でうまく動かなくなって、一人、シングルディスプレイ状態……

Backtrace:
0: /usr/bin/X(xf86SigHandler+0x81) [0x80c8591]
1: [0xffffe420]
2: /usr/lib/xorg/modules/drivers//fglrx_drv.so(swlPcsInit+0x48) [0xb79cd1b8]
3: /usr/lib/xorg/modules/drivers//fglrx_drv.so(atiddxPreInit+0x5cf) [0xb799968f]

4: /usr/bin/X(InitOutput+0x9a4) [0x80a82f4]
5: /usr/bin/X(main+0x27b) [0x8076c6b]
6: /lib/i686/cmov/libc.so.6(__libc_start_main+0xdc) [0xb7d9aebc]
7: /usr/bin/X(FontFileCompleteXLFD+0x1e5) [0x80761a1]

Fatal server error:
Caught signal 11. Server aborting


こんなエラーが出ちゃうんですよね。fglrx のアップグレードで、うまく動くようになっているケースがあるらしいんですが、どうもダメ。いろいろ自分でインストールしているから、なんかが悪さしてるのかも? ちとsid ということもあり、bug報告もためらわれる......

とりあえず fglrx ドライバはあきらめて、xserver-xorg-video-ati でデュアルディスプレイができないかと、いろいろ探ってたんですが、やっと成功!

以下のサイトを参考にしました。

# http://d.hatena.ne.jp/ug3946/20060107
# http://d.hatena.ne.jp/higepon/20060822/1156229563
# http://forums.debian.net/viewtopic.php?p=84404&sid=7458a69f1ff5a2aadd5f8c9ec9bda89a

どうも設定はあってるのに動かなかったのは、Debian の xserver-xorg-video-ati のバグらしく、experimental なパッケージである 6.6.192-1 のバージョン

ii xserver-xorg-video-ati 1:6.6.192-1


を使えば、うまく動きました! :-)

私の環境だと、外部ディスプレイを右側に置いた形で、動かしてますので、xorg.conf はこんな感じになってます。


Section "Files"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/share/fonts/X11/encodings"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
Load "dbe" # Double-buffering
Load "GLcore" # OpenGL support
Load "dri" # Direct rendering infrastructure
Load "glx" # OpenGL X protocol interface
Load "extmod" # Misc. required extensions
Load "freetype" # TrueType font handler
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "jp106"
Option "XkbLayout" "jp"
Option "XkbOptions" "ctrl:nocaps"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/psaux"
Option "Protocol" "PS/2"
Option "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizScrollDelta" "0"
EndSection

Section "Device"
Identifier "MergedFB ATI"
#Identifier "ATI Technologies Inc M24GL [Mobility FireGL V3200]"
Driver "ati"
BusID "PCI:1:0:0"
Option "DynamicClocks" "on"

# for dual-head
Option "MonitorLayout" "LVDS, CRT"
Option "MergedFB" "true"

# for secondary monitor
Option "CRT2HSync" "31.5-90"
Option "CRT2VRefresh" "43.0-60.0"
Option "CRT2Position" "RightOf"

# MetaModes are mode combinations for CRT1 and CRT2.
# CRT1Mode-CRT2Mode
Option "MetaModes" "1600x1200-1280x1024 1600x1200-1024x768 1600x1200 1280x1024 1024x768 800x600 640x480"
Option "MergedNonRectangular" "true"
Option "MergedDPI" "100 100"
Option "XAANoOffscreenPixmaps"
EndSection

Section "Monitor"
Identifier "Generic Monitor"
Option "DPMS"
HorizSync 28-80
VertRefresh 43-60
EndSection

Section "Screen"
Identifier "Screen0"
Device "MergedFB ATI"
Monitor "Generic Monitor"
DefaultDepth 16
SubSection "Display"
Depth 16
Modes "1600x1200" "1280x1024" "1024x768" "800x600"
EndSubSection
SubSection "Display"
Depth 24
Modes "1600x1200" "1280x1024" "1024x768" "800x600"
EndSubSection
EndSection

Section "Screen"
Identifier "Screen1"
Device "MergedFB ATI"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Synaptics Touchpad"
EndSection



2007-08-02 Thu

うるさい投票に行け!これは世代間闘争なんだ! [よもやま]

http://soulwarden.exblog.jp/5902935

たとえ無効票であっても意味はあるんだという話。おおーこういう考え方があったか。でも、年代別の投票率なんて公開されてたっけ? と思ったら、普通に公開されてた(^^;



2007-08-01 Wed

オリジナルリポジトリの構築 [RedHat]

http://labs.unoh.net/2007/08/yum.html



Linux のファイルキャッシュをクリア [Linux]

http://labs.unoh.net/2007/07/ext3_dir_index.html
$ sudo sysctl -w vm.drop_caches=3; sudo sysctl -w vm.drop_caches=0;



他の端末に、自分の操作結果を表示 [Linux][TIPS]

Screen だか、ttyrec で似たようなことができるはずだけど、とりあえずぱっと思い付いた方法

私の端末

$ script | tee working.log


相手の端末

$ tail -f working.log


完全にはライブで表示はされないけど、目的は果たしてるかな?



2009 : 01 02 03 04 05 06 07 08 09 10 11 12
2008 : 01 02 03 04 05 06 07 08 09 10 11 12
2007 : 01 02 03 04 05 06 07 08 09 10 11 12
2006 : 01 02 03 04 05 06 07 08 09 10 11 12
2005 : 01 02 03 04 05 06 07 08 09 10 11 12

最終更新時間: 2009-01-03 10:40

RSS feed meter for http://www.kunitake.org/chalow/