Showing posts with label Dev. Show all posts
Showing posts with label Dev. Show all posts

2010-10-16

How to embed vimeo on Wordpres.com

It's pretty simple like this.

[vimeo 15893551]

Messages 001 - Mr Takahiro Komatsu of watowa (Show Director, Creative Director) from Yusuke Takahashi PhD on Vimeo.


(cf) http://en.support.wordpress.com/videos/vimeo/

2010-07-09

Mac Looks Smarter with SSD

Seven months have passed since I changed my broken HDD, last December, to SSD on my Black Intel-based MacBook, the SSD was broken down again. SSD has done great jobs in terms of performance. Its speed of Reading and Writing was incredibly fast.

Today, my SSD is fixed and back to my Mac. He looks smiling with SSD in his brain.

2010-06-18

WordPress 3.0 “Thelonious” is out today

WordPress 3.0, the thirteenth major release of WordPress is now out.

Major new features in this release include a sexy new default theme called Twenty Ten. Theme developers have new APIs that allow them to easily implement custom backgrounds, headers, shortlinks, menus (no more file editing), post types, and taxonomies. (Twenty Ten theme shows all of that off.)

Developers and network admins will appreciate the long-awaited merge of MU and WordPress, creating the new multi-site functionality which makes it possible to run one blog or ten million from the same installation.

WordPress 3.0 "Thelonious"
(Japanese translation)

ServersMan@VPSでmemory limitエラーが出た際の設定のメモ

WordPressの設定中に、memory sizeのエラーがでました。BlueOnyxのデフォルトでは16Mになっており、これでは足りないとのこと。
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 233472 bytes) in /home/.sites/**/site*/web/blog/wp-admin/menu.php on line 214

設定方法は次のとおり。BlueOnyx上で、[サイトの管理] - [仮想サイト名] - [サービス] - [PHP]より、[Memory limit]をデフォルトの約2倍の30Mに増加させて、[保存]する。BlueOnyx上で設定を[保存]した場合、Apacheの再起動は必要ない模様です。

設定自体は、一般的には、/etc/php.ini上の「memory_limit」にて可能ですが、.htaccess上で「php_value memory_limit **M」とすることもできます。

2010-06-17

ServersMan@VPSでopen_basedirを無効にする方法のメモ

ServersMan@VPSでWordPressのPermalinksを設定しようとすると、以下のようなopen_basedirのWarningが出てしまいます。

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/.htaccess) is not within the allowed path(s): (/tmp/:/var/lib/php/session/:/home/.sites/28/site1/) in /home/.sites/28/site1/web/blog/wp-admin/options-permalink.php on line 141


Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/tmp/:/var/lib/php/session/:/home/.sites/28/site1/) in /home/.sites/28/site1/web/blog/wp-admin/options-permalink.php on line 141


Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/.htaccess) is not within the allowed path(s): (/tmp/:/var/lib/php/session/:/home/.sites/28/site1/) in /home/.sites/28/site1/web/blog/wp-admin/options-permalink.php on line 141


Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/.htaccess) is not within the allowed path(s): (/tmp/:/var/lib/php/session/:/home/.sites/28/site1/) in /home/.sites/28/site1/web/blog/wp-admin/includes/misc.php on line 133


Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/tmp/:/var/lib/php/session/:/home/.sites/28/site1/) in /home/.sites/28/site1/web/blog/wp-admin/includes/misc.php on line 133


Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/.htaccess) is not within the allowed path(s): (/tmp/:/var/lib/php/session/:/home/.sites/28/site1/) in /home/.sites/28/site1/web/blog/wp-admin/includes/misc.php on line 133


Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/web.config) is not within the allowed path(s): (/tmp/:/var/lib/php/session/:/home/.sites/28/site1/) in /home/.sites/28/site1/web/blog/wp-admin/includes/misc.php on line 158


Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/111859504c19f991a1ca2.tmp) is not within the allowed path(s): (/tmp/:/var/lib/php/session/:/home/.sites/28/site1/) in /home/.sites/28/site1/web/blog/wp-admin/includes/misc.php on line 574


Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/111859504c19f991a1ca2.tmp) is not within the allowed path(s): (/tmp/:/var/lib/php/session/:/home/.sites/28/site1/) in /home/.sites/28/site1/web/blog/wp-admin/includes/misc.php on line 577


Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/web.config) is not within the allowed path(s): (/tmp/:/var/lib/php/session/:/home/.sites/28/site1/) in /home/.sites/28/site1/web/blog/wp-admin/includes/misc.php on line 574


Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/web.config) is not within the allowed path(s): (/tmp/:/var/lib/php/session/:/home/.sites/28/site1/) in /home/.sites/28/site1/web/blog/wp-admin/includes/misc.php on line 577


open_basedirとは、PHPを実行できるディレクトリを指定したものに制限するための設定です。

phpinfo()で設定を確認してみると、以下のようにデフォルトで設定されています。
open_basedir /tmp/:/var/lib/php/session/:/home/.sites/28/site1/ /tmp/:/var/lib/php/session/

このWarningを無効にするには、</etc/httpd/conf/vhosts/site1>(仮想サイトsite1の設定)で定義されているopen_basedirを無効にします。

#php_admin_value open_basedir /tmp/:/var/lib/php/session/:/home/.sites/28/site1/
php_admin_value open_basedir none

apacheを再起動するのをお忘れなく。
/etc/init.d/httpd restart

なお、BlueOnyx上でも、open_basedirのLocal Value(仮想サイト特有の設定)を確認できます。

[サイトの管理] - [該当する仮想サイト名] - [サービス] - [PHP] - [Open basedir] 



2010-06-16

ServersMan@VPSでBlueOnyx使用時にWordPressのPermalinkを有効にする際のメモ

DTIのServersMan@VPS(エンジニアセット)を試しています。最近やっと開通。

このVPS上には、BlueOnyxというサーバ管理ツールがインストールされていますが、WordPressのインストール後のパーマリンクの設定についてメモしておきます。

蛇足ですが、OSはCentOSですが、BlueOnyxが動いているためウェブサイトのドキュメントルートが/var/www/htmlではなく、/home/sites/仮想サイト名/webにあったりして、慣れるまで少しわかりにくい。

パーマリンクの設定を変更し、.htaccessを手動で更新しましたが、更新後ブラウザで新しいパーマリンクにアクセスすると、エラーとなってアクセスできなくなってしまいます。

これは、BlueOnyx用の設定(/etc/httpd/conf.d/blueonyx.conf)で/home/.sites以下で有効なApacheの設定やAllowOverrideのディレクティブが定義されており、/home/sites/仮想サイト名/web以下での.htaccessがセキュリティ上の理由によりデフォルトでは禁止されています。

.htaccessを簡単に有効にするには、BlueOnyx上で、[サーバの管理] - [ネットワークサービス] - [ウェブ](ウェブの設定)でAllowOverrideのAllをチェック(有効に)します。
これで、WordPressのパーマリンク設定が有効になります。

参考
http://www.blueonyx.it/index.php?mact=News,cntnt01,detail,0&cntnt01articleid=34&cntnt01returnid=54




2010-06-01

iPadでのVGA出力のメモ

iPadでのVGA出力についてのメモです(2010年6月1日現在)。

iPadは、Apple iPad Dock Connector - VGAアダプタを用いることで、プロジェクタやTVモニタ等上に画面を表示することができます。


ただし、iPad上の画面がすべて出力されるわけではなく、使用中のアプリがVGA信号を出力する場合のみ可能です。

以下、VGA出力対応状況です(2010年6月1日現在)。

Keynote(\1,200)

プレゼンテーション再生中のみVGA信号を出力

Photos

スライドショー再生中のみVGA信号を出力

Videos

再生中にVGA信号を出力

YouTube

再生中にVGA信号を出力

Safari

Web ページのビデオコンテンツのみ、VGA信号を出力

VGA出力対応のブラウザ

  • Web Brouser Presenter(\115)
  • web2vga(\115)
  • iDemoWeb(\230)
  • WebProjector(\600)
  • Expedition - VGA, Composite, Component Out Web Brouser(\230)
  • Infonet Presenter(\1,200)
  • Just PDF(\115) * PDFファイルを出力

(cf) "iPad:iPad Dock Connector - VGA アダプタの互換性について"

2010-05-21

Cacoo

これ、便利です。OmnigraffleやVISIOと同等のことが、ブラウザ上で利用できて、インストール不要。しかも無料。当然ですが、オンラインで図表を編集して、更新すると、埋め込んだ先の画像も更新されます。

Cacoo https://cacoo.com/

図ビューアの埋込テスト


図画像の埋め込みテスト


参考
'図表の作成環境,' http://wp.me/pSRO0-21, May 18, 2010.

2010-05-05

Blackbird Pie

本日、Twitterがツイートをブログ記事やウェブサイトに簡単に埋め込めるツールを発表した。

http://media.twitter.com/blackbird-pie/

ブラックバード・パイ(Blackbird Pie)と呼ばれるサービスで、使い方はとても簡単。引用したいツイートのURLをコピー&ペーストしてから「Bake it」ボタンをクリックすれば、プレビューが表示されるとともに、ブログやウェブサイトに貼り付けるソースコードが表示される。たったこれだけ。

個別のツイート自体が日に日に発言力を増している中で、重要なツイートを外部に簡単に張り付けられるため、重宝しそうだ。

tweet URL(個別のツイートのURL)を取得する方法は、各ツイートの下に表示されている更新日時(例えば「1 munute ago」)に貼られたリンクがこれになる。

例えば、次のように表示される。

RT @cinefugue @peterhchang Our first co-production "blink" is released on DVD today! http://bit.ly/9cju3M http://amzn.to/a15B7sless than a minute ago via web



自動生成されるソースコードは、とっても冗長だ。

また、更新日時が正確に表示されず、なぜか、上記の例の場合、「7:28 PM May 3rd via web」が「less than a minute ago via web」と表示されてしまう。なぜか、絶対的な日時を表示したり、生成されたソースコードから相対的な時間を計算したりしていない。なぜ?ツイッターは「リアルタイムメディアだー!」というのを、更新日時を偽ってでも伝えたいのだろうか?みんな知っているのに。

2010-05-01

@anywhere

It is nothing new to say that Twitter's @anywhere is useful and essential.

Recently, Socialization of websites cannot be stopped. I have been thinking of what we are required to release next. That is a kind of easy-to-add API of socialization with, such as, adding just 1 line of JavaScript code.

Facebook's Social Plugin and Twitter's @anywhere are this kind of cloud solutions. Every kind of existing, old-styled website can integrate social functions without any efforts.

References

2010-01-08

Google日本語入力






Google日本語入力 Google IME for Japanese
http://www.google.com/intl/ja/ime/index-mac.html

Apple純正の「ことえり」と比較して格段に"賢い"です!

「アイマック」と入力しても「iMac」が出て来なくなりましたが、「あいもーど」に対して「iモード」へは変換されます。

こちらに、ATOKとの性能比較が掲載されています。使用開始後半年(学習期間半年)のATOKと使用開始日当日のGoogle日本語入力で、格言に関しては、Googleの方が
優れていたとのことです。

IME(アイエムイー) Input Method Editor
IMEとは、日本語や中国語など、文字の多い言語で入力を行なうために必要な変換ソフト。日本語用のIMEとしては、Windows 95/98に標準で添付されているMicrosoft社のMS-IMEの他に、ジャストシステムのATOKやバックスのVJEなどが有名。(source "IT用語辞典")

2009-12-30

Wraparound

Find a wraparounding application for your Mac's Desktop.Its ability of Preference's setting is totally awesome! 

Wraparound
http://www.digicowsoftware.com/detail?_app=Wraparound

2009-12-16

dev_appserver.py

After I have updated Google App Engine to 1.3.0.609, the command "dev_appserver.py" did not run even with the absolute path.
$ pwd
/Users/**/Documents/Repository/dev/gae/helloworld
$ /usr/local/google_appengine/dev_appserver.py ../helloworld/
-bash: cd: /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine: No such file or directory
If you find yourself in the same situation, there are 2 kinds of solutions:
  • Unzip an archive file named /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine.zip
  • Run GoogleAppEngineLauncher.app (for the first time after upgrade) and "Make Command Symlinks." The zip archive seems to be unzipped.

2009-12-06

Google Wave Removes Tempo/Spatio Constraints

It seems to me that using Google's Wave removes tempo/spatio constraints. That means it realizes REALLY-realtime collaboration.

Though, as far as i know, Screen Sharing function by Skype and Apple's iChat has already changed our way of collaboration over spatial constraint, Google's Wave lets us share everything including archives of past's communication in realtime.

What is a wave?
  • A wave is equal parts conversation and document. People can communicate and work together with richly formatted text, photos, videos, maps, and more.
  • A wave is shared. Any participant can reply anywhere in the message, edit the content and add participants at any point in the process. Then playback lets anyone rewind the wave to see who said what and when.
  • A wave is live. With live transmission as you type, participants on a wave can have faster conversations, see edits and interact with extensions in real-time.
source: "About Google Wave" by Google Wave

What is Google Wave (Japanese)
http://www.atmarkit.co.jp/news/200905/29/wave.html

Google Wave
http://wave.google.com/


2009-12-05

Macintosh SSD

MacBook BlackのHDDをSSDに換装しました。

換装にあたっての懸念事項は、次の二つ:

  • どの製品なら問題なく動作するのか
  • Adobe CS4が動作するのか

Googleで動作確認済みのMacBookへの換装用に最適なSSDを調べたところ、メモリセルはMLCよりSLCの方が良いとか、J-Micronのコントローラーに気をつけた方が良いとか、サムスン製やインテル製が良いとか、動作確認済みの関連商品(1,2,3)とか、いろいろ参考になる情報がありましたが、総合的考えた結果MLCでも問題なさそうなので、AmazonでPhotoFast社製のGMonster-V5 SATA SSD Media(G-Monster V5、2.5インチSATA専用、128GB、SSD、最大読込&書込270MB/s)を購入しました。

また、Adobe CS4の必要システム構成には、「フラッシュメモリを利用したストレージデバイス上にはインストール不可」と明記されていましたが、カスタマーサービスに問い合わせたところ、「製品開発時に、SSDにインストールできるかどうか正式にテストはしていないが、インストールについて、問題の報告は受けていない。今後、HDDにとって変わるものとして、サポートされる可能性もある」とのことでした。
HDD-SSD換装の手順は簡単です。とても簡単でシンプルです。よく壊れるから、修理しやすいように、シンプルにしてあるのでしょうか?壊れるのがわかっているようなHDDを安価で大量に仕入れたのではないかと疑ってしまうほどです。今年に入ってから、僕の自宅にあるMacBookは3台すべてHDDが故障して交換してもらいました。今思えば、自分で換装できましたね。

Apple StoreのGenius Barの担当の人が「僕らもあのHDDメーカーは信頼ができなくなりました」と云っていました。これはあくまで個人の意見でしょうが、Apple側の人として、「(あのメーカーを採用したもの含めて)僕らの責任でご迷惑をおかけしました」と言えないものでしょうか。僕がJobsだったら、あの担当者は処分します。もちろん、逆にすごく紳士的で誠実な担当者の方もいましたが。

用意するもの
  • MacBook Black
  • SSD
  • プラスドライバー(極小)
  • トルクスレンチ(T8サイズ)

手順は次の通り

  1. コインを用いてバッテリーを外す
  2. 内側のL字型の部品をプラスドライバーで外す
  3. HDDを取り出すための白いフィルムを取り出して、HDDを引き出す
  4. フィルム付きカバーからHDDを取り外す
  5. フィルム付きカバーをSSDに取り付ける
  6. カバー付きSSDを挿入(上下確認)
  7. 内側のL字型の部品をプラスドライバーでつける
  8. コインを用いてバッテリーをつける

SSDのフォーマット

  1. 一度電源を入れ、Snow LeopardインストールDVDをスロットに差し込んだら、パワーボタンで強制終了
  2. 「C」キーを押しながら起動
  3. ディスクユーティリティを起動
  4. 換装したSSDを選択し、「パーティション」タブを設定
  5. 上記の設定を「適用」後、「パーティション」ボタンをクリック
  6. Snow Leopardのインストール

インストール後、Adobe Illustrator CS4、Adobe Photoshop CS4が5秒以内に立ち上がるようになりました。再起動も、数秒で完了します。感動的な早さです(3日もすれば、当たり前になってしまいましたが)。

最後に、これは、HDDではないので、「Macintosh HD」を「Macintosh SSD」に変更しておきました。


2009-11-18

Google's Go: A New Programming Language

Big news for developers out there: Google has just announced the release of a new, open sourced programming language called Go. The company says that Go is experimental, and that it combines the performance and security benefits associated with using a compiled language like C or C++ with the speed of a dynamic language like Python.

2009-11-11

iWork instead of Microsoft Office


Once you select Apple's iWork '09 on Mac, you can never return to Microsoft Office 2008. Usability is like Adobe's softwares and it is like 3 times more efficient. Templates are beautiful. Just try Mac!

Wi-Fi Everywhere


WILLCOMのどこでもWi-Fi(WS024BF)を購入しました。これさえあれば、どこでもWi-Fi(無線LAN)環境になります。

来週(2009年11月18日)には、emobileからもPocketWifiが発売されますが、小型軽量でデザインも優れているものの、出先でも乾電池でバッテリーを補充できることから、WILLCOMを選びました。これまで、ラップトップやiPhone、携帯電話等のモバイル機器を使用してきて、電源が一番のネックだったからです。

サービスエリアも人口カバー率99%であり、emobileの90%と比べても優れており、さらに、国内出張も多いのでUQ WiMAXが全国対応になるのを待てないため、WILLCOMが最適でした。

費用もリーズナブルです。本体代金を一括28,800円で購入し、新つなぎ放題プランで月額料金はわずか980円(月額基本料金3,880円―ダブルバリュー割引2,900円)。さらに、2年契約ですが、途中解約しても契約解除料等一切かかりません。

これで、3G回線を介さずに、出先でも、iPhone上でのSkype音声無料通話が可能になります。

ひとつ厄介なのが、「お子様向けアクセス制限」がデフォルトで設定されており、さらに、設定自体の変更方法が、接続先のプロバイダーの変更以外に提供されていないことです。

お子さまにも安心してご利用いただけるよう、本製品にプリセットされている「デフォルト接続先」では、出会い系サイトやアダルトサイトなど、お子さまにとって不適切なウェブサイト(有害サイト)へのアクセスを制限しています。

接続先の設定変更方法
  1. どこでもWi-Fiに接続した状態で、http://192.168.11.1/を開く
  2. [ダイヤルアップ回線設定]画面で、[切断]をクリック
  3. 切断処理(20秒程度)が完了したら、[ダイヤルアップ回線設定]画面で[プロファイル2]を選択
  4. 接続先プロバイダーに関する情報を入力し、[接続]をクリック
  5. 接続処理が完了して、[ダイヤルアップ回線設定]画面上に[接続中]と表示されたら完了

以下は、参考までに、僕の契約しているASAHIネットでどこでもWi-Fiを使用する場合の接続先プロバイダー情報です。ASAHIネットのウェブサイト上には、様々なダイヤルアップ番号が明記されており、的確な電話番号を特定するのには、少し時間がかかってしまいました。

  • プロファイル名称: ASAHI-Net
  • 電話番号: 0570570706##64 (WILLCOM「新つなぎ放題」プランの場合)
  • 接続先ユーザ名: [ASAHIネットログイン名]@atson.net
  • 接続先パスワード: [ASAHIネットパスワード]