Problem statement: You have different applications feeding into each other. Debugging an issue requires logging into each individual box to look at the logs. With small number of apps/boxes it's not an issue, but it quickly becomes tedious as
Read More

Okay, so I just got a new Imac. Which means I am pretty fresh off the boat as far as Mac is concerned. I am a heavy Ubuntu user and use guake terminal pretty heavily. From my basic research guake
Read More

Once you have your packages installed to your custom pypi server, you can have your pip refer to it like so: a. If you use requirements.txt to install your module: Sample requirements.txt: --find-links http://10.10.161.9:
Read More

Problem statement: You have created a proprietary Python module that you would like to release only to folks within your group/company. If you release it to Python PyPi server it will be available to everyone. Solution: Stand up your
Read More

If you do not know much about supervisord, then you are missing something awesome. Let me make your world a little better ;-) In simple words, supervisord allows you to control your services. If you have a shell script, a
Read More

Problem: I have Ubuntu 14.04 with Xubuntu desktop and my Indicator plugin kept crashing. Here's how I fixed it! Solution: a. Add Indicator plugin to your panel. b. Once Indicator Plugin is added (and before it crashes ;-)), right
Read More

When I moved over to Ghost blogging platform, I chose Dated Permalinks, an option that allows for including dates in blog post URL. Realizing that the blog post URL is unique even without the Dated Permalinks option, I opted out
Read More

In my previous post about Retry with Spring I - Number of Retries I covered how we can retry an operation n number of times in case the operation causes an exception. In this post I am going to cover
Read More

Spring batch provides an excellent paradigm to retry an operation in case the operation might succeed eventually. It offers couple retry strategies: a. Retry a certain number of times. (Covered below) b. Retry after a certain amount of time. (Will
Read More

It's pretty straightforward due to Groovy awesomeness! Without any further ado: import spock.lang.Specification /** * Created by ravi on 11/14/14. */ class SpockDynamicExceptionTest extends Specification { def "test 1234"() { given: def a = 1 when: exception.newInstance([message]) then: thrown(RuntimeException)
Read More