<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0" xml:base="http://planetcakephp.org">
<channel>
 <title>Planet CakePHP</title>
 <link>http://planetcakephp.org</link>
 <description>Aggregating all CakePHP-related articles, blog posts and news.</description>
 <language>en</language>
<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/planet-cakephp-aggregator-all" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="planet-cakephp-aggregator-all" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">planet-cakephp-aggregator-all</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><item>
 <title>Music for Coding #3</title>
 <link>http://dojo.codegreene.com/2011/11/music-for-coding-3/?utm_source%3Drss%26utm_medium%3Drss%26utm_campaign%3Dmusic-for-coding-3</link>
 <description>&lt;p&gt;Here’s a glimpse at what we are listening to right now:&lt;br /&gt;
&lt;strong&gt;Luke&lt;/strong&gt;&lt;br /&gt;
Rodrigo y Gabriela – &lt;em&gt;11:11&lt;/em&gt;&lt;br /&gt;
It is pretty fast guitar flamenco type stuff and I really enjoying designing / coding to it. I’m a fan of no lyrics when working and these guys are perfect for that.&lt;br /&gt;
&lt;strong&gt;Chad&lt;/strong&gt;&lt;br /&gt;
Adele – &lt;em&gt;21&lt;/em&gt;&lt;br /&gt;
I know it is popular at the moment on the radio stations but I have been listening to it because it is a little different then the normal for me.&lt;br /&gt;
Chronic Future – &lt;em&gt;Lines in My Face&lt;/em&gt;&lt;br /&gt;
This is the only album of thiers I like. It always reminds me of the time when I was paintballing more frequently.&lt;br /&gt;
DMX – &lt;em&gt;The Best of DMX&lt;/em&gt;&lt;br /&gt;
Old school rapping at its best. I like his style but not something you can play in the work place without headphone&lt;br /&gt;
&lt;strong&gt;Tim&lt;/strong&gt;&lt;br /&gt;
Mumford &amp;amp; Sons -  &lt;em&gt;Sigh No More&lt;/em&gt;&lt;br /&gt;
I love their style. The lyrics and banjo really help me get in a good groove.&lt;br /&gt;
Coldplay – &lt;em&gt;Mylo Xyloto&lt;/em&gt;&lt;br /&gt;
I think Coldplay keeps getting better and better. This album is great and the catchy beats help me get through monotonous div tags.&lt;br /&gt;
What are you listening to?&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/planet-cakephp-aggregator-all/~4/Z_nHuTTTd5U" height="1" width="1"/&gt;</description>
 <category domain="http://planetcakephp.org/aggregator/languages/english">English</category>
 <pubDate>Tue, 22 Nov 2011 22:53:16 +0000</pubDate>
 <dc:creator>The Code Dojo</dc:creator>
 <guid isPermaLink="false">6851 at http://planetcakephp.org</guid>
</item>
<item>
 <title>[Linux][DataBase]Serversman@VPSにMySQLをインストールした際の備忘録</title>
 <link>http://d.hatena.ne.jp/kanonji/20111122/1321934992</link>
 <description>&lt;div class="section"&gt;
&lt;h4&gt;インストールとデフォルト&lt;/h4&gt;
&lt;pre class="syntax-highlight"&gt;
$ sudo yum &lt;span class="synStatement"&gt;install&lt;/span&gt; mysql-devel mysql-server
&lt;span class="synStatement"&gt;====================================================================================================&lt;/span&gt;
 Package                    Arch               Version                       Repository        Size
&lt;span class="synStatement"&gt;====================================================================================================&lt;/span&gt;
Installing:
 mysql-devel                x86_64             &lt;span class="synConstant"&gt;5&lt;/span&gt;.&lt;span class="synConstant"&gt;0&lt;/span&gt;.&lt;span class="synConstant"&gt;77-4&lt;/span&gt;.el5_6.&lt;span class="synConstant"&gt;6&lt;/span&gt;              base             &lt;span class="synConstant"&gt;2&lt;/span&gt;.&lt;span class="synConstant"&gt;5&lt;/span&gt; M
 mysql-server               x86_64             &lt;span class="synConstant"&gt;5&lt;/span&gt;.&lt;span class="synConstant"&gt;0&lt;/span&gt;.&lt;span class="synConstant"&gt;77-4&lt;/span&gt;.el5_6.&lt;span class="synConstant"&gt;6&lt;/span&gt;              base             &lt;span class="synConstant"&gt;9&lt;/span&gt;.&lt;span class="synConstant"&gt;8&lt;/span&gt; M
Installing &lt;span class="synStatement"&gt;for&lt;/span&gt; dependencies:
 mysql                      x86_64             &lt;span class="synConstant"&gt;5&lt;/span&gt;.&lt;span class="synConstant"&gt;0&lt;/span&gt;.&lt;span class="synConstant"&gt;77-4&lt;/span&gt;.el5_6.&lt;span class="synConstant"&gt;6&lt;/span&gt;              base             &lt;span class="synConstant"&gt;4&lt;/span&gt;.&lt;span class="synConstant"&gt;8&lt;/span&gt; M
 perl-DBD-MySQL             x86_64             &lt;span class="synConstant"&gt;3&lt;/span&gt;.&lt;span class="synConstant"&gt;0007-2&lt;/span&gt;.el5                  base             &lt;span class="synConstant"&gt;148&lt;/span&gt; k
 perl-DBI                   x86_64             &lt;span class="synConstant"&gt;1&lt;/span&gt;.&lt;span class="synConstant"&gt;52-2&lt;/span&gt;.el5                    base             &lt;span class="synConstant"&gt;600&lt;/span&gt; k

Transaction Summary
&lt;span class="synStatement"&gt;====================================================================================================&lt;/span&gt;
&lt;/pre&gt;&lt;h5&gt;インストール直後のmy.cnf&lt;/h5&gt;
&lt;pre class="syntax-highlight"&gt;
$ cat /etc/my.cnf
&lt;span class="synStatement"&gt;[&lt;/span&gt;mysqld&lt;span class="synStatement"&gt;]&lt;/span&gt;
&lt;span class="synIdentifier"&gt;datadir&lt;/span&gt;=/var/lib/mysql
&lt;span class="synIdentifier"&gt;socket&lt;/span&gt;=/var/lib/mysql/mysql.sock
&lt;span class="synIdentifier"&gt;user&lt;/span&gt;=mysql
&lt;span class="synComment"&gt;# Default to using old password format for compatibility with mysql 3.x&lt;/span&gt;
&lt;span class="synComment"&gt;# clients (those using the mysqlclient10 compatibility package).&lt;/span&gt;
&lt;span class="synIdentifier"&gt;old_passwords&lt;/span&gt;=&lt;span class="synConstant"&gt;1&lt;/span&gt;

&lt;span class="synComment"&gt;# Disabling symbolic-links is recommended to prevent assorted security risks;&lt;/span&gt;
&lt;span class="synComment"&gt;# to do so, uncomment this line:&lt;/span&gt;
&lt;span class="synComment"&gt;# symbolic-links=0&lt;/span&gt;

&lt;span class="synStatement"&gt;[&lt;/span&gt;mysqld_safe&lt;span class="synStatement"&gt;]&lt;/span&gt;
log-&lt;span class="synIdentifier"&gt;error&lt;/span&gt;=/var/log/mysqld.log
pid-&lt;span class="synIdentifier"&gt;file&lt;/span&gt;=/var/run/mysqld/mysqld.pid
&lt;/pre&gt;&lt;h5&gt;データベース初期化&lt;/h5&gt;
&lt;pre class="syntax-highlight"&gt;
$ sudo /etc/init.d/mysqld &lt;span class="synStatement"&gt;start&lt;/span&gt;
MySQL データベースを初期化中:  WARNING: The host &lt;span class="synStatement"&gt;'&lt;/span&gt;&lt;span class="synConstant"&gt;dti-vps-srv00&lt;/span&gt;&lt;span class="synStatement"&gt;'&lt;/span&gt; could not be looked up with resolveip.
This probably means that your libc libraries are not &lt;span class="synConstant"&gt;100&lt;/span&gt; % compatible
with this binary MySQL version. The MySQL &lt;span class="synStatement"&gt;daemon&lt;/span&gt;, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges &lt;span class="synStatement"&gt;!&lt;/span&gt;
Installing MySQL system tables...
OK
Filling &lt;span class="synStatement"&gt;help&lt;/span&gt; tables...
OK

To &lt;span class="synStatement"&gt;start&lt;/span&gt; mysqld at boot &lt;span class="synStatement"&gt;time&lt;/span&gt; you have to copy
support-files/mysql.server to the right place &lt;span class="synStatement"&gt;for&lt;/span&gt; your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER &lt;span class="synStatement"&gt;!&lt;/span&gt;
To &lt;span class="synStatement"&gt;do&lt;/span&gt; so, &lt;span class="synStatement"&gt;start&lt;/span&gt; the server, &lt;span class="synStatement"&gt;then&lt;/span&gt; issue the following commands:
/usr/bin/mysqladmin &lt;span class="synStatement"&gt;-u&lt;/span&gt; root password &lt;span class="synStatement"&gt;'&lt;/span&gt;&lt;span class="synConstant"&gt;new-password&lt;/span&gt;&lt;span class="synStatement"&gt;'&lt;/span&gt;
/usr/bin/mysqladmin &lt;span class="synStatement"&gt;-u&lt;/span&gt; root &lt;span class="synStatement"&gt;-h&lt;/span&gt; dti-vps-srv06 password &lt;span class="synStatement"&gt;'&lt;/span&gt;&lt;span class="synConstant"&gt;new-password&lt;/span&gt;&lt;span class="synStatement"&gt;'&lt;/span&gt;

Alternatively you can run:
/usr/bin/mysql_secure_installation

which will also give you the option of removing the &lt;span class="synStatement"&gt;test&lt;/span&gt;
databases and anonymous user created by default.  This is
strongly recommended &lt;span class="synStatement"&gt;for&lt;/span&gt; production servers.

See the manual &lt;span class="synStatement"&gt;for&lt;/span&gt; more instructions.

You can &lt;span class="synStatement"&gt;start&lt;/span&gt; the MySQL &lt;span class="synStatement"&gt;daemon&lt;/span&gt; with:
&lt;span class="synStatement"&gt;cd&lt;/span&gt; /usr &lt;span class="synStatement"&gt;;&lt;/span&gt; /usr/bin/mysqld_safe &lt;span class="synStatement"&gt;&amp;&lt;/span&gt;

You can &lt;span class="synStatement"&gt;test&lt;/span&gt; the MySQL &lt;span class="synStatement"&gt;daemon&lt;/span&gt; with mysql-&lt;span class="synStatement"&gt;test&lt;/span&gt;-run.pl
&lt;span class="synStatement"&gt;cd&lt;/span&gt; mysql-&lt;span class="synStatement"&gt;test&lt;/span&gt; &lt;span class="synStatement"&gt;;&lt;/span&gt; perl mysql-&lt;span class="synStatement"&gt;test&lt;/span&gt;-run.pl

Please report any problems with the /usr/bin/mysqlbug script&lt;span class="synStatement"&gt;!&lt;/span&gt;

The latest information about MySQL is available on the web at
&lt;a href="http://www.mysql.com" title="http://www.mysql.com"&gt;http://www.mysql.com&lt;/a&gt;
Support MySQL by buying support/licenses at &lt;a href="http://shop.mysql.com" title="http://shop.mysql.com"&gt;http://shop.mysql.com&lt;/a&gt;
                                                           &lt;span class="synStatement"&gt;[&lt;/span&gt;  OK  &lt;span class="synStatement"&gt;]&lt;/span&gt;
MySQL を起動中:                                            &lt;span class="synStatement"&gt;[&lt;/span&gt;  OK  &lt;span class="synStatement"&gt;]&lt;/span&gt;
&lt;/pre&gt;&lt;p&gt;メッセージ中に書いてある、MySQLのテストができる&lt;code&gt;mysql-test-run.pl&lt;/code&gt;と言うのがあるらしいけど、&lt;code&gt;locate&lt;/code&gt;しても&lt;code&gt;find&lt;/code&gt;しても見つからない。CentOSのリポジトリにあるMySQLからは取り除かれてるのかな？&lt;/p&gt;
&lt;p&gt;もう一つ書いてある&lt;code&gt;mysql_secure_installation&lt;/code&gt;は後述します。&lt;/p&gt;
&lt;h5&gt;サービス登録&lt;/h5&gt;
&lt;pre&gt;
$ sudo /sbin/chkconfig mysqld on
$ /sbin/chkconfig --list mysqld
mysqld              0:off     1:off     2:on     3:on     4:on     5:on     6:off
&lt;/pre&gt;&lt;h4&gt;メモリ&lt;/h4&gt;
&lt;h5&gt;起動前のメモリ&lt;/h5&gt;
&lt;pre class="syntax-highlight"&gt;
$ free &lt;span class="synSpecial"&gt;-m&lt;/span&gt;
             total       used       free     shared    buffers     cached
Mem:          &lt;span class="synConstant"&gt;1024&lt;/span&gt;         &lt;span class="synConstant"&gt;92&lt;/span&gt;        &lt;span class="synConstant"&gt;931&lt;/span&gt;          &lt;span class="synConstant"&gt;0&lt;/span&gt;          &lt;span class="synConstant"&gt;0&lt;/span&gt;          &lt;span class="synConstant"&gt;0&lt;/span&gt;
-/+ buffers/cache:         &lt;span class="synConstant"&gt;92&lt;/span&gt;        &lt;span class="synConstant"&gt;931&lt;/span&gt;
Swap:            &lt;span class="synConstant"&gt;0&lt;/span&gt;          &lt;span class="synConstant"&gt;0&lt;/span&gt;          &lt;span class="synConstant"&gt;0&lt;/span&gt;
&lt;/pre&gt;&lt;pre class="syntax-highlight"&gt;
$ &lt;span class="synStatement"&gt;ls&lt;/span&gt; /usr/share/mysql/my-* &lt;span class="synConstant"&gt;-1&lt;/span&gt;
/usr/share/mysql/my-huge.cnf
/usr/share/mysql/my-innodb-heavy-4G.cnf
/usr/share/mysql/my-large.cnf
/usr/share/mysql/my-medium.cnf
/usr/share/mysql/my-small.cnf
&lt;/pre&gt;&lt;h5&gt;my-large.cnf&lt;/h5&gt;
&lt;pre class="syntax-highlight"&gt;
$ sudo cp /usr/share/mysql/my-large.cnf /etc/my.cnf
$ sudo /etc/init.d/mysqld &lt;span class="synStatement"&gt;restart&lt;/span&gt;

$ free &lt;span class="synSpecial"&gt;-m&lt;/span&gt;
             total       used       free     shared    buffers     cached
Mem:          &lt;span class="synConstant"&gt;1024&lt;/span&gt;        &lt;span class="synConstant"&gt;486&lt;/span&gt;        &lt;span class="synConstant"&gt;537&lt;/span&gt;          &lt;span class="synConstant"&gt;0&lt;/span&gt;          &lt;span class="synConstant"&gt;0&lt;/span&gt;          &lt;span class="synConstant"&gt;0&lt;/span&gt;
-/+ buffers/cache:        &lt;span class="synConstant"&gt;486&lt;/span&gt;        &lt;span class="synConstant"&gt;537&lt;/span&gt;
Swap:            &lt;span class="synConstant"&gt;0&lt;/span&gt;          &lt;span class="synConstant"&gt;0&lt;/span&gt;          &lt;span class="synConstant"&gt;0&lt;/span&gt;
&lt;/pre&gt;&lt;p&gt;起動しただけでまったく稼動して無い状態で、400MB程消費。&lt;/p&gt;
&lt;h4&gt;my-medium.cnf&lt;/h4&gt;
&lt;pre class="syntax-highlight"&gt;
$ sudo cp /usr/share/mysql/my-medium.cnf /etc/my.cnf
$ sudo /etc/init.d/mysqld &lt;span class="synStatement"&gt;restart&lt;/span&gt;

$ free &lt;span class="synSpecial"&gt;-m&lt;/span&gt;
             total       used       free     shared    buffers     cached
Mem:          &lt;span class="synConstant"&gt;1024&lt;/span&gt;        &lt;span class="synConstant"&gt;225&lt;/span&gt;        &lt;span class="synConstant"&gt;798&lt;/span&gt;          &lt;span class="synConstant"&gt;0&lt;/span&gt;          &lt;span class="synConstant"&gt;0&lt;/span&gt;          &lt;span class="synConstant"&gt;0&lt;/span&gt;
-/+ buffers/cache:        &lt;span class="synConstant"&gt;225&lt;/span&gt;        &lt;span class="synConstant"&gt;798&lt;/span&gt;
Swap:            &lt;span class="synConstant"&gt;0&lt;/span&gt;          &lt;span class="synConstant"&gt;0&lt;/span&gt;          &lt;span class="synConstant"&gt;0&lt;/span&gt;
&lt;/pre&gt;&lt;p&gt;こっちだと140MB位を消費する。&lt;/p&gt;
&lt;h4&gt;mysql_secure_installation&lt;/h4&gt;
&lt;pre class="syntax-highlight"&gt;
$ mysql_secure_installation

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
      SERVERS IN PRODUCTION USE&lt;span class="synStatement"&gt;!&lt;/span&gt;  PLEASE READ EACH STEP CAREFULLY&lt;span class="synStatement"&gt;!&lt;/span&gt;


In order to log into MySQL to secure it, we&lt;span class="synStatement"&gt;'&lt;/span&gt;&lt;span class="synConstant"&gt;ll need the current&lt;/span&gt;
&lt;span class="synConstant"&gt;password for the root user.  If you&lt;/span&gt;&lt;span class="synStatement"&gt;'&lt;/span&gt;ve just installed MySQL, and
you haven&lt;span class="synStatement"&gt;'&lt;/span&gt;&lt;span class="synConstant"&gt;t set the root password yet, the password will be blank,&lt;/span&gt;
&lt;span class="synConstant"&gt;so you should just press enter here.&lt;/span&gt;

&lt;span class="synConstant"&gt;Enter current password for root (enter for none):&lt;/span&gt;
&lt;span class="synConstant"&gt;OK, successfully used password, moving on...&lt;/span&gt;

&lt;span class="synConstant"&gt;Setting the root password ensures that nobody can log into the MySQL&lt;/span&gt;
&lt;span class="synConstant"&gt;root user without the proper authorisation.&lt;/span&gt;

&lt;span class="synConstant"&gt;Set root password? [Y/n] n    #root&lt;/span&gt;&lt;span class="synSpecial"&gt;のパスワードを設定。今回は実験環境だしポートも閉じてるのでスキップ&lt;/span&gt;
&lt;span class="synConstant"&gt; ... skipping.&lt;/span&gt;

&lt;span class="synConstant"&gt;By default, a MySQL installation has an anonymous user, allowing anyone&lt;/span&gt;
&lt;span class="synConstant"&gt;to log into MySQL without having to have a user account created for&lt;/span&gt;
&lt;span class="synConstant"&gt;them.  This is intended only for testing, and to make the installation&lt;/span&gt;
&lt;span class="synConstant"&gt;go a bit smoother.  You should remove them before moving into a&lt;/span&gt;
&lt;span class="synConstant"&gt;production environment.&lt;/span&gt;

&lt;span class="synConstant"&gt;Remove anonymous users? [Y/n] Y    #&lt;/span&gt;&lt;span class="synSpecial"&gt;ユーザー名&lt;/span&gt;&lt;span class="synConstant"&gt;=&lt;/span&gt;&lt;span class="synSpecial"&gt;空文字な匿名ユーザーを削除&lt;/span&gt;
&lt;span class="synConstant"&gt; ... Success!&lt;/span&gt;

&lt;span class="synConstant"&gt;Normally, root should only be allowed to connect from &lt;/span&gt;&lt;span class="synStatement"&gt;'&lt;/span&gt;localhost&lt;span class="synStatement"&gt;'&lt;/span&gt;&lt;span class="synConstant"&gt;.  This&lt;/span&gt;
&lt;span class="synConstant"&gt;ensures that someone cannot guess at the root password from the network.&lt;/span&gt;

&lt;span class="synConstant"&gt;Disallow root login remotely? [Y/n] Y    #root&lt;/span&gt;&lt;span class="synSpecial"&gt;は&lt;/span&gt;&lt;span class="synConstant"&gt;root@localhost&lt;/span&gt;&lt;span class="synSpecial"&gt;のみ許可する&lt;/span&gt;
&lt;span class="synConstant"&gt; ... Success!&lt;/span&gt;

&lt;span class="synConstant"&gt;By default, MySQL comes with a database named &lt;/span&gt;&lt;span class="synStatement"&gt;'test'&lt;/span&gt;&lt;span class="synConstant"&gt; that anyone can&lt;/span&gt;
&lt;span class="synConstant"&gt;access.  This is also intended only for testing, and should be removed&lt;/span&gt;
&lt;span class="synConstant"&gt;before moving into a production environment.&lt;/span&gt;

&lt;span class="synConstant"&gt;Remove test database and access to it? [Y/n] Y    #&lt;/span&gt;&lt;span class="synSpecial"&gt;初期に作成される&lt;/span&gt;&lt;span class="synConstant"&gt;DATABASE test &lt;/span&gt;&lt;span class="synSpecial"&gt;を削除する&lt;/span&gt;
&lt;span class="synConstant"&gt; - Dropping test database...&lt;/span&gt;
&lt;span class="synConstant"&gt; ... Success!&lt;/span&gt;
&lt;span class="synConstant"&gt; - Removing privileges on test database...&lt;/span&gt;
&lt;span class="synConstant"&gt; ... Success!&lt;/span&gt;

&lt;span class="synConstant"&gt;Reloading the privilege tables will ensure that all changes made so far&lt;/span&gt;
&lt;span class="synConstant"&gt;will take effect immediately.&lt;/span&gt;

&lt;span class="synConstant"&gt;Reload privilege tables now? [Y/n] Y    #&lt;/span&gt;&lt;span class="synSpecial"&gt;権限テーブルをリロードしてこれまでの変更を反映する&lt;/span&gt;
&lt;span class="synConstant"&gt; ... Success!&lt;/span&gt;

&lt;span class="synConstant"&gt;Cleaning up...&lt;/span&gt;



&lt;span class="synConstant"&gt;All done!  If you&lt;/span&gt;&lt;span class="synStatement"&gt;'&lt;/span&gt;ve completed all of the above steps, your MySQL
installation should now be secure.

Thanks &lt;span class="synStatement"&gt;for&lt;/span&gt; using MySQL&lt;span class="synStatement"&gt;!&lt;/span&gt;
&lt;/pre&gt;&lt;p&gt;匿名ユーザーの削除やtestデータベースの削除など、MySQLをインストールしたらやる作業を、対話型で進めるコマンドがありました。これは知らなかった。&lt;/p&gt;
&lt;h4&gt;環境&lt;/h4&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;td&gt;サーバー&lt;/td&gt;
&lt;td&gt;Serversman@VPS Entry&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Linux&lt;/td&gt;
&lt;td&gt;CentOS 5.7&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;mysql-server&lt;/td&gt;
&lt;td&gt;5.0.77-4.el5_6.6&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/planet-cakephp-aggregator-all/~4/a4CATVQdBjI" height="1" width="1"/&gt;</description>
 <category domain="http://planetcakephp.org/aggregator/languages/japanese">日本語</category>
 <pubDate>Tue, 22 Nov 2011 04:09:52 +0000</pubDate>
 <dc:creator>kanonji</dc:creator>
 <guid isPermaLink="false">6846 at http://planetcakephp.org</guid>
</item>
<item>
 <title>[PHP]</title>
 <link>http://d.hatena.ne.jp/ohguma/20111121#p1</link>
 <description>&lt;p&gt;「PostgreSQL for WordPress (PG4WP)」を使い、「Wordpress」を PostgreSQL で利用する方法のまとめ。 使用バージョン   Wordpress 3.2.1  PG4WP 1.2.2  PostgreSQL 8.3  手順   PostgreSQL上でDB,ユーザを作成しておく。  Wordpressを展開。今回は、ドキュメントルートに展開した。  PG4WPを展開し、pg4wpディレクトリを wp-contentディレクトリに移動。また、pg4wp/db. ...&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/planet-cakephp-aggregator-all/~4/tAVq82tJSl0" height="1" width="1"/&gt;</description>
 <category domain="http://planetcakephp.org/aggregator/languages/japanese">日本語</category>
 <pubDate>Mon, 21 Nov 2011 00:00:00 +0000</pubDate>
 <dc:creator>熊工房　ohgumaの凹み日記</dc:creator>
 <guid isPermaLink="false">6845 at http://planetcakephp.org</guid>
</item>
<item>
 <title>世界一小さな、世界一のセッター。竹下佳江さん。</title>
 <link>http://d.hatena.ne.jp/aroundthedistance/20111118/1321635178</link>
 <description>&lt;p&gt;ひさびさにバレーボールをTV観戦。2011女子のW杯バレーボール、日本対アメリカ戦。高さとパワーで圧倒するアメリカを相手に、サーブで崩して攻撃を単調にさせ、アメリカのブロックを悉くかわした絶妙のコンビバレーで、ストレート勝ち。単調とはいっても、あんだけ高くて肉体的に強い選手ぞろいだから、攻撃のリズムが合わなくなれば高さとパワーで負ける日本はジリ貧必至だっただろうと思う。ナイスゲームでした！お疲れさまでした、日本代表のみなさま！！！&lt;br /&gt;
			しかしさ、だけどさ、一番の驚きは、セッターが「まだ」竹下さんだってこと。え・・・まだ現役でやってたんだ・・・竹下さん。マジかよ、俺より年上なんだぜ。シドニー五輪の予選敗退でバーンアウトして現役引退されたけれども、足掛け10年以上全日本で代表はっててさ、10年前ならまだしても33歳の今でワールドカップのベストセッター賞に選ばれるってどんだけすごいんだろう。全日本女子バレーといえば、竹下さんしか思いつかない。あとサオリン。サーブでえらい狙われているようだけど、安定してパフォーマンス出してるからすごいわ。&lt;br /&gt;
			僕はバレーボール経験が無いので素人の解釈になってしまうけれど、セッターに重要な要素は「スピード」だと思う。相手のサーブが放たれたらコートのネット真ん中付近にもぐりこむスピード、その間に誰にトスをどのタイミングで上げるかを決めるスピード、放たれたトスからアタッカーまでに届くスピード。いくら高さとパワーがあっても、ブロックがついていけなければアタッカーが圧倒的に有利になる。相手が右だと思ったところに左に行けば、優位に立てる。&lt;br /&gt;
			バレーボールはコートがせまいし人数も６人しか(リベロ除く)いないから、高さとパワーで劣る以上は、とにかくクリエイティブな攻撃を生み出す必要があるんだと思うんだ。韓国のキム・ヨンギョンのようなどっからでもスパイクが決められるようなスーパーエースがいればある意味楽なんだろうけど、そういうわけでもない。相手のサーブが来るときは、アタッカーのポジションをその時々でうまく変えながら、レシーバーから竹下大先生にボールが渡るまでにいろんな判断を入れていると思うのよね。その内容はさっぱりわからないけれど。&lt;br /&gt;
			そして、このセッターっていうポジションは、絶対ブレちゃいけないはず。トスアップに自信が無ければならない。ブロックに捕まってもうるせーこのボケーカスーぐらいの気概が無くてはならず、転んでもただではおきないメンタルの強さ。そーゆーのがないと萎縮しちゃって気持ちが落ち込むから、トス回しも単調になるはず。クイックが捕まると萎えそうだよね、セッターとか。エースに上げて捕まるのもいやだけど、トス回しが原因でつかまることもありそうで、その際たるものってクイックな気がするのよ。セッターが安全そうだからという安易な道を歩んだらあかん。勇気を持ってリズムを変えて、流れを変えていかないと。野球のキャッチャーの配球が単調だとピッチャーの持ち味も引き出せないのと一緒じゃないかな。&lt;br /&gt;
			世界的にほかに類似する例が無いと思うので、竹下佳江さんはもっと評価されるべき。&lt;br /&gt;
			多分竹下選手のことだから最も印象に残ってる代表試合にはシドニー五輪予選敗退の試合を選びそうだけど、ロンドン五輪でバレーボール現役生活の集大成という大輪の花を咲かせてくれることを、願っております。がんばれ、ニッポン！&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/planet-cakephp-aggregator-all/~4/hmHs55jaATc" height="1" width="1"/&gt;</description>
 <category domain="http://planetcakephp.org/aggregator/languages/japanese">日本語</category>
 <pubDate>Fri, 18 Nov 2011 16:52:58 +0000</pubDate>
 <dc:creator>Life is Really Short, Have Your Life!!</dc:creator>
 <guid isPermaLink="false">6844 at http://planetcakephp.org</guid>
</item>
<item>
 <title>Plugins Every WordPress Site Should Have Installed</title>
 <link>http://dojo.codegreene.com/2011/11/plugins-every-wordpress-site-should-have-installed/?utm_source%3Drss%26utm_medium%3Drss%26utm_campaign%3Dplugins-every-wordpress-site-should-have-installed</link>
 <description>&lt;p&gt;We build several WordPress sites each month and our clients are always asking what plugins they should be using for their new WordPress site. Depending on the functionality of the site, the need for plugins vary. For example, if the client has a blog or plans to have a place for comments, I will always recommend &lt;strong&gt;Disqus&lt;/strong&gt; over Intense Debate and the default WordPress comment system because I think it functions better overall. I like the interface for Disqus much more then any other comment system and they have an Android app that makes it easy for me to moderate comments on the go.&lt;br /&gt;
When it comes to site performance, there is only one caching plugin that needs to even be talked about and that is &lt;strong&gt;W3 Total Cache&lt;/strong&gt;. This plugin is so complete that it is shocking. It is packed with features and accounts for every type of WordPress user. It is very easy to configure and it actually works! I run a Lacrosse news website where I recently installed W3 Total Cache. According to the Google Analytics Site Speed metric, from September 17 to October 16, the average load time was 3.47 seconds. From October 17, the day I installed W3 Total Cache, to November 16, the average load time was 2.36 seconds. That is a difference of 1.21 seconds! The plugin also shows your Page Speed Report on your Admin Dashboard so you can see how well your site is performing. Every time I visit the site I am pleased with the results.&lt;br /&gt;
Every once in awhile, a WordPress install will be compromised and hacked. This can cause huge headaches and hassle if you are unprepared and don’t have a backup of your site. The remedy for the problem is to backup your database and files regularly. For database backups, I use &lt;strong&gt;WordPress Database Backup&lt;/strong&gt;. It is very easy to use and you can customize what database tables will get backed up. Usually you want to backup all of them. I also love it because I have automated the process so I don’t have to worry about it. The plugin can be configured to send backups on a schedule that you choose. You can have it send Once Hourly, Twice Daily, Once Daily or Once Weekly. I have my lacrosse send it Once Daily. To continue the automation, I have setup a filter in Gmail to automatically archive the message so I don’t see it come in but I know it’s there! To backup files, I have to do it manually through FTP but most hosting services will offer a solution in some form or another.&lt;br /&gt;
Everyone who owns a site wants to have visitors and be found on Google. I’ve found that the &lt;strong&gt;WordPress SEO&lt;/strong&gt; plugin is top notch when it comes to SEO. I love how it adds an admin box below your post or page that is stacked with options. It even provides a snippet of what your page will look like when people see it in on Google Search Results. You can also set a Focus Keyword, SEO Title, Meta Description and Meta Keywords. The Focus Keyword is cool because the plugin will tell you if you are using that keyword in your Article Heading, Page Title, Page URL, Content or Meta Description. Using this plugin will make you actually think about your SEO rather then just inserting words.&lt;br /&gt;
Along the same lines as SEO, I highly recommend having a sitemap for your site. For this, I use &lt;strong&gt;Google XML Sitemaps&lt;/strong&gt;. I like how the plugin tells me the last time a sitemap was generated. It also tells me if Google, Bing and Ask.com were successfully notified. It’s a great little plugin that will help your site get noticed.&lt;br /&gt;
You’re probably saying to yourself, “What about a social plugin?” To that question, I would simply reply that I prefer to use the tools provided by the developer. I think that Twitters Tweet button and the Facebook Like button are perfect. If those two don’t tickle your fancy, then I would probably use AddThis or ShareThis.&lt;br /&gt;
What plugins do you use?&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/planet-cakephp-aggregator-all/~4/7jTxGuVrlqU" height="1" width="1"/&gt;</description>
 <category domain="http://planetcakephp.org/aggregator/languages/english">English</category>
 <pubDate>Fri, 18 Nov 2011 15:25:45 +0000</pubDate>
 <dc:creator>The Code Dojo</dc:creator>
 <guid isPermaLink="false">6843 at http://planetcakephp.org</guid>
</item>
<item>
 <title>Testing node.js modules with Travis CI</title>
 <link>http://feedproxy.google.com/~r/debuggable/~3/5CCvK7dGmiU/testing-node-js-modules-with-travis-ci%3A4ec62298-aec4-4ee3-8b5a-2c96cbdd56cb</link>
 <description>&lt;p&gt;You have written a node.js module lately? It has a test suite? &lt;a href="http://www.youtube.com/watch?v%3D2Z4m4lnjxkY"&gt;Awesome&lt;/a&gt;! Time&lt;br /&gt;
to get yourself a nerd badge of honor:&lt;/p&gt;
&lt;p&gt;But hang on nerdy warrior, this precious award has to be earned. So go ahead and&lt;br /&gt;
check out the sweetness that is &lt;a href="http://travis-ci.org"&gt;Travis CI&lt;/a&gt;. Travis is an open&lt;br /&gt;
source, free to use, continuous integration server. Initially it was just&lt;br /&gt;
building ruby stuff, but these days it supports a ton of other languages,&lt;br /&gt;
including node.js.&lt;/p&gt;
&lt;p&gt;And luckily, getting travis to run your tests on every GitHub push is really&lt;br /&gt;
easy as well:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 1:&lt;/strong&gt; Go to &lt;a href="http://travis-ci.org"&gt;Travis&lt;/a&gt; and login/connect with your GitHub account.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 2:&lt;/strong&gt; Hover over your name on the top right, and select "Profile" from the&lt;br /&gt;
dropdown.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 3:&lt;/strong&gt; You should see all your GitHub projects. Flip the "Off" switch to&lt;br /&gt;
"On" for a node.js project you want to use with travis.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 4:&lt;/strong&gt; Add a .travis.yml file to your project with the following:&lt;/p&gt;
&lt;p&gt;language: node_js&lt;br /&gt;
node_js:&lt;br /&gt;
  - 0.4&lt;br /&gt;
  - 0.6&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 5:&lt;/strong&gt; Make sure your package.json has something like this:&lt;/p&gt;
&lt;p&gt;"scripts": {&lt;br /&gt;
    "test": "make test"&lt;br /&gt;
  },&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 6:&lt;/strong&gt; Git push, and watch travis building your project on the home screen!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 7:&lt;/strong&gt; Assuming your tests are passing, it is time to get your badge of&lt;br /&gt;
honor. Adding it to your GitHub Readme.md is as simple as:&lt;/p&gt;
&lt;p&gt;[![Build Status](https://secure.travis-ci.org//.png)](http://travis-ci.org//)&lt;/p&gt;
&lt;p&gt;If you want to see an example of what this looks like, and you also happen to&lt;br /&gt;
be in the market for some no-bullshit testing tools, check out my new libs:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/felixge/node-utest"&gt;utest&lt;/a&gt;: The minimal unit testing library.&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/felixge/node-urun"&gt;urun&lt;/a&gt;: The minimal test runner.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That's it. And in case you are not excited enough yet, go and check out the&lt;br /&gt;
&lt;a href="http://about.travis-ci.org/docs/"&gt;Travis Docs&lt;/a&gt; to discover additional goodies like how to work with&lt;br /&gt;
databases, etc.&lt;/p&gt;
&lt;p&gt;--fg&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/planet-cakephp-aggregator-all/~4/h1frcejgLdI" height="1" width="1"/&gt;</description>
 <category domain="http://planetcakephp.org/aggregator/languages/english">English</category>
 <pubDate>Fri, 18 Nov 2011 09:17:12 +0000</pubDate>
 <dc:creator>Debuggable Ltd</dc:creator>
 <guid isPermaLink="false">6842 at http://planetcakephp.org</guid>
</item>
<item>
 <title>2011年のAdvent Calendarを集めてみた</title>
 <link>http://d.hatena.ne.jp/kanonji/20111118/1321584724</link>
 <description>&lt;div class="section"&gt;
&lt;p&gt;今年も年末が近づいてきてAdvent Calendarの呼びかけを見かける様になってきました。昨年は自分も&lt;a href="http://d.hatena.ne.jp/kanonji/20101208/1291819950" target="_blank"&gt;CakePHP&lt;/a&gt;と&lt;a href="http://d.hatena.ne.jp/kanonji/20101224/1293157001" target="_blank"&gt;PHP&lt;/a&gt;で、Advent Calendar初参加しました。&lt;/p&gt;
&lt;p&gt;今年は色々と勉強会を探すついでに、見かけたAdvent Calendarを集めてみたんですが、今年のはなんだか去年より数が増えてる気がします。見逃してるのもあるだろうし、まだ発表されてないのもあると思うので、かなりの数になるんじゃないだろうか。なんか技術系じゃないのも混じってるっぽいけど。&lt;/p&gt;
&lt;p&gt;他にも見つけ次第気が向いたら追加していきます。載ってないAdvent Calendarがあったら教えてください。&lt;/p&gt;
&lt;p&gt;あと、ATND率高いなー&lt;/p&gt;
&lt;h4&gt;Advent Calendar&lt;/h4&gt;
&lt;p&gt;&lt;a href="http://atnd.org/events/21910" target="_blank"&gt;カーネル／VM Advent Calendar : ATND&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://atnd.org/events/21925" target="_blank"&gt;Vim Advent Calendar 2011  : ATND&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://atnd.org/events/21936" target="_blank"&gt;C++11 Advent Calendar 2011 : ATND&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://atnd.org/events/21951" target="_blank"&gt;Titanium Advent Calendar 2011 : ATND&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://atnd.org/events/21994" target="_blank"&gt;Postgtre SQL Advent Calendar : ATND&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://atnd.org/events/21988" target="_blank"&gt;C# Advent Calendar 2011 : ATND&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://atnd.org/events/21987" target="_blank"&gt;HTML5 Advent Calendar 2011 : ATND&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://atnd.org/events/21982" target="_blank"&gt;Emacs Advent Calendar jp: 2011 : ATND&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://atnd.org/events/21980" target="_blank"&gt;JavaScript Advent Calendar 2011 (オレ標準コース) : ATND&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://atnd.org/events/21979" target="_blank"&gt;JavaScript Advent Calendar 2011 (Node.js/WebSocketsコース) : ATND&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://atnd.org/events/21978" target="_blank"&gt;JavaScript Advent Calendar 2011 (WebGLコース) : ATND&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://atnd.org/events/21977" target="_blank"&gt;JavaScript Advent Calendar 2011 (フレームワークコース) : ATND&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://atnd.org/events/22001" target="_blank"&gt;Silverlight Advent Calendar 2011 : ATND&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://atnd.org/events/22017" target="_blank"&gt;Backbone.js Advent Calendar 2011 : ATND&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://atnd.org/events/22020" target="_blank"&gt;変態アドベントカレンダー : ATND&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://atnd.org/events/22021" target="_blank"&gt;Ruby Advent Calendar jp: 2011 : ATND&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://atnd.org/events/22027" target="_blank"&gt;TDD Advent Calendar jp: 2011 : ATND&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://atnd.org/events/22034" target="_blank"&gt;Dvorak Advent Calendar 2011 : ATND&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://atnd.org/events/22039" target="_blank"&gt;R Advent Calendar 2011 : ATND&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://atnd.org/events/22048" target="_blank"&gt;Jenkins Advent Calendar jp 2011 : ATND&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.zusaar.com/event/174001" target="_blank"&gt;hadoopアドベントカレンダー2011 on Zusaar&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://atnd.org/events/22073" target="_blank"&gt;PowerShell Advent Calendar 2011 : ATND&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://atnd.org/events/22078" target="_blank"&gt;PyPy Advent Calendar 2011 : ATND&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://atnd.org/events/22123" target="_blank"&gt;Nimrod Advent Calendar jp: 2011 : ATND&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://atnd.org/events/22130" target="_blank"&gt;Punishment Advent Calendar jp: 2011 : ATND&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://atnd.org/events/22136" target="_blank"&gt;まやふのほもっきんちゃん Advent Calendar : ATND&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://atnd.org/events/22247" target="_blank"&gt;Play! framework Advent Calendar 2011 jp #play_ja : ATND&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://atnd.org/events/22266" target="_blank"&gt;コワーキング・アドベント・カレンダー　２０１１ : ATND&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://partake.in/events/597a0fc3-0e3a-47a3-8fc3-4f32ad846a3d" target="_blank"&gt;Boost Advent Calender 2011 - [PARTAKE]&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://atnd.org/events/22322" target="_blank"&gt;日本App Inventorユーザー会 Advent Calendar 2011 : ATND&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://atnd.org/events/22351" target="_blank"&gt;Windows Phone Advent Calendar 2011 : ATND&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://partake.in/events/902cd6d9-0215-4ea3-b51f-b8ff32e56426" target="_blank"&gt;Mercurial Advent Calendar 2011 - [PARTAKE]&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://atnd.org/events/22378" target="_blank"&gt;Symfony Advent Calendar JP 2011 : ATND&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://atnd.org/events/22380" target="_blank"&gt;FuelPHP Advent Calendar 2011 : ATND&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://atnd.org/events/22434" target="_blank"&gt;Java Advent Calendar 2011  : ATND&lt;/a&gt;&lt;/p&gt;
&lt;h4&gt;その他&lt;/h4&gt;
&lt;p&gt;&lt;a href="http://atnd.org/events/22441" target="_blank"&gt;PHP Advent Calendar 2011（全部俺） : ATND&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://atnd.org/events/22450" target="_blank"&gt;Sphinx &amp;amp; blockdiag Advent Calendar(全部俺) : ATND&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://connpass.com/event/135/" target="_blank"&gt;connpass-pyramid １人アドベントカレンダー&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;同列に並べにくいのがあったので、やっぱりそのうち大まかにジャンルわけとかしてみよう。&lt;/p&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/planet-cakephp-aggregator-all/~4/BpIH3AWOB9M" height="1" width="1"/&gt;</description>
 <category domain="http://planetcakephp.org/aggregator/languages/japanese">日本語</category>
 <pubDate>Fri, 18 Nov 2011 02:52:04 +0000</pubDate>
 <dc:creator>kanonji</dc:creator>
 <guid isPermaLink="false">6847 at http://planetcakephp.org</guid>
</item>
<item>
 <title>[Vagrant] Windows 7 上の Vagrant で Chef-Soloプロビジョニング</title>
 <link>http://d.hatena.ne.jp/okinaka/20111117/1321518564</link>
 <description>&lt;p&gt;Vagrant 0.8.7 で用意されているプロビジョニングの仕組みは、&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt; Puppet&lt;/li&gt;
&lt;li&gt; Chef (solo/client)&lt;/li&gt;
&lt;li&gt; Shell&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;			の3種類ほど。&lt;br /&gt;
			chef-solo を使いたかったのだが、Windows 7 ではどうしても失敗してしまう。&lt;br /&gt;
			(関連：&lt;a href="http://d.hatena.ne.jp/okinaka/20110826/1314367357" target="_blank"&gt;現在の Vagrant の Windows 7 対応状況&lt;/a&gt;)&lt;br /&gt;
			ローカルのディレクトリは、/vagrant でマウントされるので、そこに chef リポジトリを設置しておけば、Shell から chef-solo を呼べるのではないか？と考え試してみた。&lt;br /&gt;
			以下のファイルを用意。&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt; Vagrantfile&lt;/li&gt;
&lt;li&gt; bin/provision.sh&lt;/li&gt;
&lt;li&gt; bin/solo.rb&lt;/li&gt;
&lt;li&gt; bin/node.json&lt;/li&gt;
&lt;li&gt; chef/cookbooks/[必要なcookbook]&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;			Vagrantfile&lt;/p&gt;
&lt;p&gt;Vagrant::Config.run do |config|&lt;br /&gt;
  config.vm.provision :shell, :inline =&amp;gt; 'sh /vagrant/bin/provision.sh'&lt;br /&gt;
end&lt;/p&gt;
&lt;p&gt;			bin/provision.sh&lt;/p&gt;
&lt;p&gt;#!/bin/sh&lt;br /&gt;
if [ ! -e /var/chef/cache ]; then&lt;br /&gt;
  sudo mkdir -p /var/chef/cache&lt;br /&gt;
fi&lt;br /&gt;
cd `dirname $0`&lt;br /&gt;
sudo chef-solo -c solo.rb -j node.json&lt;/p&gt;
&lt;p&gt;			bin/solo.rb&lt;/p&gt;
&lt;p&gt;cookbook_path ["/vagrant/chef/cookbooks"]&lt;/p&gt;
&lt;p&gt;			bin/node.json&lt;/p&gt;
&lt;p&gt;{"run_list":["必要レシピ",...]}&lt;/p&gt;
&lt;p&gt;			chef ディレクトリ以下が、chef リポジトリである。ひな型を Github から取得しておく。&lt;/p&gt;
&lt;p&gt; git clone &lt;a href="https://github.com/opscode/chef-repo.git" title="https://github.com/opscode/chef-repo.git"&gt;https://github.com/opscode/chef-repo.git&lt;/a&gt; chef&lt;/p&gt;
&lt;p&gt;			chef/cookbooks 以下に必要な cookbook を用意する。&lt;br /&gt;
			これで、vagrant up すれば、chef-solo がキックされる。&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/planet-cakephp-aggregator-all/~4/c0Ksu4g2uuU" height="1" width="1"/&gt;</description>
 <category domain="http://planetcakephp.org/aggregator/languages/japanese">日本語</category>
 <pubDate>Thu, 17 Nov 2011 08:29:24 +0000</pubDate>
 <dc:creator>エンジニアきまぐれTips</dc:creator>
 <guid isPermaLink="false">6841 at http://planetcakephp.org</guid>
</item>
<item>
 <title>Working with a company that embraces open source</title>
 <link>http://cakedc.com/eng/graham_weldon/2011/11/16/working-with-a-company-that-embraces-open-source</link>
 <description>&lt;p&gt; &lt;br /&gt;
I've done my fair share of working for closed and "open" companies. I've recently (in July 2011) clocked over two years working here at the &lt;a href="http://cakedc.com"&gt;Cake Development Corporation&lt;/a&gt;, and while attending the Open Source Developers Conference (2011) in Canberra, I have had some time to reflect on my experiences with the company, and my feelings regarding my work here.&lt;br /&gt;
Traditionally I have found that compa...&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/planet-cakephp-aggregator-all/~4/VmD7rqa2eHM" height="1" width="1"/&gt;</description>
 <category domain="http://planetcakephp.org/aggregator/languages/english">English</category>
 <pubDate>Wed, 16 Nov 2011 12:39:00 +0000</pubDate>
 <dc:creator>Cake Development Corporation</dc:creator>
 <guid isPermaLink="false">6840 at http://planetcakephp.org</guid>
</item>
<item>
 <title>Debian squeeze で Jenkins + nginx 環境を作る</title>
 <link>http://d.hatena.ne.jp/okinaka/20111116/1321445079</link>
 <description>&lt;p&gt;Debian squeeze 上で、nginx をフロントサーバとして、プロクシ経由で Jenkins を動作させたい。&lt;br /&gt;
			&lt;a href="https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu" target="_blank"&gt;https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu&lt;/a&gt;&lt;br /&gt;
			を参考に、サクッと Jenkins をインストールする。&lt;br /&gt;
			&lt;a href="http://localhost:8080/" target="_blank"&gt;http://localhost:8080/&lt;/a&gt;&lt;br /&gt;
			にアクセスすると、動作していることが確認できる。&lt;br /&gt;
			&lt;a href="http://localhost:8080/jenkins" target="_blank"&gt;http://localhost:8080/jenkins&lt;/a&gt;&lt;br /&gt;
			と、プレフィックスをつけるように設定(--prefix=/jenkins)を追加した。&lt;br /&gt;
			/etc/default/jenkins&lt;/p&gt;
&lt;p&gt;JENKINS_ARGS="--prefix=/jenkins --webroot=/var/run/jenkins/war&lt;br /&gt;
    --httpPort=$HTTP_PORT --ajp13Port=$AJP_PORT"&lt;/p&gt;
&lt;p&gt;			あとは、nginx 側でリバースプロクシの設定をしてやる。&lt;br /&gt;
			/etc/nginx/sites-available/default&lt;/p&gt;
&lt;p&gt;server {&lt;br /&gt;
    : (省略)&lt;br /&gt;
  location /jenkins {&lt;br /&gt;
    proxy_pass &lt;a href="http://localhost:8080;" title="http://localhost:8080;"&gt;http://localhost:8080;&lt;/a&gt;&lt;br /&gt;
  }&lt;br /&gt;
    : (省略)&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;			これで、nginx 経由で&lt;br /&gt;
			&lt;a href="http://localhost/jenkins/" target="_blank"&gt;http://localhost/jenkins/&lt;/a&gt;&lt;br /&gt;
			にアクセスできるようになった。&lt;br /&gt;
			とりあえず、今日はここまで。&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/planet-cakephp-aggregator-all/~4/gV32zpkVCT4" height="1" width="1"/&gt;</description>
 <category domain="http://planetcakephp.org/aggregator/languages/japanese">日本語</category>
 <pubDate>Wed, 16 Nov 2011 12:04:39 +0000</pubDate>
 <dc:creator>エンジニアきまぐれTips</dc:creator>
 <guid isPermaLink="false">6838 at http://planetcakephp.org</guid>
</item>
<item>
 <title>[工作]３軸ジャイロ＋３軸加速度センサ</title>
 <link>http://d.hatena.ne.jp/ohguma/20111116#p1</link>
 <description>&lt;p&gt;少々高い(スイッチサイエンスで6,495円)がSparkfunの「IMU Digital Combo Board - 6 Degrees of Freedom ITG3200/ADXL345」をArduinoで使うべく、ググるといろいろサンプルが見つかった。 加速度センサのADXL345はすぐ使えたるようになったが、ジャイロセンサのITG-3200の値がどうにも正しく取れずに苦戦していたが、AD0端子がHIGHになるかLOWになるかで、I2Cのアドレスが異なるらしい。上記の製品はGNDに接続されている ...&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/planet-cakephp-aggregator-all/~4/ZqgnpBaWqWw" height="1" width="1"/&gt;</description>
 <category domain="http://planetcakephp.org/aggregator/languages/japanese">日本語</category>
 <pubDate>Wed, 16 Nov 2011 00:00:00 +0000</pubDate>
 <dc:creator>熊工房　ohgumaの凹み日記</dc:creator>
 <guid isPermaLink="false">6839 at http://planetcakephp.org</guid>
</item>
<item>
 <title>[Perl]perlbrewを入れてみたメモ</title>
 <link>http://d.hatena.ne.jp/kanonji/20111115/1321328450</link>
 <description>&lt;div class="section"&gt;
&lt;p&gt;&lt;a href="http://www.perlbrew.pl/" target="_blank"&gt;perlbrew&lt;/a&gt;を入れてみたので、一通りの流れをメモしておきます。&lt;/p&gt;
&lt;pre class="syntax-highlight"&gt;
$ curl &lt;span class="synSpecial"&gt;-L&lt;/span&gt; &lt;a href="http://xrl.us/perlbrewinstall" title="http://xrl.us/perlbrewinstall"&gt;http://xrl.us/perlbrewinstall&lt;/a&gt; &lt;span class="synStatement"&gt;|&lt;/span&gt; sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
&lt;span class="synConstant"&gt;100&lt;/span&gt;  &lt;span class="synConstant"&gt;1157&lt;/span&gt;  &lt;span class="synConstant"&gt;100&lt;/span&gt;  &lt;span class="synConstant"&gt;1157&lt;/span&gt;    &lt;span class="synConstant"&gt;0&lt;/span&gt;     &lt;span class="synConstant"&gt;0&lt;/span&gt;    &lt;span class="synConstant"&gt;307&lt;/span&gt;      &lt;span class="synConstant"&gt;0&lt;/span&gt;  &lt;span class="synConstant"&gt;0&lt;/span&gt;:&lt;span class="synConstant"&gt;00&lt;/span&gt;:&lt;span class="synConstant"&gt;03&lt;/span&gt;  &lt;span class="synConstant"&gt;0&lt;/span&gt;:&lt;span class="synConstant"&gt;00&lt;/span&gt;:&lt;span class="synConstant"&gt;03&lt;/span&gt; &lt;span class="synSpecial"&gt;--:--:--&lt;/span&gt;  &lt;span class="synConstant"&gt;5643&lt;/span&gt;

&lt;span class="synComment"&gt;## Download the latest perlbrew&lt;/span&gt;
&lt;span class="synComment"&gt;## Download the packed patchperl&lt;/span&gt;

&lt;span class="synComment"&gt;## Installing perlbrew&lt;/span&gt;
The perlbrew is installed as:

    ~/perl5/perlbrew/bin/perlbrew

You may trash the downloaded /tmp/perlbrew from now on.

Perlbrew environment initiated, required directories are created under

    ~/perl5/perlbrew

Paste the following line&lt;span class="synStatement"&gt;(&lt;/span&gt;s&lt;span class="synStatement"&gt;)&lt;/span&gt; to the end of your ~/.bashrc and &lt;span class="synStatement"&gt;start&lt;/span&gt; a
new shell, perlbrew should be up and fully functional from there:

    &lt;span class="synStatement"&gt;source&lt;/span&gt; ~/perl5/perlbrew/etc/bashrc

For further instructions, simply run &lt;span class="synSpecial"&gt;`perlbrew`&lt;/span&gt; to see the &lt;span class="synStatement"&gt;help&lt;/span&gt; message.

Enjoy perlbrew at &lt;span class="synPreProc"&gt;$HOME&lt;/span&gt;&lt;span class="synStatement"&gt;!!&lt;/span&gt;
&lt;span class="synComment"&gt;## Installing patchperl&lt;/span&gt;

&lt;span class="synComment"&gt;## Done.&lt;/span&gt;
&lt;/pre&gt;&lt;p&gt;インストール自体は、インストール用シェルスクリプトをダウンロードして実行するだけ。Fedora 15にはyumのupdatesリポジトリにperlbrewがあったりするけど、ちょっとバージョン古いし、変なところにインストールされるより、ホームディレクトリに入れた方が収まりが良さそうだったので使いませんでした。&lt;/p&gt;
&lt;pre class="syntax-highlight"&gt;
+&lt;span class="synIdentifier"&gt;PERLBREW_VERSION&lt;/span&gt;=&lt;span class="synConstant"&gt;0&lt;/span&gt;.&lt;span class="synConstant"&gt;29&lt;/span&gt;
-&lt;span class="synIdentifier"&gt;PATH&lt;/span&gt;=/usr/lib64/ccache:/usr/&lt;span class="synStatement"&gt;local&lt;/span&gt;/bin:/usr/bin:/bin:/usr/&lt;span class="synStatement"&gt;local&lt;/span&gt;/sbin:/usr/sbin:/sbin:/home/myuser/bin
+&lt;span class="synIdentifier"&gt;PERLBREW_ROOT&lt;/span&gt;=/home/myuser/perl5/perlbrew
+&lt;span class="synIdentifier"&gt;PATH&lt;/span&gt;=/home/myuser/perl5/perlbrew/bin:/usr/lib64/ccache:/usr/&lt;span class="synStatement"&gt;local&lt;/span&gt;/bin:/usr/bin:/bin:/usr/&lt;span class="synStatement"&gt;local&lt;/span&gt;/sbin:/usr/sbin:/sbin:/home/myuser/bin
+&lt;span class="synIdentifier"&gt;PERLBREW_HOME&lt;/span&gt;=/home/myuser/.perlbrew
+&lt;span class="synIdentifier"&gt;PATH_WITHOUT_PERLBREW&lt;/span&gt;=/usr/lib64/ccache:/usr/&lt;span class="synStatement"&gt;local&lt;/span&gt;/bin:/usr/bin:/bin:/usr/&lt;span class="synStatement"&gt;local&lt;/span&gt;/sbin:/usr/sbin:/sbin:/home/myuser/bin
+&lt;span class="synIdentifier"&gt;PERLBREW_PATH&lt;/span&gt;=/home/myuser/perl5/perlbrew/bin
&lt;/pre&gt;&lt;p&gt;インストール直後に~/.bashrcに&lt;code&gt;source ~/perl5/perlbrew/etc/bashrc&lt;/code&gt;を追記するように指示が書いてあるのでその通りにします。上記は、この&lt;code&gt;~/perl5/perlbrew/etc/bashrc&lt;/code&gt;を読む前と読んだ後の、&lt;code&gt;printenv&lt;/code&gt;をdiffしたものです。&lt;/p&gt;
&lt;h4&gt;インストール後に確認した事&lt;/h4&gt;
&lt;pre class="syntax-highlight"&gt;
$ cat .perlbrew/init
&lt;span class="synStatement"&gt;export&lt;/span&gt; &lt;span class="synIdentifier"&gt;PERLBREW_VERSION&lt;/span&gt;=&lt;span class="synConstant"&gt;0&lt;/span&gt;.&lt;span class="synConstant"&gt;29&lt;/span&gt;
&lt;span class="synStatement"&gt;export&lt;/span&gt; &lt;span class="synIdentifier"&gt;PERLBREW_PATH&lt;/span&gt;=/home/myuser/perl5/perlbrew/bin
&lt;span class="synStatement"&gt;export&lt;/span&gt; &lt;span class="synIdentifier"&gt;PERLBREW_ROOT&lt;/span&gt;=/home/myuser/perl5/perlbrew
&lt;/pre&gt;&lt;p&gt;&lt;code&gt;~/perl5/perlbrew/etc/bashrc&lt;/code&gt;から&lt;code&gt;.perlbrew/init&lt;/code&gt;が呼ばれ、環境変数を設定しているみたい。&lt;/p&gt;
&lt;pre class="syntax-highlight"&gt;
$ which perlbrew 
~/perl5/perlbrew/bin/perlbrew
$ perlbrew version
/home/myuser/perl5/perlbrew/bin/perlbrew  - App::perlbrew/&lt;span class="synConstant"&gt;0&lt;/span&gt;.&lt;span class="synConstant"&gt;29&lt;/span&gt;
$ perlbrew available
  perl&lt;span class="synConstant"&gt;-5&lt;/span&gt;.&lt;span class="synConstant"&gt;15&lt;/span&gt;.&lt;span class="synConstant"&gt;3&lt;/span&gt;
  perl&lt;span class="synConstant"&gt;-5&lt;/span&gt;.&lt;span class="synConstant"&gt;14&lt;/span&gt;.&lt;span class="synConstant"&gt;2&lt;/span&gt;
  perl&lt;span class="synConstant"&gt;-5&lt;/span&gt;.&lt;span class="synConstant"&gt;12&lt;/span&gt;.&lt;span class="synConstant"&gt;4&lt;/span&gt;
  perl&lt;span class="synConstant"&gt;-5&lt;/span&gt;.&lt;span class="synConstant"&gt;10&lt;/span&gt;.&lt;span class="synConstant"&gt;1&lt;/span&gt;
  perl&lt;span class="synConstant"&gt;-5&lt;/span&gt;.&lt;span class="synConstant"&gt;8&lt;/span&gt;.&lt;span class="synConstant"&gt;9&lt;/span&gt;
  perl&lt;span class="synConstant"&gt;-5&lt;/span&gt;.&lt;span class="synConstant"&gt;6&lt;/span&gt;.&lt;span class="synConstant"&gt;2&lt;/span&gt;
  perl5.005_04
  perl5.004_05
  perl5.003_07
$ perlbrew list
* /usr/bin/perl &lt;span class="synStatement"&gt;(&lt;/span&gt;&lt;span class="synConstant"&gt;5&lt;/span&gt;.&lt;span class="synConstant"&gt;12&lt;/span&gt;.&lt;span class="synConstant"&gt;4&lt;/span&gt;&lt;span class="synStatement"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;p&gt;パスとかバージョンとか、perlbrewがインストールできるperlのバージョンとか。&lt;/p&gt;
&lt;pre class="syntax-highlight"&gt;
$ perlbrew &lt;span class="synStatement"&gt;install&lt;/span&gt; perl&lt;span class="synConstant"&gt;-5&lt;/span&gt;.&lt;span class="synConstant"&gt;12&lt;/span&gt;.&lt;span class="synConstant"&gt;4&lt;/span&gt;
Fetching perl&lt;span class="synConstant"&gt;-5&lt;/span&gt;.&lt;span class="synConstant"&gt;12&lt;/span&gt;.&lt;span class="synConstant"&gt;4&lt;/span&gt; as /home/myuser/perl5/perlbrew/dists/perl&lt;span class="synConstant"&gt;-5&lt;/span&gt;.&lt;span class="synConstant"&gt;12&lt;/span&gt;.&lt;span class="synConstant"&gt;4&lt;/span&gt;.tar.gz
Installing /home/myuser/perl5/perlbrew/build/perl&lt;span class="synConstant"&gt;-5&lt;/span&gt;.&lt;span class="synConstant"&gt;12&lt;/span&gt;.&lt;span class="synConstant"&gt;4&lt;/span&gt; into ~/perl5/perlbrew/perls/perl&lt;span class="synConstant"&gt;-5&lt;/span&gt;.&lt;span class="synConstant"&gt;12&lt;/span&gt;.&lt;span class="synConstant"&gt;4&lt;/span&gt;

This could take a &lt;span class="synStatement"&gt;while. You can run the following command on another shell to track the status:&lt;/span&gt;

&lt;span class="synStatement"&gt;  tail -f ~/perl5/perlbrew/build.log&lt;/span&gt;

&lt;span class="synStatement"&gt;Installed /home/myuser/perl5/perlbrew/build/perl&lt;/span&gt;&lt;span class="synConstant"&gt;-5&lt;/span&gt;&lt;span class="synStatement"&gt;.&lt;/span&gt;&lt;span class="synConstant"&gt;12&lt;/span&gt;&lt;span class="synStatement"&gt;.&lt;/span&gt;&lt;span class="synConstant"&gt;4&lt;/span&gt;&lt;span class="synStatement"&gt; as perl&lt;/span&gt;&lt;span class="synConstant"&gt;-5&lt;/span&gt;&lt;span class="synStatement"&gt;.&lt;/span&gt;&lt;span class="synConstant"&gt;12&lt;/span&gt;&lt;span class="synStatement"&gt;.&lt;/span&gt;&lt;span class="synConstant"&gt;4&lt;/span&gt;&lt;span class="synStatement"&gt; successfully. Run the following command to switch to it.&lt;/span&gt;

&lt;span class="synStatement"&gt;  perlbrew switch perl&lt;/span&gt;&lt;span class="synConstant"&gt;-5&lt;/span&gt;&lt;span class="synStatement"&gt;.&lt;/span&gt;&lt;span class="synConstant"&gt;12&lt;/span&gt;&lt;span class="synStatement"&gt;.&lt;/span&gt;&lt;span class="synConstant"&gt;4&lt;/span&gt;

&lt;/pre&gt;&lt;p&gt;perlbrewでのperlのインストールは、こんな感じです。ビルドログをずらずらと出さずに、見たかったら&lt;code&gt;tail -f&lt;/code&gt;で見させるってのは、ログが流れないのでその後の指示を見逃したりしなくて、いい感じ。&lt;/p&gt;
&lt;h4&gt;環境&lt;/h4&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;td&gt;Linux&lt;/td&gt;
&lt;td&gt;Fedora 15&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;perlbbrew&lt;/td&gt;
&lt;td&gt;App::perlbrew/0.29&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/planet-cakephp-aggregator-all/~4/1UPMdac7L54" height="1" width="1"/&gt;</description>
 <category domain="http://planetcakephp.org/aggregator/languages/japanese">日本語</category>
 <pubDate>Tue, 15 Nov 2011 03:40:50 +0000</pubDate>
 <dc:creator>kanonji</dc:creator>
 <guid isPermaLink="false">6848 at http://planetcakephp.org</guid>
</item>
<item>
 <title>Installing multiple versions of PHP from source</title>
 <link>http://mark-story.com/posts/view/installing-multiple-versions-of-php-from-source?utm_source%3Drss</link>
 <description>&lt;p&gt;With the recent release of PHP 5.4-RC1, I wanted to give it a spin and make sure there weren’t any upcoming issues for CakePHP.  I recently saw a great article from Derick Rethans on getting PHP setup from an SVN checkout.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/planet-cakephp-aggregator-all/~4/W5KHocILX5w" height="1" width="1"/&gt;</description>
 <category domain="http://planetcakephp.org/aggregator/languages/english">English</category>
 <pubDate>Mon, 14 Nov 2011 02:56:55 +0000</pubDate>
 <dc:creator>Mark Story</dc:creator>
 <guid isPermaLink="false">6837 at http://planetcakephp.org</guid>
</item>
<item>
 <title>Quote: human nature in super-capitalism</title>
 <link>http://j4vk.com/wordpress/2011/11/quote-human-nature-in-super-capitalism/</link>
 <description>&lt;p&gt;In all domains of our everyday lives, from eating habits to sexual behavior and professional&lt;br /&gt;
success, there are fewer and fewer prohibitions, and more and more norms-ideals to follow.&lt;br /&gt;
[. . .] In our late capitalist universe, the subject is not guilty when he infringes a prohibition. It&lt;br /&gt;
is far more likely that he feels guilty when (or, rather, because) he is not happy – the&lt;br /&gt;
command to be happy is perhaps the ultimate superego injunction (&lt;a title="Slavoj Zizek" href="http://en.wikipedia.org/wiki/Slavoj_%C5%BDi%C5%BEek"&gt;Zizek&lt;/a&gt;, 2005, p. 225).&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/planet-cakephp-aggregator-all/~4/l25dqQ7wk_c" height="1" width="1"/&gt;</description>
 <category domain="http://planetcakephp.org/aggregator/languages/english">English</category>
 <pubDate>Sat, 12 Nov 2011 17:58:46 +0000</pubDate>
 <dc:creator>Andrey Vystavkin</dc:creator>
 <guid isPermaLink="false">6836 at http://planetcakephp.org</guid>
</item>
<item>
 <title>Sendmail in Development Environment</title>
 <link>http://dojo.codegreene.com/2011/11/sendmail-in-development-environment/?utm_source%3Drss%26utm_medium%3Drss%26utm_campaign%3Dsendmail-in-development-environment</link>
 <description>&lt;p&gt;A few times in my career, I’ve had the need to test emailing in one form or another. I’ve also had the unfortunate experience of accidentally sending a test email to a real person. As you can imagine, this may cause confusion, embarrassment, lectures, and possibly the death of a small pixie or two. Fortunately, there IS a preventative measure you can take.&lt;br /&gt;
When it comes to mail() (as well as many other things), PHP prefers to delegate the heavy lifting to another piece of software: sendmail (or a sendmail compatible command-line mail transport agent). By default, PHP will call your sendmail binary, and pass it the entire message, after composing it from the headers and body supplied by the developer.&lt;br /&gt;
One of the side-benefits to this system is the ability to override PHP’s default, and seamlessly hook in your own sendmail-esque binary or script. My favorite parts of this hack, is that it doesn’t require a recompile of PHP or anything all too complicated, just a small change to your &lt;strong&gt;php.ini&lt;/strong&gt; file.&lt;br /&gt;
So, without further delay, the magic:&lt;br /&gt;
In your php.ini file, change your sendmail path:&lt;br /&gt;
sendmail_path=/usr/local/bin/trapmail&lt;br /&gt;
And here’s what the script should have in it:&lt;br /&gt;
you@devserver:~$ cat /usr/local/bin/trapmail&lt;br /&gt;
formail -R cc X-original-cc \&lt;br /&gt;
-R to X-original-to \&lt;br /&gt;
-R bcc X-original-bcc \&lt;br /&gt;
-f -A"To: devteam@example.com" \&lt;br /&gt;
| /usr/sbin/sendmail -t -i&lt;br /&gt;
And what does this do? It traps all mail that would normally go OUT (say, to a customer), and instead, delivers it to &lt;a href="mailto:devteam@example.com"&gt;devteam@example.com&lt;/a&gt; (with the original fields renamed for debugging purposes). Disaster avoided and pixies are forever in your debt!&lt;br /&gt;
Edit: Dont forget to make your trapmail script executable!&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/planet-cakephp-aggregator-all/~4/DsJFxFj_8oc" height="1" width="1"/&gt;</description>
 <category domain="http://planetcakephp.org/aggregator/languages/english">English</category>
 <pubDate>Fri, 11 Nov 2011 16:40:35 +0000</pubDate>
 <dc:creator>The Code Dojo</dc:creator>
 <guid isPermaLink="false">6835 at http://planetcakephp.org</guid>
</item>
<item>
 <title>R.I.P. Cake-toppings blog</title>
 <link>http://www.cake-toppings.com/2011/11/11/r-i-p-cake-toppings-blog/?utm_source%3Drss%26utm_medium%3Drss%26utm_campaign%3Dr-i-p-cake-toppings-blog</link>
 <description>&lt;p&gt;Hi all, It has been a long time… As I am moving more and more from backend to frontend stuff and a lot of people/blogs are writing about Cake I thought my blog could be shutdown. If you want to take over the domain or just want to have the admin rights of this blog [...]&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/planet-cakephp-aggregator-all/~4/QFpx4w1sGzU" height="1" width="1"/&gt;</description>
 <category domain="http://planetcakephp.org/aggregator/languages/english">English</category>
 <pubDate>Fri, 11 Nov 2011 10:37:13 +0000</pubDate>
 <dc:creator>Charlie van de Kerkhof</dc:creator>
 <guid isPermaLink="false">6834 at http://planetcakephp.org</guid>
</item>
<item>
 <title>Of bits and butterfly effects</title>
 <link>http://feedproxy.google.com/~r/snookca/~3/iVtRRwN3gOo/of-bits-and-butterfly-effects</link>
 <description>&lt;p&gt;&lt;a href="http://www.flickr.com/photos/jonathansnook/6337526889/"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I've never been so vain as to think I'll have much impact on the world. I never wanted to be president. I never wanted to be a doctor. I'll almost assuredly never go to war to fight for my freedom and the freedom of others. Way too much responsibility.&lt;/p&gt;
&lt;p&gt;Instead, I grew up making virtual things. Apparently, even making physical things was too much. I push bits around as if I'm doing something productive. It's like a reflection of what I see of the grand scheme of things. It's all rather fleeting. &lt;/p&gt;
&lt;p&gt;My children are not of my own making. They do not have my genetic material. I was there when they were born and I have continued to shape their lives ever since, nudging them in one direction or another. We are influenced by so many people over the course of our lives. I may have been one of the first but certainly not the last to have an impact on my children. &lt;/p&gt;
&lt;p&gt;I have no grand vision of saving the world. I don't expect to be written about in the history books for centuries to come. At some point, we're all forgotten. Most sooner than later.&lt;/p&gt;
&lt;p&gt;I recognize that looked at through a certain lens, this can all seem rather bleak. "Why bother?" you might ask. "Do something great," you might say.&lt;/p&gt;
&lt;p&gt;Life comes and life goes and that I have but a brief moment in the long chain of time to enjoy that is amazing. That I get to live the life I've led (and hope to continue to lead) is amazing. That I have a modicum of influence on anybody is amazing.&lt;/p&gt;
&lt;p&gt;To bastardize BSAF's marketing of yesteryear, "I don't make things, I make things better." I've never considered myself very original. I just try and put the pieces I have together in a slightly different way than before. I show others what I do in hopes of inspiring them to make things a little better.&lt;/p&gt;
&lt;p&gt;Every email of thanks that I have received, the collective of virtual bits, has been an affirmation of that. Having someone tell me how one thing that I did has influenced their life for the better is deeply gratifying. It's a confirmation that I have indeed nudged the universe—even if just in some small, tiny way. &lt;/p&gt;
&lt;p&gt;And so I'll go on pushing my bits around. Each bit I change has an opportunity to nudge someone else to change, hopefully for the better.&lt;br /&gt;
&lt;a href="http://feeds.feedburner.com/~ff/snookca?a%3DiVtRRwN3gOo:rDCcQlgG_Fo:yIl2AUoC8zA"&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/snookca?a%3DiVtRRwN3gOo:rDCcQlgG_Fo:F7zBnMyn0Lo"&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/snookca?a%3DiVtRRwN3gOo:rDCcQlgG_Fo:gIN9vFwOqvQ"&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/planet-cakephp-aggregator-all/~4/4kXgvwvvquY" height="1" width="1"/&gt;</description>
 <category domain="http://planetcakephp.org/aggregator/languages/english">English</category>
 <pubDate>Thu, 10 Nov 2011 22:01:37 +0000</pubDate>
 <dc:creator>Jonathon Snook</dc:creator>
 <guid isPermaLink="false">6832 at http://planetcakephp.org</guid>
</item>
<item>
 <title>[Vagrant] Vagrant がいまいち人気がない理由</title>
 <link>http://d.hatena.ne.jp/okinaka/20111110/1320934783</link>
 <description>&lt;p&gt;&lt;a href="http://vagrantup.com/" target="_blank"&gt;http://vagrantup.com/&lt;/a&gt;&lt;br /&gt;
			とても素晴らしいコンセプトで、手放せなくなりつつある Vagrant。ネタにしてもいまいち反応が薄いのはなぜだろう？とりあえず、思いつくものを列挙。&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt; 知名度が圧倒的に低い。&lt;/li&gt;
&lt;li&gt; VMWare に対応していない。&lt;/li&gt;
&lt;li&gt; Chef や Puppet はハードルが高い。&lt;/li&gt;
&lt;li&gt; まだまだ不安定。デグレードも頻繁。&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;			私が Vagrant という名前を知ったのは去年の今頃で、試し始めたのは半年前からなので、あまり偉そうなことは言えないのだが、一番悩ましいのは、まだちゃんと動いてくれないことw&lt;br /&gt;
			Linux や MacOS X なら比較的安心して利用できるのだが、Windows での完全な動作は期待しない方がいい。(例えば Windows で vagrant ssh が使えないのは仕様だしw）&lt;br /&gt;
			バージョンアップで不安定になることもよくある。複数の製品を組み合わせている関係で、Vagrant 側に問題が無くても ruby や gems や VirtualBox の更新で動かなくなったり。あと、Vagrant の開発は、個人による開発なのでどうしても進捗が芳しくない。ruby 製とはいえ、Vagrant はとても複雑だから自分ではなかなかいじれないので、協力者が増えてくれればなぁと思いつつ、たまにバグレポートして、のんびり待つことにしている。&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/planet-cakephp-aggregator-all/~4/ak7J_6Ez3cU" height="1" width="1"/&gt;</description>
 <category domain="http://planetcakephp.org/aggregator/languages/japanese">日本語</category>
 <pubDate>Thu, 10 Nov 2011 14:19:43 +0000</pubDate>
 <dc:creator>エンジニアきまぐれTips</dc:creator>
 <guid isPermaLink="false">6833 at http://planetcakephp.org</guid>
</item>
<item>
 <title>[Python]Pythonの環境構築の自分なりのまとめ+エキスパートPythonプログラミング読書会 第二期 01に行ってきました。</title>
 <link>http://d.hatena.ne.jp/kanonji/20111110/1320916100</link>
 <description>&lt;div class="section"&gt;
&lt;p&gt;&lt;a href="http://atnd.org/events/21166" target="_blank"&gt;エキスパートPythonプログラミング読書会 第二期 01 : ATND&lt;/a&gt;に行ってきました。補欠で7人目だったので無理かなと思ってたけど、結果としては補欠が全員繰り上がってぴったり30人となりました。実はエキスパートPythonプログラミングをまだ持ってなかったので、慌てて本屋を回って買ったという。&lt;/p&gt;
&lt;p&gt;今回は「第1章 さあ、はじめよう」で、Pythonの環境を構築する章だったけど、ちょうど10月頃にPython製のプログラムを使ってみたくて、環境構築をしてみたとこだったのでいい話が聞けました。自分でやった環境構築と聞いた話をあわせて、とりあえず自分なりの環境構築をまとめてみます。&lt;/p&gt;
&lt;h4&gt;環境構築&lt;/h4&gt;
&lt;h5&gt;pythonbrewを入れる&lt;/h5&gt;
&lt;pre class="syntax-highlight"&gt;
$ curl &lt;span class="synSpecial"&gt;-L&lt;/span&gt; &lt;a href="http://xrl.us/pythonbrewinstall" title="http://xrl.us/pythonbrewinstall"&gt;http://xrl.us/pythonbrewinstall&lt;/a&gt; &lt;span class="synStatement"&gt;|&lt;/span&gt; sh
&lt;/pre&gt;&lt;h5&gt;pythonbrewでpythonを入れる&lt;/h5&gt;
&lt;pre class="syntax-highlight"&gt;
$ pythonbrew &lt;span class="synStatement"&gt;install&lt;/span&gt; &lt;span class="synSpecial"&gt;--no-setuptools&lt;/span&gt; &lt;span class="synConstant"&gt;2&lt;/span&gt;.&lt;span class="synConstant"&gt;7&lt;/span&gt;.&lt;span class="synConstant"&gt;2&lt;/span&gt;
&lt;/pre&gt;&lt;p&gt;&lt;code&gt;--no-setuptools&lt;/code&gt;を付けない場合、pythonbrewはsetuptoolsとpipを合わせて入れるようです。pipはともかく、setuptoolsは開発が止まっていて代替として登場したdistributeを入れたほうがいいらしいです。なので、setuptoolsを入れられるのはちょっと困ります。&lt;/p&gt;
&lt;p&gt;〓以下、追記〓&lt;/p&gt;
&lt;blockquote title="http://d.hatena.ne.jp/kanonji/20111110/1320916100#c1320916990" cite="http://d.hatena.ne.jp/kanonji/20111110/1320916100#c1320916990"&gt;
&lt;p&gt;setuptoolsが入っている状態で easy_install distribute すれば大丈夫ですよ。&lt;/p&gt;
&lt;p&gt;そうすればvirtualenvなども easy_install virtualenv で済むので良いですね。&lt;/p&gt;
&lt;p&gt;			&lt;cite&gt;&lt;a href="http://d.hatena.ne.jp/kanonji/20111110/1320916100#c1320916990" target="_blank"&gt;http://d.hatena.ne.jp/kanonji/20111110/1320916100#c1320916990&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;a href="http://d.hatena.ne.jp/shimizukawa/"&gt;id:shimizukawa&lt;/a&gt;さんにコメントで補足してもらいました。合計3つ補足を追記しました。&lt;/p&gt;
&lt;p&gt;これは上書きとかになるのかな。今度試してみたい。&lt;/p&gt;
&lt;h5&gt;virtualenvでdistributeを入れつつ仮想環境を作る&lt;/h5&gt;
&lt;pre class="syntax-highlight"&gt;
$ pythonbrew use &lt;span class="synConstant"&gt;2&lt;/span&gt;.&lt;span class="synConstant"&gt;7&lt;/span&gt;.&lt;span class="synConstant"&gt;2&lt;/span&gt;
$ python virtualenv.py &lt;span class="synSpecial"&gt;--distribute&lt;/span&gt; ~/.pythonbrew/virtualenvs/python&lt;span class="synConstant"&gt;-2&lt;/span&gt;.&lt;span class="synConstant"&gt;7&lt;/span&gt;.2a
$ &lt;span class="synStatement"&gt;source&lt;/span&gt; .pythonbrew/virtualenvs/python&lt;span class="synConstant"&gt;-2&lt;/span&gt;.&lt;span class="synConstant"&gt;7&lt;/span&gt;.2a/bin/activate
&lt;span class="synStatement"&gt;(&lt;/span&gt;python&lt;span class="synConstant"&gt;-2&lt;/span&gt;.&lt;span class="synConstant"&gt;7&lt;/span&gt;.2a&lt;span class="synStatement"&gt;)&lt;/span&gt;
$ &lt;span class="synStatement"&gt;type&lt;/span&gt; python
python is /home/myuser/.pythonbrew/virtualenvs/python&lt;span class="synConstant"&gt;-2&lt;/span&gt;.&lt;span class="synConstant"&gt;7&lt;/span&gt;.2a/bin/python
$ &lt;span class="synStatement"&gt;type&lt;/span&gt; easy_install
easy_install is /home/myuser/.pythonbrew/virtualenvs/python&lt;span class="synConstant"&gt;-2&lt;/span&gt;.&lt;span class="synConstant"&gt;7&lt;/span&gt;.2a/bin/easy_install
$ &lt;span class="synStatement"&gt;type&lt;/span&gt; pip
pip is /home/myuser/.pythonbrew/virtualenvs/python&lt;span class="synConstant"&gt;-2&lt;/span&gt;.&lt;span class="synConstant"&gt;7&lt;/span&gt;.2a/bin/pip
&lt;/pre&gt;&lt;p&gt;virtualenvは&lt;code&gt;--distribute&lt;/code&gt;を使うと、setuptoolsの代わりにdistributeを入れてくれます。まず&lt;code&gt;pythonbrew use 2.7.2&lt;/code&gt;でpythonbrewで入れたpython 2.7.2に切り替え&lt;span class="footnote"&gt;&lt;a href="http://d.hatena.ne.jp/kanonji/#f1" name="fn1" title="useの場合は現在のシェルでのみ一時的に切り替え、switchで恒久的に切り替える。"&gt;*1&lt;/a&gt;&lt;/span&gt;それを親としてpython-2.7.2aという仮想環境を作っています。distributeがセットで入ったので、easy_installが使える状態になります。&lt;/p&gt;
&lt;p&gt;ちなみに、virtualenv.pyは&lt;a href="http://pypi.python.org/pypi/virtualenv" target="_blank"&gt;virtualenv 1.6.4 : Python Package Index&lt;/a&gt;からダウンロードします。&lt;/p&gt;
&lt;h5&gt;補足&lt;/h5&gt;
&lt;p&gt;後述の読書会で見聞きした話によると、virtualenvで作った環境は、親にdistributeをインストール済みであれば、それを使うらしいです。そうすると、virtualenvで仮想化しつつdistributeを入れるより、pythonbrewで入れたpythonにdistributeを入れておいた方がすっきりするかもしれない。&lt;/p&gt;
&lt;blockquote title="no title" cite="http://www.freia.jp/taka/docs/pyhack4/environments.html"&gt;
&lt;p&gt;個人的には virtualenv + distribute 環境下で buildout + distribute を使うのが良いように思います。&lt;/p&gt;
&lt;p&gt;			&lt;cite&gt;&lt;a href="http://www.freia.jp/taka/docs/pyhack4/environments.html" target="_blank"&gt;no title&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;あと、buildoutというものもあるらしく、上記の通りvirtualenvで作った仮想環境にbuildoutを入れるという手があるみたいです。ただbuildoutが何だかわかって無いので、今度試してみたいところ。&lt;/p&gt;
&lt;p&gt;〓以下、追記〓&lt;/p&gt;
&lt;blockquote title="http://d.hatena.ne.jp/kanonji/20111110/1320916100#c1320916990" cite="http://d.hatena.ne.jp/kanonji/20111110/1320916100#c1320916990"&gt;
&lt;p&gt;buildoutを使うときは必ずしもvirtualenv環境下でなくても良いです。自分はbuildoutのみ使っています。&lt;/p&gt;
&lt;p&gt;ただbuildoutの概念は超簡単、ではないので、必要になるまでは使わなくてもいいかも。&lt;/p&gt;
&lt;p&gt;			&lt;cite&gt;&lt;a href="http://d.hatena.ne.jp/kanonji/20111110/1320916100#c1320916990" target="_blank"&gt;http://d.hatena.ne.jp/kanonji/20111110/1320916100#c1320916990&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;a href="http://d.hatena.ne.jp/shimizukawa/"&gt;id:shimizukawa&lt;/a&gt;さんのコメントでの補足2。&lt;/p&gt;
&lt;h4&gt;読書会で見聞きした事&lt;/h4&gt;
&lt;p&gt;読書会で見聞きした事なので、もしかしたら聞き間違い・勘違いを含むかもしれません。&lt;/p&gt;
&lt;h5&gt;pipとeasy_installは混ぜるな危険&lt;/h5&gt;
&lt;p&gt;pipとeasy_installはインストールの形式が違うらしいです。&lt;/p&gt;
&lt;p&gt;〓以下、追記〓&lt;/p&gt;
&lt;blockquote title="http://d.hatena.ne.jp/kanonji/20111110/1320916100#c1320916990" cite="http://d.hatena.ne.jp/kanonji/20111110/1320916100#c1320916990"&gt;
&lt;p&gt;混ぜてもライブラリ機能的な影響はないですがeasy_installで入れたものはpip uninstallやpip freezeなどの対象になりません。&lt;/p&gt;
&lt;p&gt;混ぜると利用者が混乱するので注意が必要です。&lt;/p&gt;
&lt;p&gt;			&lt;cite&gt;&lt;a href="http://d.hatena.ne.jp/kanonji/20111110/1320916100#c1320916990" target="_blank"&gt;http://d.hatena.ne.jp/kanonji/20111110/1320916100#c1320916990&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;a href="http://d.hatena.ne.jp/shimizukawa/"&gt;id:shimizukawa&lt;/a&gt;さんのコメントでの補足3。&lt;/p&gt;
&lt;p&gt;〓追記ここまで〓&lt;/p&gt;
&lt;blockquote title="pipで入れた場合" cite="http://d.hatena.ne.jp/kanonji"&gt;
&lt;p&gt;$ ls site-packages/blockdiag* -1&lt;/p&gt;
&lt;p&gt;site-packages/blockdiag_sphinxhelper.py&lt;/p&gt;
&lt;p&gt;site-packages/blockdiag_sphinxhelper.pyc&lt;/p&gt;
&lt;p&gt;site-packages/blockdiag&lt;/p&gt;
&lt;p&gt;site-packages/blockdiag-1.0.2-py2.7.egg-info&lt;/p&gt;
&lt;p&gt;			&lt;cite&gt;&lt;a href="http://d.hatena.ne.jp/kanonji" target="_blank"&gt;pipで入れた場合&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;blockquote title="easy_installで入れた場合" cite="http://d.hatena.ne.jp/kanonji"&gt;
&lt;p&gt;$ls site-packages/blockdiag-1.0.2-py2.7.egg/&lt;/p&gt;
&lt;p&gt;EGG-INFO  blockdiag  blockdiag_sphinxhelper.py  blockdiag_sphinxhelper.pyc&lt;/p&gt;
&lt;p&gt;			&lt;cite&gt;&lt;a href="http://d.hatena.ne.jp/kanonji" target="_blank"&gt;easy_installで入れた場合&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;この様に、ファイルの置き方が違います。&lt;/p&gt;
&lt;p&gt;あと、easy_installは.eggというファイルからパッケージを入れられるが、pipは出来ないとの事。これは.eggがコンパイル済みのファイルをzipで固めたもので、pipは必ずソースからコンパイルをする仕組みだという話を聞きました。コンパイルに、python以外のソフトウェアが必要なパッケージの場合、pipで入れようとするとコンパイル出来ずに失敗するんだとか。&lt;/p&gt;
&lt;h5&gt;virtualenvは仮想化に必要なファイルだけを作成し、残りは親を参照する&lt;/h5&gt;
&lt;p&gt;見出しの通り、らしいです。&lt;/p&gt;
&lt;pre class="syntax-highlight"&gt;
$ virtualenv &lt;span class="synSpecial"&gt;--no-site-packages&lt;/span&gt; my_env
&lt;/pre&gt;&lt;p&gt;site-packagesも親のを使うので、親から独立した仮想環境を作りたい場合は&lt;code&gt;--no-site-packages&lt;/code&gt;オプションをつける。これは&lt;code&gt;sys.path&lt;/code&gt;に親のsite-packagesへのパスが入るか入らないかになるとのことです。逆に、親のsite-packagesを利用していれば、仮想環境を作った後に親でパッケージをインストールすると、仮想環境でもそのパッケージが使える。ただ、例外もあるらしく、例えばipythonは親のを仮想環境で使うことが出来ないらしい。&lt;/p&gt;
&lt;h5&gt;pipとeasy_installの今後&lt;/h5&gt;
&lt;blockquote title="http://shimizukawa.bitbucket.org/python-distribute-ja/introduction.html#state-of-packaging-info" cite="http://shimizukawa.bitbucket.org/python-distribute-ja/introduction.html#state-of-packaging-info"&gt;
&lt;p&gt;&lt;a href="http://f.hatena.ne.jp/kanonji/20111110123734" class="hatena-fotolife" target="_blank"&gt;&lt;img src="http://cdn-ak.f.st-hatena.com/images/fotolife/k/kanonji/20111110/20111110123734.jpg" alt="f:id:kanonji:20111110123734j:image" title="f:id:kanonji:20111110123734j:image" class="hatena-fotolife" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;			&lt;cite&gt;&lt;a href="http://shimizukawa.bitbucket.org/python-distribute-ja/introduction.html#state-of-packaging-info" target="_blank"&gt;http://shimizukawa.bitbucket.org/python-distribute-ja/introduction.html#state-of-packaging-info&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;setuptoolsとdistributeはdistutilsを拡張したもので、将来的にはPythonに取り込まれたdistutils2とpipを使う形になるっぽい。先の話なので、当面はdistributeのeasy_installを使うかpipを使うのがいいのかな。&lt;/p&gt;
&lt;h5&gt;その他&lt;/h5&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href="http://bpython-interpreter.org/" target="_blank"&gt;bpython interpreter&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;WindowsのCUIにConsole2+nyoasがいいらしい&lt;/li&gt;
&lt;li&gt;PyPyはPythonで作られたPythonの処理系で、CPythonよりも早いらしい。わけが分からない。&lt;/li&gt;
&lt;li&gt;vimユーザー多数&lt;span class="footnote"&gt;&lt;a href="http://d.hatena.ne.jp/kanonji/#f2" name="fn2" title="読書会の参加者を対象に挙手調査による。"&gt;*2&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.freia.jp/taka/docs/pyhack4/environments.html" target="_blank"&gt;no title&lt;/a&gt;Pythonの環境構築に使うツールについては、ここがまとまりすぎ。&lt;/li&gt;
&lt;li&gt;&lt;a href="http://sanojimaru.com/654" target="_blank"&gt;  vimで保存時に行末のスペースを削除する » sanojimaru.com&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;余談&lt;/h4&gt;
&lt;blockquote title="404 Not Found" cite="http://ascii.asciimw.jp/books/books/detail/978-4-04-868629-7.shtml"&gt;
&lt;p&gt;第2章 構文ベストプラクティス ―― クラス以外&lt;/p&gt;
&lt;p&gt;2.1 リスト内包表記&lt;/p&gt;
&lt;p&gt;2.2 イテレータとジェネレータ&lt;/p&gt;
&lt;p&gt;2.3 デコレータ&lt;/p&gt;
&lt;p&gt;2.4 withとcontextlib&lt;/p&gt;
&lt;p&gt;2.5 まとめ&lt;/p&gt;
&lt;p&gt;			&lt;cite&gt;&lt;a href="http://ascii.asciimw.jp/books/books/detail/978-4-04-868629-7.shtml" target="_blank"&gt;エキスパートPythonプログラミング&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;次回に読むであろうエキPyの2章は、ぺちぱーからすると訳が分からない構文のオンパレードです。リスト内包表記は割と便利だなーって思いましたが、ジェネレーターとwithのあたりでさらっと読むだけじゃ理解出来なくなりました。こんなPythonならではを2章に持ってくなんて。しかも、今手元にないから確認は出来ないけど、withの所にいく前に、サンプルコードにwithがしれっと書いてあった様な・・・&lt;/p&gt;
&lt;p&gt;とまぁ、内容が濃いので、2回目以降も見逃さず参加したいところです。月一という事なので、これを学習のマイルストーンにしてPythonを覚えたいです。&lt;/p&gt;
&lt;h4&gt;他の参加者のレポート&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href="http://www.flickr.com/photos/shimizukawa/sets/72157627957858951/" target="_blank"&gt;2011/11/08 エキスパートPythonプログラミング読書会2nd #1 - a set on Flickr&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://d.hatena.ne.jp/kutakutatriangle/20111109" target="_blank"&gt;2011-11-09 - プログラマ行進曲&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://kashewnuts-tech.blogspot.com/2011/11/python-01.html" target="_blank"&gt;kashew_nuts-tech: エキスパートPythonプログラミング読書会 第二期 01に参加してきました&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://necopy.heroku.com/47" target="_blank"&gt;エキPy読書会　第二期01参加しました　No.1 - 絵事後素&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://d.hatena.ne.jp/imagawa_yakata/20111108" target="_blank"&gt;エキPy読書会(第2期) 第1回に行ってきました - 今川館&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;
他の参加者のレポートを追記。他にも見つけたら随時追加するかもしれません。
&lt;/pre&gt;&lt;h4&gt;参考リンク&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href="http://atnd.org/events/21166" target="_blank"&gt;エキスパートPythonプログラミング読書会 第二期 01 : ATND&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.freia.jp/taka/docs/expertpython/reading/index.html" target="_blank"&gt;no title&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://togetter.com/li/211699" target="_blank"&gt;エキスパートPythonプログラミング読書会 第二期 01 まとめ - Togetter&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;環境&lt;/h4&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;td&gt;Linux&lt;/td&gt;
&lt;td&gt;CentOS 5.6&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;pythonbrew&lt;/td&gt;
&lt;td&gt;1.1&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;div class="footnote"&gt;
&lt;p class="footnote"&gt;&lt;a href="http://d.hatena.ne.jp/kanonji/#fn1" name="f1"&gt;*1&lt;/a&gt;：useの場合は現在のシェルでのみ一時的に切り替え、switchで恒久的に切り替える。&lt;/p&gt;
&lt;p class="footnote"&gt;&lt;a href="http://d.hatena.ne.jp/kanonji/#fn2" name="f2"&gt;*2&lt;/a&gt;：読書会の参加者を対象に挙手調査による。&lt;/p&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/planet-cakephp-aggregator-all/~4/E5Phkidg9Bg" height="1" width="1"/&gt;</description>
 <category domain="http://planetcakephp.org/aggregator/languages/japanese">日本語</category>
 <pubDate>Thu, 10 Nov 2011 09:08:20 +0000</pubDate>
 <dc:creator>kanonji</dc:creator>
 <guid isPermaLink="false">6849 at http://planetcakephp.org</guid>
</item>
<item>
 <title>Fedora 16: httpd + mod_perl issue</title>
 <link>http://j4vk.com/wordpress/2011/11/fedora-16-httpd-mod_perl-issue/</link>
 <description>&lt;p style="text-align: center;"&gt;&lt;a href="http://j4vk.com/wordpress/2011/11/fedora-16-httpd-mod_perl-issue/fedora16-wallpaper/" rel="attachment wp-att-544"&gt;&lt;img class="aligncenter size-medium wp-image-544" title="fedora16-wallpaper" src="http://j4vk.com/wordpress/uploads/2011/11/fedora16-wallpaper-300x224.png" alt="" width="300" height="224" /&gt;&lt;/a&gt;&lt;a href="http://j4vk.com/wordpress/2011/11/fedora-16-httpd-mod_perl-issue/fedora16-wallpaper/" rel="attachment wp-att-544"&gt;&lt;br /&gt;
&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Recent upgrade of Fedora 16 was smooth and silky!&lt;/p&gt;
&lt;p&gt;Apache was stuck on the mod_perl issue, however one split of the second of googling found the solution.&lt;/p&gt;
&lt;p&gt;You can either download new built rpm for mod_perl from Koji, or comment out loading of mod_perl.so from perl.conf in you Apache config, as described &lt;a title="Mod_perl and httpd - fedora 16" href="https://bugzilla.redhat.com/show_bug.cgi?id%3D730832"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/planet-cakephp-aggregator-all/~4/3QmBLcXXkv0" height="1" width="1"/&gt;</description>
 <category domain="http://planetcakephp.org/aggregator/languages/english">English</category>
 <pubDate>Thu, 10 Nov 2011 08:40:52 +0000</pubDate>
 <dc:creator>Andrey Vystavkin</dc:creator>
 <guid isPermaLink="false">6830 at http://planetcakephp.org</guid>
</item>
<item>
 <title>[工作]</title>
 <link>http://d.hatena.ne.jp/ohguma/20111110#p1</link>
 <description>&lt;p&gt;ストロベリーリナックスの３軸ディジタルコンパスモジュール HMC5883LをArduinoで試す。このセンサは1個735円で安く、インターフェースはI2C。  ググってみつけた「HMC5883L Compass Tutorial with Arduino Library - Tutorials - Love Electronics」を使うと example のスケッチでさっくりテストできた。&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/planet-cakephp-aggregator-all/~4/VF3rlAm7a1g" height="1" width="1"/&gt;</description>
 <category domain="http://planetcakephp.org/aggregator/languages/japanese">日本語</category>
 <pubDate>Thu, 10 Nov 2011 00:00:00 +0000</pubDate>
 <dc:creator>熊工房　ohgumaの凹み日記</dc:creator>
 <guid isPermaLink="false">6831 at http://planetcakephp.org</guid>
</item>
<item>
 <title>Getting up and running with virtualenv on Mac OSX Lion.</title>
 <link>http://aidanlister.com/2011/11/getting-up-and-running-with-virtualenv-on-mac-osx-lion/</link>
 <description>&lt;p&gt;I recently purchased a new Macbook Air and had forgotten all of the various steps to get &lt;em&gt;virtualenv&lt;/em&gt; up and running. Using the native Python packaged with OSX resulted in &lt;em&gt;Could not call install_name_tool — you must have Apple’s development tools installed&lt;/em&gt; which I found confusing given that, you know, I have Xcode installed.&lt;br /&gt;
Resorting to my old friend &lt;a href="http://macports.com"&gt;MacPorts&lt;/a&gt;, it took me a few tries and plenty of googling to get up and running. To save you some time should you be in a similar position, here are the commands you will need;&lt;br /&gt;
The steps required install Python, easy_install, pip and virtualenv in Mac OSX Lion:&lt;br /&gt;
&lt;code&gt;$ sudo port install python27&lt;br /&gt;
$ sudo port select --set python python27&lt;br /&gt;
$ sudo port install py27-distribute&lt;br /&gt;
$ PYDIR=`which python`;&lt;br /&gt;
$ echo "export PATH=`dirname $PYDIR`:\$PATH" &amp;gt;&amp;gt; ~/.profile&lt;br /&gt;
$ source ~/.profile&lt;br /&gt;
$ sudo easy_install -U pip&lt;br /&gt;
$ sudo pip install -U virtualenv&lt;/code&gt;&lt;br /&gt;
There’s a bit of magic in there to add pip and easy_install into your path, I found this solution to be nicer than symlinking them to your /usr/bin folder. Once this is done, you are ready to rock:&lt;br /&gt;
&lt;code&gt;$ virtualenv --no-site-packages --distribute hooray&lt;/code&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/planet-cakephp-aggregator-all/~4/tGoOsSKof0M" height="1" width="1"/&gt;</description>
 <category domain="http://planetcakephp.org/aggregator/languages/english">English</category>
 <pubDate>Wed, 09 Nov 2011 19:57:31 +0000</pubDate>
 <dc:creator>Aidan Lister</dc:creator>
 <guid isPermaLink="false">6829 at http://planetcakephp.org</guid>
</item>
<item>
 <title>[工作]</title>
 <link>http://d.hatena.ne.jp/ohguma/20111109#p1</link>
 <description>&lt;p&gt;Wikiにあるスケッチで超音波センサを試す。 seeedstudioの製品は説明が充実していて便利。   Ultra Sonic range measurement module - Wiki   この状態では、1cm小さく結果が出たが、3cmから35cmまではほぼ正確に計測できた。 10cm以下も図れるのはいいかも。&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/planet-cakephp-aggregator-all/~4/s2TSFhhfwR8" height="1" width="1"/&gt;</description>
 <category domain="http://planetcakephp.org/aggregator/languages/japanese">日本語</category>
 <pubDate>Wed, 09 Nov 2011 00:00:00 +0000</pubDate>
 <dc:creator>熊工房　ohgumaの凹み日記</dc:creator>
 <guid isPermaLink="false">6828 at http://planetcakephp.org</guid>
</item>
<item>
 <title>Sharpening the Blades: Firebug and Landing Pages</title>
 <link>http://dojo.codegreene.com/2011/11/sharpening-the-blades-firebug-and-landing-pages/?utm_source%3Drss%26utm_medium%3Drss%26utm_campaign%3Dsharpening-the-blades-firebug-and-landing-pages</link>
 <description>&lt;p&gt;Chad, &lt;a href="http://sixrevisions.com/tools/firebug-guide-web-designers/" target="_blank"&gt;Firebug Guide for Web Designers&lt;/a&gt;&lt;br /&gt;
Firebug is one of the most common developer tools used out there. I know that for me it is something I use to try to discover what is going on with a clients site and try to give some insight to the developer to fix it. So last week I came across a great article that gives a good introduction to using firebug.&lt;br /&gt;
Mark, &lt;a href="http://unbounce.com/landing-page-examples/your-landing-page-sucks/" target="_blank"&gt;Your Landing Page Sucks! &lt;/a&gt;&lt;br /&gt;
When we do our planning here at Code Greene we always wait until the end to do the homepage with our clients. The homepage of any website in my opinion is often the very most important page of the site. The homepage acts sort of like the grand unification of the website. I see the purpose of the homepage is to be a place that user’s initial reaction is “oh this is a good site” and secondly its used to point them to the most important parts of the site. In some cases a site can be really flat and the homepage  or landing page may do almost all the work of the site, in those cases it has to be perfect. Recently I saw an article on landing pages and thought it further delved into some good examples. Check it out and rethink your homepage or landing page if it sucks.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/planet-cakephp-aggregator-all/~4/ZNewCI3wmTM" height="1" width="1"/&gt;</description>
 <category domain="http://planetcakephp.org/aggregator/languages/english">English</category>
 <pubDate>Tue, 08 Nov 2011 16:11:23 +0000</pubDate>
 <dc:creator>The Code Dojo</dc:creator>
 <guid isPermaLink="false">6826 at http://planetcakephp.org</guid>
</item>
<item>
 <title>[Webサービス][作ったモノ]「ATNDBK(アテンドバック)」というサービスを作りました</title>
 <link>http://d.hatena.ne.jp/ngtn/20111108/1320762667</link>
 <description>&lt;p&gt;昨日11/07にATNDBK(アテンドバック)というサービスをリリースしました。&lt;br /&gt;
			&lt;a href="http://atndbk.org/" target="_blank"&gt;Trackback for ATND | ATNDBK&lt;/a&gt;&lt;br /&gt;
			名前から想像がつくようにATNDがらみのサービスで、ATNDで開催されたイベントにトラックバック機能を提供するサービスです。&lt;br /&gt;
			トラックバックを受け付けるWebサービスと、受け取ったトラックバックの表示を行うブラウザ拡張機能（Chrome版、Firefox版）とで構成しています。&lt;br /&gt;
			&lt;a href="http://f.hatena.ne.jp/ngtn/20111108211501" class="hatena-fotolife" target="_blank"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;			作った目的や使うことのメリット&lt;br /&gt;
			イベントの主催者が、参加者の書いた記事を一つ一つ手でまとめてリストアップした記事を作って「抜けがあったら連絡くださーい」と言っている光景をたまに見かけるのですが、その手間は参加者一人一人が書いたことを通知する先があれば減らせるんじゃないかな、それっていわゆるトラックバックだよなー、という発想から作りました。&lt;/p&gt;
&lt;p&gt;イベント参加者からのフィードバックを埋もれさせないために参加ログを集約する場所&lt;/p&gt;
&lt;p&gt;			となることをATNDBKは目指しています。そのための手段としてトラックバックを使います。&lt;br /&gt;
			「twitterでいいじゃない」という声も上がりそうですが、ツイートは時間が経つと消えちゃいますから、ストック型な情報としてのブログ記事の価値は高いんじゃないかなと考えています。&lt;/p&gt;
&lt;p&gt;			ATNDBKの特徴&lt;br /&gt;
			トラックバックの送信先は、参加したATNDのイベントURLに"bk"の2文字を付け足すだけの簡単仕様としています。&lt;/p&gt;
&lt;p&gt;&lt;a href="http://atnd.org/events/xxx" title="http://atnd.org/events/xxx"&gt;http://atnd.org/events/xxx&lt;/a&gt; → http://atndbk.org/events/xxx&lt;/p&gt;
&lt;p&gt;			トラックバックの表示は、ブラウザ拡張機能をインストールしてATNDイベントページにアクセスすると、「トラックバック」というタブが新たに現れ、そこに一覧が表示されます。&lt;br /&gt;
			&lt;a href="http://f.hatena.ne.jp/ngtn/20111108224443" class="hatena-fotolife" target="_blank"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;			また、受け付けたトラックバックはイベント単位でRSS配信しているので、送られたトラックバックをもらさずにチェック出来るようにしました。&lt;/p&gt;
&lt;p&gt;			使った技術など&lt;br /&gt;
			Webサービス側はCakePHP 1.3で開発していて、サーバはPHP fog(&lt;a href="http://phpfog.com/" target="_blank"&gt;http://phpfog.com/&lt;/a&gt;)を利用しています。&lt;br /&gt;
			デザインのベースにはBootstrap(&lt;a href="http://twitter.github.com/bootstrap/" target="_blank"&gt;http://twitter.github.com/bootstrap/&lt;/a&gt;)を使っています。いかにもBootstrapな雰囲気は無くそうと努めましたが、なかなか難しいですね。&lt;br /&gt;
			ブラウザ拡張機能とのやりとりするためのJSON出力や、RSS出力などはCakePHPの機能が使えるのでそのあたりはラクができました。&lt;/p&gt;
&lt;p&gt;			初めてプライベートでの開発&lt;br /&gt;
			プライベートでの個人開発は初めてでしたが、仕事でしているシステム開発とは違って「解決したい事」と「解決する方法」の両方を自分自身で生み出さないといけないのでなかなか苦労しましたが、普段使っていない脳を働かせてアイデアを形にする過程はとても楽しかったです。&lt;br /&gt;
			これで広く使ってもらえるサービスになるともっと嬉しいんですけどね :-P&lt;/p&gt;
&lt;p&gt;			というわけで、、&lt;br /&gt;
			ATNDのイベントに参加してブログ記事を書く際には是非、ATNDBKまでトラックバックをお願いします！&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/planet-cakephp-aggregator-all/~4/aDyY-ySyG6U" height="1" width="1"/&gt;</description>
 <category domain="http://planetcakephp.org/aggregator/languages/japanese">日本語</category>
 <pubDate>Tue, 08 Nov 2011 14:31:07 +0000</pubDate>
 <dc:creator>Writing Some Code</dc:creator>
 <guid isPermaLink="false">6825 at http://planetcakephp.org</guid>
</item>
<item>
 <title>Using pathogen for vim configuration management</title>
 <link>http://mark-story.com/posts/view/using-pathogen-for-vim-configuration-management?utm_source%3Drss</link>
 <description>&lt;p&gt;In a previous post I talked about switching to Vim and how I was using Janus to get a good foundational set of plugins to work with, and make starting with vim less daunting.  As I’ve gotten more comfortable with vim, I wanted a simpler way to manage my vim config.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/planet-cakephp-aggregator-all/~4/wWOiAjyUyKQ" height="1" width="1"/&gt;</description>
 <category domain="http://planetcakephp.org/aggregator/languages/english">English</category>
 <pubDate>Mon, 07 Nov 2011 18:29:36 +0000</pubDate>
 <dc:creator>Mark Story</dc:creator>
 <guid isPermaLink="false">6824 at http://planetcakephp.org</guid>
</item>
<item>
 <title>[工作]</title>
 <link>http://d.hatena.ne.jp/ohguma/20111107#p1</link>
 <description>&lt;p&gt;10/26にSeeedstudioで頼んだものが10日ほどで届いた。 目当ては超音波センサだが、メス-メスのジャンパワイヤーもしばらく困らないよういろいろ頼んでみた。&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/planet-cakephp-aggregator-all/~4/Q7cZKAa5eYw" height="1" width="1"/&gt;</description>
 <category domain="http://planetcakephp.org/aggregator/languages/japanese">日本語</category>
 <pubDate>Mon, 07 Nov 2011 00:00:00 +0000</pubDate>
 <dc:creator>熊工房　ohgumaの凹み日記</dc:creator>
 <guid isPermaLink="false">6823 at http://planetcakephp.org</guid>
</item>
<item>
 <title>Presentation: Fake it 'til you make it</title>
 <link>http://feedproxy.google.com/~r/snookca/~3/bUZr5fw7YNE/fake-it</link>
 <description>&lt;p&gt;From my presentation at &lt;a href="http://startechconf.com/"&gt;StarTech&lt;/a&gt;, here are my slides.&lt;/p&gt;
&lt;p&gt;Fake it 'til you make it shows some code and examples on how to make a web app look more like a native mobile application. This can provide a way to build quick prototypes or to build using familiar technologies.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://feeds.feedburner.com/~ff/snookca?a%3DbUZr5fw7YNE:fod3mMyocnc:yIl2AUoC8zA"&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/snookca?a%3DbUZr5fw7YNE:fod3mMyocnc:F7zBnMyn0Lo"&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/snookca?a%3DbUZr5fw7YNE:fod3mMyocnc:gIN9vFwOqvQ"&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/planet-cakephp-aggregator-all/~4/LRW_HMgjFhA" height="1" width="1"/&gt;</description>
 <category domain="http://planetcakephp.org/aggregator/languages/english">English</category>
 <pubDate>Sun, 06 Nov 2011 17:53:18 +0000</pubDate>
 <dc:creator>Jonathon Snook</dc:creator>
 <guid isPermaLink="false">6822 at http://planetcakephp.org</guid>
</item>
<item>
 <title>[CakePHP] Debian squeeze の nginx 上で CakePHP を動かしてみた</title>
 <link>http://d.hatena.ne.jp/okinaka/20111106/1320526393</link>
 <description>&lt;p&gt;さくらVPS で一番安いサービスを利用するときにネックになるのがメモリ消費量。&lt;br /&gt;
			メインメモリが 512MBしかなく、apache2 ではやや不安なので、nginx を使ってみようかと画策中。&lt;br /&gt;
			Debian squeeze の nginx 上で php の環境を作るときに、参考にしたのがこちら。&lt;br /&gt;
			&lt;a href="http://library.linode.com/web-servers/nginx/php-fastcgi/debian-6-squeeze" target="_blank"&gt;http://library.linode.com/web-servers/nginx/php-fastcgi/debian-6-squeeze&lt;/a&gt;&lt;br /&gt;
			標準のスクリプトでも構築できて、サードパーティ製のパッケージは不要なところが良い。&lt;br /&gt;
			起動スクリプト (/etc/init.d/php-fastcgi) が微妙な感じだが、ほぼそのまま使ってみた。&lt;br /&gt;
			/etc/init.d/php-fastcgi&lt;/p&gt;
&lt;p&gt;#!/bin/bash&lt;/p&gt;
&lt;p&gt;FASTCGI_USER=www-data&lt;br /&gt;
FASTCGI_GROUP=www-data&lt;br /&gt;
PID_DIR=/var/run/php-fastcgi&lt;br /&gt;
PID_FILE=/var/run/php-fastcgi/php-fastcgi.pid&lt;br /&gt;
RET_VAL=0&lt;/p&gt;
&lt;p&gt;PHP_SCRIPT() {&lt;br /&gt;
  ADDRESS=127.0.0.1&lt;br /&gt;
  PORT=9000&lt;br /&gt;
  CHILDREN=6&lt;br /&gt;
  PHP5=/usr/bin/php5-cgi&lt;br /&gt;
  SPAWN=/usr/bin/spawn-fcgi&lt;/p&gt;
&lt;p&gt;  $SPAWN -a $ADDRESS -p $PORT -P $PID_FILE -C $CHILDREN \&lt;br /&gt;
         -u $FASTCGI_USER -g $FASTCGI_GROUP -f $PHP5&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;case "$1" in&lt;br /&gt;
    start)&lt;br /&gt;
      if [[ ! -d $PID_DIR ]]&lt;br /&gt;
      then&lt;br /&gt;
        mkdir $PID_DIR&lt;br /&gt;
        chown $FASTCGI_USER:$FASTCGI_GROUP $PID_DIR&lt;br /&gt;
        chmod 0770 $PID_DIR&lt;br /&gt;
      fi&lt;br /&gt;
      if [[ -r $PID_FILE ]]&lt;br /&gt;
      then&lt;br /&gt;
        echo "php-fastcgi already running with PID `cat $PID_FILE`"&lt;br /&gt;
        RET_VAL=1&lt;br /&gt;
      else&lt;br /&gt;
        PHP_SCRIPT&lt;br /&gt;
        RET_VAL=$?&lt;br /&gt;
      fi&lt;br /&gt;
  ;;&lt;br /&gt;
    stop)&lt;br /&gt;
      if [[ -r $PID_FILE ]]&lt;br /&gt;
      then&lt;br /&gt;
        kill `cat $PID_FILE`&lt;br /&gt;
        rm $PID_FILE&lt;br /&gt;
        RET_VAL=$?&lt;br /&gt;
      else&lt;br /&gt;
        echo "Could not find PID file $PID_FILE"&lt;br /&gt;
        RET_VAL=1&lt;br /&gt;
      fi&lt;br /&gt;
  ;;&lt;br /&gt;
    restart)&lt;br /&gt;
      if [[ -r $PID_FILE ]]&lt;br /&gt;
      then&lt;br /&gt;
        kill `cat $PID_FILE`&lt;br /&gt;
        rm $PID_FILE&lt;br /&gt;
        RET_VAL=$?&lt;br /&gt;
      else&lt;br /&gt;
        echo "Could not find PID file $PID_FILE"&lt;br /&gt;
      fi&lt;br /&gt;
      PHP_SCRIPT&lt;br /&gt;
      RET_VAL=$?&lt;br /&gt;
  ;;&lt;br /&gt;
    status)&lt;br /&gt;
      if [[ -r $PID_FILE ]]&lt;br /&gt;
      then&lt;br /&gt;
        echo "php-fastcgi running with PID `cat $PID_FILE`"&lt;br /&gt;
        RET_VAL=$?&lt;br /&gt;
      else&lt;br /&gt;
        echo "Could not find PID file $PID_FILE, php-fastcgi does not appear to be running"&lt;br /&gt;
      fi&lt;br /&gt;
  ;;&lt;br /&gt;
    *)&lt;br /&gt;
      echo "Usage: php-fastcgi {start|stop|restart|status}"&lt;br /&gt;
      RET_VAL=1&lt;br /&gt;
  ;;&lt;br /&gt;
esac&lt;br /&gt;
exit $RET_VAL&lt;/p&gt;
&lt;p&gt;			CakePHP 向けに nginx を設定するときに、参考にしたのがこちら。&lt;br /&gt;
			&lt;a href="http://d.hatena.ne.jp/hrendoh/20110101/1293887229" target="_blank"&gt;http://d.hatena.ne.jp/hrendoh/20110101/1293887229&lt;/a&gt;&lt;br /&gt;
			ただ if ディレクティブを使うよりも try_files を使った方がいいみたい ( &lt;a href="http://wiki.nginx.org/IfIsEvil" target="_blank"&gt;http://wiki.nginx.org/IfIsEvil&lt;/a&gt; )。&lt;br /&gt;
			/etc/nginx/sites-available/default&lt;/p&gt;
&lt;p&gt;server {&lt;br /&gt;
  : (省略)&lt;br /&gt;
  location / {&lt;br /&gt;
    try_files $uri $uri/ /index.php?url=$uri&amp;amp;$args;&lt;br /&gt;
  }&lt;br /&gt;
  location ~ \.php$ {&lt;br /&gt;
    fastcgi_pass 127.0.0.1:9000;&lt;br /&gt;
    fastcgi_index index.php;&lt;br /&gt;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;&lt;br /&gt;
    include fastcgi_params;&lt;br /&gt;
  }&lt;br /&gt;
}&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/planet-cakephp-aggregator-all/~4/x0J1tVkpJ_M" height="1" width="1"/&gt;</description>
 <category domain="http://planetcakephp.org/aggregator/languages/japanese">日本語</category>
 <pubDate>Sat, 05 Nov 2011 20:53:13 +0000</pubDate>
 <dc:creator>エンジニアきまぐれTips</dc:creator>
 <guid isPermaLink="false">6821 at http://planetcakephp.org</guid>
</item>
<item>
 <title>Internet Explorer Drops Below 50 Percent Market Share…So What</title>
 <link>http://dojo.codegreene.com/2011/11/internet-explorer-drops-below-50-percent-web-usage/?utm_source%3Drss%26utm_medium%3Drss%26utm_campaign%3Dinternet-explorer-drops-below-50-percent-web-usage</link>
 <description>&lt;p&gt;I remember when surfing the web consisted of either using Netscape or Internet Explorer. Those that were new used “AOL” and the great joke was that at least I used a browser that supported JavaScript. Oh how the times have changed, and they have changed for the better. The tools we use today to build websites are better, more powerful, and are built to accommodate what the public wants. With better and more powerful tools to build websites, the browsers have to keep up and for the most part they have.&lt;br /&gt;
When I heard the news that IE has dropped just below 50 percent market share on the desktops, I reflected on when I started to develop for the web. When I started web development seriously, I was working for the Davis School District in Utah. We were required to use IE5, but when IE5.5 came out I was so excited. So hearing this news brought back memories (some good and some bad).&lt;br /&gt;
To this date I do not use Internet Explorer. I still like Firefox myself, but I do have Chrome installed. I mostly use Firefox out of habit and knowing how to work my tools or plugins with it keeps me happy. But I have not used Internet Explorer myself since IE6. I moved on to a better, safer, faster, and more compatible browser.&lt;br /&gt;
&lt;a href="http://dojo.codegreene.com/wp-content/uploads/2010/03/internetexplorer.jpg"&gt;&lt;/a&gt;I don’t have anything against Internet Explorer like some other developers. I think it is because I have built many PCs, I have worked on even more PCs, and I have had to interact with the owner of those PCs. They use Internet Explorer out of ignorance. You ask them what browser they use and most of them will say “I use Google.” Then if you follow up that answer with “Oh you use Chrome?” they will say no and you will discover that they use Internet Explorer and Google is their home page.&lt;br /&gt;
People don’t know the difference between browsers like developers or geeks. This is where we can help educate them. But before you can educate them you need to really know what the problems are. Don’t just hate it cause it is what most developers do. Know or learn why. I used to swear &lt;em&gt;by&lt;/em&gt; Internet Explorer, not &lt;em&gt;at&lt;/em&gt; it. But as I learned about ‘web standards’ and I started swearing at Internet Explorer.&lt;br /&gt;
Now with Internet Explorer falling below 50 percent market share on the desktop and less then 0.2 percent on the mobile, does this mean we need to stop cross browser testing? No. There are still people out there using the default browser that comes with Windows and they don’t know better.&lt;br /&gt;
We as web developers need to still provide the best web browsing experience possible to the end user no matter what browser they use. We need to test the site fully to ensure that it will work in Internet Explorer as best it can. This may not be the exact same experience as when a user uses Firefox, Chrome or Safari but we need to support the Internet Explorer users. Even if you don’t like Internet Explorer there are users out there that will visit your site, your companies site, or your own personal blog that use Internet Explorer.&lt;br /&gt;
Another responsibility we have as web developers is to educate the users or your clients to the differences the end user will experience when using different browsers. Not only different browsers but different operating systems with different browsers. Fonts render different, colors are different, and at times the code will need to be tweaked to display differently.&lt;br /&gt;
Internet Explorer is still here and still the biggest and strongest player on the Internet. On top of that it is job security that we still have jobs fixing bugs. With the growth of popularity of Macs and more people using mobile browsers I feel that Internet Explorer will become just another browser out there, but will not dictate how the Internet should be displayed as it used to. The browser that will become the biggest player on the Internet will be the one that works well on desktop and mobile.&lt;br /&gt;
What browser do you use most often? Where do you see Internet Explorer in 5 years?&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/planet-cakephp-aggregator-all/~4/U-GwxMLwdoQ" height="1" width="1"/&gt;</description>
 <category domain="http://planetcakephp.org/aggregator/languages/english">English</category>
 <pubDate>Fri, 04 Nov 2011 16:08:19 +0000</pubDate>
 <dc:creator>The Code Dojo</dc:creator>
 <guid isPermaLink="false">6820 at http://planetcakephp.org</guid>
</item>
</channel>
</rss>

