Notice: The content on this site is totally my personal opinion, which is NOT related in any way to my corporation and employers. If you find some stuffs upset, please feel free to leave comments [here] or email me on kentwoo [at] gmail.

Wednesday, August 15, 2007

Javascript: Number <--> UTC

<script>
document.write(
(new Date(112345920*1000)).toUTCString());
document.write(Date.UTC(2007, 06, 07)/1000);
</script>

Attention:



  1.  The month is ZERO-based while invoke UTC.
  2. Millisecond, other than Second, is the functions variables

Reference: Date reference from w3schools.

Labels: ,

Wednesday, June 13, 2007

Debugging with Flash Debug Player version 9

A Flash Debug Player is shipped together with Flex SDK. Whatever, for version 9, something is different from the earlier versions in the configuration. The links below provide very perfect tutorials step-by-step. 

And, an Adobe official link to test the Flash Player version installed.

The official download page for all kinds of Flash Debug Players

And, an add-on for Firebox (Flash Debug Player needed)

Flex SDK提供了一個Flash Debug Player,但是版本9的配置方法和網路上不少介紹的不盡相同。下面的鏈接有很好、很詳細的介紹:

下面的鏈接可以用于檢測安裝了的Flash Player的版本號:

各種Flash Debug Players的官方下載頁:

一個給Firebox 的插件(要先安裝Flash Debug Player)

    Labels: , , , , ,

    Wednesday, May 30, 2007

    Microsoft Surface. COOL!


    Microsoft Surface, have you ever heard of this? I get to know it from a friend's mail. That's really awesome!
    It's a platform to interact with the digital world. Hardly can I tell what it really looks like. A table with a touch screen? A flat PC? A computer? or whatever. Maybe the best way to know about it is to browse the site yourself.
    Here it is.
    微软刚刚发布了一个新的产品 Microsoft Surface,非常酷!非常棒!这是一个人与计算机交互的平台,交互方式自然、流畅,更人性化。可以在这里看到一些精彩的演示。

    Labels: , ,

    Thursday, March 22, 2007

    A Brief Introduction to OpenID

    OpenID on WikipediaAs presented on the openid.net, OpenID is an actually, distributed identity system. It's a big issue to conduct a trustable, uniform identity system across the Internet. Too many identity systems and platforms already exist there for years. Many companies had tried to combined the ways together, such as the Passport of Microsoft, the Google account, etc. Whatever, none of them has been proved a good way until OpenID appears. Although email address is widely spread as an popular account schema, it is argued that the spam is a tough side effect. (It's really true for my account on hotmail. It does act as a passport than an email box.)

    OpenID was originally proposed by Brad Fitzpatrick of LiveJournal. The main point is to use a valid URL as the identity. And a mediate server is specified by meta data provided by the page on that URL. This server provide a centric authentication process between the end user and the login server.

    In a word, anyone owns a web page (URL), he/she can used that page URL as his/her identity under the OpenID architecture. Only this single URL is needed to sign in every site, every service, of course, the sites/services must support OpenID. No more login/password, no email, no spam. OpenID provide an normal authentication path between an identity and the service. It is not its job to provide the trusted personality authentication. It can secure the communicate path, but it cannot guarantee the entity is the really one he/she claim.
    To draw a short conclusion. OpenID is a wonderful technology. It can be foretold that more and more guys will support OpenID.

    Some interesting introduction links are here:

    And, some OpenID servers:

    OpenID是一个分布式的身份标识系统。所谓身份标识,也就是在登录或使用某种服务时使用的帐号。QQ号码、网站的ID就是最基本的一种身份标识。为了记忆和唯一性等方面的方便,后来出现了使用Email地址做帐号的系统,例如微软的Passport和Google Account。但是,使用Email很难避免有人利用这个信息发垃圾邮件(事实上,我的hotmail邮箱就是这样被废掉的,现在只能做IM用了)。在互联网快速发展的今天,拥有一个个人网站、个人域名不再是困难的事情,甚至许多组织和厂商都提供了这样的免费服务,因此,使用URL来做登录的身份标识逐渐成为一个新的方案。系统的想法是LiveJournal的Fitzpatrick最早提出的。基本原理是:一个人首先拥有一个URL和相应的页面,这个URL就可以作为他登录各种服务的身份标识了,在这个页面里指定一个可信任的身份标识服务器,并已经在这个服务器完成了身份的“注册”,使用URL登录某项服务时,这个服务读取URL的页面,根据里面的信息找到认证服务器,再通过服务器进行身份认证,认证通过就可以使用服务了。这个流程不复杂,尽管描述起来多少有些绕。由于URL的唯一性,利用这个身份标识系统,理论上可以使用一个标识就能登录所有的服务,当然,要服务提供商支持这个协议才行。这个模式可以通过通信加密而保证身份在认证过程中的有效,但是并不能保证声称身份和实际身份的相符,当然,这是另外一个层面的问题了。总的来说,OpenID是一个很好的系统,将来一定会有更多的服务商支持这个系统。

    上面列出了一些关于OpenID的介绍链接,非常好,也非常有趣。

    Labels: ,

    Friday, March 16, 2007

    Office Web Component (OWC) is missing in Office 2007

    Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG), have you ever come across this error information? I uninstalled all my office components yesterday, and reinstall the official version of Office2007. So, this message appears while trying to browse a cube in the SSAS. The reason is that this operation depends upon OWC, which had been shipped together with the previous Office products, but is now dropped in Office 2007.

    Some other guys also claimed this problem, and a solution is proposed. Reinstall OWC can resolve this. Also, another Chinese developer wrote a good article on his blog about this in Chinese.

    The OWC download site.

    在重装了Office2007之后,我在使用SSAS浏览Cube时,遇到了这个错误:Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)。原因是这个操作使用了一个叫做OWC的组件,这个组件是随着先前版本的Office自动提供的,而在Office2007中却没有它。还有人也遇到了同样的问题,解决方法就是重新安装一下OWC。这里还有一个中国的开发人员写的blog,很好地描述了问题所在、解决方法以及一些基础知识。

    OWC的下载地址

    tags: OWC, SSAS, tech, Microsoft, office

    Labels: , , ,

    Thursday, January 11, 2007

    XAML and WPF

    Some guys came to present the coming design suite: Microsoft Expression. The demos are really cool! From the technical point of view,  the WPF is the base of that, and XAML is used as the standard file format. The suite seems a powerful tool to develop flash-like web pages and applications. It support 3D modeling, vector graphics. The well interaction with Visual Studio makes it good tool to connect designer and developer. So far, the WPF/E objects need a plugin installed on the browser. The installation will start automatically on the browser at the first time browsing a page containing WPF/E object. Furthermore, a bigger patch is needed for a WPF application. Whatever, it has been included in the .NET 3.0 framework.

    To produce very cool UI effects is the main target of WPF. Some good demos and applications can be found here:  the Yahoo Messenger for Vista, the New York Times Reader.

    Related links: XAML.net, MyXaml

    今天有一个关于新产品的演示,是即将上市的设计套件:Microsoft Expression。非常酷!它基于WPF技术,采用了XAML格式。利用这套工具可以开发出和flash类似的网页应用和普通应用程序。它支持三维建模,矢量图。它可以和Visual Studio进行交互,这样就可以很好地将设计人员与开发人员联系在一起。现在,浏览带WPF/E的对象需要浏览器下载一个插件,这个可以自动进行。而如果要运行WPF的应用程序的话,则需要.NET 3.0框架的支持。

    WPF的主要目标是提供很酷的界面效果。网上有一些很好的演示,也有成型的产品:Yahoo Messenger for Vista(Yahoo为Vista开发的新版Messenger),New York Times Reader(纽约时报的电子阅读器)。

    相关链接:XAML.net, MyXaml

     

    del.icio.us tags: , , , , , ,

    Technorati tags: , , , , , ,

    Labels: , , , , , ,