Logo
Header Main navigation
  • Who we are
    • About
      • About TO THE NEW
      • GenAI in Action
      • Leadership
      • Partners
      • Newsroom
      • Awards & Analyst Relations
      • CSR
      • Events
    • Insights
      • Case Studies
      • Whitepapers
      • Webinars
      • Newsletter
      • Podcasts
      • Blogs
      • Articles
      • Brochure
      • Testimonial
      • Video
  • What we do
    • Services
      • Generative AI
      • Digital Engineering
      • Quality Engineering
      • Cloud
      • Data
      • Digital Experience
      • Digital Marketing
    • Industries
      • Technology
      • Media & Entertainment
      • Financial Services
      • Insurance
      • Healthcare
      • iGaming
    • Solutions
      • HAWK | Infra monitoring & Log Analytics
      • Prism | AI-based Test Automation
      • Nimbus | Custom Data Ingestion Solution
      • VideoReady | OTT & Video CMS framework
      • BOLT | Faster AEM Development
      • Technologies
  • Careers
    • Careers
  • InfAInite GPT
    • Generative AI
    • GenAI in Action

 

Contact us

Careers
 
Home > Insights > Blogs > Aman Aggarwal

Blogs

Told you, we love sharing!

Aman Aggarwal
AWS

AWSBig Data

Amazon Awards IntelliGrape For Customer Obsession

Intelligrape (Now TO THE NEW Digital ) is an Advanced Consulting Partner with Amazon and specialises in large-scale implementations and managed services for web based applications. We have been working with Amazon team in India and outside on multiple initiatives since more than 2 years now. Amazon conducted its series of APN (AWS...

Aman Aggarwal
Aman Aggarwal May 5, 2015
Read→

AWSDevOps

Top 10 Benefits of Using AWS

Very often people ask for compelling reasons on why they should consider AWS for their infrastructure needs. Though there are hundreds and thousands of customers leverage AWS in more than 190 countries, with hundreds of case-studies including companies like Netflix, Pinterest, Dow Jones, SAP,  Coursera, NASA/JPL, Reddit, Vodafone,...

Aman Aggarwal
Aman Aggarwal February 28, 2014
Read→

DevOpsGrails

Server-to-server POST request

Server to server POST request can be made using Apache Commons HttpClient library. You need to include http-client jar file in project/lib folder and execute following lines of code: HttpClient client = new HttpClient() String url = "http://localhost:8080/test/person/delete/1" PostMethod method = new PostMethod(url) int...

Aman Aggarwal
Aman Aggarwal January 17, 2011
Read→

Grails

Grails annotation – Validateable

We can easily validate domain classes and command objects using static constraints. But how about validating DTOs or any groovy class in src/groovy folder. The answer is YES, they can be validated too. Follow two simple steps: 1. Add annotation '@Validateable' above the class. 2. Declare the package to be validated in...

Aman Aggarwal
Aman Aggarwal September 15, 2010
Read→

Grails

Searchable plugin – Lucene search on numeric values

While using searchable plugin for the first time, I wasn't aware that lucene implements only lexicographic comparisons for searching on indexed values (even on numeric fields). Before I learned this, I kept on wondering why a Person of age 6 always appeared in search results when I look for People more than 20 years of age. The solution...

Aman Aggarwal
Aman Aggarwal July 14, 2010
Read→

Grails

Grails criteria query example for unidirectional one-to-many relationships

Following is an example of unidirectional one-to-many relationship: class Employee { String name static hasMany = [roles: Role] } class Role { String name } How can we find all the employees with a particular role - "Grails Developer"? Role role = Role.findByName("Grails Developer") One way of doing...

Aman Aggarwal
Aman Aggarwal June 14, 2010
Read→

Grails

Injecting Method to trim string length on gsp pages

Restricting the length of a string on gsps is a common scenario in most of our projects. Groovy's metaprogramming magic made it too simple for me. I added the following lines of code to Bootstrap.groovy: Object.metaClass.trimLength = {Integer stringLength -> String trimString = delegate?.toString() String...

Aman Aggarwal
Aman Aggarwal May 3, 2010
Read→

Grails

Groovy Maps: Reverse Sort

I want to quickly share how you can sort a Map by its key/value/field of valueObject; in either ascending or descending order using Groovy I created a Map<String, Person> as follows: class Person { String name Date dateOfBirth static constraints = { } } Map people = [:] [*(11..20), *(1..10)].each { ...

Aman Aggarwal
Aman Aggarwal April 15, 2009
Read→

Grails

Groovy Finding Past/Future Dates

Often I found it painful working on dates when I had to find a past/future date based on weeks, months or years. Groovy class org.codehaus.groovy.runtime.TimeCategory has very helpful & intutive syntax for working on dates. I am sure I need not to explain what each of the following statements will do: Date date = new Date() ...

Aman Aggarwal
Aman Aggarwal April 6, 2009
Read→

Grails

Groovy Collection method: groupBy()

public Map groupBy(Closure closure) Going through Groovy Collection, I found this powerful method which takes a Closure as parameter & based on the closure, it returns a map in which all unique values returned by closure act as keys. Lets take an example: If you want to group integers between 1 to 100 based on the integer...

Aman Aggarwal
Aman Aggarwal April 6, 2009
Read→

Grails

Restricting all URLs to end with .html in a Grails Application

While going through the grails-users mailing list, I found a question about restricting all URLs to end with '.html' & returning Error 404 for the default mappings. After spending some time, I was able to build a sample CRUD application restricting URLs to end with .html. I did the following steps for the same: 1. Create a new...

Aman Aggarwal
Aman Aggarwal April 3, 2009
Read→
Archive
  • 2026
    • Jan
    • Feb
    • Mar
    • Apr
    • May
    • Jun
    • Jul
    • Aug
  • 2025
    • Jan
    • Feb
    • Mar
    • Apr
    • May
    • Jun
    • Jul
    • Aug
    • Sep
    • Oct
    • Nov
    • Dec
  • 2024
    • Jan
    • Feb
    • Mar
    • Apr
    • May
    • Jun
    • Jul
    • Aug
    • Sep
    • Oct
    • Nov
    • Dec
  • 2023
    • Jan
    • Feb
    • Mar
    • Apr
    • May
    • Jun
    • Jul
    • Aug
    • Sep
    • Oct
    • Nov
    • Dec
  • 2022
    • Jan
    • Feb
    • Mar
    • Apr
    • May
    • Jun
    • Jul
    • Aug
    • Sep
    • Oct
    • Nov
    • Dec
  • 2021
    • Feb
    • Mar
    • May
    • Jul
    • Aug
    • Sep
    • Oct
    • Nov
    • Dec
  • 2020
    • Mar
    • Jul
  • 2019
    • Jan
    • Mar
    • May
    • Jun
    • Jul
    • Aug
    • Dec
  • 2018
    • Jan
    • Feb
    • Mar
    • Apr
    • Jun
    • Nov
  • 2017
    • Jan
    • Feb
    • Mar
    • Apr
    • May
    • Jun
    • Jul
    • Aug
    • Sep
    • Oct
    • Nov
    • Dec
  • 2016
    • Jan
    • Feb
    • Mar
    • Apr
    • May
    • Jun
    • Jul
    • Aug
    • Sep
    • Oct
    • Nov
    • Dec
  • 2015
    • Jan
    • Feb
    • Mar
    • Apr
    • May
    • Jun
    • Jul
    • Aug
    • Sep
    • Oct
    • Nov
    • Dec
  • 2014
    • Jan
    • Feb
    • Mar
    • Apr
    • May
    • Jun
    • Jul
    • Aug
    • Sep
    • Oct
    • Nov
    • Dec
  • 2013
    • Jan
    • Feb
    • Mar
    • Apr
    • May
    • Jul
    • Aug
    • Sep
    • Oct
    • Nov
    • Dec
  • 2012
    • Jan
    • Feb
    • Mar
    • Apr
    • May
    • Jun
    • Jul
    • Aug
    • Sep
    • Oct
    • Nov
    • Dec
  • 2011
    • Jan
    • Feb
    • Mar
    • Apr
    • May
    • Jun
    • Jul
    • Aug
    • Sep
    • Oct
    • Nov
    • Dec
  • 2010
    • Jan
    • Feb
    • Mar
    • Apr
    • May
    • Jun
    • Jul
    • Aug
    • Sep
    • Oct
    • Nov
    • Dec
  • 2009
    • Jan
    • Mar
    • Apr
    • May
    • Jul
    • Aug
    • Sep
    • Oct
    • Nov
    • Dec
  • 2008
    • Feb
    • Apr
    • May
    • Jun
    • Jul
    • Aug
    • Sep
Who we are
  • About TO THE NEW
  • Leadership
  • Awards
  • Events
  • Privacy Policy
  • Press Releases
  • Media Coverage
  • Partners
  • CSR
  • Modern Slavery Statement
What we do
  • Services
  • Technologies
  • Solutions
  • Industries
Knowledge
  • Blogs
  • Success Stories
  • Whitepapers
  • Webinars
  • Podcasts
  • Newsletter
  • Article
  • Brochure
  • Testimonial
  • Video
Contact Us
  • Career
  • Join us!
  • Request for Services
  • Media Queries
  • Responsible Disclosure
Follow us on
  • ln
  • twt
  • fb
  • Glassdoor
 
TO THE NEW logo
TO THE NEW logo

©2026 TO THE NEW

Tips for writing a blog

Learn how to write a caption