Sunday, February 03, 2008

Processing (http://www.processing.org/) 是一种开源程序语言用于交互,图象,动画等。目前已经有不少数字艺术作品.

Processing vs. Flash/AS:

与flash 相比,Processing 更加倾向于艺术表现力。以下是主要区别。

1)表现力,Processing 具有较好的粒子效果和3D 的支持能力。支持OpenGL 硬件加速


Bubble Chamber - By j.tarbell 

Node Garden - By j.tarbell


2)Web Plugin: Processing 是使用Java applet, flash/AS 使用 flash plugin,
Java Applet 需要JRE, 我个人觉得,普及率和性能会比flash plugin 差一些。
3)人机交互:鼠标键盘的交互就不少了, 两者都支持的。
arduino (www.arduino.cc)是一个开源的电子平台,是processing的Sister Project. 她们具有相同的IDE 界面, 具有现成的交互API,相信会集成的比较好。也就是所, Processing 能给通过Arduino和电子设备交互 (比如,传感器, 步进电机等)


另外, Processing 有不少第三方library, 可支持webcam的动作捕捉等
4)开发环境
processing 是存编程语言界面, 比较适合做抽象的动画。 如果要像flash那样一帧帧的做动画, 就不太适合了。另外flash/AS相关资源也比较多.
5) 网络交互: Actionscript 和服务器的交互想到要容易写。 用processing, 就要自己去找类库了。

总之:flash 和 processing 是各有优缺点的。 关键还是看在什么地方使用。
最后看几个效果吧(来自http://www.flight404.com 源站上有动画)

 

Sunday, February 03, 2008 10:41:14 AM (中国标准时间, UTC+08:00)  #    Disclaimer  |  Comments [0]  | 
 Sunday, January 27, 2008

今天尝试做了一下flash 的3D相册, 基本概念是: 鼠标往上面移前进, 鼠标往下面后退, 左右移动改变角度. 用XML 载入图片列表,测下来性能还可以.

XML 结构和以前那个flash + AS 动态效果是一样的.

点击这里看flash

没有正式完工, 不能点大图和焦点. 用PV3D 写.

源码下载

Sunday, January 27, 2008 10:55:39 PM (中国标准时间, UTC+08:00)  #    Disclaimer  |  Comments [0]  | 
 Saturday, January 26, 2008

今天简单试了一下APE, class就没几个, 用起来很方便,当然现在还是alpha 版, 难免有些缺陷.

做了一个小sample:

预览 源码下载

 

Saturday, January 26, 2008 4:26:15 PM (中国标准时间, UTC+08:00)  #    Disclaimer  |  Comments [0]  | 

今天收到了PMP考试的结果, 和预期一样, 通过了.

成绩单和以往有些区别, 不再有答对题目的百分比了, 而是几个粗略的档次, 成绩单看出, Executing 较好,Initiating 部分弱一些, 看来以后还需努力.

Saturday, January 26, 2008 1:45:32 PM (中国标准时间, UTC+08:00)  #    Disclaimer  |  Comments [0]  | 
 Wednesday, January 23, 2008

这两天逛sf.net

看到几个不错的开源flash 项目, 这里推荐一下

1) open flash chart http://teethgrinder.co.uk/open-flash-chart/
用flash 实现多种图表的组件, 并提供了php .net 等调用代码.

2) Flow Player http://flowplayer.org/

一个成熟的视频flv 播放组件

3) APE http://www.cove.org/ape/

一个flash 2D物理引擎,基于AS3

4) Box2D flash http://box2dflash.sourceforge.net/

另外一个flash AS3 物理引擎, 据说api 比较复杂, 不适合初学者。

Wednesday, January 23, 2008 9:20:28 PM (中国标准时间, UTC+08:00)  #    Disclaimer  |  Comments [0]  | 
 Sunday, January 20, 2008

我曾在 NVelocity 模版引擎 一文提到: NVelocity 项目最新的relase是 2003 年的. 这里更正一下: Castle Project Team 将其纳入了CastleProject 的代码库.  并保持更新和维护. 最新release 在2007年9月

见: http://www.castleproject.org/others/nvelocity/index.html

 

Sunday, January 20, 2008 6:04:34 PM (中国标准时间, UTC+08:00)  #    Disclaimer  |  Comments [0]  | 
 Monday, January 14, 2008

今天发现一个令人沮丧的事情, Visual Studio 2008  不在支持Mobile Web Form 的设计界面, 也无法再一个web项目里面直接添加Mobile Web Form 页面, 一切只能自己写了.

这里有自定一模版: http://blogs.msdn.com/webdevtools/archive/2007/09/17/tip-trick-asp-net-mobile-development-with-visual-studio-2008.aspx

可以让你在web 项目里面添加 mobile web form 和 mobile configuration 文件, 但设计界面还是没有了. 不明白ms 在想什么.

ASP.NET Mobile Templates for VS2008.zip (51.18 KB)
Monday, January 14, 2008 10:43:48 PM (中国标准时间, UTC+08:00)  #    Disclaimer  |  Comments [0]  | 

GroupMessage 是好朋友Joker开发在Pocket phone上群发短信的工具。 感谢Joker 为PPC一族提供便利!

系统需求:windows mobile 5.0及以上版本,.net compact framework 2.0

链接: http://hi-pda.com/forum/viewthread.php?tid=389880 

Monday, January 14, 2008 4:23:52 PM (中国标准时间, UTC+08:00)  #    Disclaimer  |  Comments [0]  | 
 Friday, January 11, 2008

也许你觉得惠普之道的内容有些过时,或者众所皆知, 但就是这些摆在眼前的道理, 是最容易忽视的。独特的企业文化, 是惠普公司成功的源动力,虽然惠普之道不是业界的标准, 但对管理者来说, 它有很多可借鉴的地方:

 

We have trust and respect for individuals.

我们信任和尊重个人

 

We approach each situation with the belief that people want to do a good job and will do so, given the proper tools and support. We attract highly capable, diverse, innovative people and recognize their efforts and contributions to the company. HP people contribute enthusiastically and share in the success that they make possible.

 

We focus on a high level of achievement and contribution.

我们追求卓越的成就与贡献

 

Our customers expect HP products and services to be of the highest quality and to provide lasting value. To achieve this, all HP people, especially managers, must be leaders who generate enthusiasm and respond with extra effort to meet customer needs. Techniques and management practices which are effective today may be outdated in the future. For us to remain at the forefront in all our activities, people should always be looking for new and better ways to do their work.

 

We conduct our business with uncompromising integrity.

我们在经营活动中坚持诚实与正直

 

We expect HP people to be open and honest in their dealings to earn the trust and loyalty of others. People at every level are expected to adhere to the highest standards of business ethics and must understand that anything less is unacceptable. As a practical matter, ethical conduct cannot be assured by written HP policies and codes; it must be an integral part of the organization, a deeply ingrained tradition that is passed from one generation of employees to another.

 

We achieve our common objectives through teamwork.

我们靠团队精神达到共同目标

 

We recognize that it is only through effective cooperation within and among organizations that we can achieve our goals. Our commitment is to work as a worldwide team to fulfill the expectations of our customers, shareholders and others who depend upon us. The benefits and obligations of doing business are shared among all HP people.

 

We encourage flexibility and innovation.

我们鼓励灵活和创新

 

We create an inclusive work environment which supports the diversity of our people and stimulates innovation. We strive for overall objectives which are clearly stated and agreed upon, and allow people flexibility in working toward goals in ways that they help determine are best for the organization. HP people should personally accept responsibility and be encouraged to upgrade their skills and capabilities through ongoing training and development. This is especially important in a technical business where the rate of progress is rapid and where people are expected to adapt to change.

Friday, January 11, 2008 11:55:45 PM (中国标准时间, UTC+08:00)  #    Disclaimer  |  Comments [0]  | 
 Wednesday, January 09, 2008

今天用了一下 NVelocity, 感觉还不错, 虽然最后的release 版 是2003年的, 但和vs 2008 以及范型等兼容性没有问题。
Write a Simple sample:

Template:

Cool, this is a Velocity Template
let's get start:
## this is comments
#set($user="jimmy")
hello $user!!!!!
$fruits
the gameName is: $game1.GameName
#foreach ($fruit in $fruits)
!!! I Like $fruit
#end
.NET Code:
        public class Game
        {
            public string GameName{get;set;}
            public string GameType{get;set;}
            public int Year{get;set;}
        }
        private void btnRender_Click(object sender, EventArgs e)
        {
            //tbTemplate.Text;
            Velocity.Init("nvelocity.properties");
           
            VelocityContext context = new VelocityContext();
            Game game1 = new Game { GameName = "DOOM", GameType = "FST", Year = 1990 };
            context.Put("name", "Velocity");
            context.Put("project", "Jakarta");
            context.Put("game1", game1);
            List<String> strList = new List<String>();
            strList.Add("Apple");
            strList.Add("Orange");
            strList.Add("Banana");
            context.Put("fruits", strList);
            //Template template = new Template();
            StringWriter writer = new StringWriter();
            Velocity.Evaluate(context, writer, "string1", tbTemplate.Text);
            tbResult.Text = writer.ToString();
        }
Output:
Cool, this is a Velocity Template
let's get start:
hello jimmy!!!!!
System.Collections.Generic.List`1[System.String]
the gameName is: DOOM
!!! I Like Apple
!!! I Like Orange
!!! I Like Banana
若从源码编译: 几点需要注意

1) 它所用的log4net 版本比较老, 可能有兼容性问题

2) directive.properties 和 nvelocity.properties 两个文件需要设成 Embedded Resource

Links:
http://nvelocity.sourceforge.net/
http://velocity.apache.org

Wednesday, January 09, 2008 1:27:21 PM (中国标准时间, UTC+08:00)  #    Disclaimer  |  Comments [0]  |