Gmail で PermanentLink を取得する方法

いや、具体的にすまーとな方法は、まだわからない。

Firefox の GreaseMonkey Script のものならあるが、できれば、Safari か Chrome で使えるものが欲しい。
※ 実は、MailPlane で使える方がもっとありがたい。

わかったことは…

https://mail.google.com/mail/#search/

という文字列に続けて、Message-ID を入力してやることで、当該メッセージのみの検索結果画面にはなる。

もちろん、自分のGmailアカウントにそのメールが存在しなければならない。

どなたが、クリティカルな解をご存知ないだろうか。

《以下、2011/02/15 追記》

拙ブログ本館 にエントリを書きました。

Google Apps (Gmail) で PermanentLink を取得する方法

FileMaker で Google Apps (Gmail) の PermanentLink を取得するカスタム関数

日々是自作: UStream Producerで別のMacの画面を放送

UStream Producerで別のMacの画面を放送

UStream ProducerがPro版とFree版が出て不安定なFlash君無しで中継が出来るのは嬉しいところです。11月からTMUGのUStream録画(中継は回線が不安なので、ブツ切れしないように録画にしている)をやっていて、色々と改善したい点があったりするわけですが、その一つがプレゼン画面をカメラで写さないで、直接スクリーンキャプチャから持ってこれないか?ってところでした。それが出来ると、プレゼン画面やアプリの操作画面をメインにして、プレゼンターの姿を小さくPicture in Pictureで表示できるわけで、とってもリッチで嬉しいわけです。

Pro版を買うほどの事もないので、まずはFree版での実験をして無事成功したので、手順を公開します。

Screencastを選ぶと、Desktop Presenterというソフトが別に立ち上がります。これが鍵ですね。このアプリの本体はUStream Producer.appのパッケージを開くと、Contents/Resourcesの中に入っています。

31 2

予想した通りUStream ProducerとはTCP/IPの7272番ポートで接続するような仕様みたいです。netstatで見てやると*.7272でLISTENしています。

ということで、若干の実験を経てLocalで立ち上がってるDesktop Presenterと区別がつかなければOKなんじゃないかと予想を立てて、別のMacでDesktop Presenterを立ち上げて、さらにsshでport fowardをかけてみたところバッチリ繋がりました。

最初は放送側のMacからssh -Lでプレゼン側のMacに繋いだんですが、これだといちいちプレゼンする人にsshで入れるアカウントを用意してもらわないといけなかったりとややこしい事になるので、ssh -Rでプレゼン側のMacから放送側のMacにport forwardすることに変更しました。これでもtcp的な見た目は同じ事なので無事繋がります。

では、細かい手順を説明して行きましょう。まずはUStream Producerも何も立ち上げない状態から始めます。

  1. まずは放送側のMacにリモートログイン出来るように設定します。システム環境設定の共有でリモートログインのチェックをオンにしてやります。
    3
  2. 次に、放送側とプレゼン側の2台のMacのIPアドレスのうち同じネットワークにあるIPアドレスを調べます。両者が無線LANの同じ基地局で繋がっているのであれば、無線LANのポートに付いているアドレスですね。放送側のアドレスだけで大丈夫です。プレゼン側は繋がらないなどの現象があった場合にトラブルシューティングとして調べればOKです。同じくシステム環境設定のネットワークを選んでEthernetならば左のリストからEtherを選べばアドレスも表示されますが、AirMacの場合は詳細...ボタンを押して更にTCP/IPタブを選んでください。この例の場合は192.168.10.125になります。
    4
  3. さて、次はプレゼン側に移ります。アプリケーションフォルダのユーティリティフォルダに入っているTerminalを立ち上げます。ここに以下のようなコマンドを打ちます。
    ssh -N -R 7272:127.0.0.1:7272 test@192.168.10.125
    ここで、testの部分は放送側のMacにログイン出来るログイン名に適宜置き換えてください。すると、こんな風にPasswordを要求してきますので、放送側のMacのログインパスワードを入力します。この時にキーインしても何も表示されませんので、確実に一気に入力してください。間違えた場合は再度パスワードを要求されます。パスワードの前にAuthenticationがどうのこうのと言ってくる場合もあるかもしれませんが、その場合にはyesと入力してください。
    5
  4. これで、無事繋がっているハズですので、Terminalは放置して、Desktop Presenter.appをプレゼン側のMacにコピーして立ち上げます。プレゼン側のMacのIPアドレスがこの場合は192.168.10.12になっています。
    6
  5. さて、ここでやっとUStream Producerを立ち上げます。適宜ログインを済ませてScreencastボタンからAdd New Screen Recording Shotを選ぶと下にScreencastの選択肢が出てくるはずです。で、その画面はプレゼン側のMacの画面になっているはずです。

ということでいかがでしょう?無事繋がりましたか?あとはUStream Producerの使いこなしの話しになってしまうので、それは他の方にお任せしま〜す。

ちなみに、こうやって一度設定してあげると、sshのコネクションを切っても再接続すれば大丈夫です。ということで、プレゼンする人が変わる時には、再度そちらのマシンからsshコマンドを打ってあげれば良い事になります。もちろん元のプレゼンターからの接続は先に切っておかないといけませんので、前のプレゼンが終わったら固まっているように見えるTerminalでCtrlキーを押しながらcのキーを押します。それでプロンプトが戻ってくるはずですので、切断に成功した事になります。

<2010.2.5追記>Windowsでのプレゼンも放送できた方が嬉しいと思うので、Windowsからもやってみました。同様にssh -Rでの接続(sshはCygwinで入れました)で無事放送できました。他にもPort forward用のソフトはあったと思うので、Cygwinにsshをインストールしてない場合もそう言ったソフトを入れれば良いんじゃないでしょうか。ちなみに、Desktop Presenter.exeはC:\Program Files\Ustream\Ustream Producer\rsrc\に入ってました。

How to broadcast Another Mac's Screen via Ustream

日々是自作: Skypeで電話するスクリプト

2010年2月 4日 (木)

Skypeで電話するスクリプト

@himanaiku_kawai さんの「特定の人からメールが着信するとスカイプからケータイに電話かけてくれる機能欲しい。。」というtwittを見て、ちょっと作ってみました。MacならAppleScriptで簡単に実装できんじゃない?と思って調べてみたら、次の1行で済んじゃいました。

tell app "Skype" to send command "CALL echo123" script name "SkypeCall"

echo123のところを目的の電話番号(日本なら+81で始めて最初の0は削除した番号列)に変更すればOKです。あとは、このスクリプトをScript Editorでスクリプトとして保存して、Mail.appなりでフィルタに特定のメールアドレスでAppleScriptが起動するようにルールを設定すれば良いだけですね。が、それだと確かに電話は掛かってくるんですが、無言のイタズラ電話状態なので、なんか寂しいですよねぇ。ってことで、ちゃんと繋がったのを確認して、特定の音声ファイルを再生するようにしてみました。

tell application "Skype"  copy word 2 of (send command "CALL echo123" script name "SkypeCall") to callid  repeat    copy word 4 of (send command "GET CALL " & callid & " STATUS" script name "SkypeCall") to callStatus    if callStatus is "INPROGRESS" then exit repeat    if callStatus is in {"REFUSED", "CANCELLED", "FINISHED", "MISSED", "BUSY"} then return  end repeat  send command "ALTER CALL " & callid & " SET_INPUT file=" & quote & "/path/to/soundfile.wav" & quote script name "SkypeCall"    tell application "Finder" to delay 30    send command "SET CALL " & callid & " STATUS FINISHED" script name "SkypeCall"end tell

右がちょっと切れてますので、ソースはScript Editorにペーストしてコンパイルしてからゆっくり眺めてください。

同じく、echo123は適宜電話番号に置き換えてください。さらに/path/to/soundfile.wavを再生する音声ファイルにして、その音声ファイルの長さに合わせてdelayコマンドのパラメータの30秒の部分を修正してください。Skypeが対応している音声ファイルは16k sample/sec、16bitのWavファイルだけしか受け付けてくれないようです。

script nameパラメータは何でも良いんですが、スクリプト内で一貫させておいてください。あと、最初に実行した時にSkypeの方でコマンドを受け付けても良いか聞かれるので、許可してあげてください。

はたしてニーズがあるのかどうか分かりませんけど、せっかく作ったんで公開しておきます。なかなかSkypeのスクリプトも色んな事出来そうなのが分かったので、今後もなんか作るかもしれませんし、興味を持って調べて何かもっと使い手のあるものでも作ってもらえると嬉しいかなと思います。ライセンスはBSDってことで、ご自由にお使いください〜!!

Useful.

Official Gmail Blog: Google Buzz in Gmail

We focused on making the sharing experience really rich by integrating photos, videos, and links. No more fuzzy little pictures: Buzz makes it easy to quickly flip through photos and experience them the way they were meant to be seen: big and full-resolution. And videos play inline so you can watch them without opening a new window.

You can choose to share publicly with the world or privately to a small group of friends each time you post. And you can connect other sites you use, today there's Picasa, Flickr, Google Reader, and Twitter, so your friends can keep up with what you're doing around the web — all in one place.

To make sure you don't miss out on the best part of sharing, Buzz sends responses to your posts straight to your inbox. Unlike static email messages, buzz messages in your inbox are live conversations where comments appear in real time.

You can follow the specific people whose posts you want to see, but Buzz also recommends posts from people you're not directly following, often ones where your friends are having a lively conversation in the comments. If you're not interested in a particular recommendation, just click the "Not interested" link and your feedback will help improve the recommendations system. Buzz also weeds out uninteresting posts from the people you follow — collapsing inactive posts and short status messages like "brb." These early versions of ranking and recommendations are just a start; we're working on improvements that will help you automatically sort through all the social data being produced to find the most relevant conversations that matter to you.

 

For all those times when you want to share something but aren't in front of your computer, Buzz is also available on your phone. When you're out in the real world, a lot of the information you want to share often has to do with where you are: for example, you may want to talk about a new restaurant you discovered or the score of the game you're watching. So rather than simply a small screen version of the desktop experience, Buzz for mobile brings location to the forefront and makes it easy to have conversations about places. In addition to checking out buzz from people you're following, you can also see nearby buzz from the people around you.


We'll be rolling out Google Buzz to everyone over the next few days; you'll see a new "Buzz" link under "Inbox" when it's on for your account. We're still working on some features to make Buzz work well for businesses and schools, so it isn't yet available in Google Apps, but stay tuned. If you want to learn more in the meantime, visit buzz.google.com or check out the Help Center.

 

 

 

 

自動重要度フィルタ的に読み取れるが、蓄積されたメールデータが一種のコーパスとして機能する仕様なのだろう。
となれば、そのあたりのインデクシングに、Gearsの機能も活用されていると見るのが自然な推測ではないか。

FileMaker Custom Functions

FileMaker custom functions resource point fmfunctions.com is a central access point for custom filemaker functions built and contributed to by the FileMaker community. Custom functions do all sorts of useful stuff that FileMaker doesn't do or isn't interested in.

The more users and contributors we have - the more useful the resource becomes for everyone - so register and start contributing!

We truly value the input of our users. Please contact us if you have any suggestions or comments on how we can improve your experience.

-->

Dear Fmfunctions.com users!

The fmfunctions development team and our partners realevo.com have been working on upgrades to the fmfunctions website, including integration of code coloring and live function testing – we’re also updating the interface to help with usability. We expect to release a beta version for testing within 3-4 weeks. Please contact us if you’d like to participate in the beta test or if you have any improvements you’d like us to make.

In other news, our partners at www.filemakerdesign.com have put together a handy little application for FileMaker called the FM Expression Editor – in their words it’s "the simple and smart way to edit FileMaker calculations". The application features syntax highlighting, intelligent content assistance, quick function look-up and database design report integration. These features combine to provide you with an environment that lets you write complex functions and calculations faster than ever before.

For more info – go to www.filemakerdesign.com/expression. There’s a free trial available for download.

Finally, thanks to all our users for their support over the last 10 months. We hope to bring you a more relevant, user-friendly site shortly.

Fmfunctions.com team

Post a function and get free stuff !

Contratulations to John Mark Osborne of FileMaker Pros) he won a nifty snorg t-shirt.  Jealous??  Next draw 19 Feb 2009.  Post a function on FMfunctions before 19 Feb 2009 to enter.

-->

Recently posted

RemoveSmartQuotes ( ) Removes any single or double smart/curly quotes from the specified text (requires FileMaker v10)
xmlSetH ( ) store multible named values in one field or variable! sets value of a tag within a xml by [...]
xmlGetH ( ) store multible named values in one field or variable! get value from named tag by hierarchical name

Downloads from FM Design Blog


Port Forwarding This is a 7 or so minute long video attempting to explain what it is that port forwarding actually is, how it works and what the heck the point of it is.

FMS Deployment Options Make a semi informed decision when going to deploy your solution on FileMaker Server 9.

Faking an Apple Accordian This demo aims to replicate the Accordion widget seen all over the apple site in various forms within FileMaker.

FileMaker のカスタム関数のリポジトリサイトのひとつ

1つのWordpressでマルチドメインを制御 | Joomla!,Wordpressでサイトを構築するためのヒント

一般的に、1つのWordpressでマルチドメインを制御、管理したい場合は、Wordpress MU(μ)を利用する方が手っ取り早いかもしれません。
ただ、レンタルサーバーによっては、Wordpress MUは、インストールが難しく、インストールできても思ったように動いてくれなかったりします。
さくらインターネットでは、サブドメインでWordpress MUを動作させるのは、なかなか難しいです。
ここでは、簡単なソースコードの追加で行える1つの方法を説明してみます。

wp-config.phpを編集する

Wordpressのインストール先ディレクトリにwp-config.phpというファイルがあると思います。
そのファイルをテキストエディタで編集します。
ファイルを開いたいら、”$table_prefix”を検索してみてください。
おそらくは、以下のようなコードが記載されていると思います。

変更前

$table_prefix = 'wp_';

※’wp_’は、インストール時に設定したものが設定されているはずですので、デフォルト値から変更された場合は、その変更された文字列になっていると思います。

上記部分を以下のように変更します。

変更後

$table_prefix = '';
$domain = strtolower($_SERVER['HTTP_HOST']);
switch ($domain) {
case "blog111.example.com":
        $table_prefix  = 'wp_';
        break;
case "blog222.example.com":
        $table_prefix  = 'wp_222_';
        break;
}

この例では、インストール時に使ったドメイン名を”blog111.example.com”としています。
今度、新たに追加するサブドメイン名を”blog222.example.com”としています。

追加したいドメインのルートパスを設定する

ここの例では、”blog222.example.com”のルートパス(ディレクトリ)をWordpressのインストール先ディレクトリへ設定します。

追加したドメインでアクセスする

ここの例では、”blog222.example.com”へWEBブラウザからアクセスしてみてください。
Wordpressのインストール画面が表示されたことと思います。

注意点

このやり方は、非常にシンプルでWordpressをいっぱいインストールすることを回避できます。また、テーマやプラグインの共有も行えますのでインストールの手間は省けます。

 

ただし、アップデートはテーブルが、それぞれのブログ(サブドメイン、マルチドメイン)で異なりますから、それぞれでアップデートを行う必要があります。(データベースのアップデートが必ず必要であるということです。)

また、プラグイン、テーマは、通常、決められたディレクトリへコピーすれば、ほとんどの場合は、動作します。しかし、ものによっては、データベースを利用している場合があります。その場合は、共有できない場合があります。どうしても必要なプラグインがある場合は、まずは、動作確認を行った方が良いでしょう。

少し乱暴な手法ではあるし、これで済むなら、MU版が不要という話になってしまうが、ある意味シンプル。
情報入手元:Kazさん