<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>うえちょこ＠ぼろぐ</title>
	<atom:link href="http://labs.uechoco.com/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://labs.uechoco.com/blog</link>
	<description>php * symfony * linux * mac * Processing * 周辺技術。キイロイトリ好きプログラマー。</description>
	<lastBuildDate>Thu, 19 Aug 2010 02:58:29 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>CakePHPで普通のタグを出力する</title>
		<link>http://labs.uechoco.com/blog/2010/08/cakephp_meta_tag_output.html</link>
		<comments>http://labs.uechoco.com/blog/2010/08/cakephp_meta_tag_output.html#comments</comments>
		<pubDate>Thu, 19 Aug 2010 02:58:29 +0000</pubDate>
		<dc:creator>uechoco</dc:creator>
				<category><![CDATA[CakePHP]]></category>

		<guid isPermaLink="false">http://labs.uechoco.com/blog/?p=1397</guid>
		<description><![CDATA[久しぶりにCakePHP使ってます。CakePHPで一般的な&#60;meta&#62;タグを出力するには
&#60;?php echo $html-&#62;meta(array(&#8216;name&#8217; =&#038;gt [...]]]></description>
			<content:encoded><![CDATA[<p>久しぶりにCakePHP使ってます。CakePHPで一般的な&lt;meta&gt;タグを出力するには</p>
<p>&lt;?php echo $html-&gt;meta(array(&#8216;name&#8217; =&gt; &#8216;y_key&#8217;, &#8216;content&#8217; =&gt; &#8216;xxxxxxxxx&#8217;)).&#8221;\n&#8221;; ?&gt;</p>
<p>と配列にする。上記はYahooサイトエクスプローラ用の&lt;meta&gt;タグです。φ(・＿・”）ﾒﾓﾒﾓ</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.uechoco.com/blog/2010/08/cakephp_meta_tag_output.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[python]mod_pythonのpublisherとpspを使う</title>
		<link>http://labs.uechoco.com/blog/2010/08/python-mod_python-publisher-psp.html</link>
		<comments>http://labs.uechoco.com/blog/2010/08/python-mod_python-publisher-psp.html#comments</comments>
		<pubDate>Mon, 09 Aug 2010 14:17:03 +0000</pubDate>
		<dc:creator>uechoco</dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[mod_python]]></category>

		<guid isPermaLink="false">http://labs.uechoco.com/blog/?p=1393</guid>
		<description><![CDATA[前回はPythonHandlerをファイル指定で使っていましたが、mod_pythonには汎用的なPythonHandlerの指定方法もあるようです。mod_python.publisherというものらしい。publis [...]]]></description>
			<content:encoded><![CDATA[<p>前回はPythonHandlerをファイル指定で使っていましたが、mod_pythonには汎用的なPythonHandlerの指定方法もあるようです。mod_python.publisherというものらしい。publisherを使うと、URLを解析して以下のようにエントリポイントが変わった（私の環境の場合）。</p>
<ul>
<li>http://test.localpy/ ... 403 Forbidden</li>
<li>http://test.localpy/index ... 404 Not Found</li>
<li>http://test.localpy/index/ ... 404 Not Found</li>
<li>http://test.localpy/index.py ... /document-root/index.py内のdef index(req):関数が実行された</li>
<li>http://test.localpy/index.py/ ... /document-root/index.py内のdef index(req):関数が実行された</li>
<li>http://test.localpy/index.py/index ... /document-root/index.py内のdef index(req):関数が実行された</li>
<li>http://test.localpy/index.py/hello ... /document-root/index.py内のdef hello(req):関数が実行された</li>
<li>http://test.localpy/index/hello ... 404 Not Found</li>
<li>http://test.localpy/other.py ... /document-root/other.py内のdef index(req):関数が実行された</li>
<li>http://test.localpy/other.py/index ... /document-root/other.py内のdef index(req):関数が実行された</li>
<li>http://test.localpy/other.py/world ... /document-root/other.py内のdef world(req):関数が実行された</li>
<li>http://test.localpy/dir/another.py ... /document-root/dir/another.py内のdef index(req):関数が実行された</li>
<li>http://test.localpy/dir/another.py/index ... /document-root/dir/another.py内のdef index(req):関数が実行された</li>
<li>http://test.localpy/dir/another.py/asdf ... /document-root/dir/another.py内のdef asdf(req):関数が実行された</li>
</ul>
<p>参考になるリンクを示しておきます。</p>
<ul>
<li><a href="http://www.python.jp/doc/contrib/modpython/hand-pub-alg-trav.html">6.1.2.1 トラバース - mod_python マニュアル</a></li>
<li><a href="http://hagio.org/diary/?20100602">hagio.org - 日記</a></li>
<li><a href="http://webpython.codepoint.net/mod_python_publisher_handler">Publisher Handler | Web Python Tutorial</a></li>
</ul>
<p>お次はPSP。Play Station Portable という意味ではありません（Python for PSPというものが確かにあるらしいですが）。PSPはPython Server Pagesの略です。JSPとかASPの真似っ子ですね。ようはphpみたいにHTML内にPythonが書ける仕組みをmod_pythonが提供しています。このPSPという仕組みは、私がグーグルでいろいろ調べている感じだとあんまり流行ってなさそうな雰囲気です。じゃぁみんなPythonのWebは動やっているんだろう。。。PSPは、mod_wsgiとかではたぶん提供していないと思います。</p>
<p>PSPのサンプルコードとして、<a href="http://d.hatena.ne.jp/Fio/20081124/p1">Python Server Pages! 略してPSP - Fioの素敵な日々</a>という記事を参考にしました。コードをそのまま拝借して（charsetくらいはUTF-8にして）test.pspを作り、そのまま、http://test.localpy/test.psp?name=uechocoにアクセスすると、以下のようなHTML表示がされます。<br />
<img src="http://labs.uechoco.com/blog/wp-content/uploads/python_psp_test.png" alt="" title="python_psp_test" width="486" height="592" class="aligncenter size-full wp-image-1395" /></p>
<p>これならphpっぽくWebが作れそうですね。といってもmod_pythonに依存しすぎていますが。</p>
<p>ちなみに、今回使ったhttpd.confのVirtualHostは以下のものです。</p>
<div class="igBar"><span id="ltext-2"><a href="#" onclick="javascript:showCodeTxt('text-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">TEXT:</span>
<div id="text-2">
<div class="text" style="font-family: monospace;">
<ol>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&lt;VirtualHost *:80&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; ServerName test.localpy</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; DocumentRoot &quot;/Users/dev/py_works/test.localpy&quot;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &lt;Directory &quot;/Users/dev/py_works/test.localpy&quot;&gt;</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; Allow from all</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; AddHandler mod_python .py .psp</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; PythonHandler mod_python.publisher | .py</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; PythonHandler mod_python.psp | .psp</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; PythonDebug On</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &lt;/Directory&gt;</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; ErrorLog &quot;logs/test.localpy-error_log&quot;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; CustomLog &quot;logs/test.localpy-access_log&quot; common</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&lt;/VirtualHost&gt;</div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://labs.uechoco.com/blog/2010/08/python-mod_python-publisher-psp.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[python]MacPortsで入れたpython25をApacheで動かすには？</title>
		<link>http://labs.uechoco.com/blog/2010/08/python_how-to-run-on-the-apache-wtith-python25-via-port.html</link>
		<comments>http://labs.uechoco.com/blog/2010/08/python_how-to-run-on-the-apache-wtith-python25-via-port.html#comments</comments>
		<pubDate>Mon, 09 Aug 2010 03:11:06 +0000</pubDate>
		<dc:creator>uechoco</dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[MacPorts]]></category>

		<guid isPermaLink="false">http://labs.uechoco.com/blog/?p=1386</guid>
		<description><![CDATA[最近Pythonを始めたのは皆さんご存知かと思いますが、PythonはWebに特化していないのが厄介ですね。phpはWebに特化していてCLIも出来るというイメージですが、Pythonは軽量でなんでもできる言語なのでWe [...]]]></description>
			<content:encoded><![CDATA[<p>最近Pythonを始めたのは皆さんご存知かと思いますが、PythonはWebに特化していないのが厄介ですね。phpはWebに特化していてCLIも出来るというイメージですが、Pythonは軽量でなんでもできる言語なので<strong>Webも</strong>出来るというのが現時点での私のイメージです。</p>
<p>Webサーバのデーモンと言ったらやっぱりApacheが多いかと思いますが、PythonをApacheで動かすにはどうしたらいいんでしょうか。『入門Trac』に書いてあったのとかを参考に思いつくものを並べてみました。</p>
<ul>
<li>mod_python ... 古くからあり、おそらく資料も豊富なはず。ただし、開発プロジェクトは公式に終了宣言されているらしい</li>
<li>mod_fastcgi/mod_fcgi ... FastCGI系。FastCGI自体の理解はあまりないのだが、CGIで動かしている+αと考えれば、CGIに分類されるはず。</li>
<li>mod_wsgi ... WSGIというインタフェースに対応したモジュール。mod_pythonの代わりとして徐々に定着しつつある？mod_pythonやmod_fastcgiなどよりは多少速いとか。</li>
</ul>
<p>他にも、Apacheで動かさないという選択肢もあるようです。フレームワーク自体にサーバ機能が含まれているWeb2pyとかがそうなのかな。Nginxとかはわからないので、別の機会に。</p>
<p>さてさて私のPythonはGAE開発環境を意識して、SnowLeopardにMacPortsで入れたpython25です。ApacheもMacPortsで入れたapache2です。python_selectでSnowLeopard標準のpython26-appleからpython25に切り替えています。</p>
<p>できればMacPortsでモジュールを入れたいです。個人的にはFastCGIは馴染みがないのでmod_wsgiか、mod_pythonに的を絞ります。MacPortsでmod_wsgiをsearchすると、どうやらpython26（標準のともpython25とも違うMacPortsオリジナルのPython 2.6）に依存してしまっているので、python25では使えなさそうです（ソースコード インストールとかはわかりません）。mod_pythonをsearchすると、mod_python25やmod_python26などがあり、<strong>mod_python25</strong>であれば私がインストールしたpython25に依存しているようです。</p>
<p>早速「sudo port install mod_python25」でインストールし、</p>
<div class="igBar"><span id="ltext-6"><a href="#" onclick="javascript:showCodeTxt('text-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">TEXT:</span>
<div id="text-6">
<div class="text" style="font-family: monospace;">
<ol>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">########################################################</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"># to enable mod_python add</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"># &nbsp;LoadModule python_module modules/mod_python.so</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"># to your apache2 config file:</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"># &nbsp;/opt/local/apache2/conf/httpd.conf</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">########################################################</div>
</li>
</ol>
</div>
</div>
</div>
<p>
というメッセージが表示されるので、LoadModule宣言を指定のhttpd.confに書き込み、Apacheをgracefulします。</p>
<p>続いて、<a href="http://www.python.jp/doc/contrib/modpython/tut-what-it-do.html">3.3 mod_python は一体何をやっているのか</a>を参考に、VirtualHostの設定やリクエストハンドラを設定しておきます。私の場合は以下のような感じにしています。もちろんtest.localpyというのは架空のドメインですので、/etc/hostsにも登録してあります。</p>
<div class="igBar"><span id="ltext-7"><a href="#" onclick="javascript:showCodeTxt('text-7'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">TEXT:</span>
<div id="text-7">
<div class="text" style="font-family: monospace;">
<ol>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&lt;VirtualHost *:80&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; ServerName test.localpy</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; DocumentRoot &quot;/Users/dev/py_works/test.localpy&quot;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &lt;Directory &quot;/Users/dev/py_works/test.localpy&quot;&gt;</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; Allow from all</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; AddHandler mod_python .py</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; PythonHandler mptest</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; PythonDebug On</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &nbsp; &nbsp; DirectoryIndex mptest.py</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; &lt;/Directory&gt;</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; ErrorLog &quot;logs/test.localpy-error_log&quot;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; CustomLog &quot;logs/test.localpy-access_log&quot; common</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&lt;/VirtualHost&gt;</div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>あとは、上記DocumentRootにmptest.pyというファイルを作成し、以下のプログラムを記載します。</p>
<div class="igBar"><span id="lpython-8"><a href="#" onclick="javascript:showCodeTxt('python-8'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PYTHON:</span>
<div id="python-8">
<div class="python" style="font-family: monospace;">
<ol>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #ff7700;font-weight:bold;">from</span> mod_python <span style="color: #ff7700;font-weight:bold;">import</span> apache</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp;</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #ff7700;font-weight:bold;">def</span> handler<span style="color: black;">&#40;</span>req<span style="color: black;">&#41;</span>:</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; req.<span style="color: black;">content_type</span> = <span style="color: #483d8b;">&quot;text/plain&quot;</span></div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; req.<span style="color: black;">write</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;Hello Apache mod_python!&quot;</span><span style="color: black;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">&nbsp; &nbsp; <span style="color: #ff7700;font-weight:bold;">return</span> apache.<span style="color: black;">OK</span></div>
</li>
</ol>
</div>
</div>
</div>
<p>
あとは指定のURL（私の場合はhttp://test.localpy/）にアクセスすればOKです。DirectoryIndexが効かない場合は、http://test.localpy/aaa.pyみたいに適当なファイル名をつけてみてください。適当なファイル名でもいい理由は<a href="http://www.python.jp/doc/contrib/modpython/tut-what-it-do.html">3.3 mod_python は一体何をやっているのか</a>に書いてあります。</p>
<p>とりあえず、Webで動いたー！でもちょっとやりづらいのはphpでMVCフレームワークとかに慣れ過ぎなせいですかね。</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.uechoco.com/blog/2010/08/python_how-to-run-on-the-apache-wtith-python25-via-port.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[symfony]Symfony2はsymfony 2と書いてはダメ</title>
		<link>http://labs.uechoco.com/blog/2010/08/symfony_symfony2_not_symfony-2.html</link>
		<comments>http://labs.uechoco.com/blog/2010/08/symfony_symfony2_not_symfony-2.html#comments</comments>
		<pubDate>Sun, 08 Aug 2010 13:34:37 +0000</pubDate>
		<dc:creator>uechoco</dc:creator>
				<category><![CDATA[symfony]]></category>

		<guid isPermaLink="false">http://labs.uechoco.com/blog/?p=1382</guid>
		<description><![CDATA[そろそろSymfony界隈でもSymfony2の噂が出てきていると思います。Symfony2についてとっても重要なことがあったので、私も微力ながら記事を書いて広めていこうかと思います。それはBlog &#124; Talk abo [...]]]></description>
			<content:encoded><![CDATA[<p>そろそろSymfony界隈でもSymfony2の噂が出てきていると思います。Symfony2についてとっても重要なことがあったので、私も微力ながら記事を書いて広めていこうかと思います。それは<a href="http://www.symfony-project.org/blog/2010/06/24/talk-about-symfony2-not-symfony-2">Blog | Talk about Symfony2, not Symfony 2 | symfony | Web PHP Framework</a>という本家の記事のことです。</p>
<p>簡単に言うと、<strong>Symfony2に関して、ブログを書いたり、ドキュメントを書いたり、Twitterでつぶやいたりするときは、<span style="color: #ff0000;">「Symfony2」と、空白文字を入れずに記述</span>して欲しい</strong>というお願いです。これは検索エンジンなどでの検索時に他の1.x系のバージョンの記事と混同させずに出すようにするための施策です。symfony 1.x系とSymfony2系がフレームワーク構造として大きく異なるので、情報を正しく切り分けたいということですね。</p>
<p>拙い英訳ですが、原文の一部を翻訳しておきます。</p>
<blockquote><p>As we maintain a lot of different symfony versions, it is sometimes difficult to find documentation for the exact version you are using. So, when you start using symfony 1.4 for instance, and search for something on a search engine, you find lots of results for other versions of the framework like 1.0, 1.1, and 1.2. With Symfony2, the problem will be even more annoying, as the framework is very different.</p>
<p>私たちはたくさんの異なったsymfonyバージョンをメンテナンスしているので、あなた方が使用中のまさにそのバージョンのドキュメントを見つけにくいことが時たまあります。ですから、例えばあなたがsymfony 1.4を使い始めて、何かを検索エンジンで探したとき、symfony 1.0や1.1、1.2などの違うバージョンの検索結果をたくさん見つけるでしょう。Symfony2に関して言えば、この問題はなおさらイライラさせることと思います。というのも、Symfony2は大きく違っているからです。</p>
<p>By removing the space between Symfony and the version, like in Symfony2, you can search for "Symfony2" instead of "symfony", and search engines will then only return results related to "Symfony2".</p>
<p>Symfonyとそのバージョンの間の空白文字を取り除く、例えばSymfony2というようにすることで、あなたは"symfony"という単語の代わりに"Symfony2"という単語で検索することができ、検索エンジンも"Symfony2"に関する結果だけを返してくれることでしょう。</p>
<p>So, please, as of now, whenever you write a blog post, a piece of documentation, a tweet, or a presentation, never write "Symfony 2" again. Use Symfony2 instead. That way, someone can search for "Symfony2 routing" and he will have only Symfony2 results.</p>
<p>ですから、現時点では、あなたがブログの記事やドキュメントの一部、つぶやきやプレゼン資料を書くときには、"Symfony 2"（注訳：空白文字を含んだ表記）とは書かないでください。代わりにSymfony2という表記を使ってください。そうすれば、"Symfony2 routing"と検索した人は、Symfony2の結果だけを得ることが出来るでしょう。</p>
<p style="text-align: right;"><a href="http://www.symfony-project.org/blog/2010/06/24/talk-about-symfony2-not-symfony-2">Blog | Talk about Symfony2, not Symfony 2 | symfony | Web PHP Framework</a></p>
</blockquote>
<p>ということで、みなさんも早いうちから<span style="color: #ff0000;"><strong>Symfony2</strong></span>という空白文字を含まない表記に慣れ親しんでくださいね！あと、この記事、あるいは同様の記事を書いて、多くの人にこの表記方法知ってもらえるようにお願いします！</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.uechoco.com/blog/2010/08/symfony_symfony2_not_symfony-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[python]MacPortsで入れたPythonでeasy_install</title>
		<link>http://labs.uechoco.com/blog/2010/08/python_mac_ports_python_easy_install.html</link>
		<comments>http://labs.uechoco.com/blog/2010/08/python_mac_ports_python_easy_install.html#comments</comments>
		<pubDate>Fri, 06 Aug 2010 16:13:10 +0000</pubDate>
		<dc:creator>uechoco</dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[easy_install]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://labs.uechoco.com/blog/?p=1377</guid>
		<description><![CDATA[前回は[python]2.5、2.6、3.x系など、バージョンの違い : うえちょこ＠ぼろぐにてSnowLeopard標準のPython 2.6ではなく、GAE用にMacPortsを利用してPython 2.5とpyth [...]]]></description>
			<content:encoded><![CDATA[<p>前回は<a href="../2010/08/python_2-5_2-6_3-x_versions.html">[python]2.5、2.6、3.x系など、バージョンの違い : うえちょこ＠ぼろぐ</a>にてSnowLeopard標準のPython 2.6ではなく、<strong>GAE用にMacPortsを利用してPython 2.5とpython_selectをインストールしました</strong>。</p>
<p>さて、Pythonにはphpでいうpear/peclコマンド、perlでいうcpanコマンドに当たるような<span style="color: #ff0000;"><strong>easy_install</strong></span>というコマンドがあるようです。<span style="color: #ff0000;"><strong>PyPI（Python Package Index）</strong></span>というレポジトリから文字通り簡単にライブラリが追加できるコマンドのようです。このコマンドは<span style="color: #ff0000;"><strong>setuptools</strong></span>というパッケージ（なのかな？）に含まれています。<a href="http://aligach.net/diary/20100509.html">あーありがち - Pyに触ってみた</a>の途中にある比較表が分かりやすいです。</p>
<p>このeasy_installというコマンドもどうやらPythonのインストール環境に依存しているようです。つまり<span style="color: #ff0000;"><strong>MacPortsで入れたPython専用にeasy_installコマンド</strong></span>がちゃんと用意されています。といってもこれもMacPortsでインストールする必要があります。たとえば、私がインストールしたPython 2.5用のeasy_installコマンドは<span style="color: #ff0000;"><strong>py25-setuptools</strong></span>というパッケージに含まれています。インストールは以下のような感じになります。</p>
<div class="igBar"><span id="lbash-12"><a href="#" onclick="javascript:showCodeTxt('bash-12'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Bash:</span>
<div id="bash-12">
<div class="bash" style="font-family: monospace;">
<ol>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #c20cb9; font-weight: bold;">install</span> py25-setuptools</div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>インストールしたeasy_installコマンドのパスを確認しておきましょう。普通のeasy_installコマンドは、デフォルトではSnowLeopardに標準で入っているpython26-apple用のものです。</p>
<div class="igBar"><span id="lbash-13"><a href="#" onclick="javascript:showCodeTxt('bash-13'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Bash:</span>
<div id="bash-13">
<div class="bash" style="font-family: monospace;">
<ol>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">$ <span style="color: #c20cb9; font-weight: bold;">which</span> easy_install</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>easy_install</div>
</li>
</ol>
</div>
</div>
</div>
<p>
MacPortsで入れたPythonのeasy_installコマンドは別のところにあります。</p>
<div class="igBar"><span id="lbash-14"><a href="#" onclick="javascript:showCodeTxt('bash-14'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Bash:</span>
<div id="bash-14">
<div class="bash" style="font-family: monospace;">
<ol>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">$ <span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>easy_install<span style="color: #000000;color:#800000;">-2.5</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>easy_install<span style="color: #000000;color:#800000;">-2.5</span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>本当にコマンドが違うものなのかどうか、以下のような実験をしてみました（Mac OS X 10.6.4）。</p>
<ol>
<li>
<ul>
<li> 「sudo python_select python25」でMacPortsでインストールしたPython 2.5に切り替え</li>
<li> 「sudo /opt/local/bin/easy_install-2.5 django」でDjangoライブラリをインストール</li>
<li> 「python」でインタプリタ起動</li>
<li> 「&gt;&gt;&gt; import django」でdjangoモジュールを読み込んでもエラーはでない。</li>
<li> 「&gt;&gt;&gt; quit()」でインタプリタ終了</li>
</ul>
</li>
<li>
<ul>
<li> 「sudo python_select python26-apple」でSnowLeopard標準のPython 2.6に切り替え</li>
<li> 「python」でインタプリタ起動</li>
<li> 「&gt;&gt;&gt; import django」でdjangoモジュールを読み込むと、「ImportError: No module named django」で読み込めない。</li>
<li> 「&gt;&gt;&gt; quit()」でインタプリタ終了</li>
</ul>
</li>
<li>
<ul>
<li> 「sudo python_select python25」でMacPortsでインストールしたPython 2.5に切り替え</li>
<li> 「sudo /opt/local/bin/easy_install-2.5 django」でDjangoライブラリをインストール</li>
<li> 「python」でインタプリタ起動</li>
<li> 「&gt;&gt;&gt; import django」でdjangoモジュールを読み込んでもエラーはでない。</li>
<li> 「&gt;&gt;&gt; quit()」でインタプリタ終了</li>
</ul>
</li>
</ol>
<p>ということで、インストールした環境に応じてeasy_installコマンドは違いますので注意しましょう。</p>
<p>参考：<a href="http://aligach.net/diary/20100509.html">あーありがち - Pyに触ってみた</a></p>
]]></content:encoded>
			<wfw:commentRss>http://labs.uechoco.com/blog/2010/08/python_mac_ports_python_easy_install.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[python]2.5、2.6、3.x系など、バージョンの違い</title>
		<link>http://labs.uechoco.com/blog/2010/08/python_2-5_2-6_3-x_versions.html</link>
		<comments>http://labs.uechoco.com/blog/2010/08/python_2-5_2-6_3-x_versions.html#comments</comments>
		<pubDate>Fri, 06 Aug 2010 01:27:30 +0000</pubDate>
		<dc:creator>uechoco</dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[GAE]]></category>

		<guid isPermaLink="false">http://labs.uechoco.com/blog/?p=1374</guid>
		<description><![CDATA[突然ですが、Python始めました。GAEもやりたいし、最近の大きなソフトウェアのバックエンドにはPythonが控えていたり、Jythonなども有りますから、やっといて損なことはないです。
さてさて、Pythonっていろ [...]]]></description>
			<content:encoded><![CDATA[<p>突然ですが、Python始めました。GAEもやりたいし、最近の大きなソフトウェアのバックエンドにはPythonが控えていたり、Jythonなども有りますから、やっといて損なことはないです。</p>
<p>さてさて、Pythonっていろいろなバージョンがあるようです。SnowLeopardの標準の（プリインストールの）Pythonは2.6.1でした。また3.x系も並行で進んでいて、こちらは2系と非互換な部分もあるようです。一方で、Google Apps EngineのPythonは2.5.2でして、若干古いわけです。GAEをやる場合は2.5系のインストールが必要なようです。</p>
<p>バージョンのまとめ(2010/08)：</p>
<ul>
<li>Google Apps Engine：Python 2.5.2</li>
<li>SnowLeopard(Mac OS X 10.6.4)：Python 2.6.1</li>
<li>Python 2系最新版：Python 2.7</li>
<li>Python 3系最新版：Python 3.1.2</li>
<li>その他：Jython</li>
</ul>
<p>ちなみに、SnowLeopardにMacPortsでPython 2.5をインストールするなら</p>
<div class="igBar"><span id="lbash-18"><a href="#" onclick="javascript:showCodeTxt('bash-18'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Bash:</span>
<div id="bash-18">
<div class="bash" style="font-family: monospace;">
<ol>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #c20cb9; font-weight: bold;">install</span> python25 python_select</div>
</li>
</ol>
</div>
</div>
</div>
<p>
これだけです。ちょっと時間かかります。python_selectはPythonの切り替え便利ツールです。現在のバージョンの一覧を表示してみます</p>
<div class="igBar"><span id="lbash-19"><a href="#" onclick="javascript:showCodeTxt('bash-19'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Bash:</span>
<div id="bash-19">
<div class="bash" style="font-family: monospace;">
<ol>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">$ python_select -l</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">Available versions:</div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">current none python25 python26-apple</div>
</li>
</ol>
</div>
</div>
</div>
<p>
Python 2.5に切り替えてみましょう。</p>
<div class="igBar"><span id="lbash-20"><a href="#" onclick="javascript:showCodeTxt('bash-20'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Bash:</span>
<div id="bash-20">
<div class="bash" style="font-family: monospace;">
<ol>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> python_select python25</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;"><span style="color: #666666; font-style: italic;"># ここでターミナルの再起動が必要かも？（私の場合は必要だった気がする）</span></div>
</li>
<li style="font-weight: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">$ python -V</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; font-style: normal;">Python <span style="color: #000000;color:#800000;">2.5</span><span style="color: #000000;color:#800000;">.4</span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>こんな感じでインストールできました。</p>
<p>追記：こちらも参考にしてください：<a href="../2010/08/python_mac_ports_python_easy_install.html">[python]MacPortsで入れたPythonでeasy_install : うえちょこ＠ぼろぐ</a></p>
]]></content:encoded>
			<wfw:commentRss>http://labs.uechoco.com/blog/2010/08/python_2-5_2-6_3-x_versions.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[symfony]1.3/1.4からyamlでon/off/yes/noが使えない</title>
		<link>http://labs.uechoco.com/blog/2010/08/symfony-yaml-on-off-yes-no-does-not-used.html</link>
		<comments>http://labs.uechoco.com/blog/2010/08/symfony-yaml-on-off-yes-no-does-not-used.html#comments</comments>
		<pubDate>Thu, 05 Aug 2010 16:51:30 +0000</pubDate>
		<dc:creator>uechoco</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[yaml]]></category>

		<guid isPermaLink="false">http://labs.uechoco.com/blog/?p=1372</guid>
		<description><![CDATA[いまだにsymfonyの1.3/1.4系の和書がでないので、symfony 1.0時代の緑の本とかオレンジの本とかを参考にすることもあります。あるいはネット上には1.2系の情報がまだ蔓延しているのでそいうのも参考にしてい [...]]]></description>
			<content:encoded><![CDATA[<p>いまだにsymfonyの1.3/1.4系の和書がでないので、symfony 1.0時代の緑の本とかオレンジの本とかを参考にすることもあります。あるいはネット上には1.2系の情報がまだ蔓延しているのでそいうのも参考にしています。そんな時たまに困るのが、<strong>YAMLの書き方</strong>。タイトルの通り、<span style="color: #ff0000;"><strong>symfony 1.3/1.4系ではブール値を表すのに従来のon/offやyes/noというのが使えなくなっています</strong></span>。正確には</p>
<ul>
<li>on、y、yes、+ ⇒ true</li>
<li>off、n、no、- ⇒ false</li>
</ul>
<p>となっています。<a href="http://www.symfony-project.org/tutorial/1_4/ja/upgrade#chapter_d29d0b921766aed1d8d30a018363cb0d_yaml">symfony 1.2から1.3/1.4へアップグレードするためのドキュメントのYAMLの項</a>にも明記があります。こういう変更って意外と見逃しがちで、意外と原因究明に時間を取られるんですよね。symfony 1.0～1.2ユーザの方は気をつけましょう。</p>
<p>そのほかの参考になるリンク；</p>
<ul>
<li><a href="http://tanigami.jp/symfony-13-on-off-yes-no-unavailable-yaml">symfony 1.3 から yaml で on/off/yes/no 使えません - tanigami.jp</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://labs.uechoco.com/blog/2010/08/symfony-yaml-on-off-yes-no-does-not-used.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[Mac]Winで文字化けしない、パスワード付きも可能なzip圧縮「MacWinZipper」</title>
		<link>http://labs.uechoco.com/blog/2010/07/macwin-garbled-safe-password-zip-macwinzipper.html</link>
		<comments>http://labs.uechoco.com/blog/2010/07/macwin-garbled-safe-password-zip-macwinzipper.html#comments</comments>
		<pubDate>Wed, 28 Jul 2010 15:06:06 +0000</pubDate>
		<dc:creator>uechoco</dc:creator>
				<category><![CDATA[mac入門記]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[圧縮ソフト]]></category>

		<guid isPermaLink="false">http://labs.uechoco.com/blog/?p=1368</guid>
		<description><![CDATA[Macを使っていると、Windowsユーザの方から「zipファイル解凍したらファイル名が文字化けしてるんだけど？」って言われたこと有りませんか？仕事の取引先などから言われてしまうとちょっと焦ってしまいますよね。Macでは [...]]]></description>
			<content:encoded><![CDATA[<p>Macを使っていると、Windowsユーザの方から「<span style="color: #ff0000;"><strong>zipファイル解凍したらファイル名が文字化けしてるんだけど？</strong></span>」って言われたこと有りませんか？仕事の取引先などから言われてしまうとちょっと焦ってしまいますよね。MacではFinderの右クリックメニューから簡単に圧縮が可能なのですが、ファイル名に日本語が含まれているものを同様に圧縮してしまうと、Windowsで解凍したときに文字化けしてしまいます。（技術的な詳しい話をするならばGoogleで「UTF-8 MAC」と検索すると関連話題が出てくるかと思います。）</p>
<p>Windowsユーザに迷惑をかけずに、でも簡単に圧縮したい、そういう要望をかなえてくれるのが<span style="color: #ff0000;"><strong>MacWinZipper</strong></span>というフリーソフトです。<a href="http://www.apple.com/jp/downloads/macosx/utilities/macwinzipper.html">MacWinZipperはアップルのソフトウェアダウンロードサイトで、スタッフのお勧め印がついている</a>ソフトです。</p>
<p>使い方は簡単で、MacWinZipperのアイコンに、圧縮したいファイルをドラッグドロップするだけ。圧縮が完了するとGrowlで通知してくれる機能もあります。また、個人的にありがたかったのが、<span style="color: #ff0000;"><strong>パスワード付きzipも簡単に作れる</strong></span>ところです。</p>
<p>しかし、MacWinZipperのアイコンにドラッグドロップするよりもさらに簡単に圧縮する環境を作ることもできます。Autometerという様々な操作を自動化するツールで<span style="color: #ff0000;"><strong>右クリックメニューから圧縮できる</strong></span>ようにしてしまいます。</p>
<p><img class="aligncenter size-full wp-image-1369" title="MacWinZipper_Finder_Menu" src="http://labs.uechoco.com/blog/wp-content/uploads/MacWinZipper_Finder_Menu.png" alt="" width="427" height="405" /></p>
<p>Automaterの設定方法は<a href="http://ameblo.jp/ivy-house/entry-10442488271.html">Macでウィンドーズ対応の圧縮ファイルを作る｜IVYのおもちゃ箱</a>を参考にしました。あんまり慣れていない人だと複雑かなって思うかもしれませんが、１度設定してしまえばずっと使えるので、とっても便利です。</p>
<p>是非お試しあれー</p>
<p>紹介記事：</p>
<ul>
<li><a href="http://www.apple.com/jp/downloads/macosx/utilities/macwinzipper.html">アップル - ダウンロード - ユーティリティ - MacWinZipper</a></li>
<li><a href="http://veadardiary.blog29.fc2.com/blog-entry-2671.html">Windowsユーザに渡しても文字化けしないZIPを作成『MacWinZipper』 | Macの手書き説明書</a></li>
<li><a href="http://pc.nikkeibp.co.jp/article/column/20090828/1018171/">MacWinZipper</a></li>
</ul>
<p>Finderの右クリックメニューへの登録の仕方(Automater)</p>
<ul>
<li><a href="http://ameblo.jp/ivy-house/entry-10442488271.html">Macでウィンドーズ対応の圧縮ファイルを作る｜IVYのおもちゃ箱</a></li>
<li><a href="http://taketiman.cocolog-nifty.com/blog/2010/03/maczipwindows-a.html">Macで作ったzipファイルをWindowsユーザーへ: ペンギン村の住人</a></li>
<li><a href="https://discussionsjapan.apple.com/message/100528839">Apple Discussions - Japan: Automator：ファイルを「XXで開...</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://labs.uechoco.com/blog/2010/07/macwin-garbled-safe-password-zip-macwinzipper.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[OpenPNE3]opFreepagePlugin 0.9.2 リリース</title>
		<link>http://labs.uechoco.com/blog/2010/07/openpne3opfreepageplugin-0-9-2-released.html</link>
		<comments>http://labs.uechoco.com/blog/2010/07/openpne3opfreepageplugin-0-9-2-released.html#comments</comments>
		<pubDate>Wed, 28 Jul 2010 03:11:17 +0000</pubDate>
		<dc:creator>uechoco</dc:creator>
				<category><![CDATA[OpenPNE3]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[opFreepagePlugin]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[Twig]]></category>

		<guid isPermaLink="false">http://labs.uechoco.com/blog/?p=1364</guid>
		<description><![CDATA[OpenPNE3にフリーページ機能を追加するopFreepagePluginの0.9.2をリリースしました。
リリースの詳細とインストール方法は http://plugins.openpne.jp/release/223 [...]]]></description>
			<content:encoded><![CDATA[<p>OpenPNE3にフリーページ機能を追加するopFreepagePluginの0.9.2をリリースしました。</p>
<p>リリースの詳細とインストール方法は <a href="http://plugins.openpne.jp/release/223">http://plugins.openpne.jp/release/223</a> を御覧ください。</p>
<p>opFreepagePluginの0.9.0からの主な変更点は以下のとおりです。</p>
<ul>
<li><span style="color: #ff0000;">OpenPNE 3.4系(Doctrine)対応</span> (balibaliさんからのpull request、ありがとうございます！)</li>
<li>テンプレート本文を<strong><span style="color: #ff0000;">Twig</span>テンプレートエンジン</strong>で描画（Twig構文が使えます！）</li>
</ul>
<p>Twig自体は管理画面のメールテンプレート機能で使われていましたので、その描画部分を参考にして作りました。sfSymfonyTemplatingViewPluginというOpenPNE3のリードコミッターの海老原さんが作ったプラグインを通してTwigを使用するような仕様になっています。このプラグインの使い方というよりは、Symfony Templatingの使い方がうまく読み取れずに苦戦しました（Engineの選定とテンプレートパスの決定部分など）。</p>
<p>一応動いていそうなので、しばらく様子見ます。</p>
<p>是非使ってみてください。</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.uechoco.com/blog/2010/07/openpne3opfreepageplugin-0-9-2-released.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[雑記]ブログ再開</title>
		<link>http://labs.uechoco.com/blog/2010/07/blog-restart.html</link>
		<comments>http://labs.uechoco.com/blog/2010/07/blog-restart.html#comments</comments>
		<pubDate>Wed, 28 Jul 2010 02:57:42 +0000</pubDate>
		<dc:creator>uechoco</dc:creator>
				<category><![CDATA[雑記]]></category>

		<guid isPermaLink="false">http://labs.uechoco.com/blog/?p=1355</guid>
		<description><![CDATA[お久しぶりです。実に４ヶ月ぶりのブログです。怠けていたわけではないんですが、仕事が忙しくて更新出来ていませんでした。まぁ、学生じゃなくなったんでしょうがないっちゃしょうがないんですが。
ブログ、再開します。
やっぱりネッ [...]]]></description>
			<content:encoded><![CDATA[<p>お久しぶりです。実に４ヶ月ぶりのブログです。怠けていたわけではないんですが、仕事が忙しくて更新出来ていませんでした。まぁ、学生じゃなくなったんでしょうがないっちゃしょうがないんですが。</p>
<p>ブログ、再開します。</p>
<p>やっぱりネット上でいろいろな人のブログを見て開発をしている身としては、give&amp;takeではないですが、自分も情報を発信する立場になることが恩返しにもなるし、世の中のためになるのかなっと思っています。symfony系のブログはあまり多く無いから うえちょこ＠ぼろぐ 知ってるよって声もリアルで聞いたりします。嬉しい限りです。</p>
<p>そんなわけで、引き続き、うえちょこ@ぼろぐ をよろしくお願いします。</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.uechoco.com/blog/2010/07/blog-restart.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
