トップ 最新 追記

Masa's blog

検索キーワード:

2016年11月13日 Version up tdiary Ver.2.2.2 to 5.0.2 [長年日記]

_ ruby-2.3.1.tar.bz2 from ruby-1.8.7.tar.bz2

$ tar xvf ruby-2.3.1.tar.bz2
$ cd ruby-2.3.1
$ ./configure --without-gmp && make && make check # 1 failed :(
$ sudo make install && sudo ldconfig

_ tdiary-full-v5.0.2.tar.gz

$ mv ~/public_html/diary ~/public_html/diary.backup
$ mkdir ~/public_html/diary
$ tar xvf tdiary-full-v5.0.2.tar.gz
$ cp -r tdiary-full-v5.0.2/* ~/public_html/diary/
$ cd ~/public_html/diary/
$ cp dot.htaccess .htaccess
$ cp tdiary.conf.beginner tdiary.conf

.htaccess

AuthUserFile  /home/m-ito/.htpasswd
Require user  m-ito

tdiary.conf

@data_path = '/home/m-ito/diary'
$ cd /home/m-ito/
$ mkdir diary.backup && cd diary.backup/ && (cd ../diary/ && tar cf - .) | tar xvpif -
$ cd ../diary/
$ for i in `find . -type f`
do
	nkf -w <$i >/tmp/junk && cp /tmp/junk $i
	rm /tmp/junk
done

/home/m-ito/diary/tdiary.conf

date_format = "%Y年%m月%d日"

Plugin selection

search-default.rb

Header,Footer

<%= search_input_form( '' ) %>

2016年11月23日 Setting font for flashplayer [長年日記]

_ /etc/fonts/conf.avail/69-language-selector-ja-jp.conf

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
    <!-- Japanese (ja) -->
    <match target="pattern">
        <test qual="any" name="family">
            <string>sans-serif</string>
        </test>
        <edit name="family" mode="append" binding="same">
            <string>IPA Pゴシック</string>
        </edit>
    </match>
    <!-- Japanese (ja) ends -->
</fontconfig>

_ symbolic link

# cd /etc/fonts/conf.d
# ln -s ../conf.avail/69-language-selector-ja-jp.conf