Unfortunately, Blogger doesn't make it particularly straight-forward to include 3rd-party scripts in my blog.
Things like Alex Gorbatchev's syntax highlighter or other externally-hosted scripts (e.g. Google code, github etc.) I may want to be available in all my posts.
There are a few options to get javascript into a post:
codingbone
Real-life notes on Software Engineering and Software Quality.
Wednesday, January 4, 2012
Wednesday, December 21, 2011
Add some color to your Jira logs!
Tired of the old black and white run-of-the-mill log files? Well have I got the solution for you!
Whats the point?
This is a simple perl snippet that can help you quickly identify important lines in your log files - specifically, I've made this for use for watching Atlassian Jira's tomcat logs, which uses the log4j Java logging module.Since the log format is standardised in configuration files, its easy to write regular expressions to match certain patterns or words within each line.
Tuesday, December 6, 2011
Using an email server in your unit testing
How to interact with Apache James in integration tests
At times, I have the need for my development testing to interact with an email server (e.g. testing cgi-bin scripts, JIRA mail plug-ins), to verify that emails are sent and received by either my components or external systems.I found that Apache James was quick to get up and running, with very little configuration.
Apache James is a open source Java implementation of a fully-featured mail server. It is component based, so you can attach or detach what ever parts you like (e.g. I am only interested in the SMTP and IMAP connectors), and for my purposes requires very little setup (although I wouldn't recommend using default settings in a permanent production environment).
Subscribe to:
Posts (Atom)