2012年8月21日 星期二

FirstHibernateExample

1. You should modify the code
    a. using





Reference:
tutorial in http://www.laliluna.de/articles/java-persistence-hibernate/first-hibernate-example-tutorial.html

Libray in http://www.java4s.com/hibernate/jars-required-for-hibernate-annotations/

and the cglib.jar




2012年8月9日 星期四

Eclispe Folder, source folder


http://www.cnblogs.com/slowly-keeping/archive/2012/04/23/2466054.html

2012年8月8日 星期三

myEclispe Setting memroy

set the MyEclipse memory for -vmargs
-Xmx768m
-XX:MaxPermSize=384m
-XX:ReservedCodeCacheSize=64m



Reference :http://www.myeclipseide.com/PNphpBB2-printview-t-26337-start-0.html








2012年7月27日 星期五

Python print exception message

        try:
                mainFUN()
        except :
                print 'Exception occur.. '
                #-- MyDebug
                import sys
                import traceback
                print "Unexpected error:", sys.exc_info()[0], sys.exc_info()[1], sys.exc_info()[2]

2012年7月26日 星期四

Python Debug


 Execute command:

python -m pdb foo.py


A. next line
n

B. Set the break point
 b 3


C. run to break line
r










Reference:
http://fcamel-life.blogspot.tw/2011/07/python-debug.html

2012年7月25日 星期三

Python uninstall

python setup.py install --record files.txt And when you find out the list is complete: cat files.txt | xargs rm -rf


Reference: http://stackoverflow.com/questions/1550226/python-setup-py-uninstall

2012年7月23日 星期一

Eclispe HightLight Pattern

ATL + SHIFT + O

Reference: http://stackoverflow.com/questions/6148481/eclipse-with-java-wont-display-matching-variables