<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:blogChannel="http://backend.userland.com/blogChannelModule" >
  <channel>
  <title>まだ無題</title>
  <link>http://notitile.blog.shinobi.jp/</link>
  <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://notitile.blog.shinobi.jp/RSS/" />
  <description>blog no name still</description>
  <lastBuildDate>Tue, 30 Jun 2009 13:40:52 GMT</lastBuildDate>
  <language>ja</language>
  <copyright>© Ninja Tools Inc.</copyright>
  <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" />

    <item>
    <title>Boost Software License - Version 1.0　（俺的）和訳</title>
    <description>
    <![CDATA[<!--StartFragment--><font face="monospace">http://www.boost.org/LICENSE_1_0.txt</font>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div><font face="monospace">Boost Software License - Version 1.0 - August 17th, 2003</font></div>
<div>&nbsp;</div>
<div>あらゆる個人および団体に対して、使用、複製、表示、配布、実行、譲渡を目的として本ライセンスが適用されるそのソフトウェア、およびソフトウェアに付随するドキュメントを入手すること、またはソフトウェアの二次利用を行うこと、そのソフトウェアが供給された第三者として同様の行為を行うことに対して、無料で行えることをここに許可します。　条件は下記の通りです。</div>
<div>&nbsp;</div>
<div>著作権はソフトウェアと全てのコードに及びます。上記のライセンス許可を含め、この制限と下記の免責条項は、ソフトウェアの一部または全体のコピー、およびそのソフトウェアを元にした派生物にも含まれなくてはいけません。しかし、これらのコピーおよび派生物が単に実行ファイルとして存在する場合は除きます。</div>
<div>&nbsp;</div>
<div>そのソフトウェアは&rdquo;現状のまま(AS IS)&quot;として供給されます。商用的利用に耐えうる品質、特定の目的への適合性、著作権の非侵害・所有権を含め、明示的にも、暗示的にもいかなるな保証もありません。</div>
<div>いかなる場合においても、そのソフトウェアを配布する者または著作権の保有者は、たとえ契約書に記載してあった場合でも、</div>
<div>そのソフトウェアの不法行為的使用や、そのソフトウェアと接続するしないにかかわらず、そのソフトウェアの使用もしくはそのソフトウェアの内部的処理により発生したいかなる損害や障害について責任を負わないものとします。</div>]]>
    </description>
    <category>IT</category>
    <link>http://notitile.blog.shinobi.jp/it/boost%20software%20license%20-%20version%201.0%E3%80%80%EF%BC%88%E4%BF%BA%E7%9A%84%EF%BC%89%E5%92%8C%E8%A8%B3</link>
    <pubDate>Tue, 30 Jun 2009 13:40:52 GMT</pubDate>
    <guid isPermaLink="false">notitile.blog.shinobi.jp://entry/49</guid>
  </item>
    <item>
    <title>【JSON】jsoncppに挑戦・・・失敗。</title>
    <description>
    <![CDATA[<!--StartFragment-->C++でJSONしようと思う。
<div>CentOS5.2でjsoncppにトライ。</div>
<div>&nbsp;</div>
<div>参考URL:</div>
<div><font face="monospace">http://jsoncpp.sourceforge.net/index.html</font></div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>１．jsoncppをDL</div>
<div>２．scons-localをDL</div>
<div>&nbsp;</div>
<div>jsoncppのReadmeにあるとおりの方法でCentOSでコンパイル。scon-local <a href="http://sourceforge.net/project/showfiles.php?group_id=30337&amp;package_id=67375&amp;release_id=663496">1.2.0.d20090223</a></div>
<div>&rarr;エラーがでた。</div>
<div>&nbsp;</div>
<div><font face="monospace">[<a href="mailto:hogehoge@localhost">hogehoge@localhost</a> jsoncpp]$ python scons.py platform=linux-gcc check<br />
scons: Reading SConscript files ...<br />
Using platform 'linux-gcc-4.1.2'<br />
LD_LIBRARY_PATH = :libs/linux-gcc-4.1.2<br />
Building using PLATFORM = linux-gcc-4.1.2<br />
scons: done reading SConscript files.<br />
scons: Building targets ...<br />
RunJSONTests(&quot;[&lt;SCons.Node.FS.File instance at 0xb79df70c&gt;]&quot;)<br />
scons: *** [check] AttributeError : 'list' object has no attribute 'startswith'<br />
Traceback (most recent call last):<br />
&nbsp;&nbsp;File &quot;/home/yamamoto/jsoncpp/trunk/jsoncpp/scons-local-1.2.0.d20090223/SCons/Action.py&quot;, line 1041, in execute<br />
&nbsp;&nbsp;&nbsp;&nbsp;result = self.execfunction(target=target, source=rsources, env=env)<br />
&nbsp;&nbsp;File &quot;/home/yamamoto/jsoncpp/trunk/jsoncpp/scons-local-1.2.0.d20090223/SCons/Action.py&quot;, line 1205, in __call__<br />
&nbsp;&nbsp;&nbsp;&nbsp;return apply(self.parent.actfunc, args, kw)<br />
&nbsp;&nbsp;File &quot;/home/yamamoto/jsoncpp/trunk/jsoncpp/SConstruct&quot;, line 235, in runJSONTests_action<br />
&nbsp;&nbsp;&nbsp;&nbsp;return runjsontests.runAllTests( os.path.abspath(source), jsontest_path )<br />
&nbsp;&nbsp;File &quot;/usr/lib/python2.4/posixpath.py&quot;, line 403, in abspath<br />
&nbsp;&nbsp;&nbsp;&nbsp;if not isabs(path):<br />
&nbsp;&nbsp;File &quot;/usr/lib/python2.4/posixpath.py&quot;, line 49, in isabs<br />
&nbsp;&nbsp;&nbsp;&nbsp;return s.startswith('/')<br />
AttributeError: 'list' object has no attribute 'startswith'<br />
scons: building terminated because of error</font></div>
<div><font face="monospace">s.</font></div>
<div>&nbsp;</div>
<div>どうもjsoncpp側の不備のようだが、scons-localのバージョンを1.2.0.d20090113、1.1.0 と落として再試行を繰り返すけどだめ</div>
<div>&nbsp;</div>
<div>jsoncppはRevison69</div>
<div>Pythonは2.4.3</div>
<div>&nbsp;</div>
<div>jsconcppのRevison68を試してもだめ。Python2.6.2にしても余計だめでした。ん～。パスしよう。</div>]]>
    </description>
    <category>IT</category>
    <link>http://notitile.blog.shinobi.jp/it/%E3%80%90json%E3%80%91jsoncpp%E3%81%AB%E6%8C%91%E6%88%A6%E3%83%BB%E3%83%BB%E3%83%BB%E5%A4%B1%E6%95%97%E3%80%82</link>
    <pubDate>Tue, 30 Jun 2009 13:36:45 GMT</pubDate>
    <guid isPermaLink="false">notitile.blog.shinobi.jp://entry/48</guid>
  </item>
    <item>
    <title>Xoops: XSNSモジュールでサイト登録時に自動的に全てのコミュニティに参加するようにする</title>
    <description>
    <![CDATA[<p>　<font color="#0000ff">XSNSモジュールで、コミュニティ数を固定とし各サイトユーザーが全てのコミュニティに参加するという使い方をしたい。<br />
　前のエントリーでコミュニティの新規作成を管理者だけが行えるようにし、ユーザーが自由にコミュニティを作れなくする方法を紹介した。次はサイトへの登録時に全てのコミュニティに自動的に参加するように手を加える。</font><br />
<br />
[環境]<br />
XOOPS Cube Legacy 2.1.6<br />
XSNS 1.11<br />
&nbsp;</p>
<p><font size="4">①　コミュニティへの自動参加用関数の作成</font><br />
　ユーザーIDを引数にし、未参加のコミュニティを検出し一括参加登録する関数を作成し、<br />
　XOOPS_TRUST_PATH/modules/xsns/act/tmp/add_toAllCommunity.php　として保存する。</p>
<p><hr />
</p>
<p><font color="#808000"><font color="#000000">XOOPS_TRUST_PATH/modules/xsns/act/tmp/add_toAllCommunity.php　</font><br />
&lt;?php<br />
//全てのコミュニティに参加する</font></p>
<p><font color="#808000">require_once XOOPS_ROOT_PATH.&quot;/class/database/database.php&quot;;</font></p>
<p><font color="#808000">function addToAllCommunity($uid=0){<br />
&nbsp;if($uid+0==0) return false;<br />
&nbsp;<br />
&nbsp;$db=&amp;Database::getInstance();<br />
&nbsp;$table=&quot;setagaya100_xsns_c_commu&quot;;<br />
&nbsp;$table2=&quot;setagaya100_xsns_c_commu_member&quot;;<br />
&nbsp;<br />
&nbsp;//全コミュニティidリスト<br />
&nbsp;$prs=$db-&gt;query(&quot;SELECT c_commu_id FROM $table&quot;);<br />
&nbsp;if(!$prs) die( &quot;xsns custom error: auto add to community : &quot;.__LINE__ ) ;<br />
&nbsp;$num=$db-&gt;getRowsNum( $prs );<br />
&nbsp;if( $num &lt;= 0 ) die( &quot;xsns custom error: auto add to community : &quot;.__LINE__ ) ;<br />
&nbsp;$c_commu_ids=array();<br />
&nbsp;for($i=0;$i&lt;$num;$i++){<br />
&nbsp;&nbsp;$row=mysql_fetch_row($prs);<br />
&nbsp;&nbsp;$c_commu_ids[]=$row[0];<br />
&nbsp;}</font></p>
<p><font color="#808000">&nbsp;//参加済みコミュニティidリスト<br />
&nbsp;$prs=$db-&gt;query(&quot;SELECT c_commu_id FROM $table2 WHERE uid=$uid&quot;);<br />
&nbsp;if(!$prs) die( &quot;xsns custom error: auto add to community : &quot;.__LINE__ ) ;<br />
&nbsp;$num=$db-&gt;getRowsNum( $prs );<br />
&nbsp;$participate_commus=array();<br />
&nbsp;for($i=0;$i&lt;$num;$i++){<br />
&nbsp;&nbsp;$row=mysql_fetch_row($prs);<br />
&nbsp;&nbsp;$participate_commus[]=$row[0];<br />
&nbsp;}<br />
&nbsp;<br />
&nbsp;//未参加コミュニティidリスト<br />
&nbsp;$un_participate_commus=array_diff($c_commu_ids,$participate_commus);<br />
&nbsp;if( !count($un_participate_commus)) return true;<br />
&nbsp;<br />
&nbsp;//参加処理<br />
&nbsp;$count=0;<br />
&nbsp;foreach( $un_participate_commus as $value){<br />
&nbsp;&nbsp;$prs=$db-&gt;query(&quot;INSERT INTO $table2 (uid,c_commu_id,r_datetime) VALUES ($uid,$value,NOW() )&quot;);<br />
&nbsp;&nbsp;//print(&quot;sql: INSERT INTO $table2 (uid,c_commu_id,r_datetime) VALUES ($uid,$value,NOW() )&quot;);<br />
&nbsp;&nbsp;if(!$prs) die( &quot;xsns custom error: auto add to community : &quot;.__LINE__ .&quot;:&quot;.$db-&gt;logger-&gt;dumpQueries() );<br />
&nbsp;&nbsp;$count++;<br />
&nbsp;}<br />
&nbsp;<br />
&nbsp;return $count;</font></p>
<p><font color="#808000">}<br />
<br />
?&gt;<br />
</font></p>
<hr />
<p><br />
<br />
<font size="4">②　サイト登録時に①の関数を実行するように修正</font><br />
　ユーザーの登録処理は User_UserRegister_confirmActionクラスのexecute()で実行される。XOOPS_ROOT_PATH/modules/user/actions/UserRegister_confirmAction.class.php<br />
の60行目に①で作成した関数を呼び出す処理を追加する。<hr />
</p>
<p>XOOPS_ROOT_PATH/modules/user/actions/UserRegister_confirmAction.class.php<br />
execure()　(30行目以下）<br />
&nbsp;<font color="#808000">function execute(&amp;$controller, &amp;$xoopsUser)<br />
&nbsp;{<br />
&nbsp;&nbsp;$memberHandler =&amp; xoops_gethandler('member');<br />
&nbsp;&nbsp;$this-&gt;mNewUser =&amp; $memberHandler-&gt;createUser();<br />
&nbsp;&nbsp;$this-&gt;mRegistForm-&gt;update($this-&gt;mNewUser);<br />
&nbsp;&nbsp;$this-&gt;mNewUser-&gt;set('uorder', $controller-&gt;mRoot-&gt;mContext-&gt;getXoopsConfig('com_order'), true);<br />
&nbsp;&nbsp;$this-&gt;mNewUser-&gt;set('umode', $controller-&gt;mRoot-&gt;mContext-&gt;getXoopsConfig('com_mode'), true);<br />
&nbsp;&nbsp;if ($this-&gt;mConfig['activation_type'] == 1) {<br />
&nbsp;&nbsp;&nbsp;$this-&gt;mNewUser-&gt;set('level', 1, true);<br />
&nbsp;&nbsp;}<br />
&nbsp;&nbsp;<br />
&nbsp;&nbsp;if (!$memberHandler-&gt;insertUser($this-&gt;mNewUser)) {<br />
&nbsp;&nbsp;&nbsp;$this-&gt;mRedirectMessage = _MD_USER_LANG_REGISTERNG;<br />
&nbsp;&nbsp;&nbsp;return USER_FRAME_VIEW_ERROR;<br />
&nbsp;&nbsp;}</font></p>
<p><font color="#808000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!$memberHandler-&gt;addUserToGroup(XOOPS_GROUP_USERS, $this-&gt;mNewUser-&gt;get('uid'))) {<br />
&nbsp;&nbsp;&nbsp;$this-&gt;mRedirectMessage = _MD_USER_LANG_REGISTERNG;<br />
&nbsp;&nbsp;&nbsp;return USER_FRAME_VIEW_ERROR;<br />
&nbsp;&nbsp;}<br />
&nbsp;&nbsp;<br />
</font><font color="#800000">&nbsp;&nbsp;//ここを追加<br />
&nbsp;&nbsp;$file=XOOPS_TRUST_PATH.&quot;/modules/xsns/act/tmp/add_toAllCommunity.php&quot;;<br />
&nbsp;&nbsp;if( file_exists($file) ){<br />
&nbsp;&nbsp;&nbsp;require_once($file);<br />
&nbsp;&nbsp;&nbsp;if( !addToAllCommunity($this-&gt;mNewUser-&gt;get('uid')) ){<br />
&nbsp;&nbsp;&nbsp;&nbsp;die(&quot;Failed to add to all communities: XSNS custom error:&quot;);<br />
&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;}</font></p>
<p><font color="#808000">&nbsp;&nbsp;$this-&gt;_clearRegistForm($controller);</font></p>
<p><font color="#808000">&nbsp;&nbsp;$this-&gt;_processMail($controller);<br />
&nbsp;&nbsp;$this-&gt;_eventNotifyMail($controller);<br />
&nbsp;&nbsp;<br />
&nbsp;&nbsp;XCube_DelegateUtils::call('Legacy.Event.RegistUser.Success', new XCube_Ref($this-&gt;mNewUser));<br />
&nbsp;&nbsp;<br />
&nbsp;&nbsp;return USER_FRAME_VIEW_SUCCESS;<br />
&nbsp;}</font></p>
<hr />
<br />
<font color="#0000ff">以上で、サイトへの登録時に全てのコミュニティに登録される。今後、管理用にサイト登録時以外でもこの機能を呼び出せるようにしたい。また、コミュニティからの退会をできなくするよう手を加えることも必要。</font>]]>
    </description>
    <category>IT</category>
    <link>http://notitile.blog.shinobi.jp/it/xoops-%20xsns%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%81%A7%E3%82%B5%E3%82%A4%E3%83%88%E7%99%BB%E9%8C%B2%E6%99%82%E3%81%AB%E8%87%AA%E5%8B%95%E7%9A%84%E3%81%AB%E5%85%A8%E3%81%A6%E3%81%AE%E3%82%B3%E3%83%9F%E3%83%A5%E3%83%8B%E3%83%86%E3%82%A3%E3%81%AB%E5%8F%82%E5%8A%A0%E3%81%99%E3%82%8B%E3%82%88%E3%81%86%E3%81%AB%E3%81%99%E3%82%8B</link>
    <pubDate>Thu, 07 May 2009 14:14:19 GMT</pubDate>
    <guid isPermaLink="false">notitile.blog.shinobi.jp://entry/47</guid>
  </item>
    <item>
    <title>Xoops: XSNSモジュールで管理者しかコミュニティを作成できないようにする</title>
    <description>
    <![CDATA[<p><font color="#0000ff">XoopsでXSNSを使っている。d3forumなどフォーラム系のモジュールは機能がおおく見づらい気がする。SNSのトピックくらいがちょうどいい。ポータル的に使うことも考えてSNS系モジュールにした。しかしSNSなのでコミュニティはログインユーザーならだれでも作れてしまう。テーマ(?)が決まっているサイトなので、コミュニティはあらかじめテーマの数だけに限定したい。コミュニティの作成を管理者にしかできないようにXSNSを修正する。<br />
<br />
<font color="#000000">[環境]<br />
XOOPS Cube Legacy 2.1.6<br />
XSNS 1.11 <br />
<br />
</font></font></p>
<p><font color="#000000">[修正箇所]<br />
テンプレート側：「コミュニティ新規作成」出しわけの箇所<br />
php側：　入力フォームオープン時&rarr;入力内容確認時&rarr;新規作成実行時の各処理の箇所</font></p>
<p><br />
<font color="#000000">①テンプレート側<br />
　デフォルトではgestユーザー以外、（管理者を含むxoopsユーザー）の場合はXSNSトップページで<br />
「コミュニティ新規作成」のリンクが表示されるようになっている。<br />
　Xoopsのユーザーかどうかを判別するメソッドはisGuest()としてXsnsCommonActionクラスに定義されている。ここに、管理者かどうかを判別するメソッドisAdmin()を追加する。</font></p>
<hr />
<font color="#000000">XOOPS_TRUST_PATH/modules/xsns/userlib/class/commonAction.php XsnsCommonActionクラス内に下記を追加<br />
</font><font color="#808000">function isAdmin()<br />
{<br />
&nbsp;if($this-&gt;isXoopsUser()){<br />
&nbsp;&nbsp;global $xoopsUser;<br />
&nbsp;&nbsp;<br />
&nbsp;&nbsp;return $xoopsUser-&gt;isAdmin();<br />
&nbsp;}<br />
&nbsp;return false;<br />
}<br />
<hr />
</font>
<p>　<font color="#000000">isGuest()はXsns_Default_Action-&gt;dispatch()(XOOPS_TRUST_PATH/modules/xsns/act/index/defaultAction.php line105)<br />
でコールされ、結果がsmarty変数「is_guest」にセットされる(Xsns_Default_ActionクラスはXsnsCommonActionクラスを継承している。）。同様に先ほどのisAdmin()の結果を「is_admin」にセットするようにする。<br />
</font>&nbsp;</p>
<hr />
<font color="#000000">XOOPS_TRUST_PATH/modules/xsns/act/index/defaultAction.php dispatch()内<br />
</font><font color="#808000">&nbsp;$this-&gt;context-&gt;setAttribute('is_guest', $this-&gt;isGuest());<br />
&nbsp;<font color="#993300">$this-&gt;context-&gt;setAttribute('is_admin', $this-&gt;isAdmin()); /*&larr;ここを追加*/<br />
</font>&nbsp;$this-&gt;context-&gt;setAttribute('keyword', $keyword);<br />
&nbsp;$this-&gt;context-&gt;setAttribute('url', $url);</font><br />
<hr />
<br />
<br />
<p><font color="#000000">　XSNSトップページのテンプレート（xsns_index.html）に手を加え「コミュニティ新規作成」のリンクが管理者が閲覧したときのみ表示されるようにする。<br />
　（管理ページ &gt; テンプレートの管理 &gt; XSNS &gt; xsns_index.html）<br />
</font></p>
<hr />
<font color="#000000">xsns_index.htmlの1/4くらいのところ</font><br />
<font color="#339966">:before</font><br />
<font color="#808000">&lt;{if !$is_guest}&gt;<br />
&lt;tr class=&quot;even&quot;&gt;<br />
&lt;td colspan=&quot;2&quot; style=&quot;text-align:right;&quot;&gt;<br />
&lt;a href=&quot;&lt;{$xoops_url}&gt;/modules/&lt;{$mydirname}&gt;/?act=add&quot;&gt;&lt;{$smarty.const._MD_XSNS_INDEX_ADD}&gt;&lt;/a&gt;&amp;nbsp;&lt;{$smarty.const._MD_XSNS_INDEX_ADD_DESC}&gt;<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;{/if}&gt;</font>
<p><font color="#800080">:after</font><br />
<font color="#808000">&lt;{if $is_admin}&gt; &lt;!--&larr;ここを修正　--&gt;<br />
&lt;tr class=&quot;even&quot;&gt;<br />
&lt;td colspan=&quot;2&quot; style=&quot;text-align:right;&quot;&gt;<br />
&lt;a href=&quot;&lt;{$xoops_url}&gt;/modules/&lt;{$mydirname}&gt;/?act=add&quot;&gt;&lt;{$smarty.const._MD_XSNS_INDEX_ADD}&gt;&lt;/a&gt;&amp;nbsp;&lt;{$smarty.const._MD_XSNS_INDEX_ADD_DESC}&gt;<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;{/if}&gt;</font><br />
&nbsp;</p>
<hr />
<p><br />
<font color="#000000">②php側<br />
　テンプレート側でリンクを消しただけだとURLを指定してアクセスされた際にグループ作成ができてしまうので、php側でも管理者だけがグループ作成できるように手を加える。</font></p>
<p><font color="#000000">②-1入力フォームオープン時<br />
&nbsp;</font></p>
<hr />
<font color="#000000">XOOPS_TRUST_PATH/modules/xsns/act/index/addAction.php dispatch() (line8～)<br />
</font><font color="#339966">:before</font><br />
<font color="#808000">&nbsp;&nbsp;if($this-&gt;isGuest()){<br />
&nbsp;&nbsp;redirect_header(XOOPS_URL, 2, _NOPERM);<br />
&nbsp;}<br />
</font><br />
<font color="#800080">:after</font><br />
<font color="#808000">&nbsp;if( !$this-&gt;isAdmin() ){<br />
&nbsp;&nbsp;redirect_header(XOOPS_URL, 2, _NOPERM);<br />
&nbsp;}<br />
<hr />
<br />
</font>
<p><font color="#000000">②-2入力内容確認時</font><br />
&nbsp;</p>
<hr />
<font color="#000000">XOOPS_TRUST_PATH/modules/xsns/act/index/add_confirmAction.php dispatch() (line6～)</font><br />
<font color="#339966">:before</font><br />
&nbsp;<font color="#808000">if( $this-&gt;isGuest() ){<br />
&nbsp;&nbsp;redirect_header(XOOPS_URL, 2, _NOPERM);<br />
&nbsp;}</font><br />
<font color="#993366">:after</font><br />
<font color="#808000">&nbsp;if( !$this-&gt;isAdmin() ){<br />
&nbsp;&nbsp;redirect_header(XOOPS_URL, 2, _NOPERM);<br />
&nbsp;}<br />
<hr />
<br />
</font>
<p><font color="#000000">②-3新規作成実行時</font><br />
&nbsp;</p>
<hr />
<font color="#000000">XOOPS_TRUST_PATH/modules/xsns/act/index/add_execAction.php dispatch() (line8～)</font><br />
<font color="#339966">:before</font><br />
<font color="#808000">&nbsp;if($this-&gt;isGuest() || !$this-&gt;validateToken('COMMUNITY_ADD')){<br />
&nbsp;&nbsp;redirect_header(XOOPS_URL, 2, _NOPERM);<br />
&nbsp;}</font><br />
<font color="#993366">:after</font><br />
&nbsp;<font color="#808000">if(!$this-&gt;isAdmin() || !$this-&gt;validateToken('COMMUNITY_ADD')){<br />
&nbsp;&nbsp;redirect_header(XOOPS_URL, 2, _NOPERM);<br />
&nbsp;}<br />
<hr />
<br />
</font>
<p><font color="#0000ff">　以上で、管理者でアクセスした場合のみ「コミュニティ新規作成」のリンクが表示され、<br />
通常ユーザーではコミュニティ作成ができないようになる。</font><br />
&nbsp;</p>]]>
    </description>
    <category>IT</category>
    <link>http://notitile.blog.shinobi.jp/it/xoops-%20xsns%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%81%A7%E7%AE%A1%E7%90%86%E8%80%85%E3%81%97%E3%81%8B%E3%82%B3%E3%83%9F%E3%83%A5%E3%83%8B%E3%83%86%E3%82%A3%E3%82%92%E4%BD%9C%E6%88%90%E3%81%A7%E3%81%8D%E3%81%AA%E3%81%84%E3%82%88%E3%81%86%E3%81%AB%E3%81%99%E3%82%8B</link>
    <pubDate>Sun, 03 May 2009 05:04:57 GMT</pubDate>
    <guid isPermaLink="false">notitile.blog.shinobi.jp://entry/46</guid>
  </item>
    <item>
    <title>Xoopsに動的コンテンツを組み込む</title>
    <description>
    <![CDATA[<p><font color="#0000ff">Xoopsに新規のphpプログラム(動的なページ）を組み込みたい。<br />
d3none で実現することにした。<br />
<br />
<br />
</font></p>
<p>・モジュール調査<br />
モジュールを調べたところ、TinyContent,TinyD,pico,d3noneなど<br />
静的コンテンツの管理モジュールはあるようだが動的コンテンツを<br />
扱うモジュールは見つけることができなかった。<br />
（そもそも「動的コンテンツを扱う」という考え方がいらないのかも<br />
しれないが。）</p>
<p>pico系はTinyContent &rarr; TinyD &rarr; pico と進化している模様。<br />
d3noneはそれとは別系で何もない空白のページを組み込むモジュールらしい。<br />
何もない分自由度高いようなのでd3noneを使うことにした。</p>
<p><br />
・方法<br />
　d3noneで参照されるphpファイルに追加コードを書き込むことで動的ページを<br />
表示させられる。<br />
　XOOPS_TRUST_PATH/modules/d3none/main/index.php を下記のように修正<br />
&nbsp;</p>
<hr />
<p><font color="#808000">include('../../mainfile.php');<br />
include(XOOPS_ROOT_PATH.'/header.php');</font></p>
<p><font color="#808000">print &quot;test test test&quot;;&nbsp;&nbsp;//&larr;ここを追加</font></p>
<p><font color="#808000">// none<br />
include(XOOPS_ROOT_PATH.'/footer.php');<br />
exit();<br />
</font></p>
<hr />
<p><a target="_blank" href="//notitile.blog.shinobi.jp/File/7d92da23.jpg"><img alt="実行結果" align="left" border="0" src="//notitile.blog.shinobi.jp/Img/1239414226/" /></a></p>
<p><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
・index.php以外へのアクセス<br />
　index.php以外のファイルに表示するには、ブラウザで　<a href="http://'yourdomain'/html/modules/d3none/?page=hoge">http://'yourdomain'/html/modules/d3none/?page=hoge</a> にアクセスすると、XOOPS_ROOT_PATH/modules/d3none/main/hoge.phpにアクセスする。<br />
&nbsp;</p>]]>
    </description>
    <category>IT</category>
    <link>http://notitile.blog.shinobi.jp/it/xoops%E3%81%AB%E5%8B%95%E7%9A%84%E3%82%B3%E3%83%B3%E3%83%86%E3%83%B3%E3%83%84%E3%82%92%E7%B5%84%E3%81%BF%E8%BE%BC%E3%82%80</link>
    <pubDate>Sat, 11 Apr 2009 01:45:20 GMT</pubDate>
    <guid isPermaLink="false">notitile.blog.shinobi.jp://entry/45</guid>
  </item>
    <item>
    <title>scRUBYt!+REXML　複数のニュースサイトから最新ニュースをスクレイピングするアプリ</title>
    <description>
    <![CDATA[<p><font color="#0000ff">　scRUBYt!を使ったスクレイピングの練習に複数のニュースサイトから最新ニュースを集めて<br />
表示するサンプルアプリを作った。<br />
　scRUBYt!,REXMLとも適当なドキュメントが見つからず苦労した。<br />
<br />
<font color="#000000">[環境]<br />
　VMware Server 2.0.0<br />
　Fedora 10<br />
　Apache 2.2.10<br />
　ruby 1.8.6<br />
　scrubyt 0.3.4</font><br />
</font><br />
<br />
<a target="_blank" href="//notitile.blog.shinobi.jp/File/5a46d0f2.jpeg"><img alt="実行結果" align="left" border="0" src="//notitile.blog.shinobi.jp/Img/1238643526/" /></a><br />
<br />
・XPath<br />
&nbsp;scRUBYTt!でXPathの指定が期待通り動かず手間取った。<br />
私がXPathをよくわかっていないことも原因だろうと思うが、<br />
「:example_type =&gt; :xpath」をつけないとちゃんと動かない(?)との<br />
情報もあり。(<a href="http://d.hatena.ne.jp/kasei_san/20090204/p1">http://d.hatena.ne.jp/kasei_san/20090204/p1</a>)　　<br />
&nbsp;</p>
<p>・参考ドキュメント<br />
&nbsp;scRUBYt!<br />
&nbsp;<a href="http://github.com/scrubber/scrubyt_examples/tree/master">http://github.com/scrubber/scrubyt_examples/tree/master</a><br />
&nbsp; &rarr;scRUBYt!のサンプル。<br />
&nbsp;REXML<br />
&nbsp;<a href="http://www.germane-software.com/software/rexml/docs/tutorial.html">http://www.germane-software.com/software/rexml/docs/tutorial.html</a><br />
&nbsp; &rarr;はじめの方にある「Accessing Elements」は参考になった。<br />
&nbsp;<a href="http://pub.cozmixng.org/~kou/rexml-doc-ja/">http://pub.cozmixng.org/~kou/rexml-doc-ja/</a><br />
&nbsp; &rarr;それっぽいClass,Methodを感で使ってみた。<br />
&nbsp;</p>
<p>・データの扱い<br />
　scRUBYt!のto_hash関数でHASHオブジェクトにして扱おうと思ったが<br />
うまくいかなかった。入力データの構造に縛りがあるのだろうか。<br />
to_xmlで出力し、REXMLオブジェクトに入れて扱う。<br />
<br />
&nbsp;</p>
<hr />
<p><font color="#808000">#!/usr/bin/env ruby<br />
ENV['INLINEDIR']='/tmp/.ruby_inline'&nbsp;&nbsp;#RubyInlineのバグ(?)対策<br />
require 'rexml/document'<br />
require 'rubygems'<br />
require 'scrubyt' <br />
require 'kconv'</font></p>
<p><font color="#808000"><br />
#Cnet<br />
data1 = Scrubyt::Extractor.define&nbsp; do</font></p>
<p><font color="#808000">&nbsp;fetch 'http://japan.cnet.com/'</font></p>
<p><font color="#808000">&nbsp;record &quot;//div[@class='section08 articlelist08']&quot; do<br />
&nbsp;&nbsp;link_title &quot;//li/a&quot;, :write_text=&gt;true do<br />
&nbsp;&nbsp;&nbsp;link_url<br />
&nbsp;&nbsp;end<br />
&nbsp;end<br />
end<br />
xml1 = REXML::Document.new data1.to_xml</font></p>
<p><font color="#808000">#ITPro<br />
data2 = Scrubyt::Extractor.define&nbsp; do</font></p>
<p><font color="#808000">&nbsp;fetch 'http://itpro.nikkeibp.co.jp/news/index.html'</font></p>
<p><font color="#808000">&nbsp;record &quot;//div[@class='newsPickup']&quot; do<br />
&nbsp;&nbsp;link_title &quot;//div/span/a&quot;, :write_text=&gt;true do<br />
&nbsp;&nbsp;&nbsp;link_url<br />
&nbsp;&nbsp;end<br />
&nbsp;end<br />
end<br />
xml2 = REXML::Document.new data2.to_xml</font></p>
<p><font color="#808000">#CodeZine<br />
data3 = Scrubyt::Extractor.define&nbsp; do</font></p>
<p><font color="#808000">&nbsp;fetch 'http://codezine.jp/'</font></p>
<p><font color="#808000">&nbsp;record &quot;//div[@id='news_list']&quot; do<br />
&nbsp;&nbsp;link_title &quot;//li/a&quot;, :write_text=&gt;true do<br />
&nbsp;&nbsp;&nbsp;link_url<br />
&nbsp;&nbsp;end<br />
&nbsp;end<br />
end <br />
xml3 = REXML::Document.new data3.to_xml</font></p>
<p><font color="#808000">title=&quot;News-Search | 複数のニュースサイトから最新ニュースをスクレイピング&quot;</font></p>
<p><font color="#808000">#以下、表示部<br />
print &lt;&lt;&quot;EOS&quot;<br />
Content-type: text/html; charset=shift_jis\n\n<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;#{title}&lt;/title&gt;<br />
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=shift_jis&quot;&gt;<br />
&lt;style type=&quot;text/css&quot;&gt;<br />
&nbsp;td {border:1px black solid;vertical-align:top;}<br />
&nbsp;.yellow {background-color:yellow;}<br />
&nbsp;.blue&nbsp;{background-color:blue;}<br />
&nbsp;.green&nbsp;{background-color:green;}<br />
&lt;/style&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;h1&gt;#{title}&lt;/h1&gt;<br />
&lt;table style=&quot;border:1px black solid;&quot;&gt;<br />
&lt;tr&gt;<br />
&nbsp;&lt;td class=&quot;yellow&quot;&gt;CNET&lt;/td&gt;<br />
&nbsp;&lt;td class=&quot;blue&quot;&gt;ITPro&lt;/td&gt;<br />
&nbsp;&lt;td class=&quot;green&quot;&gt;CodeZine&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;<br />
EOS<br />
xml1.elements.each(&quot;//link_title&quot;){<br />
&nbsp;|element|<br />
&nbsp;puts &quot;&lt;a target='_blank' href=#{element.get_text('link_url')}&gt;#{element.text}&lt;/a&gt;&lt;br&gt;\n&quot;<br />
}</font></p>
<p><font color="#808000">print &lt;&lt;&quot;EOS&quot;<br />
&lt;/td&gt;<br />
&lt;td&gt;<br />
EOS<br />
xml2.elements.each(&quot;//link_title&quot;){<br />
&nbsp;|element|<br />
&nbsp;puts &quot;&lt;a target='_blank' href='http://itpro.nikkeibp.co.jp#{element.get_text('link_url')}'&gt;#{element.text.tosjis}&lt;/a&gt;&lt;br&gt;\n&quot;<br />
}</font></p>
<p><font color="#808000">print &lt;&lt;&quot;EOS&quot;<br />
&lt;/td&gt;<br />
&lt;td&gt;<br />
EOS<br />
xml3.elements.each(&quot;//link_title&quot;){<br />
&nbsp;|element|<br />
&nbsp;puts &quot;&lt;a target='_blank' href='http://codezine.jp/#{element.get_text('link_url')}'&gt;#{element.text.tosjis}&lt;/a&gt;&lt;br&gt;\n&quot;<br />
}</font></p>
<p><font color="#808000">print &lt;&lt;&quot;EOS&quot;<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
EOS<br />
</font></p>
<hr />]]>
    </description>
    <category>IT</category>
    <link>http://notitile.blog.shinobi.jp/it/scrubyt--rexml%E3%80%80%E8%A4%87%E6%95%B0%E3%81%AE%E3%83%8B%E3%83%A5%E3%83%BC%E3%82%B9%E3%82%B5%E3%82%A4%E3%83%88%E3%81%8B%E3%82%89%E6%9C%80%E6%96%B0%E3%83%8B%E3%83%A5%E3%83%BC%E3%82%B9%E3%82%92%E3%82%B9%E3%82%AF%E3%83%AC%E3%82%A4%E3%83%94%E3%83%B3%E3%82%B0%E3%81%99%E3%82%8B%E3%82%A2%E3%83%97%E3%83%AA</link>
    <pubDate>Thu, 02 Apr 2009 03:49:20 GMT</pubDate>
    <guid isPermaLink="false">notitile.blog.shinobi.jp://entry/44</guid>
  </item>
    <item>
    <title>桜は8分</title>
    <description>
    <![CDATA[<p>八時起床。<br />
朝食を食べ午前中は部屋で過ごす。<br />
<br />
昼食は国領でKと。<br />
<br />
ドトールのコーヒーがいつの間にか２００円に？前は１８０円だった気がする。<br />
世田谷保険事務所に自転車で行く。結局三軒茶屋～山下間を走破。<br />
役所の仕事って、なんというか、ストレスがすごそう。<br />
PCの画面がCUIベースのアプリのよう（古そう）で気になった。<br />
<br />
<br />
コーヒー 200円<br />
駐輪場 100円<br />
昼食　1,500円<br />
漫画喫茶　800円<br />
<br />
[カルディ]<br />
コーヒー豆 500円<br />
コーヒーフィルター 150円<br />
ビスケット 300円<br />
<br />
[パルケ]<br />
サンマ（３匹）　300円<br />
乾燥わかめ 250円<br />
米 2500円<br />
納豆 88円<br />
ウィスキー 800円</p>]]>
    </description>
    <category>日常</category>
    <link>http://notitile.blog.shinobi.jp/%E6%97%A5%E5%B8%B8/%E6%A1%9C%E3%81%AF8%E5%88%86</link>
    <pubDate>Mon, 30 Mar 2009 11:08:25 GMT</pubDate>
    <guid isPermaLink="false">notitile.blog.shinobi.jp://entry/43</guid>
  </item>
    <item>
    <title>Apacheの自動起動設定</title>
    <description>
    <![CDATA[<p><font color="#0000ff">Apaacheがシステムの起動時に自動的に起動するように設定しようとしたら、<br />
結構手こずったのでメモ。<br />
</font><br />
[環境]<br />
　VMware Server 2.0.0<br />
　Fedora 10<br />
　Apache 2.2.10<br />
<br />
<br />
・起動スクリプトは既にあった。<br />
/etc/rc/init.d/httpd<br />
<font color="#808000">---------------------------------------------------------------------------------------------<br />
#!/bin/bash<br />
#<br />
# httpd&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Startup script for the Apache HTTP Server<br />
#<br />
# chkconfig: - 85 15<br />
# description: The Apache HTTP Server is an efficient and extensible&nbsp; \<br />
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; server implementing the current HTTP standards.</font></p>
<p><font color="#808000">（以下略）<br />
---------------------------------------------------------------------------------------------<br />
</font><br />
「# chkconfig: - 85 15」 が　[起動レベル　起動順番　停止順番]になっている模様。<br />
起動レベルが「-」なので起動しない。ランレベル3,5で起動するように<br />
# chkconfig: 35 85 15　に変更<br />
&nbsp;</p>
<p><font color="#808000">[root@VMware1 ~]# chkconfig --add httpd<br />
[root@VMware1 ~]# chkconfig --list httpd<br />
httpd&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0:off&nbsp;&nbsp; 1:off&nbsp;&nbsp; 2:off&nbsp;&nbsp; 3:off&nbsp;&nbsp; 4:off&nbsp;&nbsp; 5:off&nbsp;&nbsp; 6:off</font></p>
<p>　&rarr;設定が反映されない。さっき修正した箇所が参照されているかどうかを確認するために、<br />
# chkconfig: 35 85 16　に変更してもう一度。<br />
&nbsp;</p>
<p><font color="#808000">[root@VMware1 ~]# chkconfig --add httpd</font><br />
<font color="#808000">[root@VMware1 ~]# chkconfig --list httpd<br />
httpd&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0:off&nbsp;&nbsp; 1:off&nbsp;&nbsp; 2:off&nbsp;&nbsp; 3:off&nbsp;&nbsp; 4:off&nbsp;&nbsp; 5:off&nbsp;&nbsp; 6:off<br />
[root@VMware1 ~]# ls -l /etc/rc3.d/*httpd<br />
lrwxrwxrwx 1 root root 15 2009-03-29 13:23 /etc/rc3.d/K<font color="#339966">16</font>httpd -&gt; ../init.d/httpd</font></p>
<p>　&rarr;やはり起動設定はできていないが、停止のためのシンボリックリンクは16になっているので<br />
修正した箇所が参照はされている模様。いろいろ試したがchkconfig --addでは起動設定できなかった。<br />
&nbsp;</p>
<p>・chkconfigコマンドでレベルを指定し直接設定<br />
<font color="#808000">[root@VMware1 ~]# chkconfig --level 35 httpd on<br />
[root@VMware1 ~]# chkconfig --list httpd<br />
httpd&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0:off&nbsp;&nbsp; 1:off&nbsp;&nbsp; 2:off&nbsp;&nbsp; <font color="#800000">3:on&nbsp;</font>&nbsp;&nbsp; 4:off&nbsp;&nbsp; <font color="#800000">5:on&nbsp;&nbsp;</font>&nbsp; 6:off</font><br />
　&rarr;設定できている。<br />
&nbsp;</p>
<p>・システムをシャットダウンから起動。<br />
<font color="#808000">[root@VMware1 ~]# service httpd status<br />
httpd (pid&nbsp; 2164) を実行中...</font><br />
&rarr;Apacheも起動してる。OK。rebootでも確認できた。<br />
&nbsp;</p>
<p>起動スクリプトの記述で起動設定できない理由は不明。。<br />
VMだから？</p>]]>
    </description>
    <category>IT</category>
    <link>http://notitile.blog.shinobi.jp/it/apache%E3%81%AE%E8%87%AA%E5%8B%95%E8%B5%B7%E5%8B%95%E8%A8%AD%E5%AE%9A</link>
    <pubDate>Sun, 29 Mar 2009 04:36:19 GMT</pubDate>
    <guid isPermaLink="false">notitile.blog.shinobi.jp://entry/42</guid>
  </item>
    <item>
    <title>scRUBYt!のサンプルをブラウザから実行</title>
    <description>
    <![CDATA[<p><font color="#0000ff">　scRUBYt!のサンプルプログラムebay.rbをブラウザからアクセスして動かしてみる。<br />
手こずったがなんとか動くようになったので作業ログ。<br />
　Webアプリにするときは表示出力部分を整えないといけない。<br />
</font></p>
<p>[環境]<br />
　VMware Server 2.0.0<br />
　Fedora 10<br />
　Apache 2.2.10<br />
　scRUBYt!-0.3.4<br />
　RubyInline-3.6.3<br />
<br />
・とりあえずブラウザからアクセスしてみるが、500エラーになる。<br />
Apacheのerror_logを見てみるとエラーが出力されている。<br />
<font color="#808000">[Sat Mar 28 13:08:08 2009] [error] [client 192.168.1.2] Define INLINEDIR or HOME in your environment and try again<br />
[Sat Mar 28 13:08:08 2009] [error] [client 192.168.1.2]<br />
[Sat Mar 28 13:08:08 2009] [error] [client 192.168.1.2] Premature end of script headers: ebay.rb<br />
</font></p>
<p>　調べてみると、「Define INLINEDIR or HOME in your environment and try again」はRubyInline-3.6.3のバグの模様。<br />
3.6.3より上のバージョンに代えようとしたが、scRUBYt!-0.3.4はRubyInline-3.6.3が必須。scRUBYt!の0.4.1以上はfirewatirをrequireするのでパスしたい。現状の構成でエラーを解決することにする。<br />
&nbsp;</p>
<p>　「Define INLINEDIR or HOME in your environment and try again」はRubyInlineが環境変数$HOME,$INLINEDIRのいずれかを参照しようとして、どちらも参照できない場合に起こる模様。（コマンドプロンプトで直接たたく際は$HOMEがあるが、Webサーバ経由で実行だとapacheユーザーになるため。）<br />
&nbsp;</p>
<p>・ebay.rbに、<br />
　ENV['INLINEDIR']=/tmp/.ruby_inline （※１）<br />
　を追記し、環境変数INLINEDIRが参照できるように修正しコマンドラインから実行。<br />
　&rarr;下記エラーが発生<br />
<br />
<font color="#808000">[root@VMware1 goy]# /var/www/cgi-test/ebay.rb<br />
/tmp/.ruby_inline is insecure (40777). It may not be group or world writable. Exiting.<br />
</font></p>
<p>・INLINEDIRに割り当てているフォルダのパーミッションを変更。<br />
　<font color="#808000">chmod -R 0755 /tmp/.ruby_inline</font><br />
　コマンドラインから実行&rarr;OK<br />
　ブラウザから実行&rarr;500エラー　error_logに下記が出力される。<br />
&nbsp;</p>
<p><font color="#808000">[Sat Mar 28 16:34:30 2009] [error] [client 192.168.1.2] /usr/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/core/scraping/filters/text_filter.rb:25: warning: don't put space before argument parentheses<br />
[Sat Mar 28 16:34:41 2009] [error] [client 192.168.1.2] malformed header from script. Bad header=&lt;root&gt;: ebay.rb<br />
</font></p>
<p>・http応答ヘッダーでContent-Typeを指定するよう追記（※２）<br />
　ブラウザから実行&rarr;OK！<br />
<br />
<a target="_blank" href="//notitile.blog.shinobi.jp/File/33d1eb11.jpeg"><img alt="33d1eb11.jpeg" align="left" border="0" src="//notitile.blog.shinobi.jp/Img/1238234484/" /></a></p>
<p>　<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
最終的にソースは下記のように。<br />
--------------------------------------------------------<br />
[root@VMware1 cgi-test]# vi ebay.rb</p>
<p>#!/usr/bin/ruby -K</p>
<p>ENV['INLINEDIR']='/tmp/.ruby_inline'&nbsp;&nbsp;#　<font color="#800000">&larr;※1</font><br />
require 'rubygems'<br />
require 'scrubyt'</p>
<p>ebay_data = Scrubyt::Extractor.define&nbsp; do</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fetch 'http://www.ebay.com/'<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fill_textfield 'satitle', 'ipod'<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; submit</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; record &quot;//table[@class='nol']&quot; do<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name &quot;//td[@class='details']/div/a&quot;<br />
&nbsp;&nbsp;&nbsp; end<br />
end</p>
<p>print &quot;Content-type: text/html\n\n&quot;&nbsp;&nbsp;#　<font color="#800000">&larr;※2</font><br />
puts ebay_data.to_xml</p>
<p>---------------------------------------------------------<br />
~</p>]]>
    </description>
    <category>IT</category>
    <link>http://notitile.blog.shinobi.jp/it/scrubyt-%E3%81%AE%E3%82%B5%E3%83%B3%E3%83%97%E3%83%AB%E3%82%92%E3%83%96%E3%83%A9%E3%82%A6%E3%82%B6%E3%81%8B%E3%82%89%E5%AE%9F%E8%A1%8C</link>
    <pubDate>Sat, 28 Mar 2009 10:04:13 GMT</pubDate>
    <guid isPermaLink="false">notitile.blog.shinobi.jp://entry/41</guid>
  </item>
    <item>
    <title>東亜コーヒー</title>
    <description>
    <![CDATA[<p>今日は朝食後、掃除洗濯。夕方までscRBYt!の研究。夜はフットサルの予定。<br />
<br />
ガストでモーニング(朝食)　600円<br />
セブンイレブン(昼食)　600円<br />
<br />
夕方から買い物<br />
<br />
駅前の東亜コーヒーでケーキセット 650円<br />
[買い物]<br />
りんご４つ、卵１０個、レタス、きゅうり２本　1000円<br />
食パン一斤、徳用ポークウィンナー　500円<br />
<br />
気になる喫茶店「琥珀」に行ってみようかと思ったが、人の気配が<br />
しなさすぎたので駅前の東亜コーヒーへ。<br />
結構人がいる。コーヒーはうまい。best coffee of the world とのこと。<br />
チェーン店なんだー。へー。<br />
&nbsp;</p>]]>
    </description>
    <category>日常</category>
    <link>http://notitile.blog.shinobi.jp/%E6%97%A5%E5%B8%B8/%E6%9D%B1%E4%BA%9C%E3%82%B3%E3%83%BC%E3%83%92%E3%83%BC</link>
    <pubDate>Sat, 28 Mar 2009 09:16:24 GMT</pubDate>
    <guid isPermaLink="false">notitile.blog.shinobi.jp://entry/40</guid>
  </item>

    </channel>
</rss>