Blogs Hub

by AskGif | Jun 26, 2019 | Category :coding

Start your web tests with Selenium2, Maven, Testng

Start your web tests with Selenium2, Maven, Testng

Every time you are playing around with web tests you think: why have I waited so long. Doesn’t matter, you have done it and that’s it what matters.   The last time I used Selenium 1 which is very often used for web tests. Selenium 1 is great but has a few limitati

read more...

by AskGif | Jun 25, 2019 | Category :coding

Testing Webservice with JMeter: Passing data from one response to another request

Testing Webservice with JMeter: Passing data from one response to another request

JMeter is great for functional and performance testing of many things, including web services (and to my surprise also LDAP). It also provides means for extracting data from a response and passing them to a subsequent request, which is exactly what I needed.    The steps

read more...

by AskGif | Jun 19, 2019 | Category :coding

Accessing the RabbitMQ Console in Cloud Foundry

Accessing the RabbitMQ Console in Cloud Foundry

Each Cloud Foundry instance is a self-contained environment (cloud) that is generally intended to be used as a black box application container. It is implemented in a virtualized environment that hides the actual virtual/physical topology from the deployer.  Service configuration, provisioni

read more...

by AskGif | Nov 29, 2018 | Category :coding

How can I break out of nesting of loops in Java?

How can I break out of nesting of loops in Java?

Am using two for loops but am stuck and I don't know how can I break out of both loops. I've looked at similar questions, but none concerns Java specifically. I couldn't apply these solutions because most used gotos. I don't want to put the inner loop in a different method. Update

read more...

by AskGif | Nov 29, 2018 | Category :coding

How to create an executable JAR with dependencies using Maven?

How to create an executable JAR with dependencies using Maven?

How can I package my project in a single executable JAR for distribution? How can I make a Maven project package all dependency JARs into my output JAR? The Solution for the following issue is as below: <pre class="language-markup"><code>&lt;build&gt; &lt;plugins&gt;

read more...

by AskGif | Aug 30, 2018 | Category :coding

How can I upload image using spring MVC, Java?

How can I upload image using spring MVC, Java?

This is a Generic Java Controller Written to Upload an Image to any Specific Folder in Spring MVC Application. You can use the below code in your application if you want to use functionality to upload an image to any particular folder in Spring MVC Application. <pre class="language-java"><co

read more...

by AskGif | Aug 16, 2018 | Category :coding

Search an element in binary tree without recursion.

Search an element in binary tree without recursion.

We can use level order traversal for solving this problem. The only change required in level order traversal is, instead of printing the date we just need to check whether the root data is equal to the element we want to search. source:&nbsp;Data Structures and Algorithms Made Easy in Jav

read more...

by AskGif | Aug 14, 2018 | Category :coding

How to implement Level Order Traversal in Binary Tree?

How to implement Level Order Traversal in Binary Tree?

Trees can also be traversed in level-order, where we visit every node on a level before going to a lower level. This search is referred to as a breadth-first search (BFS), as the search tree is broadened as much as possible on each depth before going to the next depth. Java implementation

read more...

by AskGif | Aug 09, 2018 | Category :coding

How to implement PostOrder Traversal in Binary Tree?

How to implement PostOrder Traversal in Binary Tree?

PostOrder Traversal is different from InOrder Traversal and PreOrder Traversal. In this Traversal approach we first traverse through left and then right and at the end, we traverse to the node data. In PostOrder traversal, the root is visited after both subtrees. PostOrder traversal is de

read more...

by AskGif | Aug 09, 2018 | Category :coding

How to implement InOrder Traversal in Binary Tree?

How to implement InOrder Traversal in Binary Tree?

The Technique for traversal in an Inorder is slightly different from what we were doing in PreOrder Traversal. Here we go through left node, then data and then the right node. In an InOrder traversal, the root is visited between the subtrees. InOrder traversal is defined as follows:

read more...

by AskGif | Aug 09, 2018 | Category :coding

How to implement PreOrder Traversal in Binary Tree?

How to implement PreOrder Traversal in Binary Tree?

In pre-order traversal, each node is processed before (pre) either of it's sub-trees. This is the simplest traversal to understand. However, even though each node is processed before the subtrees, it still requires that some information must be maintained while moving down the tree. Preor

read more...

by AskGif | Aug 07, 2018 | Category :coding

Given two sorted Linked Lists, we need to merge them into the third list in sorted order.

Given two sorted Linked Lists, we need to merge them into the third list in sorted order.

We are Given two Linked Lists which are already sorted. We need to create a new linked list using these two linked lists and it is required to be in sorted order. One way we can do is to append second string in the first one and then will apply quick sort which will be having a time complexity of

read more...