以前のブログで大量のSpamコメントに困っていた経験から、 コメントを付ける機能をなくしていたのですが、 OpenID認証によってコメントを付けられるようにしました。

RestfulOpenIDAuthenticationプラグインに、まだ若干バグがあるようで、 一部のIdPでは正しく認証できない事があるようです。 その際は、Twitterで@takiuchiにご連絡いただければ、 プラグインの実装の改善に役立てさせていただきます。

よろしくお願いいたします。

posted by Png genki on Sun 2 Mar 2008 at 09:49 with 5 comments

I am using Skype Chat everywhere because it is useful. But it has a limit due to its P2P mechanism that is needing at least 2 online users in order to keep messages transmitted completely.

When you are the only online user in the chat room, the messages sent by you are stored locally until someone comes in. In other words, suppose the chat room has user A and B;

  1. A said hello to B.
  2. A had logged out and became offline.
  3. "hello" had been stored into A's PC.
  4. B has become online.
  5. Nothing happen.

To solve this problem, I have been running the SkypeBot upon my Mac mini server and made it join to the chat rooms with me. By this, the chat room can always have over 2 online users so that all messages can be sent to each other.

Thus, I provide the SkypeBot identified by 'skype.s21g' which is always online except when I update Mac mini. Everyone can use this by dropping it into your open Skype chat which has no problem about privacy.

posted by Png takiuchi on Sat 1 Mar 2008 at 12:11

Skypeチャットが便利なので各所で使っているのですが、 P2Pである制約上、最低2人のユーザが同時にオンラインになっていないと メッセージが流通されないという問題があります。

Chatルームの中で自分だけがオンラインの場合、他の誰かが オンラインになるまで自分が発言したメッセージは、ローカルに 保持されて伝達が保留されてしまいます。 そのため、AさんとBさんの二人しかいないChatルームの場合、 Aさんが発言した後にオフラインになり、その後Bさんがオンライン になったとしても、Aさんの発言はAさんのPCに保留されたまま、 Bさんには届かないことになります。

この問題を解決するために、僕は1台のPCでSkype botを常時起動しておき、 自分が使っているOpenChatに参加させています。 こうすると、誰かが一人でもログインしていれば、ボットとあわせて必ず 2人以上のユーザがオンラインになっている状態を保てるので、 すべてのメッセージが滞りなく流通するようになります。

というわけで、誰でも参加できるようなOpen Chat (会話の内容が知られても特に困らないようなもの)をお使いで、 参加メンバーが少ないため、常時2人以上のオンラインメンバーを持つ事が 難しいChatルームをお持ちの方のために、 SkypeBotアカウントを提供いたします。

SkypeIDは skype.s21g です。 適当にChatに突っ込んでいただければOKです。 Mac miniのアップデートをしている時以外は常時立ち上げています。

posted by Png genki on Sat 1 Mar 2008 at 11:23

jRails プラグインは、RailsアプリケーションのデフォルトJavaScriptライブラリである prototype.js + script.aculo.us の環境から、 jQuery を使うようにするためのRailsプラグインです。

プラグインをインストールする方法は、通常のRailsプラグインと同様です。

   1  % ./script/plugin install http://ennerchi.googlecode.com/svn/trunk/plugins/jrails

インストールすると、jQuery関係のJavaScriptファイル郡が public/javascripts以下にコピーされます。

あとは、jRailsプラグインがRailsのJavaScriptヘルパーをjQuery対応に してくれるので、そのままRailsアプリケーションを開発することができます。

当然ながら、prototype.jsやScript.aculo.us固有の関数は 利用できないので、既存のRailsアプリケーションをjQuery対応にする場合は、 そのあたりに注意が必要です。

See Also

posted by Png genki on Sat 1 Mar 2008 at 10:51
Contents
コメントを付けられるようにしました
Provides 24/7 Active SkypeBot
24時間稼動しているSkypeBotを提供します
jRailsプラグインでjQueryを使ってみる
Comments
瀧内元気: MacOS版は以下にあります * [genki/ViMouse](https://githu... '23-1
KingofSmack: Here also good reads for this mobile applicatio... '14-5
Spencer: You don't have to re-compile it, this version w... '14-4
staiano: Any chance we can get a recompile for 10.9? '14-1
dsjf: https://gist.github.com/6bf1bf2c3cbb5eb6e7a7 これ... '13-1
Services from s21g
twpro(ツイプロ)
Twitterプロフィールを快適検索
地価2009
土地の値段を調べてみよう
MyRestaurant
自分だけのレストラン手帳
Formula
ブログに数式を埋め込める数式コミュニティ