ftnk.jp -> ~fumi -> ChangeLog -> 2010-04 -> 2010-04-20

前の日 / 次の日 / 最新 / 2010-04

2010-04 / 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

2010-04-20 Tue

[別の年の同じ日: 2006 2007 2008 2009

今日の del.icio.us (2010-04-20) はてぶ

- clmemo@aka: Closure (クロージャー) って何だろう?
- Should I buy a Fast SSD or more memory? - MySQL Performance Blog
- awesome_print: A New Pretty Printer for your Ruby Objects
- グーグルのサーバー数を図にするとこんな感じ : ギズモード・ジャパン
- mod_rewriteでデバッグするときに便利なログを出力する方法 - IDEA*IDEA ~ 百式管理人のライフハックブログ
  > RewriteLog /tmp/rewrite.log
  > RewriteLogLevel 9
- Google ChromeでRedmineに素早くアクセスできる「QuickRedmine」 - Redmine.JP Blog

milter-greylist を SPF を有効でビルドする [Linux][mail][spam] はてぶ

CentOS 5.4 上で.

SPF の判定をしたいので,libspf2 をインストールし,
libspf2 を有効にしてビルド.

$ wegt http://www.city-fan.org/ftp/contrib/libraries/libspf2-1.2.9-2.rhel5.x86_64.rpm http://www.city-fan.org/ftp/contrib/libraries/libspf2-devel-1.2.9-2.rhel5.x86_64.rpm
$ sudo rpm -Uvh libspf2-1.2.9-2.rhel5.x86_64.rpm libspf2-devel-1.2.9-2.rhel5.x86_64.rpm
$ wget -nd ftp://ftp.espci.fr/pub/milter-greylist/milter-greylist-4.3.7.tgz
$ rpm -ti milter-greylist-4.3.7.tgz
$ rpmbuild -tp milter-greylist-4.3.7.tgz
$ vim /path/to/SPECS/milter-greylist.spec    # spf を有効にする
$ rpmbuild -ba /path/to/SPECS/milter-greylist.spec

spec file は以下の %define 行の 0 を 1 に変更.

%define libspf2 0
%{?build_libspf2:%define libspf2 1}

awesome_print [Ruby] はてぶ

pp より見やすく表示.

README にあるサンプルだと以下のように表示される.

require 'rubygems'
require 'ap'

data = [ false, 42, %w(forty two), { :now => Time.now, :class => Time.now.class, :distance => 42e42 } ]

ap data

awesome_print

via: awesome_print: A New Pretty Printer for your Ruby Objects
     http://www.rubyinside.com/awesome_print-a-new-pretty-printer-for-your-ruby-objects-3208.html