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

Issue: I have a Bottle application where I raise HTTPResponse in case of an error. Simplified version of the code provided below: Now, when I hit the URL: http://localhost:8080/error I get: APP 1 - Before Request http:
Read More

Moving from Blogger to Ghost I like Blogspot / Blogger but it does not support Markdown and I love Markdown. I mean I friggin love it. So simple, pure, and aesthetically beautiful. Furthermore with Ghost's write in left pane and preview
Read More