<?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>HattaraTecLog &#187; python</title>
	<atom:link href="http://teclog.hattara.info/?cat=24&#038;feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://teclog.hattara.info</link>
	<description>LinuxネタとかPHPネタとかの技術ログ</description>
	<lastBuildDate>Tue, 18 Nov 2014 12:15:20 +0000</lastBuildDate>
	<language>ja</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.8</generator>
	<item>
		<title>SSH &amp; コマンドライン上で、TicketExtPluginを入れる</title>
		<link>http://teclog.hattara.info/?p=91</link>
		<comments>http://teclog.hattara.info/?p=91#comments</comments>
		<pubDate>Fri, 08 May 2009 10:24:03 +0000</pubDate>
		<dc:creator><![CDATA[hattara]]></dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[Trac]]></category>

		<guid isPermaLink="false">http://teclog.hattara.info/?p=91</guid>
		<description><![CDATA[今回もGoogle先生に教えてもらって、以下のような方法で可能でした。 これを使うことで、Ticketを新規作 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>今回もGoogle先生に教えてもらって、以下のような方法で可能でした。<br />
これを使うことで、Ticketを新規作成した際に、Typeに応じて、<br />
任意のテンプレートが自動で説明欄に入るので、超便利になります。</p>
<blockquote><p>
cd /tmp<br />
wget http://downloads.sourceforge.net/json-py/json-py-3_4.zip<br />
unzip json-py-3_4.zip<br />
python -c &#8216;import trac; print trac.__path__&#8217;<br />
  ['/usr/lib/python2.3/site-packages/trac']</p>
<p>cp -irp json-py-3.4/json.py /usr/lib/python2.3/site-packages/<br />
cp -irp json-py-3.4/minjson.py /usr/lib/python2.3/site-packages/</p>
<p>python -c &#8216;import json; print json.__file__&#8217;<br />
python -c &#8216;import minjson; print minjson.__file__&#8217;</p>
<p>cd /tmp<br />
easy_install -U -Z http://trac-hacks.org/svn/customfieldadminplugin/0.10<br />
easy_install http://trac-hacks.org/svn/ticketextplugin/0.10</p>
<p>cd /home/trac/web/repos/conf<br />
cp -irp trac.ini trac.ini.`date +&#8217;%y%m%d&#8217;`<br />
vi trac.ini</p>
<p>    [components]<br />
    ticketext.* = enabled</p>
<p>    [ticketext]<br />
    defect.template = [problem][[BR]]\n\n\n[expect][[BR]]\n\n\n[note][[BR]]\n<br />
    defect.enablefields = custom_field1,custom_field2<br />
    設計書作成.template = abcde\n||a||b||c||\n</p>
<p>/etc/rc.d/init.d/httpd restart
</p></blockquote>
<p>Tracの「管理(TracWebAdmin)」でテンプレートをイジイジできるようになっちゃいますよ!!</p>
]]></content:encoded>
			<wfw:commentRss>http://teclog.hattara.info/?feed=rss2&#038;p=91</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSH &amp; コマンドライン上で、TracWebAdminをインストールする。</title>
		<link>http://teclog.hattara.info/?p=88</link>
		<comments>http://teclog.hattara.info/?p=88#comments</comments>
		<pubDate>Fri, 08 May 2009 09:49:12 +0000</pubDate>
		<dc:creator><![CDATA[hattara]]></dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[Trac]]></category>

		<guid isPermaLink="false">http://teclog.hattara.info/?p=88</guid>
		<description><![CDATA[Google先生に教えてもらって、以下のような方法で可能でした。 cd /tmp wget http://pe [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Google先生に教えてもらって、以下のような方法で可能でした。</p>
<blockquote><p>
cd /tmp<br />
wget http://peak.telecommunity.com/dist/ez_setup.py<br />
python ez_setup.py</p>
<p>wget http://pocari.org/tools/trac/webadmin/TracWebAdmin-0.1.2dev-py2.3.egg<br />
easy_install TracWebAdmin-0.1.2dev-py2.3.egg</p>
<p>cd /home/trac/web/repos/conf<br />
cp -irp trac.ini trac.ini.`date +&#8217;%y%m%d&#8217;`<br />
vi trac.ini<br />
    [components]<br />
    webadmin.* = enabled</p>
<p>trac-admin /home/trac/web/repos<br />
    permission list<br />
    quit</p>
<p>/etc/rc.d/init.d/httpd restart
</p></blockquote>
<p>これで、TracにLoginしたら、一番右に「管理」というのが出てきます。<br />
これでユーザ管理とか色々できるようになります。</p>
]]></content:encoded>
			<wfw:commentRss>http://teclog.hattara.info/?feed=rss2&#038;p=88</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>危険なプログラミング25</title>
		<link>http://teclog.hattara.info/?p=65</link>
		<comments>http://teclog.hattara.info/?p=65#comments</comments>
		<pubDate>Thu, 15 Jan 2009 04:43:00 +0000</pubDate>
		<dc:creator><![CDATA[hattara]]></dc:creator>
				<category><![CDATA[perl]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[シェルスクリプト]]></category>
		<category><![CDATA[プログラミング]]></category>
		<category><![CDATA[危険]]></category>

		<guid isPermaLink="false">http://teclog.hattara.info/?p=65</guid>
		<description><![CDATA[ウェブの世界を徘徊してたら、見かけました。 海外の有名な人たちが、危険なプログラミング25を発表したようですね [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>ウェブの世界を徘徊してたら、見かけました。</p>
<p>海外の有名な人たちが、危険なプログラミング25を発表したようですね。</p>
<p> </p>
<p>ぱっと見だと、</p>
<p> </p>
<p>　・入力された値のVaidation</p>
<p>　・出力するもののエンコードとエスケープ処理</p>
<p>　・SQLインジェクション</p>
<p>　・クロスサイトスクリプティング</p>
<p>　・OSコマンド系のインジェクション</p>
<p>　　　：</p>
<p> </p>
<p>なんてあたりのが25項目書いてるみたいっすね。</p>
<p> </p>
<p>ちょっと時間ができたら、見返してみようとおもってます。</p>
<p> </p>
<p>もし、お時間がある方はみといたら、どうでしょう。（英語です）</p>
<p>http://www.sans.org/top25errors/?utm_source=web&#038;utm_medium=text-ad&#038;utm_content=Announcement_Bar_20090111&#038;utm_campaign=Top25&#038;ref=37029#s4</p>
<div></div>
]]></content:encoded>
			<wfw:commentRss>http://teclog.hattara.info/?feed=rss2&#038;p=65</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cent4&amp;PHP5&amp;Trac&amp;Pythonの甘い罠</title>
		<link>http://teclog.hattara.info/?p=34</link>
		<comments>http://teclog.hattara.info/?p=34#comments</comments>
		<pubDate>Thu, 09 Oct 2008 12:23:43 +0000</pubDate>
		<dc:creator><![CDATA[hattara]]></dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Cent]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[Trac]]></category>
		<category><![CDATA[Apache2]]></category>
		<category><![CDATA[Cent4]]></category>
		<category><![CDATA[エラーメッセージ]]></category>

		<guid isPermaLink="false">http://teclog.hattara.info/?p=34</guid>
		<description><![CDATA[Cent4(CentOS4)系でTrac(Python&#038;Sqlite)を使う場合に、 PHP5を利用 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Cent4(CentOS4)系でTrac(Python&#038;Sqlite)を使う場合に、<br />
PHP5を利用していると、(pdo_sqlite)がconflict?するようで、<br />
TracかPhpかどちらかしか動作しなくなる。</p>
<p>具体的には、yum版のApache2とかだと、<br />
/etc/httpd/conf.d/php.conf とかで以下の記述がある場合、<br />
Tracが動かなくなる。</p>
<blockquote><p>LoadModule php5_module modules/libphp5.so</p></blockquote>
<p>具体的には、ブラウザ上では、500エラーになり、<br />
エラーログでは、以下のような出力がたくさんでる。</p>
<blockquote><p>PythonHandler trac.web.modpython_frontend: DatabaseError: unsupported file format</p></blockquote>
<p>で、上記のLoadModuleをコメントアウトすると、Phpは動かなくなるが、<br />
Tracは動くようになる。</p>
<p>ということで、PhpでSqliteを使う予定がなければ、<br />
以下のようにpdo_sqlite.iniを適当な名前にリネームしてあげればよし。</p>
<blockquote><p>mv -i /etc/php.d/pdo_sqlite.ini /etc/php.d/pdo_sqlite.ini_org</p></blockquote>
<p>その後、Apacheの再起動をお忘れなく。<br />
yum版(rpm)のApacheの場合には、</p>
<blockquote><p>/usr/sbin/apachectl restart</p></blockquote>
<p>とかでいいですね。</p>
<p>で、以下のサイトを参考にさせてもらいました。</p>
<p><a href="http://www.ryuzee.com/contents/blog/670<br />
">Ryuzee.com >> CentOS4でPHP4から5にするとTracが動かなくなる</a></p>
]]></content:encoded>
			<wfw:commentRss>http://teclog.hattara.info/?feed=rss2&#038;p=34</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
