2008年11月24日星期一

NetBean 6.5 supports Python

考虑到之前Netbeans6.1对Ruby的支持,我想应该还是值得一试的。
好了,这下除了Eclipse的PyDev,现在又多了一种选择。

这里可以下载,目前还是Early Access版本的.

2008年10月30日星期四

关于习惯

其实一直以来都知道自己有些蛮不好的习惯,比如习惯了凌晨才睡觉,睡到九,十点才起床,对于自己不感兴趣的东西,总是抱有一种避而远之的心态,即使是工作中有些比不可少的琐碎环节,比如weekly report,比如各式的WBS,status report,比如看起来似乎跟我没有太多关系的meeting……



尽管每天总是抱怨事情太多,但是临睡之前想想,也并没有觉得每天过得有多充实,除了每天晚上折腾的那点自己感兴趣的东西。

这样的生活真的是自己期望的吗?难道我要以这种连自己都不能满意的方式来耗费生命,我想是时候做点改变了,至少要证明自己能行。

下午的时候Manager讨论下最近工作中的一些问题,明显的感觉到的确有很多地方需要加强,比如要proacive,留几个关键字做个记号

Plan Schedule WBS Montor Report, 沟通的意义

2008年10月29日星期三

在rails > 2.0中使用auto_complete

原来auto_complete在rails 2.0之后已经作为offical plug-in发布,难怪...

简单记下使用步骤
1. install
script/plugin install auto_complete

2. 直接在controller中加入

class CaseController <>
auto_complete_for :case, :name

view中加入
<%= text_field_with_auto_complete :case, :name %>


3. 基本完成,不过reload page之后发现会有ActionController::InvalidAuthenticityToken之类的error message. 原因是If a request comes in that doesn’t match the request forgery protection token for the current session then an ActionController::InvalidAuthenticityToken exception will be thrown. 参考这篇文档,可以绕开.

最冲动的办法就是:在application.rb中加入
self.allow_forgery_protection = false


2008年8月14日星期四

自动化测试的途径?

对于基于GUI的capture-replay 这种自动化测试方式已经不用再谈了,好处的是简单,不足之处是重用性问题,毕竟GUI变化的可能性很大,这样capture之后的maintain efforts貌似也不小,具体取决于工具的支持。

不过有没有可能借鉴capture&replay的思想,但是对象不是GUI,而是对于产品本身的行为,特别是QA在test design过程中关心的那些check point,有没有可能利用Dev在product的code中加入特别为test automation定制的log,这样QA以此作为在自动化测试中的observe point,从而可以简化整个自动化测试中verification的efforts

先假设这个是可行的话,那需要解决的问题如下
  • automation level的log的format/schema的设计
  • log需要cover的scope
  • 如果无缝的加入这种log,易于修改,而且不会对产品本身带来影响
如果上述问题能解决,相信在自动化的replay的过程中对整个case的检查就很简单了。


对于加入automation Level的log,AOP貌似是个不错的选择,恩,做个demo来玩玩

2008年7月13日星期日

Playground of Us

Date: 2008-7-7
Place: Fangte Carnival
Character: You and Me

Before we get started, I have a question.

Just image 2 person in 8 hours in amusement park with fire-meteor,mystery valley,trumpet shell bay,wizard kingdom... what would would you think of?


ennn.... Still no answer? OK, here are some clues.


From the excited smile on your face when you know there is roller coaster waiting for us in the beginning , to your turning around and want to quit when you see how it rolls after a while, to your screaming sitting by my side with your eyes closed when you make your BIG decision finally... You won't understand how adorable you are.

You just can't wait for a minute to take off your shoes when you see the rill, and start to play with the water and making cute poses while you complain how hot the stones in the water are :p

I won't forget your the proud smile on your face when you holding the lovely India Dubi. You will never know how lovely you are in my eyes, just like the doll.

Even now, I still cannot help with smiling when thinking of these.

Everything is great. And I know the reason that make this happen. It's because of you.

"I'm so happy", that's my answer.

what about you……

2008年7月11日星期五

2008年7月8日星期二

两个人的游乐场

时间:2008-7-7
地点:方特游乐场
人物:我们

开始之前,问你个问题,
两个人 ,七个小时 ,再加上
火流星,神秘河谷,海螺湾,精灵山谷,带着闪电的神秘印第安老人……
等于什么?

不知道?

没关系,再给点提示好了。

看着你从一开始提到有过山车玩就兴奋的不得了的样子,到后来明白原来过山车是这样“转”的时候有点心慌的样子,再到后来马上就要轮到我们坐过山车的时候,一副想临阵脱逃的样子,还得时刻得拦着你逃走,到最后终于坐上过山车,紧闭着双眼,一个劲的大叫…… 现在想起来都会想笑。

看着你一看见小溪就立马冲下去,冒着脚被烤成三分熟的风险,打着赤脚兴奋的在水中淌来趟去,还不时地摆着Pose,超可爱,真的。只可惜我的拍照技术太烂,只能让你看见有限的几张照片,其他的也就只能留在我的记忆里了,当然了,版权归你 :p

看着当你手里拿着心爱的印第安嘟比,同行的两个女孩一个劲得夸它怎么会这么可爱的时候,你脸上那幅自豪的表情,其实我想说,你真的跟你手里的嘟比一样可爱!

……


游乐场里的一切看起来都很精彩,但我知道,让这一切这么精彩的,

是因为,有你在身边。


噢,忘了件很重要的事。

“我很幸福”,这就是我的答案!

你的呢?

2008年3月4日星期二

Install "Https" support for Perl Win32 platform

the most convenient way to do it is using PPM if having internet access.
"ppm> install http://theoryx5.uwinnipeg.ca/ppms/Crypt-SSLeay.ppd"

ppm> install http://theoryx5.uwinnipeg.ca/ppms/Crypt-SLeay.ppd
====================Install 'Crypt-SSLeay' version 0.53 in ActivePerl 5.8.7.815.
====================Downloaded 80320 bytes.
Extracting 37/37: blib
Installing C:\Perl\site\lib\auto\Crypt\SSLeay\SSLeay.bs
Installing C:\Perl\site\lib\auto\Crypt\SSLeay\SSLeay.dllI
nstalling C:\Perl\site\lib\auto\Crypt\SSLeay\SSLeay.exp
Installing C:\Perl\site\lib\auto\Crypt\SSLeay\SSLeay.lib
Installing C:\Perl\site\lib\auto\Crypt\SSLeay\SSLeay.pdb
Installing C:\Perl\html\site\lib\Crypt\SSLeay.html
Files found in blib\arch: installing files in blib\lib into architecture dependent library tree
Installing C:\Perl\site\lib\Crypt\SSLeay.pm
Installing C:\Perl\site\lib\Crypt\SSLeay\Conn.pm
Installing C:\Perl\site\lib\Crypt\SSLeay\CTX.pm
Installing C:\Perl\site\lib\Crypt\SSLeay\Err.pm
Installing C:\Perl\site\lib\Crypt\SSLeay\MainContext.pm
Installing C:\Perl\site\lib\Crypt\SSLeay\X509.pm
Installing C:\Perl\site\lib\Net\SSL.pm
**************************************************************************

otherwise, manually copy above files into proper folders, it's ok.

Reference link: http://johnbokma.com/perl/https.html