9月
11
2009
Snow Leopard has got PHP 5.3, so it’s nice to install Partuza and Shindig. Because you can do without installing entropy.
But I needed to do a little tweak to get MySQL work on Snow Leopard. Here’s a memo.
Download MySQL
Download binary of MySQL from here. Choose Mac OS 10.5(x86_64) on download list close to the bottom.
Install MySQL
Installing can be done only with GUI. Install Prefpane and Startup Item as well. Configure PATH too.
Create ~/.bash_profile and paste, or append following:
PATH=$PATH:/usr/local/mysql/bin
export PATH
You can utilize it by doing:
> source ~/.bash_profile
Do the tweak
You have to do following to get MySQL properly work on PHP:
> cd /usr/local/mysql
> sudo ./script/mysql_install_db
then…
> sudo cp /etc/php.ini.default /etc/php/ini
> sudo vim /etc/php.ini
change following part:
mysqli.default_socket = /var/mysql/mysql.sock
to something like this:
mysqli.default_socket = /tmp/mysql.sock
That’s it! Now you should be able to start MySQL from Preference Pane and see MySQL working on PHP.
Note: This makes Partuza working, but if you want to do something else, you may need some more work.
1月
08
2009
I developed FriendIntroducer as an experiment and was trying to understand how FriendConnect is different from ordinaly OpenSocial implementation. So this time, I’ve tried to develop a gadget which you can find FriendConnect interesting, Footprints. You know the idea if you’ve tried MyBlogLog before.
What is Footprints?
Footprints is a gadget to track visitor of you blog. Look at the gadget on bottom left of this blog. If you’re not joined or signed in, do it to check what it does.
Footprint is a pretty popular idea on japanese social networks. Once upon a time, SNS were all closed and it was difficult to find people you may know. Footprint functionality was a good tool at that time to find who’s interested in you.

As you could imagine, this gadget records visitor and its time. When viewed by others, timestamp will be displayed how long ago, you’ve visited. Also, you can remove your own footprint if you want. The xml is located at:
http://devlab.agektmr.com/OpenSocial/FriendConnect/Footprints.xml
Feel free to take it and use it on your blog.
6月
03
2008
ことえり変換
変換中に
- Ctrl + j : ひらがなに変換
- Ctrl + k : カタカナに変換
- Ctrl + l : 全角英数に変換
- Ctrl + ; : 半角英数に変換
カーソル移動等
Vimと違うので使いやすくはないけど・・・
- Ctrl + p : 上
- Ctrl + n : 下
- Ctrl + b : 左
- Ctrl + f : 右
- Ctrl + k : 行削除
- Ctrl + y : ペースト
- Ctrl + a : 行先頭に移動
- Ctrl + e : 行末に移動
キャプチャ
Command + Shift + 3で全画面キャプチャは言うまでもないけど、
Command + Shift + 4で範囲指定キャプチャ。キャプチャしたい範囲をドラッグしながら
- Space : キャプチャ範囲をそのまま移動
- Shift : カーソルを動かした方向以外を固定して領域を変形させる
- Option : 領域の中心を基点に形を変形させる
- Ctrl : キャプチャ範囲をクリップボードにコピー
- Esc : キャプチャをキャンセル
QuickLook
画像QuickLookで
- Option + クリック : 拡大
- Option + Shift + クリック : 縮小
- Option + ホイール : 拡大/縮小
PDFQuickLookで
- Command + プラスキー(Command + Shift + ;) : 拡大
- Command + マイナスキー : 縮小
Dashboard
Optionを押しながらマウスオーバーでウィジェット削除の×印が出る(いちいち画面左下の+をクリックしなくてよい)
その他
- Ctrl + Shift + Eject : ディスプレイを切る
- Command + Option + Esc : 強制終了
- Command + Option + Ctrl + Eject : OSシャットダウン
- Ctrlを押しながらマウスホイールをグリグリ : 画面の拡大/縮小(結構感動的)
- SafariのタイトルバーをCommand + クリック : 同じサイトのURLを上位階層に移動
- (たぶん全てのアプリで)Command + F1 : 同じアプリのウィンドウを順番に行き来
その他、集めたTipsの参考サイトはこちらに色々あります
5月
22
2008
最近のMac OS X用アプリには、自動的に更新をチェックしてアップデートしてくれるものも少なくありませんが、常に最新版を使いたい人にとって、そうでないアプリを管理するのは面倒なもの。チェック方法としてVersionTrackerや、デスクトップアプリケーションのLogicielMac Updateといった選択肢がありますが、いずれも今日紹介するコンボと比較すれば、つまらないものに思えてきます。
iusethis.com
iuserthis.comは使っているMac OS X用アプリを登録して共有するSNSです。

サイトにサインアップしてからimakeprofileというアプリを使うと、Macにインストールしてあるアプリを自動的にスキャンして、自分が主に使用しているアプリをiusethis.comに登録することができます。使用しているアプリが未登録の場合は、自分で追加することも可能。
登録したアプリは、サービスが最新版の情報を取得するので、更新が可能かどうかを調べることができます。もちろんレビューや、誰がそのアプリを使用しているのかを確認することもできます。さらには簡易的なSNS機能として、TwitterのようなFollow機能があるので、他の人のアプリ使用状況を追跡することもできます。
ちなみに僕が使用しているアプリはこんな感じ。

Facebookアプリも提供されているので、「俺こんなアプリ使ってんだぜ!」と叫びたいニーズも満たしてくれます。そのうちきっとOpenSocialにも対応してくれるでしょう。
AppFresh

AppFreshはiusethis.comと連携して使えるソフトウェア更新ツールです。iusethis.comのデータベースから自動的に最新版を確認して、どれが更新できるかを知らせてくれます。その場でダウンロードからインストールまでまとめて行うこともできますし、ダウンロードのみ行うこともできます。Growlに対応しているので、ダウンロードやインストールが完了すると通知もしてくれます。
まとめ
AppFresh / iusethis.comは、SNSの楽しさで集めたユーザーに、アプリ開発者やサイト管理者の煩雑な作業を集合知として解決してもらうことで、くまなく幅広いアプリケーションの更新情報を提供可能とした最強のコンボと言えるのではないでしょうか。
※ちなみに、アプリの自動更新チェックには、RSS2.0のenclosureにアプリのリソースURLを入れるAppCastなるプロトコルが使われるケースが多いようです。
3月
27
2008
先日Safari3.1から搭載されたオフライン機能について書きましたが、amachangさんが使い方を詳しく解説されています。
Safari 3.1 に実装された「Client-side database storage (SQL API)」とは何か? – IT戦記
詳しく読んでませんが、HTML5からの仕様らしく、既にFirefox3のβ版にも搭載されているとか。
これで、あんなことやこんなことができそうですね・・・