この日記にはツッコミを入れられます。 ツッコミを入れたい日付をクリックすると、フォームが現れます。
xreaでtDiaryを使う方法はxrea.com で tDiary を使う方法やインストールメモやXREA + tDiary + Namazuをどうぞ。
diff -u ... | diffcolor.rb | lv -cとかいう感じで使っているvim風の色つけをする自分用簡易フィルタ。ずっとコミット前のdiffの確認とかに使ってるけど、素のdiffを見るよりは見やすくて速いので便利。
そういうのをraiseするならRuntimeErrorではなくNotImplementedErrorでは?
IRCでるるりんもRSSがあるといいのに、という感じの話があったので、カテゴリごとに手抜きRSSをHTMLから生成するようにしてみた。手抜きなので更新チェックぐらいにしか使えません。
norefererの更新日時付きの方をlinkに入れて、元のURLはcontent:encodedに入れるようにしてみた。
etchで空パッケージを作る例。普通は*.exなどを元にinit.dなどを作成していけばいい。/etc/default以下用のファイルは「パッケージ名-default.ex」というのがあるけど、「パッケージ名-default」ではなく「default」にしないと自動ではパッケージに入れてくれなかった。
% cat make-empty-deb.sh
#!/bin/sh
set -ex
mkdir empty-0.0.0
cd empty-0.0.0
env DEBFULLNAME='Foo Bar' DEBEMAIL='hoge@example.jp' dh_make --copyright gpl --native --single --cdbs
cd debian
# サンプルファイルなどを削除
rm *.ex *.EX README.Debian dirs docs
cd ..
# empty-0.0.0/Makefileはないのでcdbsのmakefileクラスを削除
perl -pi -e '$_="" if /makefile\.mk$/' debian/rules
# debian/control を調整
perl -pi -e 's/(cdbs, )+/$1/' debian/control
perl -pi -e 's/Section: unknown/Section: misc/' debian/control
perl -pi -e 's/Architecture: any/Architecture: all/' debian/control
perl -pi -e 's/<insert up to 60 chars description>/empty package/' debian/control
perl -pi -e 's/<insert long description, indented with spaces>/example package/' debian/control
perl -pi -e 's#ftp://ftp.debian.org/dists/unstable/main/source/#http://localhost/#' debian/copyright
# パッケージ作成
debuild -uc -us -rfakeroot && debuild clean
% ./make-empty-deb.sh
+ mkdir empty-0.0.0
+ cd empty-0.0.0
+ env DEBFULLNAME=Foo Bar DEBEMAIL=hoge@example.jp dh_make --copyright gpl --native --single --cdbs
Maintainer name : Foo Bar
Email-Address : hoge@example.jp
Date : Wed, 30 May 2007 19:10:57 +0900
Package Name : empty
Version : 0.0.0
License : gpl
Type of Package : cdbs
Hit <enter> to confirm:
Currently there is no top level Makefile. This may require additional tuning.
Done. Please edit the files in the debian/ subdirectory now. You should also
check that the empty Makefiles install into $DESTDIR and not in / .
+ cd debian
+ rm cron.d.ex emacsen-install.ex emacsen-remove.ex emacsen-startup.ex empty-default.ex init.d.ex manpage.1.ex manpage.sgml.ex manpage.xml.ex menu.ex postinst.ex postrm.ex preinst.ex prerm.ex watch.ex empty.doc-base.EX README.Debian dirs docs
+ cd ..
+ perl -pi -e $_="" if /makefile\.mk$/ debian/rules
+ perl -pi -e s/(cdbs, )+/$1/ debian/control
+ perl -pi -e s/Section: unknown/Section: misc/ debian/control
+ perl -pi -e s/Architecture: any/Architecture: all/ debian/control
+ perl -pi -e s/<insert up to 60 chars description>/empty package/ debian/control
+ perl -pi -e s/<insert long description, indented with spaces>/example package/ debian/control
+ perl -pi -e s#ftp://ftp.debian.org/dists/unstable/main/source/#http://localhost/# debian/copyright
+ debuild -uc -us -rfakeroot
fakeroot debian/rules clean
test -x debian/rules
test "`id -u`" = 0
dh_clean
dpkg-source -b empty-0.0.0
dpkg-source: building empty in empty_0.0.0.tar.gz
dpkg-source: building empty in empty_0.0.0.dsc
debian/rules build
test -x debian/rules
mkdir -p "."
fakeroot debian/rules binary
test -x debian/rules
test "`id -u`" = 0
dh_clean -k
dh_installdirs -A
mkdir -p "."
dh_installdirs -pempty
dh_installdocs -pempty
dh_installexamples -pempty
dh_installman -pempty
dh_installinfo -pempty
dh_installmenu -pempty
dh_installcron -pempty
dh_installinit -pempty
dh_installdebconf -pempty
dh_installemacsen -pempty
dh_installcatalogs -pempty
dh_installpam -pempty
dh_installlogrotate -pempty
dh_installlogcheck -pempty
dh_installmime -pempty
dh_installchangelogs -pempty
dh_installudev -pempty
dh_install -pempty
dh_link -pempty
dh_strip -pempty
dh_compress -pempty
dh_fixperms -pempty
dh_makeshlibs -pempty
dh_installdeb -pempty
dh_perl -pempty
dh_shlibdeps -pempty
dh_gencontrol -pempty
dpkg-gencontrol: warning: unknown substitution variable ${shlibs:Depends}
dpkg-gencontrol: warning: unknown substitution variable ${misc:Depends}
dh_md5sums -pempty
dh_builddeb -pempty
dpkg-deb: `../empty_0.0.0_all.deb' にパッケージ `empty' を構築しています。
dpkg-genchanges -sa
dpkg-genchanges: including full source code in upload
dpkg-buildpackage (debuild emulation): full upload; Debian-native package (full source is included)
Now running lintian...
E: empty: description-starts-with-package-name
Finished running lintian.
Now running linda...
E: empty; Description starts with package name.
Finished running linda.
+ debuild clean
test -x debian/rules
test "`id -u`" = 0
dh_clean
%
✑ わたやん [マウスでドラッグすると,選択範囲とマウスの動きが反転してて面白いです。]