13 Kasım 2011 Pazar

a winedt/miktex tip


For the last hour, i was wondering why latex could not see my figure file during compilation.. Finally, i figured out that latex working envirenment (where the _temp.pdf is produced during compilation) is not the directory of my current .tex file.. WinEdt/Miktex treated as if all my .tex documents i edited so far, belong to the same project, and assigned the first .tex file (which is under a different directory) as the main file of the project..

In order to correct this, i modified the Main File attribute via Project Manager window in WinEdt/Miktex accordingly.


14 Ekim 2011 Cuma

mockito argument capture

Here ise a good article about argument capture property of mockito: http://blog.james-carr.org/2009/09/28/mockito-verifying-details-of-an-object-passed-to-a-collaborator/

.. and here is more: http://docs.mockito.googlecode.com/hg/org/mockito/ArgumentCaptor.html
http://mockito.googlecode.com/svn/branches/1.8.0/javadoc/org/mockito/Mockito.html#15

when i have enough time, i will publish my own test examples..until then, i must say, unit testing with mockito framework is a great way of doing white box testing and this experience leads you to review & refactor your code accordingly..

7 Ekim 2011 Cuma

modifying latex margins

modify latex margins as follows:

\usepackage[left=0.5cm,top=0.5cm,right=1.0cm,nohead,nofoot]{geometry}


I use those margin values (for informal personal reports) to reduce my printing costs :)

increase tomcat 6.x memory in linux environment

Change CATALINA_OPTS as follows:
export CATALINA_OPTS="-Xms512m -Xmx2048m -XX:MaxPermSize=256m"

and restart tomcat.

endorse tomcat 6.x

In order to endorse tomcat 6.x, make a directory named endorsed under $CATALINA_HOME, and put your .jar files there.