fact = lambda n: (n and n-1) and n*fact(n-1) or 1
Wednesday, November 26, 2008
Recursive lambda implementation factorial function in Python
It is easy to implement factorial function use recursive in Python, but how do you implement it by using recursive lambda in Python? Here is my try:
Tuesday, November 25, 2008
What are the Secrets of the Furious Five?
Did you get the secrets of the Furious Five?
Patience(耐心), Courage(勇气), Confidence(信心), Control your strength(自制力) , Compassion(同情心)
Patience(耐心), Courage(勇气), Confidence(信心), Control your strength(自制力) , Compassion(同情心)
Thursday, October 23, 2008
W3C XML Schema design
Recently, I am involved in a project to design some XML Schema for our partners. While working on it, I referred to some resources on the internet, most of them are listed in this Google search result page. I list a few that caught my eyes and I felt helpful:
Thursday, October 9, 2008
Oracle BEA Weblogic Server 10 "invalid pad byte" error
First of first, BEA has the worst error message ever, it just does not make any sense, maybe just for me!
When switch to a new weblogic domain, we like to copy the configuration files to the new domain in order to reserve some configurations works, such as JMS, JDBC settings.
However, you may get weblogic.management.ManagementRuntimeException: com.rsa.jsafe.JSAFE_PaddingException: Could not perform unpadding: invalid pad byte.
Does this give you any hint that your password-encrypt is incorrect?
You may need to re-encrypt your password in the new domain by using the BEA supplied weblogic.security.Encrypt tool to archive this goal.
java -cp ./weblogic/server/lib/weblogic.jar -Dweblogic.RootDirectory={your domain} weblogic.security.Encrypt {your plain text password}
When switch to a new weblogic domain, we like to copy the configuration files to the new domain in order to reserve some configurations works, such as JMS, JDBC settings.
However, you may get weblogic.management.ManagementRuntimeException: com.rsa.jsafe.JSAFE_PaddingException: Could not perform unpadding: invalid pad byte.
Does this give you any hint that your password-encrypt is incorrect?
You may need to re-encrypt your password in the new domain by using the BEA supplied weblogic.security.Encrypt tool to archive this goal.
java -cp ./weblogic/server/lib/weblogic.jar -Dweblogic.RootDirectory={your domain} weblogic.security.Encrypt {your plain text password}
Monday, August 11, 2008
Seam getting start with JBoss Tools Plugin for Eclipse
Tuesday, July 8, 2008
Saturday, March 8, 2008
Better Web App
Watch the following video, get a feeling on what is better to be used to develop web application.
better-web-app.mov (video/quicktime Object)
better-web-app.mov (video/quicktime Object)
Subscribe to:
Posts (Atom)









