Google
 

Chad 2010-08-14

I'm now getting into the latest version of Flex, that is, Flex 4. There are a lot of new features comparing to Flex 3, all of which are very handy to developers.

In Flash Builder 4, when I tried to create a MXML component and instantiate it in the main MXML application, I found that the "Outline" explorer is not displaying the correct tree view anymore, instead it displayed excalmatory marks for each of the components' icon:
...


Chad 2010-08-12

Flash Builder 4是新一代的Adobe Flash IDE,可用于Flex和Flash Professtional的开发。目前的版本是完全基于Eclipse的,并可与Flash Professional CS5无缝集成,功能十分强大。

这里讲一下它的帮助功能。

在菜单里点击"Help->Flash Builder Help"后,一个名叫Adobe Community Help的AIR(Adobe Integrated Runtime)程序会自动打开。这个程序是专门用来显示Adobe程序的帮助文档的,默认是显示在线文档,即连接到Adobe官网及其它第三方网站上的帮助网页。


...


Chad 2010-08-11

The debug version of Flash Player includes these features:
1. Integration with fdb, the command-line debugger that’s included with the Flex SDK
2. Capability to process and report logging messages issued with the trace() function
3. Integration with Flash Builder debugging tools such as breakpoints
...


Chad 2010-08-10

Sometimes we may want to disable a widget, that is, to set the "disabled" html attribute, but don't want to only display the value of it as text. In this case, a common problem which we might encounter is that, the value of the html entity generated by the widget is never sent back to the server when you submit it either with the post or get method.

To solved this, we can store the value in a hidden field, leaving only a copy of the value to the targe...


平淡的生活?
Chad 2010-07-31

最近工作太忙,很多时候一下班回来吃完饭就立刻上床睡觉了,冲凉一般是第二天早上的事。。。如果周末能有时间看一下电视的话,对我来说已经是比较奢侈的了。

前两天收到呼吁去献血的短信。这还真是提醒了我——我已经一年多没献血了,上一次献血是2008年12月的事了。于是决定这周末去。

今天星期六早上一醒来,已经十一点多了。。。本来想星期天再去献血,但在吃午饭前接到管理处打来的电话,说厨具厂家维修人员星期天会过来,具体时间不明确,所以有东西要修的话就要让人在家守着(正好我家消毒柜按键有点问题。。。)。没办法,跟利宝商量了一下,只好改变计划,下午出去。

这一次去献血还把女儿萱萱带上了。途中在地铁上时,一位老伯见到萱萱好像挺好逗的样子,便跟我们搭讪起来。老伯问她有没有一岁三个月,我回答说她才七个月。老伯听罢一惊,叹道“这么大块?!!”。。。我和利宝还真不觉得她大块。。。...


Chad 2010-07-27

I'm using Symfony to forward requests back and forth just in order to show several item admin lists generated by admin-generator in the same page.

Everything goes fine until I add the fourth forward. I met this error:

Code - HTML
 
  1. Fatal error: Maximum function nesting level of '100' reached  

...


Chad 2010-07-15

The Symfony feature of being able to embeds forms into another form is so great. But there's a little issue for it to be fixed to be perfect -- if you have many to many relationships in the embedded form, they are never saved!1

To fix this, Jonathan Wage gave out a solution, but that's just not working for me, combining the modifications Nervo and Drahpal mentioned in that post, I come to a solution as below:

...


Chad 2010-06-17

The sfDoctinePlugin itself encapsulated a class for manipulating the PECL Memcache module1.

With it, we can connect to any cache server that installed Memcached ( a daemon in Linux, my colleague Kim told me that there's also a Windows version2.)

...


Chad 2010-06-10

2010年南非世界杯将在明天,也就是6月11号,北京时间22:00开始首场比赛。

不知道是不是因为对足球特别有兴趣,公司的一些法国同事还特意搞了个“内部投注系统”。所有员工都可以使用自己的HR系统帐号登录,然后猜测每一场比赛的比分,而且只要在比赛开始前三个小时都可以更改对该场比赛比分的预测。对单场比赛,猜中胜负平的得一分,猜中比分的得三分。所有赛事结束后,拿到最高分的前三名员工将获得公司给的神秘奖品。

这游戏不错,因为不需要投入本钱,哈哈~

前些天法国队在热身赛中输给中国队的事似乎没有给法国同事们带来不良情绪,毕竟大家都知道比赛输赢平都是正常的结果。虽然我自己并不算得上是球迷,但对这四年一度的盛事还是挺期待的。所有球队及球员都在准备着为全球观众打出精彩的球赛,这...


Chad 2010-06-10

今天有个任务是要用PHP5来对比两个XML文件的内容。在PHP5里处理XML文件可以用DOM,但是对于简单的处理,用SimpleXML则更 为简便。

可是,这次用以下代码读出来的文件,子节点的内容全是空的:

Code - PHP
 
  1. $sourceFileContent = file_get_contents($sourceFileName);  
  2. $sourceXML = new SimpleXMLElement($sourceFileContent);  
  3. var_dump($sourceXML);  

Chad
I love information technologies, especially the ones related to the web.
PHP5-ZCE