java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

I had a similar problem when running a spring web application in an Eclipse managed tomcat. I solved this problem by adding maven dependencies in the project’s web deployment assembly. Open the project’s properties (e.g., right-click on the project’s name in the project explorer and select “Properties”). Select “Deployment Assembly”. Click the “Add…” button on … Read more

How can I set the aspect ratio in matplotlib?

Third times the charm. My guess is that this is a bug and Zhenya’s answer suggests it’s fixed in the latest version. I have version 0.99.1.1 and I’ve created the following solution: Below are my unsuccessful, yet hopefully informative attempts. Second Answer: My ‘original answer’ below is overkill, as it does something similar to axes.set_aspect(). I think you … Read more

How to redirect a URL path in IIS?

Taken from Microsoft Technet. Redirecting Web Sites in IIS 6.0 (IIS 6.0) When a browser requests a page or program on your Web site, the Web server locates the page identified by the URL and returns it to the browser. When you move a page on your Web site, you can’t always correct all of the … Read more

Rotate an image in image source in html

If your rotation angles are fairly uniform, you can use CSS: CSS: Otherwise, you can do this by setting a data attribute in your HTML, then using Javascript to add the necessary styling: Sample jQuery: Demo: http://jsfiddle.net/verashn/6rRnd/5/