How to make Toast in android ?

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...

What is WHM(Web Hosting Manager)

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...

Using MySQL with node.js

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...

SQL Min ( ) Function

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...

SQL Max ( ) Function

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...

How "this" keyword works in Javascript

The code example of this keyword in Javascript var fullname = 'David'; var obj = { fullname: 'john mars', prop: { fullname: 'Brett', getFullname: function() { return this.fullname; ...

How to apply Big View Style in notification in android

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...

7 important plugins to use before starting a wordpress site

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...

SQL LCASE ( ) Function

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 ; ...

SQL UCASE ( ) Function

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 ; ...

Different Types Of Cloud

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 ...

How to insert if not exists in Mysql

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...

Add items to RecyclerView at runtime

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 only Year of a DateTime variable

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 ...

How to use iframe to open a website in it

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...

UnderLined TextField/UIView (to prevent unnecessary constraints..)

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...

SQL Mid ( ) Function

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...

How to Change Language in Android Application Programmatically?

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?

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...

How to get Latitude and Longitude On a button click using GPS?

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 Development Environment Installation

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 With AngularJS

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...

Finding mouse cordinate by JQuery

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...

How to make AlertDialog in android ?

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

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 Len ( ) Function

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

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 in sql

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 &...

How to convert Unix timestamp to time using Javascript

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(...

SQL Avg ( ) Function

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 VS Low Level Language

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...

SQL Composite key

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...

Copy structure of a Table with data and without data

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...

Diffrence between ' and "

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...

How to make image download with a link

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...

Creating complex Lists and Cards using Material design style.

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...

Magic Constants in PHP

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. ...

Error 1119 cachedownloader error in flash

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...

How to get screen width and screen height in pixels programmatically ?

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 ...

Correct way to write disabled textbox

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"...

How to save state of an activity in android?

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...

How to change image onmouseover event

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....

How to create new helper in codeigniter

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...

Javascript Screen Object

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...

How to make Spinner in android ?

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

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...

Search product with category filter

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...

benefits of using Joomla?

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 ...

How can one install ruby on ubuntu

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...

SQL Foreign Key

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...
1 208 292