If you are looking to know, How to override home button programmatically in android, then below I have provided the simple solution.
You have to do just a simple thing i.e to override the onKeyDown function in your application, given is the co...
createElement() Method in JavaScript is used to create a HTML element through the JavaSript
The Syntax is as:
var element = document.createElement(tagName);
the Tag name in statement defines the HTML element to be created. for the sa...
What is Protocol Testing?
Protocol Testing is common word utilized by the organizations working in the transmission enterprises for testing distinct protocols in the domains of Wireless, Switching, Routing etc.
There are many companies whic...
Hello Reader if you looking for any script that makes user a notification whenever he cut, copy of paste data from your website then you can see how it is done below:-
This is the html page
<body>
<h1>jQuery copy, paste and ...
Hello I'm using git and I just updated code on my get portal but everytime I'm trying to push the update from terminal this error message is showing:-
fatal: Not a git repository (or any of the parent directories): .git
root@ongeza-li...
Basically Primary key is used to identify each row in a table . In a table Only one Primary key can be present . When in a table , there is more than one primary key then it would be called composite Primary key . Composite key is used when we ne...
If you want to print the html tags and code inside the PHP code you can do it by putting all the html code inside the echo syntax:-
Consider the following two cases:-
1. In between PHP tags
<?php if(condition){ ?> //In this case th...
Here I have created a RecyclerView app in android. In this app we have added item in RecyclerView and when we click on the item in RecyclerView the item will be removed. In this recycler view I have used notifyItem Inserted() and notifyItemRemove...
Enum type is a keyword which is used to represent similar kind of constants or fixed no of elements under one group only. The constants here may be static or final. In java the common use of the Enum keyword is to write Singleton. Enum as a type ...
The DOCTYPE specify the user's web browser and the search engines that what type of document is written.
One final thought is that the new HTML5 standard proposes using a very simple DOCTYPE:
<!DOCTYPE html>
Always add the &l...
SQL Cross means cartesian product of the rows of two or more tables . It return all the rows of the table when each row of the first table combined with the each row of the second table . It is also known as cartesian or cross join .
Cross Join ...
A dialogue box is called modal when it restricts the other functionality of the page until the dialogue box has been closed.
Here is the code for opening a simple modal popup using ‘modals’ in angularjs.
...
Hello Reader if you need two or more submit button in a single html form then you learn from the code below:-
For the form the html will go like this:-
<input type="submit" name="submit_button" value="Submit" />
<input type="subm...
Difference between Test Environment & Test Bed:-
In the software testing field test environment and test bed, both words are very popular. We can see the difference between these words as mentioned below:-
Test Environment:- This is an...
If you have any blogs or coding part that you need to show with the html tags, Then using PHP then you can perform this task
Lets say print the line below:-
<h1>I'm printing this line using the HTML tags</h1>
To print this...
Hello Reader! If you want to make your webpage more dynamic which looks like 3d using shadow of texts,
Then you can use CSS.
You just need to add the following css to you text css.
text-shadow:23px 5px 6px #000000;
To make shadow long...
A clear lesson from 2014 was digital marketing would set out to surpass traditional means of marketing. So far, it has been proved true, with Christmas waiting across the corner offering a new treasure trove to companies to increa...
if we want to break the execution of loop in while, do while and for loop and switch case we use break satement.
Syntax:
jump-statement;
break;
below are examples to illustrate break statement:
Example1
Example of C break state...
In full join all the records of both the table will come in resultant table , it doesn't depend on matching the fields . It is the combination of both left and right join . If matches not found then it will return null .Sometime it is also called...
Hello Reader!. If you want to show background image blur then you can use css.
Lets's make a html page :-
<div class="background-image"></div>
<div class="content">
<p>This is the para showing the content over the...
JAVA
1) Java is completely an object oriented language.
2) Java does not have template classes.
3) Java supports multiple inheritance by the use of interface.
4) Java does not support concept of pointers.
5) java does not have header files
...
2) Right Outer Join -> It is also known as Right join . In right join all the content of right table will come in resultant and from the left table only matching rows will come . If no rows is matched from left table then null value will be re...
In this Join all the content of both table will come in resultant table either they will be matched or not .
Outer Join are of two types :
1) Left Outer Join -> It is also known as left join . In left join all the content of left table will ...
To know On which hardware iOS is ruining like iPhone4 , iPhone5 etc below is the code for that
#import <sys/utsname.h>
-(NSString*) deviceName
{
struct utsname systemInfo;
uname(&systemInfo);
r...
If you have a fixed div and you want the image to be put over it by stretch and scaling then you can use the following code for html and css:-
In the html page add class 'background' and 'stretch'
<div id="background">
<img sr...
If you want your html form to look more beautiful than just the simple check boxes then you can use the following advance css. This will give rich looks to your html form by styling checkbox
First on the html form create the checkboxes using t...
Hello Reader! If you developing the website for a global purpose then getting the time zone of your user is a important factor.
In the example below we'll see how to get the user's time zone by using JavaScript and PHP with a custom webpage.
...
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...
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...
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...
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 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;
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...
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 ...
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...
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...
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>
&...
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
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 ?
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 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 ...
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...
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...
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
...
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...
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...
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...
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...