<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Tone Color</title>
	<atom:link href="http://tonecolor.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://tonecolor.wordpress.com</link>
	<description>taraの別館</description>
	<lastBuildDate>Sun, 06 Dec 2009 02:35:29 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='tonecolor.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/6326ae24aa2648278c833c3ddc9a40e7?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Tone Color</title>
		<link>http://tonecolor.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://tonecolor.wordpress.com/osd.xml" title="Tone Color" />
	<atom:link rel='hub' href='http://tonecolor.wordpress.com/?pushpress=hub'/>
		<item>
		<title>chrome機能拡張をインストール</title>
		<link>http://tonecolor.wordpress.com/2009/12/06/chrome%e6%a9%9f%e8%83%bd%e6%8b%a1%e5%bc%b5%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab/</link>
		<comments>http://tonecolor.wordpress.com/2009/12/06/chrome%e6%a9%9f%e8%83%bd%e6%8b%a1%e5%bc%b5%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab/#comments</comments>
		<pubDate>Sat, 05 Dec 2009 15:12:16 +0000</pubDate>
		<dc:creator>tara123</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[機能拡張]]></category>

		<guid isPermaLink="false">http://tonecolor.wordpress.com/?p=405</guid>
		<description><![CDATA[早いだけではやはり少し寂しいところもあり、chromeの機能拡張を随分期待していた。いくつか紹介があったので入れてみた。 もっといろいろな機能拡張が見たい人はこちらをチェックするといい。chromeの機能拡張は再起動も不要でそのまま使えるのがいい。ちなみに使用しているchromeのバージョンは以下である。（Linux版） これは翻訳機能。設定で翻訳する言語を選択し、ショートカットやらを設定すればwebのテキスト翻訳をツールチップでやってくれる。 お手軽に翻訳できていい感じだ。この機能は結構欲しかったものだからうれしい。 次はTwitterもの。 あまりまだ試していない。 他にもいくつか入れてみた。 アイコンでも分かると思うが、真ん中のはDelicious、右のは何と早くもGoogle Waveだ。 機能拡張を大量に入れたりしてchromeが重くなるのは困るが、全くないのは不便というもの。便利な機能拡張を期待したい。<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonecolor.wordpress.com&amp;blog=4746149&amp;post=405&amp;subd=tonecolor&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>早いだけではやはり少し寂しいところもあり、chromeの機能拡張を随分期待していた。いくつか<a href="http://www.techcrunch.com/2009/12/05/11-chrome-extensions-for-starters/?utm_source=feedburner&amp;utm_medium=feed&amp;utm_campaign=Feed:+Techcrunch+(TechCrunch)&amp;utm_content=Google+Reader">紹介があった</a>ので入れてみた。</p>
<p>もっといろいろな機能拡張が見たい人は<a href="http://www.chromeextensions.org/">こちらをチェック</a>するといい。chromeの機能拡張は再起動も不要でそのまま使えるのがいい。ちなみに使用しているchromeのバージョンは以下である。（Linux版）</p>
<p><a href="http://tonecolor.files.wordpress.com/2009/12/snap17.png"><img class="alignnone size-medium wp-image-416" title="snap17" src="http://tonecolor.files.wordpress.com/2009/12/snap17.png?w=300&#038;h=271" alt="" width="300" height="271" /></a></p>
<p><a href="http://tonecolor.files.wordpress.com/2009/12/snap13.png"><img class="alignnone size-medium wp-image-406" title="snap13" src="http://tonecolor.files.wordpress.com/2009/12/snap13.png?w=300&#038;h=54" alt="" width="300" height="54" /></a>これは翻訳機能。設定で翻訳する言語を選択し、ショートカットやらを設定すればwebのテキスト翻訳をツールチップでやってくれる。</p>
<p><a href="http://tonecolor.files.wordpress.com/2009/12/snap12.png"><img class="alignnone size-medium wp-image-407" title="snap12" src="http://tonecolor.files.wordpress.com/2009/12/snap12.png?w=300&#038;h=180" alt="" width="300" height="180" /></a>お手軽に翻訳できていい感じだ。この機能は結構欲しかったものだからうれしい。</p>
<p>次はTwitterもの。</p>
<p><a href="http://tonecolor.files.wordpress.com/2009/12/snap15.png"><img class="alignnone size-medium wp-image-409" title="snap15" src="http://tonecolor.files.wordpress.com/2009/12/snap15.png?w=300&#038;h=17" alt="" width="300" height="17" /></a></p>
<p><a href="http://tonecolor.files.wordpress.com/2009/12/snap141.png"><img class="alignnone size-medium wp-image-410" title="snap14" src="http://tonecolor.files.wordpress.com/2009/12/snap141.png?w=261&#038;h=300" alt="" width="261" height="300" /></a>あまりまだ試していない。</p>
<p>他にもいくつか入れてみた。</p>
<p><a href="http://tonecolor.files.wordpress.com/2009/12/snap16.png"><img class="alignnone size-full wp-image-411" title="snap16" src="http://tonecolor.files.wordpress.com/2009/12/snap16.png?w=112&#038;h=51" alt="" width="112" height="51" /></a>アイコンでも分かると思うが、真ん中のはDelicious、右のは何と早くもGoogle Waveだ。</p>
<p>機能拡張を大量に入れたりしてchromeが重くなるのは困るが、全くないのは不便というもの。便利な機能拡張を期待したい。</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tonecolor.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tonecolor.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tonecolor.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tonecolor.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tonecolor.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tonecolor.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tonecolor.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tonecolor.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tonecolor.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tonecolor.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tonecolor.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tonecolor.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tonecolor.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tonecolor.wordpress.com/405/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonecolor.wordpress.com&amp;blog=4746149&amp;post=405&amp;subd=tonecolor&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tonecolor.wordpress.com/2009/12/06/chrome%e6%a9%9f%e8%83%bd%e6%8b%a1%e5%bc%b5%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">tara123</media:title>
		</media:content>

		<media:content url="http://tonecolor.files.wordpress.com/2009/12/snap17.png?w=300" medium="image">
			<media:title type="html">snap17</media:title>
		</media:content>

		<media:content url="http://tonecolor.files.wordpress.com/2009/12/snap13.png?w=300" medium="image">
			<media:title type="html">snap13</media:title>
		</media:content>

		<media:content url="http://tonecolor.files.wordpress.com/2009/12/snap12.png?w=300" medium="image">
			<media:title type="html">snap12</media:title>
		</media:content>

		<media:content url="http://tonecolor.files.wordpress.com/2009/12/snap15.png?w=300" medium="image">
			<media:title type="html">snap15</media:title>
		</media:content>

		<media:content url="http://tonecolor.files.wordpress.com/2009/12/snap141.png?w=261" medium="image">
			<media:title type="html">snap14</media:title>
		</media:content>

		<media:content url="http://tonecolor.files.wordpress.com/2009/12/snap16.png" medium="image">
			<media:title type="html">snap16</media:title>
		</media:content>
	</item>
		<item>
		<title>EvernoteとEye-Fi</title>
		<link>http://tonecolor.wordpress.com/2009/11/28/evernote%e3%81%a8eye-fi/</link>
		<comments>http://tonecolor.wordpress.com/2009/11/28/evernote%e3%81%a8eye-fi/#comments</comments>
		<pubDate>Sat, 28 Nov 2009 04:27:53 +0000</pubDate>
		<dc:creator>tara123</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Evernote]]></category>
		<category><![CDATA[Eye-Fi]]></category>

		<guid isPermaLink="false">http://tonecolor.wordpress.com/?p=402</guid>
		<description><![CDATA[Evernoteを使い始めたこともあり、便利に使うためにEye-Fiを購入してみた。 自宅は無線LANなので普段使っていないコンパクトデジカメにEye-Fiを挿入して、そのまま撮影するとEvernoteへ自動的に転送される。なんとも素晴らしい。 値段としても8000円を切っているので、そんなに冒険感覚でなく試せる。 これなら、例えば名刺なんかを撮影するだけでEvernoteへ登録されるので面倒な作業なしに管理できる。シャッターを押して数秒後にはEvernoteに登録されていた。 かなり便利になること間違いなしだ。 &#160;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonecolor.wordpress.com&amp;blog=4746149&amp;post=402&amp;subd=tonecolor&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Evernoteを使い始めたこともあり、便利に使うために<a href="http://www.eyefi.co.jp/">Eye-Fi</a>を購入してみた。</p>
<p>自宅は無線LANなので普段使っていないコンパクトデジカメにEye-Fiを挿入して、そのまま撮影するとEvernoteへ自動的に転送される。なんとも素晴らしい。</p>
<p>値段としても8000円を切っているので、そんなに冒険感覚でなく試せる。</p>
<p>これなら、例えば名刺なんかを撮影するだけでEvernoteへ登録されるので面倒な作業なしに管理できる。シャッターを押して数秒後にはEvernoteに登録されていた。</p>
<p>かなり便利になること間違いなしだ。</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tonecolor.wordpress.com/402/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tonecolor.wordpress.com/402/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tonecolor.wordpress.com/402/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tonecolor.wordpress.com/402/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tonecolor.wordpress.com/402/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tonecolor.wordpress.com/402/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tonecolor.wordpress.com/402/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tonecolor.wordpress.com/402/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tonecolor.wordpress.com/402/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tonecolor.wordpress.com/402/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tonecolor.wordpress.com/402/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tonecolor.wordpress.com/402/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tonecolor.wordpress.com/402/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tonecolor.wordpress.com/402/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonecolor.wordpress.com&amp;blog=4746149&amp;post=402&amp;subd=tonecolor&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tonecolor.wordpress.com/2009/11/28/evernote%e3%81%a8eye-fi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">tara123</media:title>
		</media:content>
	</item>
		<item>
		<title>EvernoteクライアントをDebianに</title>
		<link>http://tonecolor.wordpress.com/2009/11/21/evernote%e3%82%af%e3%83%a9%e3%82%a4%e3%82%a2%e3%83%b3%e3%83%88%e3%82%92debian%e3%81%ab/</link>
		<comments>http://tonecolor.wordpress.com/2009/11/21/evernote%e3%82%af%e3%83%a9%e3%82%a4%e3%82%a2%e3%83%b3%e3%83%88%e3%82%92debian%e3%81%ab/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 05:05:22 +0000</pubDate>
		<dc:creator>tara123</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[Evernote]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://tonecolor.wordpress.com/?p=392</guid>
		<description><![CDATA[メモ書きツールとしてEvernoteを使用してみようと思いアカウントを作成したが、いちいちブラウザでサイトを開くのはバカらしい。クライアントソフトもあるが、Linux版が無かったのでwineでWindows版を入れることにした。 ダウンロードしたら、wineのファイルマネージャを開いて落としたexeをクリックして機動するとインストーラが走り完了。起動してみるが日本語化されていなかったので、このサイトからpatchを入手して実行してみた。 メニューはちゃんと日本語化されている。メモの部分はフォントを指定してあげれば日本語も大丈夫だが、メモタイトルは化けている。 タイトルが化けているのでは不完全ということで、wineのフォントの設定を見直す。このページが役に立つ。 tahoma.ttfとtahomabd.ttfがダメダメらしい。これらを削除したりすれば下のイメージのようにタイトルもちゃんと日本語表示される。（入力も問題ない） Linux版が正式にでるのが良いのかもしれないが、今のままでも十分使える。メモさえ簡単に書ければそれでいいのだ。（下の画像はタイトルのフォント修正を直す前のイメージ）<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonecolor.wordpress.com&amp;blog=4746149&amp;post=392&amp;subd=tonecolor&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>メモ書きツールとして<a href="http://www.evernote.com/">Evernote</a>を使用してみようと思いアカウントを作成したが、いちいちブラウザでサイトを開くのはバカらしい。クライアントソフトもあるが、Linux版が無かったのでwineで<a href="http://www.evernote.com/about/download/windows.php">Windows版</a>を入れることにした。</p>
<p>ダウンロードしたら、wineのファイルマネージャを開いて落としたexeをクリックして機動するとインストーラが走り完了。起動してみるが日本語化されていなかったので、<a href="http://fkimura.net/application/1-evernote-japanese.html">このサイト</a>からpatchを入手して実行してみた。</p>
<p><a href="http://tonecolor.files.wordpress.com/2009/11/snap8.png"><img class="alignnone size-medium wp-image-393" title="snap8" src="http://tonecolor.files.wordpress.com/2009/11/snap8.png?w=300&#038;h=245" alt="" width="300" height="245" /></a></p>
<p>メニューはちゃんと日本語化されている。メモの部分はフォントを指定してあげれば日本語も大丈夫だが、メモタイトルは化けている。</p>
<p><a href="http://tonecolor.files.wordpress.com/2009/11/snap9.png"><img class="alignnone size-medium wp-image-394" title="snap9" src="http://tonecolor.files.wordpress.com/2009/11/snap9.png?w=300&#038;h=209" alt="" width="300" height="209" /></a></p>
<p>タイトルが化けているのでは不完全ということで、wineのフォントの設定を見直す。<a href="http://puppylinuxforever.blogspot.com/2009/01/wine.html">このページ</a>が役に立つ。</p>
<p>tahoma.ttfとtahomabd.ttfがダメダメらしい。これらを削除したりすれば下のイメージのようにタイトルもちゃんと日本語表示される。（入力も問題ない）</p>
<p><a href="http://tonecolor.files.wordpress.com/2009/11/snap11.png"><img class="alignnone size-medium wp-image-398" title="snap11" src="http://tonecolor.files.wordpress.com/2009/11/snap11.png?w=300&#038;h=147" alt="" width="300" height="147" /></a></p>
<p>Linux版が正式にでるのが良いのかもしれないが、今のままでも十分使える。メモさえ簡単に書ければそれでいいのだ。（下の画像はタイトルのフォント修正を直す前のイメージ）</p>
<p><a href="http://tonecolor.files.wordpress.com/2009/11/snap101.png"><img class="alignnone size-medium wp-image-395" title="snap10" src="http://tonecolor.files.wordpress.com/2009/11/snap101.png?w=300&#038;h=240" alt="" width="300" height="240" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tonecolor.wordpress.com/392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tonecolor.wordpress.com/392/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tonecolor.wordpress.com/392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tonecolor.wordpress.com/392/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tonecolor.wordpress.com/392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tonecolor.wordpress.com/392/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tonecolor.wordpress.com/392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tonecolor.wordpress.com/392/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tonecolor.wordpress.com/392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tonecolor.wordpress.com/392/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tonecolor.wordpress.com/392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tonecolor.wordpress.com/392/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tonecolor.wordpress.com/392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tonecolor.wordpress.com/392/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonecolor.wordpress.com&amp;blog=4746149&amp;post=392&amp;subd=tonecolor&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tonecolor.wordpress.com/2009/11/21/evernote%e3%82%af%e3%83%a9%e3%82%a4%e3%82%a2%e3%83%b3%e3%83%88%e3%82%92debian%e3%81%ab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">tara123</media:title>
		</media:content>

		<media:content url="http://tonecolor.files.wordpress.com/2009/11/snap8.png?w=300" medium="image">
			<media:title type="html">snap8</media:title>
		</media:content>

		<media:content url="http://tonecolor.files.wordpress.com/2009/11/snap9.png?w=300" medium="image">
			<media:title type="html">snap9</media:title>
		</media:content>

		<media:content url="http://tonecolor.files.wordpress.com/2009/11/snap11.png?w=300" medium="image">
			<media:title type="html">snap11</media:title>
		</media:content>

		<media:content url="http://tonecolor.files.wordpress.com/2009/11/snap101.png?w=300" medium="image">
			<media:title type="html">snap10</media:title>
		</media:content>
	</item>
		<item>
		<title>WebPage subset or HTML Widget</title>
		<link>http://tonecolor.wordpress.com/2009/11/21/webpage-subset-or-html-widget/</link>
		<comments>http://tonecolor.wordpress.com/2009/11/21/webpage-subset-or-html-widget/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 02:47:40 +0000</pubDate>
		<dc:creator>tara123</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[美人時計]]></category>
		<category><![CDATA[KDE]]></category>

		<guid isPermaLink="false">http://tonecolor.wordpress.com/?p=383</guid>
		<description><![CDATA[またまた美人時計もの。KDE4ではplasmaのウィジェットで美人時計をデスクトップ表示させている。plasmaウィジェットはダウンロードして追加することができるが、WebPage subset or HTML Widgetというものがあったのでインストールしてみた。 このウィジェットはURLのバーが隠れておりスッキリと収まるので見た目がいい。ただ、美人時計の場合はJavascriptで画像を切り替えていくので、Auto Refreshを行う必要が無いのだが、この機能を解除することができないのが残念。 Auto Refreshの秒数を果てしなく大きく設定しておくことにする。<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonecolor.wordpress.com&amp;blog=4746149&amp;post=383&amp;subd=tonecolor&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>またまた美人時計もの。KDE4ではplasmaのウィジェットで美人時計をデスクトップ表示させている。plasmaウィジェットはダウンロードして追加することができるが、WebPage subset or HTML Widgetというものがあったのでインストールしてみた。</p>
<p><a href="http://tonecolor.files.wordpress.com/2009/11/snap4.png"><img class="alignnone size-medium wp-image-386" title="snap4" src="http://tonecolor.files.wordpress.com/2009/11/snap4.png?w=276&#038;h=300" alt="" width="276" height="300" /></a></p>
<p><a href="http://tonecolor.files.wordpress.com/2009/11/snap5.png"><img class="alignnone size-medium wp-image-388" title="snap5" src="http://tonecolor.files.wordpress.com/2009/11/snap5.png?w=300&#038;h=240" alt="" width="300" height="240" /></a></p>
<p><a href="http://tonecolor.files.wordpress.com/2009/11/snap6.png"><img class="alignnone size-medium wp-image-389" title="snap6" src="http://tonecolor.files.wordpress.com/2009/11/snap6.png?w=244&#038;h=300" alt="" width="244" height="300" /></a><a href="http://tonecolor.files.wordpress.com/2009/11/snap7.png"><img class="alignnone size-medium wp-image-390" title="snap7" src="http://tonecolor.files.wordpress.com/2009/11/snap7.png?w=245&#038;h=300" alt="" width="245" height="300" /></a></p>
<p>このウィジェットはURLのバーが隠れておりスッキリと収まるので見た目がいい。ただ、美人時計の場合はJavascriptで画像を切り替えていくので、Auto Refreshを行う必要が無いのだが、この機能を解除することができないのが残念。</p>
<p><a href="http://tonecolor.files.wordpress.com/2009/11/snap1.png"><img class="alignnone size-medium wp-image-384" title="snap1" src="http://tonecolor.files.wordpress.com/2009/11/snap1.png?w=300&#038;h=228" alt="" width="300" height="228" /></a></p>
<p>Auto Refreshの秒数を果てしなく大きく設定しておくことにする。</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tonecolor.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tonecolor.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tonecolor.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tonecolor.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tonecolor.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tonecolor.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tonecolor.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tonecolor.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tonecolor.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tonecolor.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tonecolor.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tonecolor.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tonecolor.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tonecolor.wordpress.com/383/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonecolor.wordpress.com&amp;blog=4746149&amp;post=383&amp;subd=tonecolor&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tonecolor.wordpress.com/2009/11/21/webpage-subset-or-html-widget/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">tara123</media:title>
		</media:content>

		<media:content url="http://tonecolor.files.wordpress.com/2009/11/snap4.png?w=276" medium="image">
			<media:title type="html">snap4</media:title>
		</media:content>

		<media:content url="http://tonecolor.files.wordpress.com/2009/11/snap5.png?w=300" medium="image">
			<media:title type="html">snap5</media:title>
		</media:content>

		<media:content url="http://tonecolor.files.wordpress.com/2009/11/snap6.png?w=244" medium="image">
			<media:title type="html">snap6</media:title>
		</media:content>

		<media:content url="http://tonecolor.files.wordpress.com/2009/11/snap7.png?w=245" medium="image">
			<media:title type="html">snap7</media:title>
		</media:content>

		<media:content url="http://tonecolor.files.wordpress.com/2009/11/snap1.png?w=300" medium="image">
			<media:title type="html">snap1</media:title>
		</media:content>
	</item>
		<item>
		<title>デスクトップへ美人時計を　その3</title>
		<link>http://tonecolor.wordpress.com/2009/11/15/%e3%83%87%e3%82%b9%e3%82%af%e3%83%88%e3%83%83%e3%83%97%e3%81%b8%e7%be%8e%e4%ba%ba%e6%99%82%e8%a8%88%e3%82%92%e3%80%80%e3%81%9d%e3%81%ae3/</link>
		<comments>http://tonecolor.wordpress.com/2009/11/15/%e3%83%87%e3%82%b9%e3%82%af%e3%83%88%e3%83%83%e3%83%97%e3%81%b8%e7%be%8e%e4%ba%ba%e6%99%82%e8%a8%88%e3%82%92%e3%80%80%e3%81%9d%e3%81%ae3/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 08:09:04 +0000</pubDate>
		<dc:creator>tara123</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[美人時計]]></category>

		<guid isPermaLink="false">http://tonecolor.wordpress.com/?p=379</guid>
		<description><![CDATA[随分と前にデスクトップへ美人時計を表示させる投稿をしたが、環境をアップグレードしたので今の環境でどんな感じかをアップしてみる。 使用しているツールはKDEのウィジェットでシンプルブラウザだ。昔はできなかったが、表示するページ自体を縮小表示させることができるので好みの大きさで配置することができる。ウィジェットのテーマを透明なものに変えればデスクトップに張り付いているように見える。 こんな感じになっている。 この美人時計だが、写真はどのくらいで変わっていくのだろう？頻繁に変わってくれた方が楽しいのだが、スタッフは大変か。(笑） &#160;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonecolor.wordpress.com&amp;blog=4746149&amp;post=379&amp;subd=tonecolor&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>随分と前にデスクトップへ美人時計を表示させる投稿をしたが、環境をアップグレードしたので今の環境でどんな感じかをアップしてみる。</p>
<p>使用しているツールはKDEのウィジェットでシンプルブラウザだ。昔はできなかったが、表示するページ自体を縮小表示させることができるので好みの大きさで配置することができる。ウィジェットのテーマを透明なものに変えればデスクトップに張り付いているように見える。</p>
<p>こんな感じになっている。</p>
<span class='embed-youtube' style='text-align:center; display:block;'><object width='450' height='284'><param name='movie' value='http://www.youtube.com/v/PX6tahte3T0?version=3&rel=1&fs=1&showsearch=0&showinfo=1&iv_load_policy=1' /> <param name='allowfullscreen' value='true' /> <param name='wmode' value='opaque' /> <embed src='http://www.youtube.com/v/PX6tahte3T0?version=3&rel=1&fs=1&showsearch=0&showinfo=1&iv_load_policy=1' type='application/x-shockwave-flash' allowfullscreen='true' width='450' height='284' wmode='opaque'></embed> </object></span>
<p>この美人時計だが、写真はどのくらいで変わっていくのだろう？頻繁に変わってくれた方が楽しいのだが、スタッフは大変か。(笑）</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tonecolor.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tonecolor.wordpress.com/379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tonecolor.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tonecolor.wordpress.com/379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tonecolor.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tonecolor.wordpress.com/379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tonecolor.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tonecolor.wordpress.com/379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tonecolor.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tonecolor.wordpress.com/379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tonecolor.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tonecolor.wordpress.com/379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tonecolor.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tonecolor.wordpress.com/379/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonecolor.wordpress.com&amp;blog=4746149&amp;post=379&amp;subd=tonecolor&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tonecolor.wordpress.com/2009/11/15/%e3%83%87%e3%82%b9%e3%82%af%e3%83%88%e3%83%83%e3%83%97%e3%81%b8%e7%be%8e%e4%ba%ba%e6%99%82%e8%a8%88%e3%82%92%e3%80%80%e3%81%9d%e3%81%ae3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">tara123</media:title>
		</media:content>
	</item>
		<item>
		<title>Go Language</title>
		<link>http://tonecolor.wordpress.com/2009/11/14/go-language/</link>
		<comments>http://tonecolor.wordpress.com/2009/11/14/go-language/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 00:49:25 +0000</pubDate>
		<dc:creator>tara123</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[go]]></category>
		<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">http://tonecolor.wordpress.com/?p=374</guid>
		<description><![CDATA[Googleが言語を出したというので入れてみた。 Goとかいう名前らしい、ここから入手してコンパイルする。コンパイル自体はすんなりと終わり、コンパイラとかできたのはいいが、名前がなんともいただけない。8aとか8gとか8lとかって何だよ？覚えられません。 サンプルのhello.goを8gでコンパイルして8lでリンクする。出来た実行プログラムは8.outときた。 取り合えず入れてはみました。良く解っていないがいい言語になることを期待します。 &#160;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonecolor.wordpress.com&amp;blog=4746149&amp;post=374&amp;subd=tonecolor&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Googleが言語を出したというので入れてみた。</p>
<p>Goとかいう名前らしい、<a href="http://golang.org/">ここ</a>から入手してコンパイルする。コンパイル自体はすんなりと終わり、コンパイラとかできたのはいいが、名前がなんともいただけない。8aとか8gとか8lとかって何だよ？覚えられません。</p>
<p>サンプルのhello.goを8gでコンパイルして8lでリンクする。出来た実行プログラムは8.outときた。</p>
<p><a href="http://tonecolor.files.wordpress.com/2009/11/snap13.png"><img class="alignnone size-medium wp-image-375" title="snap13" src="http://tonecolor.files.wordpress.com/2009/11/snap13.png?w=300&#038;h=155" alt="snap13" width="300" height="155" /></a></p>
<p>取り合えず入れてはみました。良く解っていないがいい言語になることを期待します。</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tonecolor.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tonecolor.wordpress.com/374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tonecolor.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tonecolor.wordpress.com/374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tonecolor.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tonecolor.wordpress.com/374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tonecolor.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tonecolor.wordpress.com/374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tonecolor.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tonecolor.wordpress.com/374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tonecolor.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tonecolor.wordpress.com/374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tonecolor.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tonecolor.wordpress.com/374/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonecolor.wordpress.com&amp;blog=4746149&amp;post=374&amp;subd=tonecolor&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tonecolor.wordpress.com/2009/11/14/go-language/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">tara123</media:title>
		</media:content>

		<media:content url="http://tonecolor.files.wordpress.com/2009/11/snap13.png?w=300" medium="image">
			<media:title type="html">snap13</media:title>
		</media:content>
	</item>
		<item>
		<title>pl/sqlのドキュメント生成</title>
		<link>http://tonecolor.wordpress.com/2009/11/01/plsql%e3%81%ae%e3%83%89%e3%82%ad%e3%83%a5%e3%83%a1%e3%83%b3%e3%83%88%e7%94%9f%e6%88%90/</link>
		<comments>http://tonecolor.wordpress.com/2009/11/01/plsql%e3%81%ae%e3%83%89%e3%82%ad%e3%83%a5%e3%83%a1%e3%83%b3%e3%83%88%e7%94%9f%e6%88%90/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 05:05:42 +0000</pubDate>
		<dc:creator>tara123</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[pl/sql]]></category>
		<category><![CDATA[pldoc]]></category>

		<guid isPermaLink="false">http://tonecolor.wordpress.com/?p=367</guid>
		<description><![CDATA[最近、pl/sqlのコードを書いてみたりしているが、ドキュメントの生成も欲しいところ、探すとPLDocというものがあったのでちょっと試した。 javadocと同じ感じで使用すると、ドキュメントをちゃんと生成してくれた。 この手のツールはあると非常に助かるが、pl/sqlのようなOracle社しかエンジン開発しないような言語は初めからOracle社として用意すべきではないだろうか？ いつかこの手のツールがOracleに標準装備されることを期待する。 &#160;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonecolor.wordpress.com&amp;blog=4746149&amp;post=367&amp;subd=tonecolor&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>最近、pl/sqlのコードを書いてみたりしているが、ドキュメントの生成も欲しいところ、探すとPLDocというものがあったのでちょっと試した。</p>
<p>javadocと同じ感じで使用すると、ドキュメントをちゃんと生成してくれた。</p>
<p><a href="http://tonecolor.files.wordpress.com/2009/11/snap10.png"><img class="alignnone size-medium wp-image-368" title="snap10" src="http://tonecolor.files.wordpress.com/2009/11/snap10.png?w=300&#038;h=209" alt="snap10" width="300" height="209" /></a>この手のツールはあると非常に助かるが、pl/sqlのようなOracle社しかエンジン開発しないような言語は初めからOracle社として用意すべきではないだろうか？</p>
<p>いつかこの手のツールがOracleに標準装備されることを期待する。</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tonecolor.wordpress.com/367/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tonecolor.wordpress.com/367/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tonecolor.wordpress.com/367/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tonecolor.wordpress.com/367/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tonecolor.wordpress.com/367/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tonecolor.wordpress.com/367/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tonecolor.wordpress.com/367/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tonecolor.wordpress.com/367/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tonecolor.wordpress.com/367/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tonecolor.wordpress.com/367/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tonecolor.wordpress.com/367/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tonecolor.wordpress.com/367/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tonecolor.wordpress.com/367/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tonecolor.wordpress.com/367/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonecolor.wordpress.com&amp;blog=4746149&amp;post=367&amp;subd=tonecolor&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tonecolor.wordpress.com/2009/11/01/plsql%e3%81%ae%e3%83%89%e3%82%ad%e3%83%a5%e3%83%a1%e3%83%b3%e3%83%88%e7%94%9f%e6%88%90/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">tara123</media:title>
		</media:content>

		<media:content url="http://tonecolor.files.wordpress.com/2009/11/snap10.png?w=300" medium="image">
			<media:title type="html">snap10</media:title>
		</media:content>
	</item>
		<item>
		<title>pl/sqlからsyslogへ出力</title>
		<link>http://tonecolor.wordpress.com/2009/10/30/plsql%e3%81%8b%e3%82%89syslog%e3%81%b8%e5%87%ba%e5%8a%9b/</link>
		<comments>http://tonecolor.wordpress.com/2009/10/30/plsql%e3%81%8b%e3%82%89syslog%e3%81%b8%e5%87%ba%e5%8a%9b/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 06:18:18 +0000</pubDate>
		<dc:creator>tara123</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[pl/sql]]></category>
		<category><![CDATA[syslog]]></category>

		<guid isPermaLink="false">http://tonecolor.wordpress.com/?p=361</guid>
		<description><![CDATA[ログ出力の種類として、syslogへの出力も欲しい。作成中のログ出力プログラムは出力する対象によりオブジェクトを用意するようになっているため、syslog出力用のオブジェクトも書いてみた。 ------------------------------------ -- logger_syslog_typ -- syslog出力型 ------------------------------------ CREATE OR REPLACE TYPE logger_syslog_typ UNDER logger_typ ( OVERRIDING MEMBER PROCEDURE write( MSG IN logmsg_typ ) ) NOT final; / CREATE OR REPLACE TYPE BODY logger_syslog_typ AS OVERRIDING MEMBER PROCEDURE write( MSG IN logmsg_typ ) IS v_job_name varchar2(100);    --JOB NAME編集用 v_action   varchar2(1000); --外部プログラム BEGIN v_job_name := 'SYSLOG' &#124;&#124; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonecolor.wordpress.com&amp;blog=4746149&amp;post=361&amp;subd=tonecolor&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>ログ出力の種類として、syslogへの出力も欲しい。作成中のログ出力プログラムは出力する対象によりオブジェクトを用意するようになっているため、syslog出力用のオブジェクトも書いてみた。</p>
<pre style="padding-left:30px;"><span style="color:#000080;">------------------------------------
-- logger_syslog_typ
-- syslog出力型
------------------------------------
CREATE OR REPLACE TYPE logger_syslog_typ UNDER logger_typ
 (
 OVERRIDING MEMBER PROCEDURE write( MSG IN logmsg_typ )
 ) NOT final;
/

CREATE OR REPLACE TYPE BODY logger_syslog_typ AS
 OVERRIDING MEMBER PROCEDURE write( MSG IN logmsg_typ ) IS
     v_job_name varchar2(100);    --JOB NAME編集用
     v_action   varchar2(1000); --外部プログラム
 BEGIN
     v_job_name := 'SYSLOG' || to_char(systimestamp,'ff6');
     v_action := cb.GET_CONFIG_VALUE('SYS_LOG_PRG');

     DBMS_SCHEDULER.CREATE_JOB (
                                                   job_name =&gt;v_job_name,
                                                   job_type =&gt;'EXECUTABLE',
                                                   job_action =&gt;v_action,
                                                   number_of_arguments =&gt; 1,
                                                   auto_drop =&gt; true
                                                   );

 DBMS_SCHEDULER.SET_JOB_ARGUMENT_VALUE(v_job_name,1, MSG.LOG_MSG);

 DBMS_SCHEDULER.ENABLE(v_job_name);

 EXCEPTION
      WHEN OTHERS THEN
               DBMS_OUTPUT.PUT_LINE(SQLCODE);
               DBMS_OUTPUT.PUT_LINE(SQLERRM);
 END;
</span></pre>
<p>そもそも、PLSQLからsyslogへ出力するには外部プログラム経由で出力しなければならない。（それしか方法を知らない）</p>
<p>外部プログラムに出力したい内容を渡して、そのプログラムがsyslogへ出力するという流れになる。外部プログラムはloggerを使ってもいいのだが、今回は自前perlで作成した。</p>
<pre style="padding-left:30px;"><span style="color:#000080;">#!/usr/bin/perl
use Sys::Syslog qw(:DEFAULT setlogsock);
setlogsock('unix');

openlog("ORACLE", 'ndelay', 'user');
syslog(LOG_ERR, $ARGV[0]);
closelog();</span></pre>
<p>ほとんど、雑プログラムのレベルだ・・・。(loggerの方が良かったかも）</p>
<p>pl/sqlから外部プログラムを呼び出すにはcreate_jobすれば良い訳だが、ちゃんと権限を与えておかないとエラーになる。</p>
<ul>
<li>create any job システム権限</li>
<li>create external job システム権限</li>
<li>create job システム権限</li>
</ul>
<p>これらをユーザへ与えておかないと実行時に権限が無いと怒られる。</p>
<p>CREATE_JOBに与えるjob_nameだが、本当は固定値で与えたいところだが、連続して呼び出された場合に、前のJOBが残っており、２回目以降のCREATE_JOBがエラーとなってしまう。そのため、timestampを使い、job_nameをユニークになるようにしている。出力先がsyslogの場合はやたらと出力せずに何か致命的なケースなどに出力する使い方を期待するとしよう。</p>
<p>追伸）やはり、syslogへの出力は他と比べて遅い。よって通常のログ出力オブジェクトと同列に扱うのはまずいので、syslogは特別に専用メソッドで扱うことにした方が良さそうである。</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tonecolor.wordpress.com/361/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tonecolor.wordpress.com/361/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tonecolor.wordpress.com/361/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tonecolor.wordpress.com/361/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tonecolor.wordpress.com/361/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tonecolor.wordpress.com/361/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tonecolor.wordpress.com/361/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tonecolor.wordpress.com/361/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tonecolor.wordpress.com/361/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tonecolor.wordpress.com/361/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tonecolor.wordpress.com/361/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tonecolor.wordpress.com/361/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tonecolor.wordpress.com/361/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tonecolor.wordpress.com/361/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonecolor.wordpress.com&amp;blog=4746149&amp;post=361&amp;subd=tonecolor&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tonecolor.wordpress.com/2009/10/30/plsql%e3%81%8b%e3%82%89syslog%e3%81%b8%e5%87%ba%e5%8a%9b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">tara123</media:title>
		</media:content>
	</item>
		<item>
		<title>pl/sqlのログをファイルへも出力</title>
		<link>http://tonecolor.wordpress.com/2009/10/30/plsql%e3%81%ae%e3%83%ad%e3%82%b0%e3%82%92%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%b8%e3%82%82%e5%87%ba%e5%8a%9b/</link>
		<comments>http://tonecolor.wordpress.com/2009/10/30/plsql%e3%81%ae%e3%83%ad%e3%82%b0%e3%82%92%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%b8%e3%82%82%e5%87%ba%e5%8a%9b/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 00:12:51 +0000</pubDate>
		<dc:creator>tara123</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[pl/sql]]></category>

		<guid isPermaLink="false">http://tonecolor.wordpress.com/?p=357</guid>
		<description><![CDATA[前に作ったpl/sqlのログ出力オブジェクトにファイル出力タイプを追加してみる。 ログ出力は今まで、DBMS_OUTPUTを基本にそれを継承したTABLE書き込み型を用意してきたが、今回のファイル出力型も継承を使って実装する。 ------------------------------------ -- logger_file_typ -- ファイル出力型 ------------------------------------ CREATE OR REPLACE TYPE logger_file_typ UNDER logger_typ ( OVERRIDING MEMBER PROCEDURE write( MSG IN logmsg_typ ) ) NOT final; / CREATE OR REPLACE TYPE BODY logger_file_typ AS OVERRIDING MEMBER PROCEDURE write( MSG IN logmsg_typ ) IS FH UTL_FILE.FILE_TYPE;    --ファイルハンドラ v_DIR  varchar2(1000); v_FILE varchar2(1000); BEGIN v_DIR :=  cb.GET_CONFIG_VALUE('APL_LOG_DIR'); [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonecolor.wordpress.com&amp;blog=4746149&amp;post=357&amp;subd=tonecolor&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>前に作ったpl/sqlのログ出力オブジェクトにファイル出力タイプを追加してみる。</p>
<p>ログ出力は今まで、DBMS_OUTPUTを基本にそれを継承したTABLE書き込み型を用意してきたが、今回のファイル出力型も継承を使って実装する。</p>
<pre style="padding-left:30px;"><span style="color:#000080;">------------------------------------
-- logger_file_typ
-- ファイル出力型
------------------------------------
CREATE OR REPLACE TYPE logger_file_typ UNDER logger_typ
 (
     OVERRIDING MEMBER PROCEDURE write( MSG IN logmsg_typ )
 ) NOT final;
/

CREATE OR REPLACE TYPE BODY logger_file_typ AS
    OVERRIDING MEMBER PROCEDURE write( MSG IN logmsg_typ ) IS
        FH UTL_FILE.FILE_TYPE;    --ファイルハンドラ
        v_DIR  varchar2(1000);
        v_FILE varchar2(1000);
 BEGIN
        v_DIR :=  cb.GET_CONFIG_VALUE('APL_LOG_DIR');
        v_FILE := cb.GET_CONFIG_VALUE('APL_LOG_FILE');
        IF v_DIR is NULL or v_FILE is NULL THEN RETURN; END IF;

 -- ファイルOPEN
        FH := UTL_FILE.FOPEN( v_DIR,
                                        v_FILE,
                                        'A',
                                        32767);

        UTL_FILE.PUT_LINE(FH,
                                  MSG.LOG_DATE   || ' ' ||
                                  MSG.LOG_LEVEL  || ' ' ||
                                  MSG.LOG_MSG    || ' ' ||
                                  MSG.LOG_HOST   || ' ' ||
                                  MSG.LOG_OSUSER || ' ' ||
                                  MSG.LOG_PRG    || ' ' ||
                                  MSG.LOG_SUPPLE );
        UTL_FILE.FCLOSE(FH);

 EXCEPTION
 WHEN OTHERS THEN
       UTL_FILE.FCLOSE_ALL;
       DBMS_OUTPUT.PUT_LINE(SQLCODE);
       DBMS_OUTPUT.PUT_LINE(SQLERRM);
 END;
</span></pre>
<p>これでファイル出力型のオブジェクトは完成。プログラム側は変更すること無く出力先を切り替えることができる。</p>
<p>ディレクトリ名とファイル名の取得にcb.GET_CONFIG_VALUEを使っているが、これは自前のパッケージでコンフィグ情報から値を取り出すもの。</p>
<p>それにしても、OracleのUTL_FILEは面倒だ。以前のバージョンだと初期化パラメータファイルにUTL_FILE_DIRを指定して、FOPENでは許可されたディレクトリ名を記載する仕様だが、最近のはCREATE DIRECTORYで指定する。（UTL_FILE_DIRも使えるが。）その場合にはFOPENにはCREATE DIRECTORYで作成したディレクトリ名を指定しなければならない。勘違いして本当のディレクトリパスを書いてしまうと、<span style="color:#ff0000;">ORA-29280: 無効なディレクトリ・パスです。<span style="color:#000000;">と怒られる。</span></span>これが紛らわしい。</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tonecolor.wordpress.com/357/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tonecolor.wordpress.com/357/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tonecolor.wordpress.com/357/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tonecolor.wordpress.com/357/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tonecolor.wordpress.com/357/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tonecolor.wordpress.com/357/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tonecolor.wordpress.com/357/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tonecolor.wordpress.com/357/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tonecolor.wordpress.com/357/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tonecolor.wordpress.com/357/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tonecolor.wordpress.com/357/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tonecolor.wordpress.com/357/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tonecolor.wordpress.com/357/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tonecolor.wordpress.com/357/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonecolor.wordpress.com&amp;blog=4746149&amp;post=357&amp;subd=tonecolor&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tonecolor.wordpress.com/2009/10/30/plsql%e3%81%ae%e3%83%ad%e3%82%b0%e3%82%92%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%b8%e3%82%82%e5%87%ba%e5%8a%9b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">tara123</media:title>
		</media:content>
	</item>
		<item>
		<title>pl/sqlのテスト</title>
		<link>http://tonecolor.wordpress.com/2009/10/26/plsql%e3%81%ae%e3%83%86%e3%82%b9%e3%83%88/</link>
		<comments>http://tonecolor.wordpress.com/2009/10/26/plsql%e3%81%ae%e3%83%86%e3%82%b9%e3%83%88/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 07:16:03 +0000</pubDate>
		<dc:creator>tara123</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[pl/sql]]></category>

		<guid isPermaLink="false">http://tonecolor.wordpress.com/?p=352</guid>
		<description><![CDATA[便利なパッケージとかを作るのはいいが、ちゃんとテストとかしなくちゃ使い物にならない。pl/sqlのユニットテストとかも無いわけではないが、簡単なものを作り、勉強しながら拡張させていった方が自分のタメになると思い。ちょっと書き始めた。 パッケージの仕様部はこんな感じ。 CREATE OR REPLACE PACKAGE tester IS /*=========================================================== * Testerパッケージ * *==========================================================*/ --テストタイトルをセット PROCEDURE SET_TEST( name IN varchar2 ); --テストの実行 PROCEDURE DO_TEST( msg IN varchar2, test IN BOOLEAN); --テスト結果表示 PROCEDURE GET_RESULT; END tester;   最初は簡単にこんなもんからスタートでいいかと実装。 SET_TESTはテストの名前と初期化を行う。 ----------------------- -- テストの設定 ----------------------   PROCEDURE SET_TEST( name IN varchar2 ) IS BEGIN test_name := substrb(name, 1, 100); [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonecolor.wordpress.com&amp;blog=4746149&amp;post=352&amp;subd=tonecolor&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>便利なパッケージとかを作るのはいいが、ちゃんとテストとかしなくちゃ使い物にならない。pl/sqlのユニットテストとかも無いわけではないが、簡単なものを作り、勉強しながら拡張させていった方が自分のタメになると思い。ちょっと書き始めた。</p>
<p>パッケージの仕様部はこんな感じ。</p>
<pre style="padding-left:30px;"><span style="color:#000080;">CREATE OR REPLACE PACKAGE tester IS
 /*===========================================================
 * Testerパッケージ
 *
 *==========================================================*/

     --テストタイトルをセット
     PROCEDURE SET_TEST( name IN varchar2 );
     --テストの実行
     PROCEDURE DO_TEST( msg IN varchar2, test IN BOOLEAN);
     --テスト結果表示
     PROCEDURE GET_RESULT;
 END tester;
</span><span style="color:#000080;"> </span></pre>
<p>最初は簡単にこんなもんからスタートでいいかと実装。</p>
<p>SET_TESTはテストの名前と初期化を行う。</p>
<pre style="padding-left:30px;"><span style="color:#000080;">-----------------------
 -- テストの設定
 ----------------------  
 PROCEDURE SET_TEST( name IN varchar2 ) IS
 BEGIN
     test_name := substrb(name, 1, 100);
     ArrayTest.DELETE;
 END;
</span></pre>
<p>ArrayTestというのは個別のテストの結果を格納するためのコレクション。</p>
<pre style="padding-left:30px;"><span style="color:#000080;">--======================================================--   
 test_name varchar2(100);

 TYPE test_rec_typ IS RECORD (
     t_comment   varchar2(100),
     t_status    boolean
 );
 TYPE ArrayTestTyp IS TABLE OF test_rec_typ;
 ArrayTest ArrayTestTyp;         --test内容格納配列
 --=======================================================--
</span></pre>
<p>SET_TESTでテスト名をセットしたら、後はDO_TESTを使ってテストしていく。DO_TESTはこんな感じ。</p>
<pre style="padding-left:30px;"><span style="color:#000080;">----------------------
 -- DO_TEST
 ----------------------
 PROCEDURE DO_TEST( msg IN varchar2, test IN BOOLEAN) IS
     one_test test_rec_typ;
 BEGIN
     -- テストレコードの作成
     one_test.t_comment := substrb(msg, 1, 100);
     one_test.t_status := NVL(test,FALSE);
     -- テスト配列へ追加
     ArrayTest.EXTEND;
     ArrayTest( ArrayTest.LAST ) := one_test;
 END;</span></pre>
<p>テストしたい内容をDO_TESTへ投げたら、最後にGET_RESULTする。</p>
<pre style="padding-left:30px;"><span style="color:#000080;">-----------------------
 -- 結果の取得
 -----------------------
 PROCEDURE GET_RESULT IS
     ng_count NUMBER(5);
 BEGIN
     ng_count :=0;

     DBMS_OUTPUT.PUT_LINE( test_name );
     FOR i IN 1 .. ArrayTest.COUNT LOOP
         DBMS_OUTPUT.PUT( chr(9) || i || '. ');
         DBMS_OUTPUT.PUT( ArrayTest(i).t_comment );
         DBMS_OUTPUT.PUT( chr(9) || '..........' );
         IF ArrayTest(i).t_status = TRUE THEN
             DBMS_OUTPUT.PUT_LINE( 'ok' );
         ELSE
             DBMS_OUTPUT.PUT_LINE( 'ng' );
             ng_count := ng_count + 1;
         END IF;
     END LOOP;

     IF ng_count = 0 THEN
         DBMS_OUTPUT.PUT_LINE( '*** Total ' || ArrayTest.COUNT || ' Test Clear');     
     ELSE
         DBMS_OUTPUT.PUT_LINE( '*** Total ' || ng_count || '/' || ArrayTest.COUNT || ' Test Failed !!');
         RAISE_APPLICATION_ERROR(-20000,'Tester STOP !!');     
     END IF;
 END;
</span></pre>
<p>ちょっと機能的にも簡単過ぎるかもしれない。</p>
<p>実行するためのテストスクリプトを書く。</p>
<pre style="padding-left:30px;"><span style="color:#000080;">DECLARE

BEGIN
     tester.set_test('Util package Test');

     -- 文字列split test
     utl.split('aaa bbb ccc',' ');
     tester.do_test('空白デリミタ',utl.get_split_value(3) = 'ccc');

     utl.split('123.5    bbb         ccc',' ');
     tester.do_test('連続するスペース区切り １',utl.get_split_value(1) = '123.5');
     tester.do_test('連続するスペース区切り ２',utl.get_split_value(2) = 'bbb');
     tester.do_test('連続するスペース区切り ３',utl.get_split_value(3) = 'ccc');
     tester.do_test('存在しない要素番号指定',utl.get_split_value(4) is NULL);
     tester.do_test('split結果の要素数取得',utl.get_split_count = 3);

     tester.get_result;
END;
/</span></pre>
<p>sqlplus でset serveroutput onしてこのスクリプトを実行してみる。</p>
<pre style="padding-left:30px;"><span style="color:#000080;">SQL&gt; @test_util
Util package Test
 1. 空白デリミタ ..........ok
 2. 連続するスペース区切り １    ..........ok
 3. 連続するスペース区切り ２    ..........ok
 4. 連続するスペース区切り ３    ..........ok
 5. 存在しない要素番号指定       ..........ok
 6. split結果の要素数取得        ..........ok
*** Total 6 Test Clear

PL/SQLプロシージャが正常に完了しました。

SQL&gt;
</span></pre>
<p>機能的には不十分だが、スタートとしてはこんなところから始めよう。これでも無いよりはマシ。UnitTestの他の実装を見て必要機能を勉強しなくては・・・</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tonecolor.wordpress.com/352/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tonecolor.wordpress.com/352/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tonecolor.wordpress.com/352/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tonecolor.wordpress.com/352/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tonecolor.wordpress.com/352/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tonecolor.wordpress.com/352/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tonecolor.wordpress.com/352/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tonecolor.wordpress.com/352/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tonecolor.wordpress.com/352/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tonecolor.wordpress.com/352/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tonecolor.wordpress.com/352/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tonecolor.wordpress.com/352/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tonecolor.wordpress.com/352/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tonecolor.wordpress.com/352/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tonecolor.wordpress.com&amp;blog=4746149&amp;post=352&amp;subd=tonecolor&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tonecolor.wordpress.com/2009/10/26/plsql%e3%81%ae%e3%83%86%e3%82%b9%e3%83%88/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">tara123</media:title>
		</media:content>
	</item>
	</channel>
</rss>
