Thursday, January 27, 2011

Fix Debugging Flash Crash Issue in FireFox 3.6

Read a thread today, found out a reference about how to fix issue of debugging crash in FireFox 3.6. This problem has been there for while, I haven't think about this is a updating issue.
Fix is simple:
Enter "about:config" in address bar;
Find preference of "dom.ipc.plugins.timeoutSecs" and change the value you want. "-1" value will turn it off and is best option for me without timeout.
The reference is here:
Fix FireFox Plugin Container Crash When Debugging Flash

Tuesday, January 25, 2011

餐厅网站制作-草图

昨天把草图做出来了,可行的话,网站coding就能开始了,如果可能争取能在不刷新的情况下显示页面和同步显示相关的图片。
草图:

Monday, January 24, 2011

餐厅网站制作

这几天忙着为朋友做一个网站,因为都是静态的,简单不费脑子,但比较花时间。
如果人流量多了也稳定了,就会逐渐加入一些功能,不但对他们好,也让我也练练手。
希望这个网站能帮他们多拉点生意。
现在还是空架子,等有东西再把网站放上来。

Cairngorm 3 and Parsley in Flex

Past a couple of years, I involved a few projects using Flex tech. we had some problems in my team when developing enterprise project. One is the code maintenance. As the project grows, AS commands, servce controls and UI mxml always involved together and hard to decouple. The other is unit test. The Flex is a very powerful event driven framework. However, when I wrote the unit test for a particular part of code, it because very hard to handle when the data is ready cause I don't know when the event will be triggered to generate the data required for unit tests if testing part involving UI operations.
Starting this year, we introduce Cairngorm 3 framework guideline and Parsley injection framework library. These techs hopefully help us to address the issue. MVC is a long existing framework, which decouple commands, views and controls. The idea of Cairngorm guideline is a implementation of decoupling in Flex. The Parsley lib is a popular IoC framework lib to use.
The resources I found are very useful:
  1. Adobe Cairngorm Home
    The first place you should go.
  2. Parsley lib Home
    Where you can find the guide to using Parsley and it's API.
  3. Arturo Alvarado's Quick Dive into Parsley
    A very good step-by-step guide to know about Parsley.
Unlike Cairngorm 2, Cairngorm 3 is a general guideline with a couple of helpful libs to develop Flex project. I hope there's no much obstacle to use the framework for my project.