平衡点


2007/10/09

_ はてなダイアリに twitter

対応しているみたいなんで, そのうち貼り付けよう.

メモ代わりに, 現在使用している諸々のサービスは

  • bloglines
  • google 関連
  • はてな関連
  • mixi
  • lastfm

... あとなんかあったっけ? うーん.

_ ゆにまがクラシック

今月はともかく, 来月の VISA の払いが航空券の所為で酷い事になっているので, 買えません. うーん. 欲しい...

UNIX MAGAZINE Classic with DVD(DVD4枚付)
アスキー書籍編集部, アスキー, ¥12,720

_ NatureJobs

...OTL


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,

}

こんなんで動いたっぽいけど, 今一自信が無い…


連絡先など
最近の日記
  • 2025/05/20
    • 1. glibc の更新
  • 2025/04/30
    • 1. dovecot の更新でハマる.
  • 2025/04/15
    • 1. glibc の executable stack
  • 2025/04/03
    • 1. 居室ルータのネットワーク上流が死んでた.
  • 2025/03/25
    • 1. Wanderlustで日本語の添付ファイルを扱う defadvice を nadvice に書き換える(失敗?)
一覧
2006|03|04|05|06|07|08|09|10|11|12|
2007|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|
2009|01|02|03|04|05|06|07|08|09|10|11|12|
2010|01|02|03|04|05|06|07|08|09|10|11|12|
2011|01|02|03|04|05|06|07|08|09|10|11|12|
2012|02|03|04|08|09|10|11|12|
2013|01|02|03|04|05|06|08|09|10|11|12|
2014|01|02|04|05|06|07|08|09|10|11|12|
2015|01|02|03|04|05|06|07|09|10|
2016|02|03|
2017|01|02|03|05|06|07|09|11|12|
2018|03|06|07|10|11|12|
2019|01|02|03|04|05|07|10|12|
2020|01|02|03|04|05|08|09|10|11|12|
2021|01|02|03|05|06|07|08|09|11|12|
2022|01|02|03|04|05|06|08|10|11|12|
2023|02|03|04|06|08|09|11|12|
2024|01|02|03|04|05|06|10|12|
2025|02|03|04|05|
Back to Top ▲