Here I have created Toast function in android. Toast function can be used to display information or message for the very short period of time. In the below code I have explain how to make Toast function.
lvList.setOnItemClickListener(new Adap...
It is a web-based tool that is used by the server administrators to manage hosting accounts on a web server. Ports 2086 and 2087 are used for WHM.Some of the tasks that a Server administrator performs on WHM are as bellow:
1- It is accessible...
Hello Everyone , In this blog we will discuss about how to use MYSQL in node.js.
node-mysql is one of the best modules which can be used for working with MySQL database.
To install the MySQL in node.js driver you have to follow up with the be...
This function is used to get the minimum value from the selected field .
Syntax :
select min ( column_name ) from table_name ;
Example :
Table name : Employee_Info
Id Employee_name Employee_Age Employe...
This function is used to get the maximum value from the selected field .
Syntax :
select max ( column_name ) from table_name ;
Example :
Table name : Employee_Info
Id Employee_name Employee_Age Employe...
The code example of this keyword in Javascript
var fullname = 'David';
var obj = {
fullname: 'john mars',
prop: {
fullname: 'Brett',
getFullname: function() {
return this.fullname;
...
If you are looking to apply the big view style to a notification, here is the solution you are looking for:-
Uri notificationsound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
String notificationText;
NotificationMana...
If you are going to start a website a blog or website in wordpress must install these plugins .
1-Akismet This plugin comes inbuilt in wordpress. This plugin removes and secure your wordpress sites from spams comments.
2- BackUpWordP...
This function is used to convert , value of column in lowercase . If value of column already in a lowercase then it doesn't covert . It convert only if value of filed is in uppercase .
Syntax :
select lcase ( column_name ) from table_name ;
...
This function is used to convert value of column in uppercase . If value of column already in a uppercase then it doesn't covert . It convert only if value of filed is in lowercase .
Syntax :
select ucase ( column_name ) from table_name ;
...
Clouds Types:-
There are mainly four distinct types of cloud schema. We can accede any one schema as per the requirement of the business. These are mentioned as below:-
1- Private Cloud
2- Public Cloud
3- Community Cloud
4- Hybrid Cloud
...
If you want to enter a new records that is not exits then you can use Mysql two methods
Method 1 'REPLACE' :-
REPLACE INTO `users`
SET `userid` = 65,
`username` = 'abc',
`useremail` = 'abc@gmail.com';
In this case if record exists...
To add data to RecyclerView at runtime follow the steps mentioned below:-
1) Start a new project and add support library dependency <compile 'com.android.support:recyclerview-v7'>.
2) Declare layout for your activity(MainActiv...
How to replace Year of a DateTime variable with the Year of another DateTime variable in C#
While working in a project, I got stuck in the following issue :-
I have to compare the year of OldDateTime variable with NewDateTime variable. But ...
You can use a perticlualr custom window on your website to open another website, Iframe gives you this feature to do. You can see the example below :-
<iframe id="if1" width="100%" height="254" style="visibility:visible" src="http://www.fin...
In your xcode project first create a UItextfield type of cocoa touch class in case of underlined view create a uiview type of class as UnderlinedTextField or watever name suits you.
In UnderlinedTextField.h file of your class create a property...
This function is used to get the character from a text field .
Syntax In MySQL :
select mid ( column_name , start [ starting_length , ending_length ] ) from table_name ;
Starting length : It is mandatory .
Ending length : It is optional...
Sometimes We need to give options to the user to change language of application, regardless of the locale device. In this blog we are providing opportunity to the user to change language programmatically by press the button individually. Here are...
Why We Need Cloud Computing?
As we know nowadays there are very users which are using computers and mobiles, data repository is the main preference in all areas or domains. All the organizations, either big or small increased on their data or in...
1)Firstly in your XML,Make a Button and TextView :
<Button
android:id="@+id/btnMyLocation"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/mylocation"/>
<TextView
...
Java Is a platform Independent Language, but the JDK Java Development Kit is used to developed wide range of applications. Java Development Kit includes some other like JRE and JVM for the complete development.
JRE Java Runtime Environment as a...
Front-end development is basically a mix of HTML, CSS and Javascript used to create websites or web apps that allow users to have direct interaction. Users grasp more information when they do not face hassles of slow pages and poor interfaces. Th...
By using jquery event.pageX and event.pageY we find the coordinate of mouse. The PageX event shows the edges from left and the PageY event shows the edges from top.
<!doctype html>
<html lang="en">
<head>
<meta cha...
Here I have created AlertDialog function in android. We can use alertdialog for choice to continue or discontinue. AlertDialog can be used to display the dialog message with OK and Cancel buttons. Android AlertDialog is the subclass of Dialog cla...
jQuery selectors gives you the facility to select and manipulate HTML elements according to your needs and requirements.
The element Selector
Based on the element name,The jQuery selector element selects elements.
Example
<!DOCTY...
SQL Length ( ) function is used to get the length of the string .
In MySQL : Length ( ) ;
In Oracle : Length ( ) ;
In SQL : Len ( ) ;
Syntax :
select len ( column_name ) from table_name ;
Example :
Table name : Employee_Info
...
Penetration Testing common test scenarios:-
Hello Readers..
By this blog i am sharing few important testing scenarios related to the penetration testing. These are common test scenarios. I hope these will help to all in time of penetration test...
Update one table with data from another table :-
Some time we need to update more than one column in a SQL table with values from column in another table.So we can achieve this using join. Please refer the below example:-
Table Structure &...
Hello Reader! If you having the timestamp generated by Unix and you want it to be in format of time then you can use the example code below:-
function MakeTime(TimeUnix) {
var d = new Date(TimeUnix);
var h = (d.getHours().toString(...
Avg ( ) function is used to return the average of numeric column . If in a table there is null value then it ignored that value .
Syntax :
select avg ( column_name ) from table_name where clause ; // where clause is optional
Example :
...
High Level Language
It is a programming language which makes it possible for programmer to write programs. It is close to human languages and is easy to maintain,read and write. Programs written in a high-level language should be translated in...
Sometime in a table we need two or more column to uniquely identify each row . Composite key is the combination of two or more Primary key . Primary key or candidate key come from the composite key .
Syntax in SQL :
create table table_name co...
To copy structure in MySQL with data you need to execute the following MySQL statements:
use dbname;
create table new_table_name
select * from existing_table_name;
If you require the copy of structure without data then you need to execu...
Both the ' and " are same and does same function but it's just the coding standard followed by coders
Using double quotes for HTML
i.e.
<div class="colorFont"></div>
Using single quotes for JavaScript
i.e.
$('#cont...
Hello Reader! if you want to link up your images to make it download with just a click then you can use the code below
<a href="/local/project/image.jpg" download="myimage.jpg"><img src="/ocal/project/image.jpg" /></a>
T...
To create complex list and cards we have to use RecyclerView and CardView.
RecyclerView is a view that shows items in scrolling list (vertical/horizontal) or in grid layout. RecyclerView have advanced features over ListView. RecyclerView prov...
Hello Readers,
PHP Magic Constants:
There are many magic constants are available in PHP, but some magic constants are most important used in php, like LINE_, _DIR_, _FILE ,__CLASS__, __FUNCTION__etc. These constants are case-sensitive.
...
When we load our old project into new workspace then sometime the cache directory error generate.
The error shows (error 1119: Access of possibly undefined property cacheDirectory through a reference with static type Class).
Solution
So...
This blog help you to find screen dimensions in pixels programmatically as well as get the screen width and screen height and then set position. You can use DisplayMetrics class. DisplayMetrics class is a structure describing general information ...
Hello Reader!
If you got confuse to write the correct syntax of writing the disabled text box then you can use these types of code as below:-
<input type="text" disabled />
<input type="text" disabled="" />
<input type="text"...
If you need to save state of an activity then you have to @override onSaveInstanceState(Bundle savedInstanceState) method of activity and put some states values that you want change to the Bundle parameter as below:
@Override
public void on...
Hello Reader!
If you are looking for a quick onmouseover event that changes the image over another image then you can use the following library code :-
<img src='FirstImage.jpg' width='120' height='70' onmouseover="this.src='SecondImage....
Codeigniter gives the facility to create own helper according to requirement. You can code easily and call inside the codeigniter controller or model.
1) Create a file and put the following code into it.
if ( ! defined('BASEPATH')) exit('No...
This Object return all the information related to the browser screen . Like width of a screen , height of a screen , color Depth and pixel depth etc .
Syntax :
window.screen
Some important property of screen :
1) width : It return the w...
Here I have created spinner function in android. Spinner can be used to display the multiple options to the user in which only one item can be selected by the user. Android spinner works like dropdown menu. In dropdown menu there will be multiple...
Protocol Testing Types:-
There are different types of protocol testing. Some protocol testing types are mentioned as below:-
1- Functionality Testing
2- Performance Testing
3- Protocol Stack
4- Interoperability
When we perform protocol...
Magento provide a quick search which search products globally inside site from any category but sometime we need to search the products of particular category. So below I am explaining the model we need to override and query which we need to modi...
Hello Readers,
Benefits of Joomla:
Joomla is an open source software.
It follow MVC pattern model , view and controller.
Large number of components and extensions are available in joomla.
Joomla allows to update the old joomla version ...
Choose the version of ruby you want to install for example : 2.2.3
After choosing the right version of ruby first step is to install some dependencies :
sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libs...
Foreign Key is used to establish a link between two tables . It always define in reference of Primary key ( another table ) . It act as a Primary key in its own table and foreign key for another table .
Difference between Primary key and Foreign...