Polymorphism in Java
OOP's a very important jargon in the programming world, and many of us are familiar with this word, Object oriented Programming. Polymorphism is a main pillar of OOP,s by definition it is the ability of an object to t...
While applying animation to an object in MS Powerpoint, you might have picked some predefined entrance effects like bounce, flash, shake, wobble, etc.
We can apply these effects to our HTML elements in webpages as well. These can be implemente...
CSS animations allows us to animate transitions from one CSS style to another. Animations consist of two components, a style describing the CSS animation and a set of keyframes that indicate the start and end states of the animation's style, as w...
Hell Readers,
If you want to create a logo using SVG in HTML 5, it's not a big deal, you can refer below simple example
<!doctype>
<html>
<head>
</head>
<body>
<?xml version="1.0" encoding="utf-8"?>
...
Hello readers !
In this blog i'll show how to use animation attribute in css3. By attribute you can
replace animated gif images, Flash animations, and JavaScripts also.
Okay lets start Its have two part :-
First we are describe the object...
From here you can be able to display the Bar Graphs through android applications. First of all you need to add achartengine-1.0.0.jar to your project . Which can be easily downloaded from here
Now you can use the following activity, in which...
The JPagination class allows developers to reliably and consistently add pagination to the Front-end and Back-end display of their components. The file containing the class can be found at /libraries/joomla/html/pagination.php.
The construct f...
Error after running Maven install
Error: Unable to locate the Javac Compiler in:
C:\Program Files (x86)\Java\jre6..\lib\tools.jar
Please ensure you are using JDK 1.4 or above and
not a JRE (the com.sun.tools.javac.Main class is required)....
Install ruby to C:\Ruby193 and set RUBY_HOME=C:\Ruby193and %RUBY_HOME%\bin added to PATH sys var.,
Go to http://rubyinstaller.org/downloads/
Download the devkit: DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe
Extract Files by left double-click...
Full form of ACID is Atomicity Consistency Isolation Durability . ACID is the concept that database professional follow while evaluating relational database and application architecture. For a reliable database all of the following attributes sho...
While loginin website using email address many time you must have seen an error message say's Email already exists, So in this tutorial we will learn how to create a functionality in jQuerywhich checks if the email already exists and if yes t...
Indexes in MySQL can improve performance of specific queries Like as below Examples :
Syntax for creating index on one field:
CREATE INDEX indx_magrno ON EmplyeTable (EmplyeID);
These two indexes is supposed to hugely improve performan...
Offline app capability in HTML5 bought all the power to store data offline .When we talks about offline people ask offline means without internet ? First take the term ONLINE . online and Web are kind of synonyms.
So why the term Offline is gett...
**Use Of after() and before() Methods In JQuery**
The jQuery after() method inserts content AFTER the selected HTML elements.
And
The jQuery before() method inserts content BEFORE the selected HTML elements.
**Example**
$("p").after("S...
How to add class or other attribute on first and last child of a element
here is ul have five li and i want to add class on first and last li
<ul id="parentElement">
<li>First</li>
<li>Second</li>
<li>...
Here is the code to get your posts pagination. Here you give the number of posts which you want to print in the every page. Chang something according your custom post type or other.
// WP_Query arguments
$paged = (get_query_var('pag...
Exchangeable Image File abbreviated as (EXIF) is a format that is standard for storing information in digital photographs. Almost all new digital cameras, including the cameras on the mobile phones use the EXIF annotation. The EXIF stores an arra...
User can use the following code to capture screen shot using selenium Webdriver .
File Scrfile = Driver.GetScreenShot As(OutputType.File);
FileUtils.CopyFile(Scrfile,new File(c:\\capturescreenshot.jpg));
Web application use cookies to store user related information . While testing web application
It is a best practice to delete cookies before starting a new test.
IE cookies can be deleted using WebUtil object which come along with QTP. We need...
Boundary Value Analyses & Equivalence partitioning are both test case design techniques in black box testing.
Equivalence partitioning: In this method, the input data is divided into different three classes.
This method is used to reduce th...
Below are the state of any bug by which bug goes through during test life cycle.
1.NEW : Tester Found new bug in the application.
2.Assigned : Tester assign Bug to the developer.
3.Open : Developer is fixing the bug .
4.Fixed : Developer has...
How to create Custom Button in Android
In Android it is very easy to use buttons , eclipse Ide provides you with drag and drop functionality.But we can use different approach and create our own custom button.
create an android projec...
Here is how we can open an URL in Android's web browser.
Just pass the URL in Intent like:
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.evontech.com"));
startActivity(intent);
Also, do not forget to add the inte...
Hello Users,
In the today world you can crate a responsive newsletter with help fo simple CSS.
You just follow 3 steps:-
1:- No Fixed Width
Generally we create f wrapper for a frame with fixed width. In this we can not use any fixed ...
Below is the way you can make like query in MongoDb :
It can basically be achieved by using MongoRegex
$where=array();
if($param['searchfor']!=""){
$regexObj = new MongoRegex("/".$param['searchfor']."/ig");
...
Here is the code to get your custom post type posts. you can put something which you want to print like your post content, your post title, featured image and etc under the while loop.
'news', // Change news as your post type
'p...
When you type within the input box, google places autocomplete API helps you find similar places quickly by displaying searches that might be similar to the one you're typing. It provides your applications with the type-ahead-search behavior, the...
At times, we make apps which use camera feature but that app can also be used on non camera devices for other features. There we have to apply a check on using the camera feature, that is as follows:
PackageManager packageManager = activity.ge...
Here's how you can create short URLs using Bit.ly services
/* returns the shortened url */
function get_bitly_short_url($url,$login,$appkey,$format='txt')
{
$connectURL = 'http://api.bit.ly/v3/shorten?login='.$login.'&apiKey='.$a...
PHP has different types of built-in functions which can be used to check the value of a variable. Basically there are three useful functions you can use for test the value of a variable i.e. isset(), empty() and is_null(). All these php function ...
This blog will help you in getting geographical information of any location by using latitude/longitude.
By using Java API Geocoder, it is easy to get geographical information of any location. The response will be in JSON or XML format.
Wri...
Command to find java on ubuntu
find ./ -name java
Location of control panel in ubuntu
Go to java installation directory
> cd /usr/lib/jvm/java-7-oracle/jre/bin
> ControlPanel
Hers's is the tutorial to submit form via curl.
I am taking example of log in form for say xyz.com site.
$ch = curl_init();
if($ch){
$url = 'http://www.xyz.com/logmein.php';
$postdata = array('LoginButton' => "Logon",
...
I installed new wamp on windows 7. It has some dependency on some microsoft tool "vcredist_x64.exe".
My installation was successful and I enabled php_curl extension from php settings but I was still getting :
Call to undefined function curl_ini...
Android use Permissions
In android we have to set permissions in the project manifest file to get the required android resource. In a basic android application there are no permissions associated with it by default,so it cannot affect the...
There are following types of testing and scenarios should consider while doing e-commerce portal testing:
Usability Testing
Data base testing
Performance testing
Cross browsers compatibility testing
Integration testing (payment gateway ...
Following code can be use to send email in mac os:
-(IBAction)sendEmailClicked:(id)sender
{
NSString *recipient;
NSString *mailsender;
NSString *mailsubject;
NSString *mailmessage;
recipient = [reciever stringValue];
...
Below is the code for autocomplete using Jquery .
> <head> <meta charset="utf-8">
> <title>Autocomplete using
> jQuery</title> <link rel="stylesheet"
Contains style classes for AUTOCOMPLETE
> h...
You can convert NSImage to NSImageRep by using the following method:
- (NSImageRep*)bitmapImageRepresentation:(NSImage*)image
{
NSArray *ret =[image representations];
for(NSImageRep *rep in ret)
if([rep isKindOfClass:[NSIma...
Below is an example of finding all the user who are stored in db and lies in the given range of Distance on basis of Longitude and Latitude.
CREATE proc [dbo].[SP_UserByDistance]
(
@UserID uniqueidentifier,--UserId
@Date datetime, --Date
@...
What is Content Curation?
Content Curation is essentially the skill of unearthing relevant information and using it as a resource pool for developing useful content for articles which help in advertising and marketing. It is the rapid solutio...
To get the title and meta tags from a website you can use the following code :
<html>
<head>
</head>
<body>
<?php
function getTitle($Url){
$str = file_get_contents($Url);
if(str...
/* suppose we have an array consist of 4 or more than that parameters then in order to pass these parameters to URL then we can use http_bhild_query as follows */
$data = array('city'=>'delhi',
'cloth'=>'dress',
...
Hi All,
Here I am going to explain about the agile model & how it is different from traditional model & basic introduction of Agile scrum.
Agile Methodology: Agile testing is used when customer requirements are changing dynamicaly.
...
How to add imageview to the layout and change the source of the image with the click of the button.
This is a very simple android code in which we set the mage view in the layout and then use the the imageview to set the new source.This ...
1.Give the http url of chargify , here the url is domainname.chargify.com then add /webhooks to this url ,/webhooks give the list of all webhooks and format is either json format or xml format
var responseText=string.Empty;
var httpWebReques...
Hello All,
Below I am providing you some Important tutorial links for your help purpose, whenever you need it for your reference you can visit the link directly and definitely it will be helpful.
Here is useful tutorials about visual studio:...
Display datepicker on a link. Follow these steps:-
Add jquery files:
1) http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css
2) http://code.jquery.com/jquery-1.10.1.js
3) http://code.jquery.com/ui/1.10.3/jquery-ui.js
Add a jque...