|
The Laws of Identity and .NET Passport |
|
|
By Keiji Oenoki on
9/29/2006 7:54 PM
|
|
|
|
I came across an MSDN article The Law of Identity. It was an interesting reading, especially in the context of how .NET Passport breaks many of the laws. It helps explain why it failed in its mission to become the single sign-on mechanism on the Web.
The second Law of Identity is "minimal disclosure for a contained use". With Passport, the user cannot control how personal information is disclosed; in fact, all information is disclosed. According to the Law of Identity, the user should be able to control when and how much personal information to disclose.
The third Law is "justifiable parties," that is, user information should be shared only among the parti ...
|
 |
|
Comments (0)
|
More...
|
|
|
|
Technical detail of Live Clipboard |
|
|
By Keiji Oenoki on
9/8/2006 5:00 PM
|
|
|
|
In this blog I'll dive into the implementation detail of Live Clipboard, which was originally proposed by Ray Ozzie several months ago. But first, I developed a simple demo below:
Live Clipboard Demo
First, let's examine how the UI is implemented. The context menu you see when you do a right-click is, quite surprisingly, from a transparent TEXTAREA. The TEXTAREA, via CSS, has the cursor set to 'pointer', z-index set to positive, and opacity set to 0. When a right-click is detected via onMouseEvent (which is fired before the context menu is displayed), TEXTAREA's value is set to the content that should go to the clipboard, and the entire text is programatically selected (so that the context menu for ...
|
 |
|
Comments (0)
|
More...
|
|
|
Live Clipboard の仕組みを探る |
|
|
By Keiji Oenoki on
9/8/2006 2:53 PM
|
|
|
|
Ray Ozzie 氏の提案する Live Clipboard 、どのような仕組みになっているか気になっていたので調べてみた。まずその前に Live Clipboard の簡単なデモを作ってみた。
Live Clipboard Demo
それでは、まず UI の仕組みから調べていこう。右クリックした時にでてくるメニューは TEXTAREA のものだ。意外に思うかも知れないが、CSS で cursor を pointer にして、z-index をプラスにして、Opacity を 0 にしてある。そして右クリックの MouseDown のイベント(メニューがでる直前)でその TEXTAREA のテキストをクリップボードにコピーしたい内容に置き換えて、Select All をする。その後すぐにメニューが表示されるので、あとはユーザーがコピーを選択すればテキストがクリップボードへコピーされるという訳だ。それでは Paste はどうかというと、onPaste というイベントはないのでなんとタイマーを使って毎0.05秒ごとに TEXTAREA のテキストが変わっていないかをチェックしている。もしカットやペーストされればテキストが変わるので、それが onPaint ということだ。うーん、どう考えても Hack としか思えないようなテクニックだが、クロスプラットフォームとセキュリティーを実現するには他にあまり方法はないのかも知れない。
さて、次にクリップボードに実際にコピーされるデータの形式について。これは XML で、親切にきちんと Document してあるので ...
|
 |
|
Comments (0)
|
More...
|
|
|
|
|
|
LINQ goes Parallel |
|
|
By Keiji Oenoki on
8/12/2006 8:49 AM
|
|
|
|
The C# team is working on a parallel version of LINQ, PLinq. LINQ is a new feature in the next version of C# that promises to integrate data query right into the heart of the language. I think this is one of the most exciting developments in the evolution of programming languages today. MSDN has a great LINQ Project site.
For those who are interested to learn the inside story of LINQ, take a look at Daigo's website (Japanese).
|
 |
|
Comments (0)
|
|
|
|
What is Windows Live? |
|
|
By Keiji Oenoki on
8/4/2006 4:52 PM
|
|
|
|
 Microsoft announced several months ago a new software service called "Windows Live". I will start this blog by answering the question, "what exactly is Windows Live"?
My view is that Windows Live targets two main audiences, consumers and developers. For consumers, Windows Live offers a set of services that enrich online communication, including email, IM, and blogging, among other things. There's no better place than ideas.live.c ...
|
 |
|
Comments (0)
|
More...
|
|