Technology

Let’s listen any changes made in Collection (List, Map or Set)

Have you ever wondered how come your Collection is being updated and ended up spending time on debugging? We are going to see how can we get to know immediately if our Collection is altered. In this blog, we will do this using ObservableList for ‘List’ and same can be applied for Map and Set […]

AWSDevOpsGrails

AWS CodeCommit

AWS has recently launched a new service which is now available generally. AWS CodeCommit is the service we would be talking briefly about in this blog. AWS CodeCommit hosts private Git repositories. You can Store code & any other type of file with AWS CodeCommit. It follows Git standards & can be used with other […]

Technology

Build Custom iOS Swipe Button with CSS3

There are many ways to make iOS swipe button with toggle effect: But CSS and CSS3 is the best way to make these buttons because of its light weight. Here is the image of what we are going to make: Let’s start with the HTML code In this I have used checkbox to use the […]

GrailsTechnology

When details in principal object of spring security are not sufficient

Sometimes we need to access details of current logged in user but that will be an additional database query. To save that query we can use principal object of Spring security which provides details of logged in user . But by default principal object have few fields like id, username and password. If we need […]

Technology

Different Ways for aligning an element Vertically-Center in HTML using CSS

Aligning an element the way we want is never an easy task, especially when a non-UI developer is doing it and this problem worsens when we try to align that element Vertically-Center. Although doing it using patches is not difficult, but doing it the right way is a challenge. Here you’ll find some cool CSS […]

Technology

Override login and logout of Spring Security in Grails

What if our use case is to perform any custom task for login and logout while keeping the beauty of spring security intact. My use case was to make a third party SOAP API call to perform login/logout sending user’s detail as parameter. Override Login Write own Authentication Provider class that extends AbstractUserDetailsAuthenticationProvider and override authenticate method. […]

MobilityTechnology

Video Based Mobile Apps

This is a case study to analyse the best features of a few video based mobile applications. 1. DUBSMASH Lets start with the most trending app – Dubsmash. I am sure most of us have used or at least heard of this app. Its one of its kind, as it is a video messaging app. This app […]

GrailsTechnology

Closure Delegate using Groovy “with” Method and decorating code with multiple assignments

Groovy is an expressive language, that is what we are going to talk about making the usage of “with” method for specifying closure delegate and making our code more succinct (brief and clearly expressed). In my recent project, I was writing a code to resolve tenant and setting some properties to object tenant. resolver.tenant.subdomain = “india” resolver.tenant.username […]

Technology

Binding External Configuration properties in spring boot application

Hi, In this blog we’ll learn how we can inject configuration properties in a springBoot application and what are the benefits of spring boot over spring while injecting configuration properties. There are two ways to inject our configuration properties:- 1. By Using @Value annotation (Spring 3.0+ And Grails 3.0) 2. Typesafe Configuration Properties (Sring-Boot) Lets suppoese […]