Hello Reader!If you wish to add, delete or modify columns in an existing table you can do this with the help of ALTER command.
The syntax to change or we can say to modify a column in an existing table in SQL server is:
ALTER TABLE table-na...
Here I am sharing a custom progress bar to show loading.
First of all, we need to define it in gradle file
compile 'com.victor:lib:1.0.2'
Then in xml file:
<com.victor.loading.rotate.RotateLoading
android:id="@+id/loa...
The SQL like clause is used to look for the values which are similar to the values in the table with the help of wildcard operators. We have two types of wildcard operators:
1. "% - percent sign
2. _- underscore
Syntax:
SELEC...
SVG stands for Scalable Vector Graphics it is an XML based image format which is basically used to define 2D vector graphics for the web. A vector image can be resized to any extent without destroying the image quality.
SVG images are repres...
Combining Results of two or SELECT Statements using UNION OPERATOR:
UNION Operator is used to combine the results of two or more SELECT statements. But UNION operator does not return duplicate rows so to return duplicate rows UNION ALL operato...
Inheritance
When one class acquires the functionality of some other class, it is called inheritance. i.e reusing the same properties and functions. The class which is inherited is known as the super class and the class which inherits the prop...
In c++ we use variables to store the value of a number. The type of the value is needed to be declared first because according to that it will allocate the memory to particular variable.
Every variable is assigned with the unique memory address....
JavaScript consist many type of datatypes, like:
Boolean
Number
String
Array
Object
To know what operation you are going to perform on variables, you need to have the knowledge what is the data types of the variable you are using.
...
Hi all,
While designing a form in html with CSS3, I came across a situation where I have to set the color of asterix sign which was a part of placeholder in textbox input type and to do that with CSS3, I used to following block of code:
in ...
Helllo
Today, we will discuss about private instance variables and methods in javascript.
Most of the time it is believed that javascript can not have the information hiding property but that is not true. Javascript objects can have privat...
JSP supports various programming language codes. With the help of scripting elements, you can write java code inside the jsp page.
There are three types of scripting elements which are really useful for inserting java code.
scriplet tag
...
Testing Technique utilized for Positive and Negative Testing
Following strategies are utilized for Positive and negative approval of testing is:
Boundary Value Analysis
Equivalence Partitioning
Boundary Value Analysis:-
This is on...
Check Java Enable on browser or not : In some web application we need to run Java applets, flash and other softwares and these softwares only runs when Java is enabled on browser. So now the question is how a developer know that browser has Java ...
Java Generics
It has been observed that many programs or algorithms are same irrespective of data type they are applied to. To overcome this generics were added by JDK 5.Generics allows to define algorithms once which then can be applied to an...
Joins are used to combine the data from two tables and return specific rows of data from the tables.
A join can be either an inner join or an outer join, depending on what is expected in the result.
INNER JOIN:
Gets all matching rows i...
Software Testing is procedure of verifying and validating the product or application/software and checks whether it is functioning as expected. The expectation/intent is to discover bugs and enhance/improve the item quality. There are two approac...
Hi All,
You can add auto layout constraints by using Storyboard Interface OR by adding constraints dynamically. There are three ways to add constraint dynamically (as per Apple Inc.)
Visual Format Language is one of the way is used to a...
Abstraction is defined as the hiding of backend content/details and only providing necessary information.
There are two ways to achieve abstraction:-
Abstract class
Interface
ABSTRACT CLASS:- The class which is declared as abstract is known...
The error is any mistake that we make while writing a program which hampers the proper functioning of the program. While creating and running any application we encounter different types of errors. An error produces undesired output or other beh...
In the below example I have created an animation splash screen. Here I have first created animate.xml and traslate.xml layout in anim folder and in activity_main.xml layout I have added ImageView. I have used AnimationUtil.loadAnimation method in...
Hi All,
You can add auto layout constraints by using Storyboard Interface OR by adding constraints dynamically. There are three ways to add constraint dynamically (as per Apple Inc.)
NSLayoutConstraint is one of the way is used to add autol...
ASP.NET Page Life Cycle
ASP.NET Page Life Cycle determines series of processing steps which can be categorised as:-
1) Initialization of the page
2) Creation of instance of the controls
3) Restoration and Maintenance of the state
4) Event ...
Hi All,
You can add auto layout constraints by using Storyboard Interface OR by adding constraints dynamically. There are three ways to add constraint dynamically (as per Apple Inc.)
Layout Anchor is one of the way is used to add autolayout...
Div:
It is a block -level element.
It is used as a container that is used within a page or document.
It is used to wrap sections of a document.
By default, line break is placed before and after the element.
It is used within paragraph or...
Exception:
An exception is an error that occurs during runtime of a program. Example can be like we are using a array index that is out of bound of defined array in a program.
Exception Handling:
Exception handling is used to handl...
Hi Reader's,
Welcome to FindNerd, today we are going to discuss how to use link() function in php ?
Basically the link() function is used for creating a hard link from the existing target with the specified name link.
The link() functio...
Hi Reader's,
Welcome to FindNerd, today we are going to discuss how to use glob() function in php ?
Basically the glob() function is used for returning an array of filenames or directories matching a specified pattern.
The glob() functio...
Pseudo Classes:
Pseudo - Classes are dynamic and are used to style the content as a result user interaction. Pseudo- class starts with a colon(:).
For E.g: :hover, :active, :focus.
:hover - This class changes the color of an element whe...
Hi all,
You can use the NSTimer class to create timer objects or, more simply, timers. A timer can wait and call a method or selector after defined period of time. for example :- if you want show a seconds clock and stop when it completed 60 s...
Hi all,
If you are adding multiple annotation in your amp and you want to show all annotations initially. then just call this method after adding all annotation to your mapview.
There are some globally declare variable such as :-
#defin...
Sub Queries:
Sub Queries are those query which comes within another query and are written after the WHERE clause.They are also known as Inner query or nested query.
It is used to return records that are used in the main query as a conditio...
HTML5 is having new elements, which helps the developer to make their document in the form that can be easily understood. By using HTML5 elements there is no need to use <div> again and again. This makes our work easier by using less number...
Function in programming language can be called anywhere in a program and it can be used again and again in the entire program you have to make a function once and you can call that function whenever you want. The programmer need not write the sa...
Im a Network Admin and start Learning Programming,I start with C and reading a book.
anyone can help answer and explain to me how to come up with it.
1.Write a structure that is to be used with a binary tree. The structure is to hold title na...
We have different database vendors out in the market and every vendor has different configuration for using their database. Here in this article we will talk about the getting connection of Oracle database using Jdbc.
For getting connection ...
Hello
Today we will discuss about the ways in which we can get all the CSS styles associated to an element.
The CSS styles to an element can be applied in two ways:
- using inline styles
e.g.
<div style="border:solid...
Comparison of Exception Handling in C++ and Java
In C++ and Java, keywords like try,catch and throw for exception handling are same,their meaning is also same but exception handling in C++ and Java differ in many ways.
1)In Java only instan...
Managing Date and Time in ActionScript is done using the DATE class. The Date class in actionscript provides you the information of date as well as the time. The Date function has a great importance in actionscript. For example if we want to calc...
An efficient employee in an organization is always muddling up with his or her position. If I didn't get a proper hike I would leave the organization and start my own firm, the boss is so fuzzy and intolerant, I can do this work better than him, ...
WORKING WITH 3 DIMENSION
The 3D is a new feature of ActionScript. 3D basically stands for Three Dimensinal space. The major difference that comes between Two Dimension and Three Dimension is the addition of an extra dimension. With 2D we used to...
It gives an opportunity to invent our own data type and define what values the variable of this data type can take. This also helps in making the program more readable, which can be an advantage when a program gets complicated or when more than o...
For the cloning of array in ActionScript there are no built in methods. Thus the cloning is done basically using two methods namely clone( ) or slice( ). For the shallow copy of the array these methods are used without any arguments. If in the or...
Splash Screen is the first screen which appear when we launch an application and disappear when the main screen get loaded. It appear for a few second to show that our app is fast and responsive .
In order to display your splash screen more t...
Hadoop is a free, Java-based programming framework that is used for the processing of large data sets in a distributed computing environment.
Apache Hadoop at the core consists of a storage part, known as Hadoop Distributed File System (HDFS),...
DELETE Statement:
It is used to delete existing records from a table. It can delete all records from a table if where condition is not given and if where condition is given than it will delete selected records which will meet the condition.
...
There is a method provided in rails to convert a string to the camel case.
The method is camelize.
By default camelize converts a string to upper camel case. If we don't specify any argument in camelize method, it will convert the given s...
Below is the code to rename a file, in this code newdirectory is the path where the file is existing . The Boolean done will give true value if the file get renamed.
String PIC_FILE_NAME="hello.png";
String UPDATED_PIC_FILE="world.png";
Fi...
Below is the code to find an address in String by using latitude and longitude.
I am using Geocoder class and method getFromLocation() of Geocoder class.
We need to pass latitude, longitude in double format and integer value of the maximum nu...
Django is an open source web application framework, developed using Python, which follows the Model View Controller architectural pattern. It is maintained by the Django Software Foundation.
Django's objective is to simplify the creation of co...
Properties file:
It is basically used to store data that is constant and can be used anywhere in the program.
Example: You can store the database credentials and connection parameters in the file and fetch it when required.
How to use:
...