In the below example I have created popup layout. In popup.activity layout, First I have created LinearLayout, In LinearLayout I added a TextViw and Button, then in step second I have created rounded.xml layout & in drawable folder, here I ha...
It's basic to your success, since relationship building is the stage of everything you do in business. Everything, It is the most fundamental thing that you do, regardless. Be it with your own people or others you associate/interact with (who...
This is our ruby on rails view from where called our jquery function().
<td id= <%= "reject_#{event.id}" %>>
<%= button_tag "Accept" , :onclick => "abc('#{event.id}', 'Accept');" %>
...
Here are a three key reasons why progression arranging/planning will work for you. It's the richest/wealthiest skill you can create/develop:-
Make Time:-
Succession planning reliably makes talented people, who are ca...
Many times I stuck in an issue of getting parent elements or specific elements to build a specific functionality over it. So that I went through the jquery library, where I found 2 relevant methods to get the specific elements or parent elements....
INSERT ALL Statement:
With the help of INSERT ALL statement we can add multiple rows with a single INSERT statement. We can use this statement to insert multiple rows in one or more than one tables. It eliminates the need of writing insert sta...
Hey Guys!!
If you are a Graphic Designer, then you probably aware of the value of good time management. Many times Graphic designers are required to work tight deadlines to get projects completed. I knew this because I'm also a graphic des...
These statements define the structure of the database. DDL consist of those statements that create,alter and drop database objects and statements that grant and revoke privileges and roles to user of the database.
Statements under this c...
In the below example I have created a dialog button layout. Here I have created a main.activity layout, In main.xml layout first I have created Relative layout and added all layout in this Main Relative layout then I have create...
These statement consist of queries that retrieve data from tables in database and statements that change the data in the database
Statement under this category are:
SELECT
INSERT
UPDATE
DELETE
LOCK TABLE etc.
Insert command
...
There might be some cases when we need to call a function without checking if function's definition is loaded or not. If loaded then that will be fine but if not loaded then it will throw an error as undefined function. We can handle this in ...
To know the Directives used in ASP.NET page, First of all, we should know what is ASP.NET directive and where it is used?
So, Directive are the commands helps in specifying optional settings, such as registering...
Suppose we want to find the average salary of three employee(A,B,C) without disclosing there individual salary.In order to do this see the following algorithm:
ALGORITHM :
First A will add a random number to it's salary and then tell...
PHP Superglobals are always accessible regardless of their scope, i.e., we can access them from any function, class or a file without even declaring them. Superglobals are available in all scopes throughout a script. There is no need to do global...
Example of $('div/') in jQuery:
$('<div/>').addClass('test');
Example of $('div') in jQuery:
$('div').addClass('test');
Explanation of difference between $('div') and $('<div/&...
Cloning of Object using jQuery
For cloning any any object using jQuery, jQuery provides clone() method which is performing a deep copy of the set of matched elements i.e clone method not only copies the matched elements but also all descendant...
Succession Planning by Managers:-
When you lead a group in a business – any business – you require support from awesome people. It's a truth, you can't do it alone. Also, you will require each ability going to mak...
Over the last 4-5 years, Responsive Web Design has become quite the hot topic in the web design community.
It’s hard to talk about how important responsive design is, without knowing what exactly responsive web design is? Well, as you kn...
Example of $(this) in jQuery:
$(document).ready(function(){
$('#div1').mouseover(function(){
alert($(this).text());
});
});
Example of this in jQuery:
$(document).ready(function(){
$('...
Simple code of php for making tree using asterisk
It is easy to make tree using php in less no. of line of code. Here are few line of code that will help you to get desired output by using for loop with three variable i,j and k or this can be ...
Parameters are variables that are passed into a function which defines how something should be done. The values which are passed into the function are known as arguments.
There are five methods of passing the parameter:-
...
Nested Class:
A class written inside another class is known as nested class, and the class that contains the inner class is called the outer class.
Nested class are of two types Static class and Non-static inner class. And non-static ...
Below is a simple html form which have two input type fields and submit button :-
<html>
<body>
<form action="form_post.php" method="post">
Name: <input type="text" name="name"><br>
E-mail: <input...
FILE HANDLING
File handling is very important for any web application. With the help of file handling feature in PHP, you can store and retrieve a wide variety of data.
PHP has several functions for creating, reading, uploading & editin...
To open Calendar on Clicking the EditText follow the steps mentioned below:-
1) Create a Edit Text in your xml file.
activity_main.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="ht...
Explanation of GET and POST methods in php
GET and POST are treated as $_GET and $_POST in php.
These are superglobals, which means that they are always accessible.
$_Get: This is used as an array of variables and passed to the current scrip...
What Is Workbench Concept In Software Testing ?
In the sequence of comprehension testing techniques, we must know the concept of workbench. Normally a workbench concept is a method of scheduling that how a particular action has to be executed....
Hello Guys !
In this blog, we'll see how to configure the profiles in a Maven project. We might have different sensitive information that we need to maintain to different environments.
For example - A developer might have different serv...
Dependency Injection allows the removal of hard-coded dependencies and makes it possible to change them. It helps in making components testable,reusable and maintainable.
We are provided with in built dependency injection mechanism by AngularJs....
In this example, we'll see how to configure Maven to run a project on tomcat withing eclipse. It is sometimes too hard to manage the Maven project with the commands. Each time we code the project in IDE like eclipse and go to the terminal/cmd...
Difference between ArrayList and LinkedList in Java
ArrayList class and LinkedList class are classes of Java with following syntax:
ArrayList class Syntax:
ArrayList<String> al=new ArrayList<Strin...
#include<stdio.h>
int maxDiff(int a[], int n)
{
int maxDiff = -1; // Initialize Result
int maxRight = a[n-1]; // Initialize max element from right side
for (int i = n-2; i >= 0; i--)
{
if (a[i] &g...
RMI stands for Remote Method Invocation to create distributed application in java. In this object access to invoke method (goes to the machine to execute method and returns the result to the other machines). In RMI client invokes the method ...
PreparedStatement interface:
It is used to execute a SQL parameterized query and it compiles only one time and we can use it many times. It extends the Statement interface. It is more secure then Statement interface and safely provid...
Delete command in SQL removes the ROW based on the condition provided with the WHERE clause, if no WHERE clause is provided it deletes all the row from the table.
Syntax for delete command:
DELETE FROM table_name WHERE column_name='value'...
Php sorting function of an array:
sort() -This will sort an arrays in ascending order.
rsort() -This will sort arrays in descending order
asort() -This function will sort associative arrays in ascending order, ac...
Hello Reader! All of us must have designed a code to print pyramid or some other pattern of asterisk using C, C++. Here is a simple program to print the different asterisk(stars) patterns in PHP. A pattern of stars is a way of arranging these in ...
An error is defined as the unexpected state of the program. An error message is then displayed to the browser.
There are four types of error in PHP-
Parse Error
Fatal Error
Warning Error
Notice Error
1.Parse Errors- Parse erro...
The method used to create the custom animation of a set of CSS properties is the animate() method.
Simple syntax to use this method is:
$(selector).animate({params},speed,callback);
The param p...
The following table provides list of all the methods that are used to manipulate the HTML and CSS.
Except html() method all other methods below work for both HTML and XML documents.
Method
Description&nbs...
Hello Readers..here are some basic commands that we use in Linux
1. File Handling :
mkdir- make directories
Usage: mkdir[OPTION]DIRECTORY...
Example: mkdir rahul
&...
// C++ program to output the maximum occurring character in a string
#include<bits/stdc++.h>
#define ASCII_SIZE 256
using namespace std;
char getMaxOccuringChar(char* str)
{
int count[ASCII_SIZE] = {0};//create an array to ...
This question is asked a lot in interviews, so here some of the methods by which one can get the second highest salary of an employee from a table.
Suppose the Employee is like this
ID
Name
Salary
Table: Employe...
Nav-Tabs can be really useful especially for content-crowded web sites or in that project where large number of interlinked pages to it. By using nav-tab in html a user can save plenty of space just by placing your block of content in tabs and di...
Hii,
i am sharing an example of css animation effect in which the basic concept of this animation is an easing function which is used here to show cubic bezier effect which is providing the movement of image .
here's the...
We know that in android only main thread can touch the UI but there are some severals methods that can touch the UI from background thread that are following as :
1. Handler
2. PostDelayed
3. RunOnUIThread
4. AsyncTask
1. Handler i...
A 9 patch image is an image that has stretchable areas defined. These areas are defined in a special 1 pixel wide border around the area. Add black pixels to the top and left of this border to describe
where the image can be stretched horizontal...
PHP contains many predefined variables from these predefined variables many are superglobals, It means that we can access all these variables from any function,file or class without having any problem.
Below are some PHP superglobal variables:...