2008年10月23日木曜日

iPhone/iPod Touch のボタン

以前 iPod Touch とイーモバイルのモデムを併用する方法について書きましたが、どちらとも電池駆動なんで、外出時につけっぱなしにしておくと帰りの電車でさみしかったりします。

ルーター(PHS-300)の外付けバッテリ等に関してはググるといろいろ出てきますし、そのうち買おうかなと思っているのでまた今度書きますが、iPhone/iPod Touch でこんなことができたんですね。

iPhone 3G の節電術↓
http://builder.japan.zdnet.com/sp/iphone-3g-2008/story/0,3800087831,20379497,00.htm

走っているアプリケーションの数が減ればもちろんバッテリーの消費も減るということでしょうか。iPod Touch であれば Wi-Fi つけっぱなしでも結構持つようですが、僕の場合は会社に着いたらドックで regenerate してもらってるので(セブン・オブ・ナインみたい?)実際はこういったことが役に立つんでしょうね。

でもこまめに落とせばMobile Safari やMail.app とか落ちなくなるかも?

2008年10月16日木曜日

SQL Server 2008 Sample DB (AdventureWorks) を入れる

ふとしたことでサンプルDBが必要になりまして、同僚のすすめもあって SQL Server 2008 Express with Advanced Service を入れることに。

もともとVisual Studio 2005 と 2008 が入っているマシンなので、インストーラのチェック(厳しいっす)に負けながら SQL Server 2005 Express のアンインストールだのなんだのに丸半日かかりました。

やっとこインストールができてじゃあサンプルのAdventureWorks (今までのNorthWindは2008版がまだダウンロードできないようで)のインストールにこぎつけたんですが、バックアップファイル(AdventureWorks2008.bak)がリストアできません。FILESTREAM が無効になっているとのエラーが。

インストール時にはそんなオプションは見当たらなかったので、調べてみたらインストール後にFILESTREAM を有効化する方法がいくつかあるようで、

T-SQL(sp_filestream_configure)

EXEC sp_filestream_configure @enable_level = 3, @share_name ='MyFilestreamSQLServerInstance';

SQL Server 構成マネージャのSQL Server サービスのプロパティ設定:



どちらで設定・実行してもリストァ時には FILESTREAM が無効とのエラーが・・・。

しかも付属のスクリプト(C:\Program Files\Microsoft SQL 
Server\100\Tools\Samples\RestoreAdventureWorks2008.sql) をそのまま実行すると平和に終了してくれました。

悶々としているところで見つけたのがもう一つの設定方法:

http://www.sqlskills.com/blogs/paul/post/SQL-Server-2008-Enabling-FILESTREAM-through-T-SQL-and-SSMS.aspx



ここで設定するとうまくいきました。前記2つの方法ではなぜ有効化されないのかは謎です。FILESTREAM はデフォルトで無効になっているようですのでいろいろ試しても同様のエラーが出てしまう時にはこちらもお試しあれ・・・。

2008年10月8日水曜日

Adobe AIR

ZDNet Japan builder サイト主催のイベントで Adobe AIR を使ったRIA (リッチ インターネット アプリケーション)の事例が紹介されたそうです。

Adobe AIRによるRIA開発
http://builder.japan.zdnet.com/news/story/0,3800079086,20381355,00.htm

あまりFlexは使ったことがないのですが、HTML + Javascript + Flash + Flex の組み合わせで Web 上で動くアプリケーションみたいですね。

ローカルデータベースとして使えるSQLite 内蔵は Silverlight の IsolatedStorage よりも使いいいのでしょうか?ミドルウェアの使用についても言及されてますが、規格に基づきながらもいろいろなグループによって作られたものと、そこら辺を .NET で統一してある Silverlight 、似ていながらにてない、んでしょうか?仕事がらみで使わせてもらえるかな・・・?

UX系のお話もからめたセッションだったようで、「フローチャートを先に考えると、それにそっくりなユーザーインタフェースができあがる傾向にある」とあります。考えさせられますね。現場ではそこまで細かく検討するのが難しいというのが大半の意見ですが、使うのはユーザーさんですからね。

今回は、質問だらけの記事でした。自問自答シリーズになるかも(笑)

2008年10月5日日曜日

iPod Touch, Personal HotSpot and Exchange ActiveSync

So I bought iPod Touch back in June, thinking it'd be a cool lil thing to read PDF docs during my commute hours. It also was a somewhat of an impulse purchase during some crazy work week. Didn't opt for iPhone since it wasn't available just yet (in Japan). 

Soon enough I wanted to use the Wi-Fi capability. Signed up for a compatible Wi-Fi hotspot around subway station. Didn't last me too long. Connectivity wasn't all that great since I had to log in each and every time I wanted to use the service, as well as the service was available only within the subway stations. So if I check e-mail while waiting for a train, most likely I won't get to read more than 2 mails by the time train leaves the station.

Aside from occasional cool moments with iPod Touch for offline document reading and movie viewing, it quickly faded its glory under the light of iPhone popping up everywhere in Japan. I've jailbroken it, too. But it just wasn't cutting it.

Until now...

I stumbled across a portable wireless router called PHS300. It's also being sold in Japan via Amazon and others.  It's just a little router you can sneak in your backpack or sling bag. You also need a 3G data modem such as the ones from E-Mobile or Docomo to have internet connectivity. I have a wireless modem from E-Mobile (good stuff!)

After less than 1 week, the new toy has arrived via Google Checkout. Set it up wirelessly (it has a simple admin interface) and my iPod Touch was running like an iPhone. Grabbing contents from every which way online. E-mail and web sites on commuter train - no problem. Anywhere cellular network is available, it hums like Cirque De Soleil (I like their music).

Once I got my gmail humming on iPod Touch, how about work mail? My work as Exchange Server for our corporate e-mails. ActiveSync is now supported on iPhone/iPod Touch. Yay. Not that I'm obsessed with checking work e-mail everywhere I go. But something to try because you can!

Tried setting up VPN and setup Exchange account on iPhone. Nope, didn't work. Our Exchange Server is only accessible locally. But trying to load up internal SharPoint site in mobile Safari didn't work either. That must mean I'm connected to VPN, but not really.

Dug around the net and tried tinkering with the settings...using IP, disabling SSL, etc....no luck. Is there a way to use Outlook Anywhere with iPhone? Didn't seem like it. 

I didn't know. But Outlook Anywhere basically lets you use Outlook Web Access (OWA) site as a proxy to connect to Exchange Server from your Outlook via HTTP and RPC.

Hmm...worth a try. 

Put OWA address in Server address for Exchange Server setup on iPhone.  No change in domain name and credentials . 

(screenshot here)

Alas! My work e-mail in my ipod touch mailbox! 

I'm sure whether this method works for anyone depends on the server setup. But if your organization has OWA and Outlook Anywhere in place, you may get lucky with iPod Touch/iPhone  ;-) 

2008年10月2日木曜日

Silverlight on iPhone

I haven't kept up with Windows Mobile - whether it actually will run Silverlight 2.0 or not. But Adobe is developing a Flash player for iPhone.

Why is it a big deal? With popularity (even though it might be just the "cool" factor for it) of iPhone and iPod Touch, it will make existing millions of Flash content on the net available for iPhone. As more people use that, the platform will mature enough to be able to handle real-world applications that are already in place for many web sites.

Oracle, SAP, Lotus Notes, they all started making business apps for iPhone.

Soon enough, competing technology will have to come up with their own that runs on iPhone. What's this competing technology? -- Silverlight.  MS may not have an immediate plan on making Silverlight for iPhone just yet, look at how quickly they developed their Flash counterpart after seeing the overwhelming growth of Flash market.

Yes, it's a niche market. Yes, it's up to Apple they say. Yes, the first version won't run nothing but YouTube. But you watch. It will come...