トップ «前の日記(2008-04-01) 最新 次の日記(2008-04-03)» 編集

ヨタの日々

2001|08|09|10|11|12|
2002|01|02|03|04|05|06|07|08|09|10|11|12|
2003|01|02|03|04|05|06|07|08|09|10|11|12|
2004|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|
2006|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|
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|01|02|03|04|05|06|07|08|09|10|11|12|
2013|01|02|03|04|05|06|07|08|09|10|11|12|
2014|01|02|03|04|05|06|07|08|09|10|11|12|
2015|01|02|03|04|05|06|07|08|09|10|11|12|
2016|01|02|03|04|05|06|07|08|09|10|11|12|
2017|01|02|03|04|05|06|07|08|09|10|11|12|
2018|01|02|03|04|05|06|07|08|09|10|11|12|
2019|01|02|03|04|05|06|07|08|09|10|11|12|
2020|01|02|03|04|05|06|07|08|09|10|11|12|
2021|01|02|03|04|05|06|07|08|09|10|11|12|
2022|01|02|03|04|05|06|07|08|09|10|11|12|
2023|01|02|03|04|05|06|07|08|12|
2024|01|02|03|04|

2008-04-02 :-)

_ 朝ったー

0540 起床。

_ [細江慎治][佐宗綾子][ハンクス・ワークショップ!]通勤ったー

ハンクス・ワークショップ!

ゲーム未プレイ。作曲は細江慎治さん、佐宗綾子さん。ボーイズラブゲームらしいです。分類はエロゲ?シミュレーションゲームっぽい牧歌的な曲かと思いきや全然そうではなくテクノばかりで普通に NanoSweep に収録されてそうな曲でありじつに SuperSweep らしい曲になっています。ゲーム音楽としてどうよ?という気分になりますが。オリジナルドラマも収録されてます。

B000H9HRNM

_ 仕事

0830 出勤。

_ 続きがあるなら最終回にするなよ

というアニメ。

  • コードギアス
  • ガンダム 00
  • バンブーブレード

最初から 52 話作ろうとするとリスクが大きいのでとりあえず 13 話とか 26 話とか放送してみて人気があれば継続するということかしら。

_ [塩崎拓也][AoiMoe]「"read" になることはできませんでした」のひみつ

( via スラッシュドット・ジャパン )

(「『gmake: 入りますディレクトリ』のひみつ」 という文章はもう必要ありませんよね?)

ということで国際化の苦労が分かるコラムなのだけど、それよりも注目したのは以下。

このことは以前に BSD マガジンでも書きましたし

は?

AoiMoe のひとが BSD マガジンに書いたって?

とページの最後を見たら

塩崎拓也 <tshiozak@bsdclub.org>

名前だけは一方的に知ってるひとでした。

それで「塩兄」なんですね。

_ [NetBSD][syslog]NetBSD の syslog に日本語を書く

UNIX 標準添付の log daemon。 FreeBSD や Linux の syslogd は、日本語 EUC ならそのまま通るようです。 NetBSD / OpenBSD では、syslogd.c の printline() を FreeBSD のように変更すればいいです。

/usr/src/usr.sbin/syslogd/syslogd.c の printline() の while を以下のように変更します( FreeBSD の syslogd.c よりコピペ )

 while ((c = (unsigned char)*p++) != '\0' &&
     q < &line[sizeof(line) - 4]) {
   if ((c & 0x80) && c < 0xA0) {
     c &= 0x7F;
     *q++ = 'M';
     *q++ = '-';
   }
   if (isascii(c) && iscntrl(c)) {
     if (c == '\n') {
       *q++ = ' ';
     } else if (c == '\t') {
       *q++ = '\t';
     } else {
       *q++ = '^';
       *q++ = c ^ 0100;
     }
   } else {
     *q++ = c;
   }
 }

syslog します。

#!/usr/pkg/bin/ruby

require 'syslog'

def main( argf )
  lines = []
  while line = argf.gets
    lines << line
  end
  Syslog.open(){ |log|
    lines.each { |line|
      log.err( line )
    }
  }
end

main ARGF

こんなファイルを用意します。EUC にしておきます。

% cat mikan00
 ____ ∧ ∧
|\  /(´〜`)  風呂入れよ
| | ̄ ̄ ̄ ̄ ̄|
| |=みかん=|
 \|__________|

実行します。

% ./AprilFool.rb mikan00

ログです。

% tail /var/log/messages
Apr  2 00:03:10 yuto ntpd[286]: Listening on interface #5 lo0, ::1#123 Enabled
Apr  2 00:03:10 yuto ntpd[286]: Listening on interface #6 lo0, fe80::1#123 Enabled
Apr  2 00:03:10 yuto ntpd[286]: Listening on routing socket on fd #27 for interface updates
Apr  2 00:03:10 yuto ntpd[286]: kernel time sync status 2040
Apr  2 00:03:10 yuto ntpd[286]: frequency initialized 63.302 PPM from /var/db/ntp.drift
Apr  2 00:03:34 yuto ./AprilFool.rb[433]:  ____ ∧ ∧
Apr  2 00:03:34 yuto ./AprilFool.rb[433]: |\  /(´〜`)  風呂入れよ
Apr  2 00:03:34 yuto ./AprilFool.rb[433]: | | ̄ ̄ ̄ ̄ ̄|
Apr  2 00:03:34 yuto ./AprilFool.rb[433]: | |=みかん=|
Apr  2 00:03:34 yuto ./AprilFool.rb[433]:  \|__________|

ref.

_ [NetBSD][xfce4][Let's CF-R4]Let' CF-R4 NetBSD に xfce4 を入れる

インストール

cd /usr/pkgsrc/meta-pkgs/xfce4
make install clean-depends

xfce4 を起動させるようにする。

cd
cat > .xinitrc
exec /usr/pkg/bin/startxfce4
^D

起動

startx

こんな感じです。

ref.

_ 買い物

amazon

B0013FCOYQ

_ [NetBSD][Emacs][current]NetBSD に Emacs current を入れる

普通に configure して make すると X でも使えます。

取得

% touch .cvspas
% cd
% mkdir -p usr/local
% cd ./usr/local/
% cvs -d:pserver:anonymous@cvs.sv.gnu.org:/sources/emacs login
CVS password:
% cvs -d:pserver:anonymous@cvs.sv.gnu.org:/sources/emacs co emacs

configure

% cd emacs
% env CFLAGS=-DX_I18N_INHIBITED./configure --without-xim

:

checking for TIFFGetVersion in -ltiff... yes
checking gif_lib.h usability... no
checking gif_lib.h presence... no
checking for gif_lib.h... no
configure: error: The following required libraries were not found:
     libgif/libungif
Maybe some development libraries/packages are missing?
If you don't want to link with them give
     --with-gif=no
as options to configure

怒られた。探す

$ ls -ld /usr/pkgsrc/*/*gif*
drwxr-xr-x  4 root  wheel   512 Mar 29 17:06 /usr/pkgsrc/graphics/gif2png
drwxr-xr-x  4 root  wheel   512 Mar 29 17:06 /usr/pkgsrc/graphics/gif320
drwxr-xr-x  3 root  wheel   512 Mar 29 17:06 /usr/pkgsrc/graphics/gifsicle
drwxr-xr-x  4 root  wheel   512 Mar 29 17:06 /usr/pkgsrc/graphics/giftrans
drwxr-xr-x  4 root  wheel   512 Mar 29 17:06 /usr/pkgsrc/graphics/libungif  <= これか?
drwxr-xr-x  3 root  wheel   512 Mar 29 17:06 /usr/pkgsrc/graphics/tgif
drwxr-xr-x  3 root  wheel   512 Mar 21 12:50 /usr/pkgsrc/net/gift
drwxr-xr-x  3 root  wheel   512 Mar 21 12:50 /usr/pkgsrc/net/gift-fasttrack
drwxr-xr-x  3 root  wheel   512 Mar 21 12:50 /usr/pkgsrc/net/gift-gnutella
drwxr-xr-x  4 root  wheel   512 Mar 21 12:50 /usr/pkgsrc/net/gift-openft
drwxr-xr-x  3 root  wheel   512 Mar 21 12:50 /usr/pkgsrc/net/giftcurs
drwxr-xr-x  4 root  wheel   512 Mar 21 12:53 /usr/pkgsrc/sysutils/dmesg2gif
-rw-r--r--  1 root  wheel  6176 Jan 16  2001 /usr/pkgsrc/templates/pkg-daemon.gif

入れる。

% cd /usr/pkgsrc/graphics/libungif/
% sudo make install clean-depends

再び configure

こんな。

Configured for `i386-unknown-netbsdelf4.99.58'.

  Where should the build process find the source code?    /home/rin/usr/local/emacs
  What operating system and machine description files should Emacs use?
        `s/netbsd.h' and `m/intel386.h'
  What compiler should emacs be built with?               gcc -DX_I18N_INHIBITED
  Should Emacs use the GNU version of malloc?             yes
  Should Emacs use a relocating allocator for buffers?    yes
  Should Emacs use mmap(2) for buffer allocation?         no
  What window system should Emacs use?                    x11
  What toolkit should Emacs use?                          GTK
  Where do we find X Windows header files?                /usr/pkg/include
  Where do we find X Windows libraries?                   /usr/pkg/lib
  Does Emacs use -lXaw3d?                                 no
  Does Emacs use -lXpm?                                   yes
  Does Emacs use -ljpeg?                                  yes
  Does Emacs use -ltiff?                                  yes
  Does Emacs use a gif library?                           yes -lgif
  Does Emacs use -lpng?                                   yes
  Does Emacs use -lrsvg-2?                                no
  Does Emacs use -lgpm?                                   no
  Does Emacs use -ldbus?                                  yes
  Does Emacs use a font backend?                          yes
  Does Emacs use -lfreetype?                              yes
  Does Emacs use -lm17n-flt?                              no
  Does Emacs use -lotf?                                   no
  Does Emacs use -lxft?                                   yes
  Does Emacs use X toolkit scroll bars?                   yes

作って入れる。

% make bootstrap
% make install

起動

% emacs &

こんな。

ref.