Wednesday, April 20, 2011

How to add a new metric to ZMERT

1. you need to download ZMERT from its official homepage:

2. decompress the zip file that you just downloaded:

3. you can find the jar file (zmert.jar) in the ./lib directory

4. extract zmert.jar content by using command:
jar xf zmert.jar

5. following the video:
to add new metric java file

6. after adding the new metric java source file, you need to recompile the java files:
javac *.java

7. the last step is to create a new version of zmert.jar by typing:
jar cvfM zmert.jar *.java* *.class

Tuesday, April 12, 2011

Python Repeatable Timer Example

def hello():
print "hello, world"
global t
t = Timer(3.0, hello)

t = Timer(3.0, hello)
t.start() # after 3 seconds, "hello, world" will be printed