- 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
ftnk.jp -> ~fumi -> ChangeLog -> 2010-04 -> 2010-04-20
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
■ 今日の del.icio.us (2010-04-20)
[
固定リンク|
Comments (View)
]
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}
[
固定リンク|
Comments (View)
]
pp より見やすく表示.
README にあるサンプルだと以下のように表示される.
require 'rubygems'
require 'ap'
data = [ false, 42, %w(forty two), { :now => Time.now, :class => Time.now.class, :distance => 42e42 } ]
ap data

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
[
固定リンク|
Comments (View)
]





