平衡点
2007/10/09
_ はてなダイアリに twitter
対応しているみたいなんで, そのうち貼り付けよう.
メモ代わりに, 現在使用している諸々のサービスは
- bloglines
- google 関連
- はてな関連
- mixi
- lastfm
... あとなんかあったっけ? うーん.
_ ゆにまがクラシック
今月はともかく, 来月の VISA の払いが航空券の所為で酷い事になっているので, 買えません. うーん. 欲しい...
アスキー書籍編集部, アスキー, ¥12,720
2009/10/09
_ grub-pc で 「vga=...」が obsolete って言われる件
...いや, 動くんですけどね. 偶に起動すると「obsolete だから gfxpayload 使え」って言われる.
とりあえず /etc/grub.d/00header に gfxpayload=keep を追加した
...
if loadfont `make_system_path_relative_to_its_root ${GRUB_FONT_PATH}` ; then set gfxmode=${GRUB_GFXMODE} set gfxpayload=keep # add (2009/10/09) insmod gfxterm insmod ${GRUB_VIDEO_BACKEND} if terminal_output gfxterm ; then true ; else # For backward compatibility with versions of terminal.mod that don't # understand terminal_output terminal gfxterm fi fi ...
そして /etc/default/grub で
... GRUB_GFXMODE=1024x768x32 ...
として update-grub2
ちゃんと 1024x768 で表示されて, とりあえず怒られない. ふむ.
_ fontconfig での似非 Bold 表示を止める
以前も設定した筈なんだけれど...気がついたら設定ファイルが無くなっていた.firefox で見辛くてしょうがないので再度設定.以前は bold 表示にモトヤシーダを使用していたのだけれど...なんで止めたんだっけな.
とりあえず貼っておく.
- bitmap 表示を off
- 似非 Bold 表示を off
- serif, sans-serif は StarOffice 付属の HG-PMinchoL-Sun, HG-PGothicB-Sun
- IPA明朝/ゴシックの設定が残っているのは御愛嬌(上記フォントが無い環境用).
- Ryumin, GothicBBB も同上
- monospace は VL Gothic
- Helvetica の表示に Arial 使用
の設定. これを ~/.fonts.conf として保存.
<?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig> <!-- section:disable bitmap:start --> <match target="font"> <edit mode="assign" name="embeddedbitmap"> <bool>false</bool> </edit> </match> <!-- section:disable bitmap:end --> <!-- section default:serif, sans-serif, monospace:start --> <alias> <family>serif</family> <prefer> <family>HG-PMinchoL-Sun</family> <!-- <family>IPAPMincho</family> --> </prefer> </alias> <alias> <family>sans-serif</family> <prefer> <family>HG-PGothicB-Sun</family> <!-- <family>IPAPGothic</family> --> </prefer> </alias> <alias> <family>monospace</family> <prefer> <family>VL Gothic</family> </prefer> </alias> <!-- disable embolden --> <match target="font"> <test name="weight" compare="less_eq"> <const>medium</const> </test> <test target="pattern" name="weight" compare="more"> <const>medium</const> </test> <edit name="embolden" mode="assign"> <bool>false</bool> </edit> <edit name="weight" mode="assign"> <const>bold</const> </edit> </match> <!-- section default:serif, sans-serif, monospace:end --> <!-- section:Ryumin:start --> <match target="pattern"> <test qual="any" name="family"> <string>Ryumin</string> </test> <edit name="family" mode="prepend" binding="strong"> <string>HG-MinchoL-Sun</string> <!-- <string>IPAMincho</string> --> </edit> </match> <!-- section:Ryumin end --> <!-- section:GothicBBB :start --> <match target="pattern"> <test qual="any" name="family"> <string>GothicBBB</string> </test> <edit name="family" mode="prepend" binding="strong"> <string>HG-GothicB-Sun</string> <!-- <string>IPAGothic</string> --> </edit> </match> <!-- section:GothicBBB:end --> <!-- section:Helvetica to Arial:start --> <alias binding="same"> <family>Arial</family> <default><family>Helvetica</family></default> </alias> <alias binding="same"> <family>Helvetica</family> <accept><family>Arial</family></accept> </alias> <!-- section:Helvetica to Arial:end --> </fontconfig>
書いても書いても忘れる鳥頭.この日記だけで fontconfig 関係は 4 エントリもあるのか(笑)
2012/10/09
_ Fortranの大文字小文字
良く知られていることかもしれませんが, 言語の規格として Fortran は case-insensitive, つまり大文字小文字を区別しません.
しかしながら, コンパイラによっては, 大文字小文字をちゃんと(?)区別してコンパイルしてくれたりします.
...コンパイルできるなら良いんですけどねー...
あぁ, またしょうもない debug に無駄な時間を使ってしまった...
2024/10/09
_ Mastodon でのメール通知, というか Exim4 と Apparmor
Mastodon の(ほぼ)お独り様インスタンス(junkhub.org)を運用しているわけですが, 通知メールが飛んで来なくてしばし悩んだり.
これまではサーバで Exim4 を smarthost として起動していて,
.env.production
では
SMTP_SERVER=127.0.0.1
SMTP_LOGIN=
SMTP_PASSWORD=
SMTP_FROM_ADDRESS= *************************
SMTP_DOMAIN=junkhub.org
SMTP_DELIVERY_METHOD=sendmail
などとしていた.
久々に別件でログを見たら, apparmor にて sendmail コマンドとして動作させていた /use/sbin/exim4 の動作が止められていた. …あれ, apparmor の設定してなかったっけ?
どうしたモンか悩んだが, そもそも smarthost として運用しているので 127.0.0.1:25 が開いているわけで…
.env.production
にて
SMTP_SERVER=127.0.0.1
SMTP_LOGIN=
SMTP_PASSWORD=
SMTP_AUTH_METHOD=none
SMTP_PORT=25
SMTP_FROM_ADDRESS= *************************
SMTP_DOMAIN=junkhub.org
SMTP_DELIVERY_METHOD=smtp
とすれば, apparmor の設定を特に弄ることもなく, 通知メールの送信が可能となった.
…サーバ設定した特には疎通確認した筈なんだけれど, 変だなぁ…
それはそれとして, 実態が exim4 である /usr/sbin/sendmail コマンドを他のプログラムから叩ける様にするには AppArmor のプロファイルはどう書いたらエエのかな.
一応
# Last Modified: Wed Oct 9 12:43:38 2024
include <tunables/global>
/usr/sbin/exim4 flags=(complain) {
# These are abstractions, which are sets of rules that can be included in multiple profiles.
include <abstractions/base>
include <abstractions/dovecot-common>
include <abstractions/nameservice>
include <abstractions/postfix-common>
# These are capabilities, which are specific privileges that the Exim4 server is allowed to use.
capability chown,
capability dac_override,
capability dac_read_search,
capability fowner,
# This rule allows the Exim4 server to use UNIX domain sockets.
network unix dgram,
# These rules allow read access to various configuration files and directories.
/etc/exim4/** r,
/var/lib/exim4/** r,
/sys/kernel/mm/transparent_hugepage/enabled r,
/usr/sbin/exim4 Px,
}
こんなんで動いたっぽいけど, 今一自信が無い…