Quantcast
Channel: Shekhar Gulati
Browsing all 147 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Spring Roo PGP Exception

Today when I fired Spring Roo shell I started getting exception as shown below and I was not able to execute any command. I uninstalled Spring Roo (thinking that it might have got corrupted) but it...

View Article



Image may be NSFW.
Clik here to view.

Say Hello to Jelastic

These days Platform as a Service (PaaS) is one of my interest areas and I like to play with different PaaS providers to see how easy or difficult it is to develop and deploy application on them. The...

View Article

Image may be NSFW.
Clik here to view.

Quick Tip on Mockito — Mocking Iterator

Today I was writing unit test for a piece of code which required me to mock a iterator. My requirement was that I wanted to return true first time when hasNext() method and return false in the second...

View Article

Image may be NSFW.
Clik here to view.

How to get Solr Up and Running On OpenShift

Full text search is a vital component in most enterprise or non-enterprise applications and Solr is one of the most popular choices. So, today I decided to spend sometime on getting Solr up and running...

View Article

Image may be NSFW.
Clik here to view.

IBM DeveloperWorks Spring Roo Part 5 : Writing Advanced and Wrapper Addons

Today fifth part of my Spring Roo series got published at IBM DeveloperWorks. This article-cum-tutorial talks about how you can write advanced and wrapper Spring Roo add-ons. Checkout the article at...

View Article


Image may be NSFW.
Clik here to view.

Time To Move On And Start a New Journey

It has been a wonderful and amazing experience to work at Xebia India office. I have learned and matured a lot in last 2.5 years I spent at Xebia. I was referred to Xebia by Rajneesh Namta who has...

View Article

Image may be NSFW.
Clik here to view.

Configuring JNDI DataSource with OpenShift Tomcat Cartridge

This short blog post will tell you how to configure JNDI datasource with OpenShift Tomcat cartridge. After configuring, we will also make it work with a sample Spring MVC application. Let’s get...

View Article

Image may be NSFW.
Clik here to view.

Deploy war on tomcat running on OpenShift

In this short blog, I will show you how you can deploy war file on Tomcat running on OpenShift. For Java, OpenShift supports three deployment options – JbossAS-7, JBossEAP-6, and JBossEWS-1.0 or...

View Article


Image may be NSFW.
Clik here to view.

OpenShift Rails QuickStart

Create a Ruby 1.9 application After running the command railsdemo folder will get created in your directory. Run the command shown below. This will generate rails code in the railsdemo folder.It will...

View Article


Image may be NSFW.
Clik here to view.

2012 in review

The WordPress.com stats helper monkeys prepared a 2012 annual report for this blog. Here’s an excerpt: 19,000 people fit into the new Barclays Center to see Jay-Z perform. This blog was viewed about...

View Article

Image may be NSFW.
Clik here to view.

Spring Test Failing with A ServletContext is required to configure default...

If you are getting exception shown below in your Spring test Caused by: java.lang.IllegalArgumentException: A ServletContext is required to configure default servlet handling at...

View Article

Image may be NSFW.
Clik here to view.

MongoDB Query Tip : Find All The Documents Where Array Length is Greater Than N

Suppose we have blog document in blogs collection as shown below. Now you want to find out all those blogs which have more than 2 tags then query is shown below.

View Article

Image may be NSFW.
Clik here to view.

Spring Integration RSS Feed Issue

If you are working with Spring Integration feed example https://github.com/SpringSource/spring-integration-samples/tree/master/basic/feed and get following error message “Could not find...

View Article


Image may be NSFW.
Clik here to view.

Download JDK 7 update 25 via wget

To download Oracle JDK 7 via wget run the following following command

View Article

Image may be NSFW.
Clik here to view.

Load Twitter Page using JavaScript

Today I had to look at twitter page which was very long. Twitter load results when you reach the bottom of the page. And each time twitter load very few results so it was becoming very tiring to see...

View Article


Image may be NSFW.
Clik here to view.

How To Run Apache Tomcat 8 on OpenShift

OpenShift PaaS gives developers the ability to try out new unsupported frameworks, programming languages, and servers. Today, while learning about WebSockets I learned that the current development...

View Article

Image may be NSFW.
Clik here to view.

How To Build Real-Time Location-Aware Applications

One of the advantages of OpenShift or any other Platform as a Service is that it gives developers the power to turn their ideas into applications. As a developer, you are only concerned about writing...

View Article


Image may be NSFW.
Clik here to view.

How To Enhance Location Aware Apps with Google’s Directions Service

In my previous blog post, I talked about how we can use HTML 5 GeoLocation capabilities to build location aware applications with JAXRS and MongoDB at the backend. Today, we will extend the LocalJobs...

View Article

Image may be NSFW.
Clik here to view.

How To Build Location-Aware Web Applications using HTML5 and MongoDB

We all use location aware applications in our day-to-day life. Applications like Foursquare, Facebook places, etc help us share our location (or places we visit) with our friends and family....

View Article

Image may be NSFW.
Clik here to view.

Best Practices For Horizontal Application Scaling

A best practice is a technique or methodology that, through experience and research, has proven to reliably lead to superior results. In this blog post, I will talk about few best practices that I have...

View Article
Browsing all 147 articles
Browse latest View live




Latest Images