Archive for 3月, 2009

UNIQLO.COM

3月 31 2009 Published by hkitago under Flash,JavaScript,ウェブ

保育園用の子供服では大変お世話になっている UNIQLO のウェブページが一新したらしい。

Flashを脱いで生まれ変わったユニクロ.COM
FlashでもAjaxでもない。(中略)流行りのJavaScriptの利用も最低限に抑えた。

記事を読むと Web 1.0 時代のようなローカルで自動生成したファイルをサーバーへ配置しているように感じ、「利用」の定義が曖昧だったので Safari 4 のインスペクタで確認したところ、視覚的に静的なだけで ActionScript から JavaScript にクライアント側の言語を置換したと言って良い。つまり開発側ではなく、エンドユーザーにとっての「利用」ということになる。(広告の臭いがする記事に突っ込んでも仕方がないのだが…)

しかし今回の件で感心するのはユニクロの動きの素早さだ。それと同時に世界的な不況と言われる中で、開発費用もリッチな Flash 案件の生き残りに注目したい。あるいは動画配信を必要としないのに Flash を中心に構成されたウェブを持つ企業がどれだけ後退していくのかについても関心がある。もちろんその逆の結果を出せれば、うまく Flash を広告に使っているという証拠でもある。

No responses yet

Disabling the “action” pop-up on iPhone

3月 21 2009 Published by hkitago under CSS,JavaScript,iPhone,コーディング

iPhone で表示される JavaScript イベントの背景について処理する方法を以前紹介したが、具体的に CSS ファイルに直接書く方法と、JavaScript から操作する方法がある。

7 tips for using UIWebView « Coding Ventures
document.documentElement.style.webkitTapHighlightColor = “rgba(0,0,0,0)”;

次のアップデートでは、このようなコードを差し込む予定。

window.addEventListener("load", function() {
 initScore();
 document.addEventListener("touchmove", function(){ event.preventDefault(); }, false);
 document.documentElement.style.webkitTapHighlightColor = "rgba(0,0,0,0)";
});

また、アクションポップアップを消す方法として次のような処理が紹介されていたが、イベントハンドラに onclick を使わずに onTouchStart を使うと(反応が速いという利点もあって)良いと思う。(と、彼の投稿にコメントを書こうと思ったのだが面倒に…)

7 tips for using UIWebView « Coding Ventures
document.documentElement.style.webkitTouchCallout = “none”;

一方この資料で面白かったのは、 DeliciousSafari も使っているプロトコルの作成方法だ。
sqlite から保存データを別の UIVew へ表示する場合や、同じソフトを持つ友人とメールで共有する場合に使おうと計画している。

No responses yet

generalist or specialist

3月 19 2009 Published by hkitago under ビジネス

経済学者の池田氏がこんな提案をしていた。

終身雇用がクリエイターを滅ぼす
年功序列をやめ、専門家を育てるキャリアパスの改革が必要だ。

しかし、書籍 “Eric Sink on the Business of Software 革新的ソフトウェア企業の作り方” では、小さな組織であるほどゼネラリストが必要で、逆に大きな組織であればスペシャリストが必要になると書かれており、個人的な体験からこの意見に賛同するものの、池田氏の言う日本のテレビ業界(あるいは一般の会社組織)の状況にも納得してしまうのは不思議だ。

それだけ日本の状況が腐っているということなのだろうか。まあ年功序列制度を一切やめることもないだろうが、それしか選択肢がないという状況は避けたい。

No responses yet

special characters on iPhone

3月 18 2009 Published by hkitago under iPhone,ウェブ,ゲーム,コーディング

I have found that I could use the special characters by No. 9839 which is displayed with ♯ on UIWebView of iPhone, as indicated by this screehshot, but I just sorry I could’t use ⚀, ⚁, ⚂, ⚃, ⚄, ⚅ for my new application related backgammon game again.

P.S.If you can’t see funny characters in the above text, thanks in advance for MS users. :-)

No responses yet

Control colors of background to be highlighted by taps on mobile Safari of iPhone

3月 16 2009 Published by hkitago under CSS,JavaScript,iPhone

iPhone に搭載されている mobile Safari では、JavaScript を使ってタップイベントを作ると背景に影が付き、参照タグのタイトル属性を「アクション」という見出しで吹き出し風に表示する。

インタラクションをユーザーに通知する方法として2通り存在するのは冗長だと感じたので、背景処理をなんとかしようと決めた。

iphone onclick shading – iPhoneWebDev | Google グループ
To disable tap highlight for an element add to its style
the following CSS tag: -webkit-tap-highlight-color:rgba(0,0,0,0);

“-webkit-tap-highlight-color” という属性を知らなかったことはさておき、”rgba” を使いアルファ値を “0″ にしている点に注目だ。しかしこのアルファ値は面白いことに、0 かそれ以外の値しか取らないようだ。これはもしかして Safari 4 で有効になるかもしれないので今後のアップデート(今週火曜の3.0で?)に期待する。

No responses yet

ISV and Freelance

3月 13 2009 Published by hkitago under ビジネス

以前 Micro ISV という言葉を耳にしたということを書いたが、”ISV” という言葉の由来について。

Micro-ISV: From Vision to Reality – Joel on Software
The “ISV” part stands for Independent Software Vendor. It’s a made-up word, made up by Microsoft, to mean “software company that is not Microsoft,” or, more specifically, “software company that for some reason we have not yet bought or eliminated, probably because they are in some charming, twee line of business, like wedding table arrangements, the quaintness of which we are just way too cool to stoop down to, but you little people feel free to enjoy yourselves. Just remember to use .NET!”

iPhone アプリケーションの開発をしていると、Microsoft を Apple に置き換えて “Remember to use Xcode!” となるが、いずれにせよ日本では「フリーランス」が適当な言葉だと思う。また、フリーランスと ISV の違いを考えると、登記といった法的なものはさておき、個人開発者の範囲に限れば源泉徴収額が一つの目安になると思うのだがいかがだろう。

Micro-ISV: From Vision to Reality – Joel on Software
Number Two. Don’t start a business by yourself.

もし一人でと言う場合、仕事を手伝うことができる人を数名確保しておくことが必要だろうが、SNS が普及している現在それは容易なことだろうと思う。

No responses yet

issue of AirPort (AirMac in Japana) Base Station (802.11n*) Firmware 7.4.1

3月 07 2009 Published by hkitago under Apple

Apple – Support – Discussions – Unable to connect after Update to 7.4.1. …
It seems a lot of people are having trouble after this update.

AirMac クライアントアップデート 2009-001(Base Station Firmware 7.4.1)を適用したところ、上の図のような装置の検出に失敗する問題があるようだ。通信自体は問題がないので、気軽に待つことする。
丁度 Griffin の iTalk Syncを試していたので、少し焦った。(・∀・)

更新: 一旦ベースステーションを再起動したら解決した。どうやら自動再起動に失敗していたのかもしれない。

No responses yet

bug of UIWebView with UIInterfaceOrientationLandscapeRight on info.plist

3月 06 2009 Published by hkitago under iPhone,コーディング

I have found a interesting bug for UIWebView like this, in case that the key of “UIInterfaceOrientation” has the value of “UIInterfaceOrientationLandscapeRight” on info.plist.

So, when I tried to delete the info.plist setting and built…

I found that the first problem is gone, but there is the unexpected margin on the top of the WebView. Note that I made “backgroundColor” of contentView to red and webFrame to white, so that you can easily understand of the each position.

At last, I checked the margin has 20 pixels height that is not same as Status Bar of iPhone, then I have done to put the following code, webFrame.origin.y -= 20;. But there are strong doubts about where does the blame for the margin.

Update: Soon afterward, I got another problem which made top-margin on body tag about 25 pixels, so I changed the way to “CGRect applicationFrame”.

before:
[[UIScreen mainScreen] applicationFrame]

after:
CGRectMake(0.0, 0.0, 480.0, 300.0)

However again, the third problem! But I have already solved the matter and I will post another story with the issue of iPhone Simulator.

No responses yet

Safari and Caret browsing

3月 05 2009 Published by hkitago under Safari,iPhone

I’m using Safari 4 which is added new features. And I’m not sure whether the new one or not, I can use Caret browsing on Safari 4, but nobody seems to dare actually to mention it. Don’t you know that? OK, Let’s take a look to use your Safari web browser.

At first, select the words as a start point. I think it’s easy to double-click on the text of web-page. Then holding shift-key and navigation keys, for instance, right or left key to move caret on same line, up or down key to select multiple lines as you do on Mail or Text Editor application.


As a result, it’s more useful to use Evernote which is able to keep a scrap of web contents, also displayed on iPhone everywhere. (even if in child-care!)

One more thing: I’m unhappy, however, with the shortcut key to change the active tab of Safari 4, because I couldn’t use of it under Caret browsing as previously mentioned. The same can be said about the form elements since Safari 3.

No responses yet

英辞郎 for iPhone / iPod touch

3月 03 2009 Published by hkitago under iPhone,辞書

以前 SPACE ALC ブックマークレットを紹介した時に iPhone / iPod touch のホーム画面に登録できるウェブアプリケーションを用意したことも伝えていたのだが、特に洋書を読んでいるような状況で、側に置きながら何度も検索したい場合、英辞郎のページにある入力ボックスに辿り着きにくいことが多々あることが分かった。そこで、どんな状況でも変わらない、少ない手数で再検索ができるように改善したので次の映像を参考にしてご利用頂きたいと思う。

映像では26〜30秒の動作に当たる、再検索の手順は次のようになる。

  1. 戻る
  2. 傾ける
  3. 検索する

一方、オフライン環境において辞書の必要性を外出先などで実感することが多いのも事実だ。念のため調べてみると、iPhone で英辞郎を無料で使うには、ptsEijiro 英辞郎ビューワー評価版ClouDicがあるようだが、どちらもレビューが生臭い。有料にはなるが、汎用辞書アプリケーションのiDicが概ね好評のようだ。

とはいえ将来、参照した単語を保存しておく機能は追加しようと考えている(個人的に単語別の検索頻度や統計が知りたい)ところだ。また実際に App Store を通さなくとも予想外に多くの寄付が集まっていることに対して感謝する。

No responses yet

Next »