

22
May, 14
In this blog post we are going to see how to drop a field from a MongoDb document ? For people coming from RDBMS you must be remembering the alter table command for dropping/adding columns in a table. In MongoDB it is possible to do this operation on some of the...

22
May, 14
Updating multiple documents in MongoDB
In this blog post we are going to learn the process of updating multiple documents in MongoDB. MongoDB provides us with update() function to achieve the same. Here are few use cases : db.users.find(); { "_id" : ObjectId("537da62d770359c2fb4668e2"),...

22
May, 14
MongoDB : Difference between save and insert
MongoDB uses save and insert option for adding new records in the database. Let me explain the difference between two : Insert : insert is used to add a document in a mongodb collection Save : save is used to add as well as update a document in a mongodb collection....

22
May, 14
Generate CSV file using MYSQL command
Hello Guys! This is my first blog post of this month and the topic is “Generate CSV file using MYSQL command” In this post I will discuss about an interesting feature of MYSQL. MySQL provides an easy way for generating csv files by writing the output of a...

21
May, 14
Tracking another repository in Git
Recently, I had to create few pull requests to other repositories and in order to do that I had to track the code on some repositories for updating my copy and finally publishing my changes to them. In such situation following steps/commands can help: Add the...

18
May, 14
Integration with Google Using OAuth 2.0 via Grails OAuth Plugin
In my last blog Integration with Google using Grails Oauth Plugin, we have seen the steps to connect/authenticate with Google using grails oauth plugin. The code in the blog works fine but uses OAuth 1.0. Google shows different screen for OAuth 1.0 and OAuth 2.0 for...

11
May, 14
Integration with Google using Grails Oauth Plugin
We have seen the steps to connect with following oauth providers using Grails Oauth plugin in our previous posts: Facebook LinkedIn Twitter Following are the simple steps to integrate Google plus in you grails application: Step 1 : Install the Oauth plugin Open...

4
May, 14
THE ANATOMY OF ARM CORTEX M0/M0+ PROCESSORS
ARM stands for Advanced RISC Machines where RISC stands for Reduced Instruction Sets Computer. The ARM Cortex M0 processor is an eligible choice for Energy Efficient Embedded Products. The features of these processors are Low Power usage, Highly Energy efficient,...

25
Apr, 14
Parse JSON using Command Line.
Hello Guys! This is my second post of this month. In this post I will be explaining on how to parse JSON using command line. A command-line processor can be used to test or debug JSON responses from server. We can easily feed JSON responses from web server into the...

21
Apr, 14
Use Geb in Cucumber functional automated testing
Today we are going to learn how to use Geb in Cucumber functional automated testing? If you are new to Cucumber than please go through my blog. Cucumber Basic concept Fist-of-all if you want use Geb in your application than add these lines in BuildConfig.groovy [php]...

21
Apr, 14
How to use Scenario Outline and Examples in cucumber?
Today we are going to learn how to use Scenario Outline and Examples in cucumber?. If you are new to cucumber functional automated testing than please go through my blog post Cucumber basic concept First-of-all create a feature file as LoginTest.feature and add these...

21
Apr, 14
Cucumber functional automated testing basic concept with example
Today we are going to learn cucumber functional automated testing basic concept with example. If you are new to cucumber than please go through my cucumber set-up blog. Cucumber set-up step Before starting our testing we will know some basic about 1.How to create...

17
Apr, 14
Initial setup step for cucumber functional automated testing in grails
Today we are going to learn initial setup step for cucumber functional automated testing in grails. Add these lines of code in BuildConfig.groovy Inside plugin use this line. plugins{ test ":cucumber:0.8.0" } Inside dependency use this line. dependencies {...

17
Apr, 14
How to set text in CKEDITOR using selenium?
If you want to know how to set text in CKEDITOR using selenium than here is the way please go through this. WebDriver driver = new FireFoxDriver() JavascriptExecutor js; if ((driver) instanceof JavascriptExecutor) { js = (JavascriptExecutor)(driver); }...

17
Apr, 14
How to set value in select drop-down using selenium?
Today I am going to explain how to set value in select drop-down using selenium? If select box has name or id and it has multiple option than we can set value by this way. WebElement select=driver.findElement(By.id("countryName"));...

13
Apr, 14
One-To-One mapping with shared primary keys
Here’s a simple example of how to share primary keys between two persistent entities having one-to-one association. We’ll have a User entity which has one address. Here’s the User POJO: public class User { Long id; Address address; String username;...

13
Apr, 14
Hibernate Second level cache
I am writing a blog on hibernate cache. I have read articles recently and writing here my findings. Hibernate cache is used to reduce interaction with database. We store data in cache and use it whenever application tries to interact with database. Hibernate at first...

10
Apr, 14
Heartbleed explained
Heartbleed bug has been a nightmare for all major public websites this week which are using OpenSSL version 1.0.1 to 1.0.1f (inclusive). Here is a brief explanation about this bug : 1. OpenSSL is a cryptographic library which is used to encrypt communication over...

9
Apr, 14
Grails with Hibernate (Part 1)
Grails with Hibernate (Part 1) Welcome Guys, This is the series of the blog posts on Hibernate with grails. I have divided it into parts. On Part 1 you will see how to map a simple POJO class with the Relational database using hibernate. Step 1) Create a new project...

7
Apr, 14
SQL Joins
Hello Guys! This is my first blog post of this month and in this post I am going to explain about SQL Joins which is considered to be a very integral topic of SQL. The examples shown in this post have been taken from www.tutorialspoint.com. SQL join is a clause which...
Recent Comments