<?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:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>lonsdaleite</title>
	<atom:link href="http://blog.lonsdaleite.jp/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.lonsdaleite.jp</link>
	<description>技術と実況と戯言のブログ</description>
	<lastBuildDate>Sat, 20 Feb 2010 04:53:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.lonsdaleite.jp/feed" />
		<item>
		<title>UstreamとTwitterとNicoLime</title>
		<link>http://blog.lonsdaleite.jp/2010/02/02/314</link>
		<comments>http://blog.lonsdaleite.jp/2010/02/02/314#comments</comments>
		<pubDate>Tue, 02 Feb 2010 12:09:13 +0000</pubDate>
		<dc:creator>ろーそく</dc:creator>
				<category><![CDATA[技術]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[ニコニコ動画]]></category>

		<guid isPermaLink="false">http://blog.lonsdaleite.jp/?p=314</guid>
		<description><![CDATA[Ustreamで孫さんを見てました。
Twitterの流れが早くて視線移動が大変だったのだが、TwitterのポストをNicoLimeに渡してコメントが流れるウィンドウをUstreamの動画にかぶせて見るとどうなるかと思 ]]></description>
			<content:encoded><![CDATA[<p>Ustreamで孫さんを見てました。<br />
Twitterの流れが早くて視線移動が大変だったのだが、TwitterのポストをNicoLimeに渡してコメントが流れるウィンドウをUstreamの動画にかぶせて見るとどうなるかと思って作ってみた。</p>
<p><a href="http://yyblog123.blog48.fc2.com/">NicoLime</a>はニコニコ動画風に表示するソフトです。</p>
<p><a id="more-314"></a></p>
<pre>#!/usr/bin/env perl

use strict;
use warnings;
use utf8;
use AnyEvent::Twitter::Stream;
use Encode;
use LWP::UserAgent;
use URI::Escape::JavaScript qw(escape);

my %nicolime = (
    host    =&gt; '192.168.1.1',
    port    =&gt; '6225',
    channel =&gt; '#channel',
    nick    =&gt; 'nick',
);

my %twistream = (
    username =&gt; 'username',
    password =&gt; 'password',
    method   =&gt; 'filter',
    track    =&gt; '#followmejp'
);

my $done = AnyEvent-&gt;condvar;

AnyEvent::Twitter::Stream-&gt;new(
    username =&gt; $twistream{username},
    password =&gt; $twistream{password},
    method   =&gt; $twistream{method},
    track    =&gt; $twistream{track},
    on_tweet =&gt; sub {
        my $tweet = shift;
        if ($tweet-&gt;{text} =~ /[あ-んア-ン]/) {
            $tweet-&gt;{text} =~ s/\r?\n/\x20/g if $tweet-&gt;{text} =~ /\r?\n/;
            $tweet-&gt;{text} =~ s/https?:\/\/[-_.!~*'()a-zA-Z0-9;\/?:\@&amp;=+\$,%#]+//g
                if $tweet-&gt;{text} =~ /https?:\/\/[-_.!~*'()a-zA-Z0-9;\/?:\@&amp;=+\$,%#]+/;
            my $q
                = "http://$nicolime{host}:$nicolime{port}/"
                . "?c=" . escape($nicolime{channel})
                . "&amp;n=" . escape($nicolime{nick})
                . "&amp;m=" . escape($tweet-&gt;{text})
                ;
            LWP::UserAgent-&gt;new()-&gt;request(HTTP::Request-&gt;new("GET", $q));
        }
    },
    on_error =&gt; sub {
        my $error = shift;
        warn "ERROR: $error";
        $done-&gt;send;
    },
    on_eof =&gt; sub {
        $done-&gt;send;
    },
);

$done-&gt;recv;</pre>
<p>割と適当ですが。NicoLimeが受け付けるパラメータの値が&#8221;%u&#8221;から始まるものしか受け付けなかった(&#8216;A`)<br />
とりあえずURLを削るようにしたけどRTとかQT以降も削ったりしないと一行の文字がやはり長くなりがちで見にくくなってしまうかなぁ。</p>
<p>いろいろ削ってニコニコ実況風にしたりしてちょっと楽しい感じに。</p>
<div id="attachment_323" class="wp-caption aligncenter" style="width: 310px"><a href="http://blog.lonsdaleite.jp/wp-content/uploads/2010/02/nicolime.png" title="ルパンのハッシュタグでニコニコ実況風" rel="lightbox[314]"><img class="size-medium wp-image-323 " title="ルパンのハッシュタグでニコニコ実況風" src="http://blog.lonsdaleite.jp/wp-content/uploads/2010/02/nicolime-300x201.png" alt="ルパンのハッシュタグでニコニコ実況風" width="300" height="201" /></a>
<p class="wp-caption-text">ルパンのハッシュタグでニコニコ実況風</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.lonsdaleite.jp/2010/02/02/314/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.lonsdaleite.jp/2010/02/02/314" />
	</item>
		<item>
		<title>2010年</title>
		<link>http://blog.lonsdaleite.jp/2010/01/01/312</link>
		<comments>http://blog.lonsdaleite.jp/2010/01/01/312#comments</comments>
		<pubDate>Thu, 31 Dec 2009 16:39:16 +0000</pubDate>
		<dc:creator>ろーそく</dc:creator>
				<category><![CDATA[雑記]]></category>

		<guid isPermaLink="false">http://blog.lonsdaleite.jp/?p=312</guid>
		<description><![CDATA[明けましておめでとうございます。
今年も宜しくお願い致します。
黒の十三の実況やめてませんから(&#8216;A`)
]]></description>
			<content:encoded><![CDATA[<p>明けましておめでとうございます。<br />
今年も宜しくお願い致します。</p>
<p>黒の十三の実況やめてませんから(&#8216;A`)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lonsdaleite.jp/2010/01/01/312/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.lonsdaleite.jp/2010/01/01/312" />
	</item>
		<item>
		<title>黒ノ十三 運命の扉</title>
		<link>http://blog.lonsdaleite.jp/2009/10/22/308</link>
		<comments>http://blog.lonsdaleite.jp/2009/10/22/308#comments</comments>
		<pubDate>Wed, 21 Oct 2009 18:47:29 +0000</pubDate>
		<dc:creator>ろーそく</dc:creator>
				<category><![CDATA[ニコニコ動画]]></category>
		<category><![CDATA[実況]]></category>

		<guid isPermaLink="false">http://blog.lonsdaleite.jp/?p=308</guid>
		<description><![CDATA[まだやってらしたの。
【ニコニコ動画】【黒ノ十三】運命の扉 Part2【実況プレイ】
]]></description>
			<content:encoded><![CDATA[<p>まだやってらしたの。</p>
<p><iframe width="100%" height="176" src="http://ext.nicovideo.jp/thumb/sm8581098" scrolling="no" style="border:solid 1px #CCC;" frameborder="0"><a href="http://www.nicovideo.jp/watch/sm8581098">【ニコニコ動画】【黒ノ十三】運命の扉 Part2【実況プレイ】</a></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lonsdaleite.jp/2009/10/22/308/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.lonsdaleite.jp/2009/10/22/308" />
	</item>
		<item>
		<title>Echofon（TwitterFox）のエンターで誤爆してしまうのが困る件</title>
		<link>http://blog.lonsdaleite.jp/2009/10/08/269</link>
		<comments>http://blog.lonsdaleite.jp/2009/10/08/269#comments</comments>
		<pubDate>Thu, 08 Oct 2009 10:52:31 +0000</pubDate>
		<dc:creator>ろーそく</dc:creator>
				<category><![CDATA[技術]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://blog.lonsdaleite.jp/?p=269</guid>
		<description><![CDATA[どうやらTwitterFoxもしくはEchofonのエンター誤爆で検索していらっしゃる方がいるようなので僕が行った改造の方法をまとめておきます。

この方法は確実に玄人さん向けです。失敗するとちゃんと動かなくなります。当 ]]></description>
			<content:encoded><![CDATA[<p>どうやらTwitterFoxもしくはEchofonのエンター誤爆で検索していらっしゃる方がいるようなので僕が行った改造の方法をまとめておきます。</p>
<p><a id="more-269"></a></p>
<p>この方法は確実に玄人さん向けです。失敗するとちゃんと動かなくなります。当然自己責任となりますので書いてある事が分からない方はやらない方がいいでしょう。質問されても困るので。</p>
<p>なお、改造してもアドオンを更新する度に再度改造し直す必要があります。</p>
<h3>手順</h3>
<p>事前にFirefoxとEchofon（TwitterFox）はインストールしておいてください。また、Firefoxを終了した状態で作業を行ってください。</p>
<p>まず以下のフォルダをエクスプローラで開きます。ここに改造するファイルがあります。</p>
<dl>
<dt>XP</dt>
<dd>C:\Documents and Settings\(ユーザ名)\Application Data\Mozilla\Firefox\Profiles\(プロファイル名)\extensions\twitternotifier@naan.net\chrome</dd>
<dt>Vista</dt>
<dd>C:\Users\(ユーザ名)\AppData\Roaming\Mozilla\Firefox\Profiles\(プロファイル名)\extensions\twitternotifier@naan.net\chrome</dd>
</dl>
<p>このフォルダにはEchofonなら「Echofon.jar」、TwitterFoxなら「TwitterFox.jar」というファイルが一つだけあります。このファイルを一旦作業用のフォルダ（デスクトップでもどこでもよい）にコピーします。</p>
<p>このjarファイルはzip形式の圧縮書庫なのでお手持ちの解凍ソフトで解凍してください。（ダブルクリックでは開けないと思うのでその場合はファイル名の後ろに「.zip」を付けるとよい）</p>
<p>展開すると「content」と「locale」というフォルダが出てきます。その「content」の中の「window.xml」というファイルを書き換えることになります。
</p>
<p>ということで「window.xml」をテキストエディタで開いてください。で、以下のような記述を探します。</p>
<pre>
      &lt;handler event="keypress" keycode="VK_RETURN"&gt;
</pre>
<p>ここが<span style="color:#66ff66;">エンターを押した時</span>に行う処理が書いてある箇所です。これを<span style="color:#6666ff;">Ctrlキーを押しながらエンターを押した時</span>に変更するには以下のように修正します。</p>
<pre>
      &lt;handler event="keypress" keycode="VK_RETURN" modifiers="control"&gt;
</pre>
<p>これだけ。ただ今度は<span style="color:#66ff66;">エンターを押した時</span>の処理がなくなるのでデフォルトの動作として改行が挿入されてしまいます。もし無反応にしたいなら以下のような記述をどこかに記述しておくと良いでしょう（Shift＋エンターで改行可能）</p>
<pre>
      &lt;handler event="keypress" keycode="VK_RETURN"&gt;
        return false;
      &lt;/handler&gt;
</pre>
<p>修正が完了したら上書き保存して「content」と「locale」をzip形式で圧縮。ファイル名をオリジナルのjarファイルのものにして上書きする（オリジナルのファイルはバックアップしておいたほうがいいでしょう）</p>
<p>これで作業完了。Firefoxを起動して確認してみましょう。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lonsdaleite.jp/2009/10/08/269/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.lonsdaleite.jp/2009/10/08/269" />
	</item>
		<item>
		<title>Stream Playerを更新しました</title>
		<link>http://blog.lonsdaleite.jp/2009/09/19/202</link>
		<comments>http://blog.lonsdaleite.jp/2009/09/19/202#comments</comments>
		<pubDate>Fri, 18 Sep 2009 15:26:43 +0000</pubDate>
		<dc:creator>ろーそく</dc:creator>
				<category><![CDATA[技術]]></category>
		<category><![CDATA[Justin]]></category>
		<category><![CDATA[Ustream]]></category>

		<guid isPermaLink="false">http://blog.lonsdaleite.jp/?p=202</guid>
		<description><![CDATA[さわやか配色にした。
そのうち背景変更とかできるようにしようかな。やっぱりやめた。
Stream Playe の説明ページ
使い方はα版と変更ありません。
ただし、URLが若干変更になります。しばらくはα版のURLでもア ]]></description>
			<content:encoded><![CDATA[<p>さわやか配色にした。<br />
そのうち背景変更とかできるようにしようかな。やっぱりやめた。</p>
<p><a href="/webapps/streamplayer">Stream Playe の説明ページ</a></p>
<p>使い方はα版と変更ありません。<br />
ただし、URLが若干変更になります。しばらくはα版のURLでもアクセスできます。</p>
<p>変更前 : http://lonsdaleite.jp/stream_player/alpha.html#sample/sample/8888888</p>
<p>変更後 : http://lonsdaleite.jp/stream_player/#sample/sample/8888888</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lonsdaleite.jp/2009/09/19/202/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.lonsdaleite.jp/2009/09/19/202" />
	</item>
		<item>
		<title>黒ノ十三 運命の扉</title>
		<link>http://blog.lonsdaleite.jp/2009/08/31/197</link>
		<comments>http://blog.lonsdaleite.jp/2009/08/31/197#comments</comments>
		<pubDate>Mon, 31 Aug 2009 14:39:53 +0000</pubDate>
		<dc:creator>ろーそく</dc:creator>
				<category><![CDATA[ニコニコ動画]]></category>
		<category><![CDATA[実況]]></category>

		<guid isPermaLink="false">http://blog.lonsdaleite.jp/?p=197</guid>
		<description><![CDATA[今回から新たなシナリオです。
【ニコニコ動画】【黒ノ十三】運命の扉 Part1【実況プレイ】
]]></description>
			<content:encoded><![CDATA[<p>今回から新たなシナリオです。</p>
<p><iframe width="100%" height="176" src="http://ext.nicovideo.jp/thumb/sm8099651" scrolling="no" style="border:solid 1px #CCC;" frameborder="0"><a href="http://www.nicovideo.jp/watch/sm8099651">【ニコニコ動画】【黒ノ十三】運命の扉 Part1【実況プレイ】</a></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lonsdaleite.jp/2009/08/31/197/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.lonsdaleite.jp/2009/08/31/197" />
	</item>
		<item>
		<title>justin.tv + chat1.ustream.tv</title>
		<link>http://blog.lonsdaleite.jp/2009/08/28/182</link>
		<comments>http://blog.lonsdaleite.jp/2009/08/28/182#comments</comments>
		<pubDate>Fri, 28 Aug 2009 06:25:37 +0000</pubDate>
		<dc:creator>ろーそく</dc:creator>
				<category><![CDATA[技術]]></category>
		<category><![CDATA[Justin]]></category>
		<category><![CDATA[Ustream]]></category>

		<guid isPermaLink="false">http://blog.lonsdaleite.jp/?p=182</guid>
		<description><![CDATA[ちわ。
Justinで配信してチャットはUstreamのIRCチャンネル使うような姑息な手段を使う配信者っていますよね(´◉◞౪◟◉)
いや、まぁそれはいいんですよ。なるとの保守もいらないし。
でも、GOM導入だとかLi ]]></description>
			<content:encoded><![CDATA[<p>ちわ。</p>
<p>Justinで配信してチャットはUstreamのIRCチャンネル使うような姑息な手段を使う配信者っていますよね(´◉◞౪◟◉)<br />
いや、まぁそれはいいんですよ。なるとの保守もいらないし。</p>
<p>でも、GOM導入だとかLimeがどうとかって、設定する側も教える側もめんどくさいじゃないですか。</p>
<p>Justin動画とUstreamチャットのブログパーツを貼って対処してる人もいますが、それ用のページが欲しいですよね。<br />
ということで、どこかで見たことがあるようなものを適当に作りました。できるだけカッコよくしてみました。</p>
<p><a href="/webapps/streamplayer">Stream Playe のページ</a></p>
<dl>
<dt>配信者</dt>
<dd>配信ページ作っておいてブログ等からリンクさせる。</dd>
<dt>視聴者</dt>
<dd>ブログのリンクをクリックする。</dd>
<dt>イケてる視聴者</dt>
<dd>JustinのURLもUstreamのIRCチャンネルも知っている → 自分で配信ページを作ってブックマーク</dd>
</dl>
<p>じゃあの。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lonsdaleite.jp/2009/08/28/182/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.lonsdaleite.jp/2009/08/28/182" />
	</item>
		<item>
		<title>justin.tvのブログパーツ</title>
		<link>http://blog.lonsdaleite.jp/2009/08/17/169</link>
		<comments>http://blog.lonsdaleite.jp/2009/08/17/169#comments</comments>
		<pubDate>Mon, 17 Aug 2009 12:47:22 +0000</pubDate>
		<dc:creator>ろーそく</dc:creator>
				<category><![CDATA[雑記]]></category>
		<category><![CDATA[Justin]]></category>

		<guid isPermaLink="false">http://blog.lonsdaleite.jp/?p=169</guid>
		<description><![CDATA[この記事の内容はJstatusCheckerのページに移動しました。
]]></description>
			<content:encoded><![CDATA[<p>この記事の内容は<a href="/webapps/jstatuschecker">JstatusChecker</a>のページに移動しました。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lonsdaleite.jp/2009/08/17/169/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.lonsdaleite.jp/2009/08/17/169" />
	</item>
		<item>
		<title>黒ノ十三うｐ</title>
		<link>http://blog.lonsdaleite.jp/2009/08/10/166</link>
		<comments>http://blog.lonsdaleite.jp/2009/08/10/166#comments</comments>
		<pubDate>Sun, 09 Aug 2009 18:53:00 +0000</pubDate>
		<dc:creator>ろーそく</dc:creator>
				<category><![CDATA[ニコニコ動画]]></category>
		<category><![CDATA[実況]]></category>

		<guid isPermaLink="false">http://blog.lonsdaleite.jp/?p=166</guid>
		<description><![CDATA[【ニコニコ動画】【黒ノ十三】仮面 Part3【実況プレイ】
そんなわけで「仮面」の最終回です。黒ノ十三といえば「あのシナリオ」ですけど、まだ先は長いです。
]]></description>
			<content:encoded><![CDATA[<p><iframe width="100%" height="176" src="http://ext.nicovideo.jp/thumb/sm7891401" scrolling="no" style="border:solid 1px #CCC;" frameborder="0"><a href="http://www.nicovideo.jp/watch/sm7891401">【ニコニコ動画】【黒ノ十三】仮面 Part3【実況プレイ】</a></iframe><br />
そんなわけで「仮面」の最終回です。黒ノ十三といえば「あのシナリオ」ですけど、まだ先は長いです。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lonsdaleite.jp/2009/08/10/166/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.lonsdaleite.jp/2009/08/10/166" />
	</item>
		<item>
		<title>黒ノ十三うｐ</title>
		<link>http://blog.lonsdaleite.jp/2009/08/05/158</link>
		<comments>http://blog.lonsdaleite.jp/2009/08/05/158#comments</comments>
		<pubDate>Wed, 05 Aug 2009 12:59:36 +0000</pubDate>
		<dc:creator>ろーそく</dc:creator>
				<category><![CDATA[ニコニコ動画]]></category>
		<category><![CDATA[実況]]></category>

		<guid isPermaLink="false">http://blog.lonsdaleite.jp/?p=158</guid>
		<description><![CDATA[仮面剥ぎ取りたいわー。
【ニコニコ動画】【黒ノ十三】仮面 Part2【実況プレイ】
]]></description>
			<content:encoded><![CDATA[<p>仮面剥ぎ取りたいわー。<br />
<iframe width="100%" height="176" src="http://ext.nicovideo.jp/thumb/sm7849002" scrolling="no" style="border:solid 1px #CCC;" frameborder="0"><a href="http://www.nicovideo.jp/watch/sm7849002">【ニコニコ動画】【黒ノ十三】仮面 Part2【実況プレイ】</a></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lonsdaleite.jp/2009/08/05/158/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.lonsdaleite.jp/2009/08/05/158" />
	</item>
	</channel>
</rss>
