Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Configure Profiles in a Maven Project

Hello Guys ! In this blog, we'll see how to configure the profiles in a Maven project. We might have different sensitive information that we need to maintain to different environments. For example - A developer might have different serv...

AngularJS Dependency Injection in detail

Dependency Injection allows the removal of hard-coded dependencies and makes it possible to change them. It helps in making components testable,reusable and maintainable. We are provided with in built dependency injection mechanism by AngularJs....

Maven Run Configuration to run project within eclipse

In this example, we'll see how to configure Maven to run a project on tomcat withing eclipse. It is sometimes too hard to manage the Maven project with the commands. Each time we code the project in IDE like eclipse and go to the terminal/cmd...

Difference between ArrayList and LinkedList in Java ?

Difference between ArrayList and LinkedList in Java   ArrayList class and  LinkedList class are classes of Java with following syntax:   ArrayList class Syntax: ArrayList<String> al=new ArrayList<Strin...

Efficient method to find maximum difference between two elements in C?

#include<stdio.h> int maxDiff(int a[], int n) { int maxDiff = -1; // Initialize Result int maxRight = a[n-1]; // Initialize max element from right side for (int i = n-2; i >= 0; i--) { if (a[i] &g...

Remote Method Invocation

RMI stands for Remote Method Invocation to create distributed application in java. In this object access to invoke method (goes to the machine to execute method and returns the result to the other machines). In RMI client invokes the method ...

Difference between two elements so that larger element appears after the smaller number in C?

#include<stdio.h> int maxDiff(int a[], int size) { int max_diff = a[1] - a[0]; int i, j; for(i = 0; i < size; i++) { for(j = i+1; j < size; j++) { if(a[j] - a[i] > max_diff) ...

PreparedStatement Interface

PreparedStatement interface: It is used to execute a SQL parameterized query and it compiles only one time and we can use it many times. It extends the Statement interface. It is more secure then Statement interface and safely provid...

Difference between DELETE and TRUNCATE commands?

Delete command in SQL removes the ROW based on the condition provided with the WHERE clause, if no WHERE clause is provided it deletes all the row from the table. Syntax for delete command: DELETE FROM table_name WHERE column_name='value'...

Sorting function in php

Php sorting function of an array:  sort()  -This will sort an arrays in ascending order.  rsort() -This will sort arrays in descending order  asort() -This function will sort associative arrays in ascending order, ac...

Pattern Desigining in PHP

Hello Reader! All of us must have designed a code to print pyramid or some other pattern of asterisk using C, C++. Here is a simple program to print the different asterisk(stars) patterns in PHP. A pattern of stars is a way of arranging these in ...

ERRORS IN PHP

An error is defined as the unexpected state of the program. An error message is then displayed to the browser. There are four types of error in PHP- Parse Error Fatal Error Warning Error Notice Error 1.Parse Errors- Parse erro...

How to create animation effect using jQuery

The method used to create the custom animation of a set of CSS properties is the animate() method. Simple syntax to use this method is:   $(selector).animate({params},speed,callback);   The param p...

jQuery DOM manipulation methods

The following table provides list of all the methods that are used to manipulate the HTML and CSS.   Except html() method all other methods below work for both HTML and XML documents.   Method Description&nbs...

Basic Linux Commands

  Hello Readers..here are some basic commands that we use in Linux  1. File Handling :     mkdir- make directories      Usage: mkdir[OPTION]DIRECTORY...      Example: mkdir rahul &...

Return maximum occurring character in the input string in C++?

// C++ program to output the maximum occurring character in a string #include<bits/stdc++.h> #define ASCII_SIZE 256 using namespace std; char getMaxOccuringChar(char* str) { int count[ASCII_SIZE] = {0};//create an array to ...

How to select second highest salary from a table?

This question is asked a lot in interviews, so here some of the methods by which one can get the second highest salary of an employee from a table. Suppose the Employee is like this ID Name Salary Table: Employe...

How to make nav tabs using html code

Nav-Tabs can be really useful especially for content-crowded web sites or in that project where large number of interlinked pages to it. By using nav-tab in html a user can save plenty of space just by placing your block of content in tabs and di...

CSS:Animation effect

Hii, i am sharing an example of css animation effect in which the basic concept of this animation is an easing function which is used here to show cubic bezier effect which is providing  the movement of image . here's the...

Access Main ui from background thread in android

We know that in android only main thread can touch the UI but there are some severals methods that can touch the UI from background thread that are following as : 1. Handler 2. PostDelayed 3. RunOnUIThread 4. AsyncTask 1. Handler i...

How to create 9Patch Image

A 9 patch image is an image that has stretchable areas defined. These areas are defined in a special 1 pixel wide border around the area. Add black pixels to the top and left of this border to describe where the image can be stretched horizontal...

PHP Global Variables

PHP contains many predefined variables from these predefined variables many are superglobals, It means that we can access all these variables from any function,file or class without having any problem. Below are some PHP superglobal variables:...

User Defined Exception

User Defined Exceptions: In some situation a programmer needs to create and throw his own created exception and such type of exceptions are known as User defined Exception or Custom Exceptions. To create own exceptions we have to Extend t...

VTABLE and VPTR in C++

VTABLE-  C++ uses a special form of a runtime method  binding to implement virtual functions which is called virtual table. Virtual table is a table of functions used to accomplish function calls in a dynamic binding manner. Virtual bin...

Page Redirection in Javascript

What are the different ways to redirect page in javascript? Page Redirection is a situation when a  user locates from one page to another. There are two kinds of redirect :  Server side redirect : In this,  ser...

Checked and Unchecked Exceptions

Checked Exceptions: Checked Exceptions are those exceptions which are checked during compile time. If a program contains checked exception then it should be handled using try-catch block or by using throws keyword, otherwise there will be a co...

DIFFERENCE BETWEEN C , C++ AND OBJECTIVE-C

Below are some important difference between C , C++ AND OBJECTIVE-C C is a procedural language. C++ is procedural as well as object oriented programming language. Objective-C is a general-purpose, high-level, object-oriented programming lan...

History of Objective-C

History of Objective C Brad Cox and Tom Love are  those famous personalities who invented Objective C in 1980 for their company Step stone. They introduced Smalltalk at ITT corporation's programming technology centre in 1981. Brad ...

Benefits of Objective-C language over procedural language

                                        Benefits of...

jQuery Selectors

Selectors, as the name suggests, are used to select one or more HTML elements using jQuery. Once an element is selected we can perform various operations on that selected element. jQuery selectors are used to access HTML elements through their id...

Operational Testing Or Operational Acceptance Testing

What is Operational Testing Or Operational Acceptance Testing ? Operational testing or Operational acceptance testing is a testing approach which is executed to confirm the operational or functional readiness (pre-release or beta release) of a...

What is Thread pool in Android and how to use it ?

Thread pool basically manages the pool of worker thread or it manages the collection of runnable and worker threads execute Runnable from queue. Here is an example of creating threads 20 times and calling its runnable methods like this : ...

How to make custom button in android

To make Custom Button in android follow the steps mentioned below:- 1) Create a drawable resource file in your drawable folder and name it custom_button.xml. 2) Add the code written below in your custom_button.xml file .  custom_but...

Inspect Code Android

Java code file is neccesary to run the particular project and sometimes java file contains 100 lines of code or more and in that case,there are more possibilities to get error(on in future,will get error).So in this case,Android provide a feature...

How to search from a list in android?

We have a search edit text and a list in layout , activity_main.xml   <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_...

Easy way to add RenderScript Supprot in Android Studio

RenderScript is used to run high performance tasks in Android. RenderScript is plateform- Independent. RenderScript added from API-17 but added support later. For adding support for RenderScript in Android Studio add below lines in build.gr...

How to export a good quality Animated GIF file !!!

Hello All !!! I have got so many queries regarding GIF animation file. question is "How to create a Good quality Animated GIF file ?" Here is the answer ... I have a flying girl animation in flash.   Flash do pr...

How to create a thread ?

Thread is basically used to execute something in android. Thread class provides start method to start a new thread as well as we can also use Runnable interface to create some thread. So there are two way to create a thread that are : 1. By...

What is looper in android ?

We know that a normal thread doesn't maintain any message queue they runs one after another but in case we want to performs more thread then we used looper class to maintains all runnable messages in queue and runs them one by one . Here i...

What is main and background thread and how to touch ui from background thread ?

Multithreading is  a meachanism where a one user can access more than one process or you can say that an operating system can perform more than one operations simultaneously. In Android we have two types of thread that are Main thread and...

What Is Test Approach ?

What Is Test Approach ? A test approach is the test procedure accomplishment of a product which describes that how can testing would be conducted. Normally there are two mechanisms in test approach, mentioned as below:- Reactive Proact...

Interactive line chart with NVD3

NVD3 is a very powerful java script library to render web based graphs. It automatically handles the scaling and plotting by itself. We just need to concern the data. NVD3 just takes data and render the graph. Data Format : NVD3 expect an a...

Creating Keystore from Terminal or command Prompt for android

Now a days android studio has provided pretty simple and easy GUI for creating key-store from the IDE itself but in case if you have some need for creating it through the command line here is a simple tutorial for the same.   Step 1. &...

How to show the full size image in popup on clicking the image in android

Below is the code that will show the full size image in a dialog box popup without defining layout xml file .   In the code below I have taken two imageview named profile_pic and pro, to get the OnTouchListener action of particular ima...

Deletion of node from binary search tree in java

Like a linked list we can also delete a node from binary search tree. This operation perform O(log(n)) time complexity. Here is an example of deletion : private TreeNode delete(TreeNode rootNode, int k) { // create a node to store tem...

How to make multi pane layout for Mobile Phone and Tablet

In this example,we will have a layout in which there are two fragments in an activity.   In our mobile phone,we will show only one fragment but in tablets,we will show both fragments simuntanously. activity_main.xml (for mobile phon...

Wrapper class in C++

Wrapper is generally defined as the packaging, or to bound an object. A "wrapper class" is used to manage the resources so that it will be crystal-clear to every one. This wraps the resources by simply wrapping the pointer into an in...

Autoboxing and Unboxing

What is Boxing and Unboxing? There are various primitive data types in java such as byte, int, long. etc. We have wrapper classes corresponding to each of the data type in java.  Sometimes the values of primitive data types are needed ...

Temporary tables

MySQL Temporary tables: A temporary table allows a user to store temporary records and we can use these records several times until the session does not expire. They are useful in those situations when it is expensive to write a query havin...

What Is Scenario Testing In Software Testing ?

What Is Scenario Testing In Software Testing ? Scenario testing is an approach of the software testing which produces excellent utilization of the testing scenarios. Main benefits of the scenarios are supporting to test improve way to any comp...
1 123 269
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: