Sumit Navin

Grails, Java/JVM

Handling Exceptions in Grails

Daahh !! Who doesn't know how to handle exceptions. A simple try-catch block would do the job. But think of so many methods where we will have to keep the same code of catching exceptions and then creating the desired response. Hmm, haven't you heard of the common try-catch in the filter? Well, we can do that! But let's say we have...

03-Jan-2022

Java/JVM, Product Engineering

Groovying on Template Aid for Java

If you haven't combined Groovy scripts with your Java projects yet, you're missing out. It's super easy with Maven, and it'll make your code more modular and elegant. But most importantly, you'll have some fun scripting, and if nothing else, you'll most certainly benefit from some of the grooviest features, including the magic that...

23-Dec-2021

AngularJS, Grails

Aliasing Localhost URL in Mac OS

Have you ever wanted to use https://something.i.want.com:8080 instead of the same old boring https://localhost:8080 ? Well here is how you do it on Mac OS. By default, the IP of localhost is 127.0.0.1. 'localhost' itself is an alias. To make it your own follow the instructions below. 1. With sudo access vi /etc/hosts $sudo vi...

25-Aug-2021