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

How to reset ArrayList in Java - Clear vs RemoveAll

To reset ArrayList we have two options, one is to use clear() method and another is to use removeAll(). We dont need to worry if size of the ArrayList is small i.e. 10 to 100. But if ArrayList size becomes huge the difference in the performan...

Convert Map to List

Map and List are the two commonly used data structures Here I am writing way to convert Map to List. Basically Map holds two things are key and value on the other hand list holds only values. Both Map and List allow duplicate data. Below i...

How to Connect to Odoo using Google Account

Hello Guys. Important: Make sure Odoo is correctly configured to send email before starting this tutorial. Odoo will need to email an activation link when you enable OAUTH. So, lets get started. Enabling OAuth Support in Odoo Login to O...

How to make a copy of a table in MySQL?

To make a copy of a table in MySQL you need to execute the following statement: use databasename; Create table new_table_name select * from existing_table_name where conditions For example: We have database demo having table1. We re...

Collation in MySQL

Collation are the set of rules that compares the characters of a particular character set exist in MySQL. To display collation in MySQL you need to execute the following statement: show collation;

Getting orientation value when you are capturing video in android

If you are looking to know, How to get camera rotation while capturing video with custom camera in android, follow below steps Step 1:-Declare OrientationEventListener and the variable that hold the orientation value. OrientationEventLis...

How to create Registration form in android ?

Here I have created a registration form in android. In my registration form i have used validation function to check inputs like email ,name,age etc. And I have also used check box , radio button and spinner function. Therefor below example will ...

GroupBy and OrderBy in MYSQL

ORDERBY alters the order of the specified column into the table by giving there fields name and arrange them in desc as well as asc ordering but default ordering is asc while in GROUPBY aggregates the records by the specified column which all...

How to display all the tables in a database in MySQL?

To display all tables in a database you need to execute the following commands: use databasename; First of all you will go inside your database. Suppose your database name is demo then you will execute the above MySQL statement as: us...

How to load a html page inside another web page using Javascript

If you have two html pages and you need to load one inside of another then using Javascript you can easily perform this action by 'load' syntax: Lets consider two pages one.html and second.html one.html will go like this <html> &...

SQL Selectivity

Selectivity Selectivity is used for the definition of the number of unique values in the table. It shows how many unique values are there in the table. Selectivity=Cardinality/number of record *100% If the selectivity is high than onl...

Joins In SQL

Joins There are different type of joins in SQL 1.Inner Join-Return all the values if there is a match in both the table. 2.Outer join -left outer join-Return all the values from left table and the values matched from the right table. ...

What is SOAP-UI

What is SOAP-UI ? SOAP-UI is the very popular open source tool. This is a API testing tool. We can also use this API testing tool for cross platform. SOAP-UI permits to the testers to perform automated functional, compliance, regression and load...

SQL Join Query

SQL Join query is used to join the two tables i.e add or combine two or more tables . This clause take data from two or more table in database and then combine them to produce new table . Joining is based upon the common fields from the tables ...

Display all the databases in MySQL

To display all the databases in MySQL you need to execute the following command: SHOW DATABASES;

Top 7 Marketing Strategies to Grow Business

    There are various marketing techniques that people usually apply to increase their rank on Search Engines which results in the increasing web traffic to leads and sales with the help of images, text or grap...

How to make Fragment app in android ?

Below I have created fragment app in android. In Fragment class we can insert a fragment into our activity layout by declaring the fragment in the activity's layout file. Fragment Features- 1. Fragment has its own layout and its own behavior w...

How to take inputs as only digits using Angular JS

Hello Reader! If you are designing a html form and wants to make it validate for accepting only digits as input then you can see the code below for the same:- You can create the html form like this way:- Validate Price ...

SQL Delete Statement

Using Delete statement we can delete the record from a table in database . We can delete single or multiple row from a table in database . Syntax : delete from table_name where clause ; // where clause is optional Example : Table nam...

How to find upcoming birthdays and number of days left from current date?

Suppose, we have a table users having id, name and date_of_birth as column name. So to display upcoming birthday and days left you need to execute the following query: SELECT id, name, date_of_birth, DATE_FORMAT( NOW( ) , '%Y' ) - DATE_FORMAT...

Example of ng show / ng hide in Angular JS

If you learning the Angular JS and use a parameter from an object as the expression then the ng-hide and ng-show are given the correct true/false but always remember these true/false is not like boolean so always return false: Consider the examp...

How to execute additional code just after opening a new page using Angular JS

In the cases when you execute any server and your attempts to load a new page view and then your codes in directive gets loaded before your services are updated so you can using $rootScope. This is an example of above case View <serv...

SQL Update Statement

SQL Update statement is used to modify the records in table in database . We can modify either by change data or deleting data or to update the existing data . We can modify the rows based on condition and condition come with where clause . Syn...

How to make add item list using Angular JS

If you want to make a functionality of manually adding items to the list using Angular JS. Then you can use the following code of Angular JS it will work on client side and performs fast. For the form the HTML will go like this:- <div n...

Strings in C language

String is a collection of characters in an array.It is terminated by by \0 (null character) There are two ways to declare string in c language. 1)By char array declaring string by char array is as follows: char ch[10]={'e','v','o','n'...

Manual Penetration Test

Manual Penetration Test:- It is very hard to discover entire vulnerabilities by applying automated tools.There are few vulnerabilities which can be determined by manual checks only. Penetration testers can accomplish more better attacks on soft...

SQL Insert Statement

SQL insert statement is used to insert the data in a table in database . Using this statement we can insert single or multiple data in a table . We can insert the data by two ways : 1) By SQL insert into statement : we can insert data either by...

How to get screen resolution under different devices

If you would like make adjustment under different screen resolution. Please follow the code below: var width = jQuery(window).width(); var height = jQuery(window).height();

setTimeout() method in JavaScript

The setTimeout() method in JavaScript sets a time interval during which the CPU wait to perform the task specified in it. It alter the time interval of the CPU to perform the tasks. The Syntax of the setTimeout() is as : setTimeout(task1,Ti...

Audio Playing while App is in Background Mode

In order to continue your audio running while the app is in Background mode(like in the case of live Streaming), we just have to add this line in our AppDelegate method application didFinishLaunchingWithOptions: [[AVAudioSession sharedInstanc...

TableView in Swift

To create a tableView in swift please follow following steps: Step 1: Add a tableView in viewController. Step 2: set the dataSource and delegate Step 3: Create a prototype cell Step 4: Change the class of prototypecell to "TableView...

Difference between interpreter and compiler

Interpreter Translates one statement of a program at a time. The time it takes to interpret source code is very less. Interpreter program works line by line. Error is reported as soon as first error is encountered Example of languages that m...

How to rotate the image in Android?

If you are looking to rotate an image that is selected image from device then please go through the following steps:- Step 1:- select image from gallery to which requires rotation Bitmap bitmapImage; File fpath; String root=Envir...

How to put a slider using jQuery plugin and jQuery?

Adding a custom slider into a web page or website enhances the look and feel of the website. Hence, below is the code of making a custom slider and using it in your web site. I am using jQuery and a plugin called SlidesJS. You just have to i...

Types Of Penetration Testing

Types Of Penetration Testing:- There are mainly three types of penetration testing.These are mentioned as below :- 1) Application or Software Security Testing:- Applying the different-different approaches of the software anyone can confirm ...

Pointers in C language

Pointer is a variable which stores address of another variable. It points to an address of a value. Pointers in C language is declared using * i.e. asterik symbol. int *i;//pointer to int char *ch;//pointer to char . Example #include ...

Instance Initialization Block

Instance Initialization Block is a block used to initialize instance variables or non-static variables in a class i.e., to initialize a state of an object. The Instance Initialization Block executes after the call of the constructor. It gets exec...

Image Slider In Javascript

If you want image slider using Javascript then you can use below code . CSS Code : <style type="text/css"> // to make a gap from top body { margin-top: 100px; } // give styling to list .na...

Threads

Threads Threads are used to get the multiple activities in a single process. They are light weight programs. They share memory and files and process state. They have their own local variable and stack and program counter. Every jav...

Static Keyword

Static Keyword Static keyword can be applied on 1.Method 2.Variable 3.Class nested within another Class 4.Initialization Block Static keyword can not be applied to 1.Class (Not Nested) 2.Constructor 3.Interface 4.Met...

Opacity in CSS

To specify the how transparent an element is, we use opacity. Basically it defines the clarity of the image. Example <!DOCTYPE html> <html> <head> <style> img.t { opacity: 0.8; } </s...

How to give a sliding effect(slide down and slide up) on a div using jquery.

We are using simple jquery to implement a slide down and slide up effect on a div. Also a little styling can be done using css and HTML. <html> <div id="divTest" style="width: 40px; height: 40px; display: none; background-color: #fff...

SQL Order By Clause

With the help of SQL Order By statement we can sort our data in a table either in ascending order or descending order based upon the user, what he wants. Note -> Some Databases have already sort the data order by default . Syntax : select...

SQL Null Meaning

What is Null ? Null means no data or missing data or we don't have a data in a table . If you think Null means 0 ( zero ) than you are wrong . There can be two condition for Null 1) when SQL is Null 2) when SQL is not Null If in a table yo...

SQL sum function

Sum ( ) , it is a function which return the aggregate sum of any expression , like salary of multiple employee , sum of population in any particular area etc . Syntax : select sum ( Expression ) from student where clause ; // expression can b...

SQL Date Statement

Basically Date is used to extract the data from a table in database . Suppose you want to find and extract the data from database for particular date then you can do this with the Date statement . Example -> Table name -> student Stu...

How to find a string inside another string using Javascript

Suppose you have two strings and you need if they contains same words. Then in this case you have to use 'strName.indexOf' function. Let's consider the example below:- var MyString= "I'm explaining string match on findnerd portral"; var F...

How to generate random number using Javascript

In Javascript you have a number of functions to genrate random numbers between two given digits. Some of them are inbulit and some you can create for your own, But the simplest way to perform the operation is the code below:- // Returns a rand...

How to use different versions of Jquery on a single page

If you calling the different versions of Jquery then your code can clash the mutual variables. To use each of the Jquery versions separately you have to use " jQuery.noConflict()" Consider the links with multiple Jquery versions below:- &l...

How to compare two dates using Javascript

On using the javascript technology you can perform the comparison operation very quick in real time. In this case we will see how to compare two given date:- var DateOne = "1991-10-10".split('-'); var DateTwo = "2005-09-01".split('-'); v...
1 191 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: