Multiple Backgrounds:-
We can use multiple background images in CSS background property using a comma-separated list of values. The the first value in the list represents the top layer, with subsequent layers rendered behind successively.
Bel...
Meteor is a new javascript framework which is designed to simply the web development and automate the process. The best feature of meteor is real time communication. It acts in real time.
Installation of Meteor on Windows:
Download nod...
With CSS3 @keyframes rules, we can make a fade-in effect for any HTML element we want. In following code, we are just changing the opacity of an element on two different @keyframes states. We can increase the fade-in time by animation-duration pr...
Hi,
Here is an example of a simple animation showing a tree growing on the field and then some rays coming over it.
For this I will be using following images.
bg.jpg
treetrunk.png
branches.png
rays.png
shadow.png
...
Hello,
Bellow is a animation showing shadow of a text moving relative to the movement of the light.
<!doctype>
<html>
<head>
<style>
@import url(http://fonts.googleapis.com/css?family=Anton);
html {
height: 1...
Following are steps to make software testing more easy & efficient:
1.Participation right from beginning:-It is a good practice, if tester has involved in starting from the project. Testers can acquire better understanding of project.Earl...
We can use config.php in cakephp to define constant which need to be used in our whole project example we have different role id for different users.We can define those user corresponding to their role id and can easily access them through out ...
Creating image rotation using Image magic by command line.
Some time image taken from iphone when uploaded on the website gets rotated .We can easily find that the image is rotated and can rotate is back by using the following code.
$rot...
How to use variable argument
Using variable argument in java method can be very important tool . As we can give multiple no of inputs to the methods using variable argument.
The rules to define variable-length parameters in a metho...
Description:
The eq ( index ) method reduces the set of matched elements to a single element or we can say that
find the element that matches or equals the index provided.
Syntax:
Here is the simple syntax to use this method:
selector.eq ( i...
Using for each In place of Normal loops in java
for each can be used to display the all the elements of the array.
Syntax :
for(datatype variablename : array)
{
// Do the work with varialble
}
example
publi...
To copy the image on NSPasteBoard following code can be used:
- (IBAction)paste:sender
{
NSPasteboard *pasteboard = [NSPasteboard generalPasteboard];
NSArray *classArray = [NSArray arrayWithObject:[NSImage class]];
...
The following code prints an image stored in a file:
-(void)print:(id)sender
{
NSImage *image = [[NSImage alloc]initWithContentsOfFile:[imageEdWindowController getImageLocation]];
[image scalesWhenResized];
NSImageView *	...
Text-shadow:-
The text-shadow declaration allows you to create a text shadow.
Each shadow is specified as an offset from the text, along with optional color and blur radius values.
Syntax:-
text-shadow: h-shadow v-shadow blur color;
As you...
Steps to create HTML file and display on UIWebView.
Step1. Add New File -> Resource -> Rich Text File.
Step2. Change .txt extension to .html.
Step3. Enter your HTML code as written below.
<html><head><style>{text-al...
On top header area
#define kDefaultCellFont [UIFont fontWithName:@"HoboStd" size:10.0f]
NSString *text = @"This is a simple example of the versatility of blocks, but the standard frameworks are chock-full of other use cases. NSArray lets yo...
Sometimes we need to hide or show TabBarController from the bottom of the screen then we can just use following functions to do so...
In AppDelegate or Singleton class
for .h class :-
- (void) showTabBar:(UITabBarController *) tabbarcontro...
We can use a Regular Expressions width the help of HTML 5. You can use this with "textarea" and "Input" tags.
<form action="" method="post">
<label for="username">Create a Username: </label>
<input type="text...
Below is the code to get remaining months between two dates
date1 = '2011-03-31'
date2 = '2011-02-25'
(date1.to_date.year * 12 + date1.to_date.month) - (date2.to_date.year * 12 + date2.to_date.month)
...
For sending SMS in Android, we have two different ways to do so, First is by using Android's built in SMS application and other is by using Android's SMS manager Api.
Here is how we do that:
1: By using Android device's built-in SMS applica...
In one of my project I have two table with simple relation
Division (id, title) - hasMany Staff
Staff (id, division_id, name, jobtitle)
So. Now I need to get some info like: I need to get all Staff where birthday today, and get r...
Naming convention in cakephp
To get Maximum advantages from Cakephp then we need to follow some basic naming convention that cakephp rules says.
Naming convention follows principles of following section of cakephp
Database name
Contr...
The Term CAST Computer aided software testing refers to Techniques and tools are user used for testing software applications. CAST use the combination of Software and hardware based tools and techniques to perform the process of testing.
Primar...
Metrics are the most important responsibility of the QA team.Metrics allow for deeper understanding of the performance of the application and it's behaviour. The fine tuning of the application can be enhanced only with the metrics.In a typical QA...
Acceptance Testing (UAT) :
This is the most important type of testing as it is conducted by the Quality Assurance Team who will indicate whether the application meets the intended specifications & satisfies the client requirements.
This is ...
Selenium is a very powerful, flexible open source automation testing tool for web applications. With the help of selenium we can automate Sliders. Sliders helps the user to select a value by dragging and dropping a handle.
The f...
Typically identifies problems with requirements defnition and uncover gaps between business stakeholder
expectations and the actual deliverables being produced.
UAT and Business Driven Testing can be executed in parallel.Specifically UAT is c...
The following should be used to automate a flash player:
WebDriver driver = new FirefoxDriver();
driver.navigate().to("http://www.youtube.com/watch?v=cwNmRCJAIXU");
FlashWebDriver flashObj = new FlashWebDriver(driver,"movie_player");
flas...
The following code should be used:
WebElement draggable = driver.findElement(By.xpath("//Give the xpath"));
WebElement droppable = driver.findElement(By.xpath("//Give the xpath"));
Actions action = new Actions(driver);
action.dragAndDrop(...
Analysis is the key factor which drives in any planning.During the analysis, the analyst understands the following:
-Verify that each requirement is tagged in a manner that allows correlation of the tests for that requirement tself.(Establish T...
If you are trying to load a web page inside android web view. Then a known java-script function of the page can be called through android in following way :-
webview.loadUrl ("javascript:methodName(\""+parameter1+"\",\""+parameter2+"\")");
...
While working with application that connects to a web service and sometime it wait too long if it can't get a connection. To avoid this too long waiting you can set connection timeout timing of the HTTP params as per you want.
If you want to d...
Mobile Testing :
Mobile Devices everywhere in the market .Mobile devices have become the primary medium of
interaction for consumers as well as businesses worldwide, and mobile applications are driving these
interactions.In traditional mar...
CSS3 Provides Column Property to layout the content in form of columns like done in News Papers, Magazines and Books.
Column include multiple properties which are as follows.
column-count
column-gap
column-rule
.textBox{
width:...
Testing shows presence of defects: Testing identifies the defects, Flows and errors present in the software but cannot prove that software is 100% defect free.
Exhaustive Testing is impossible: It is not possible to test every combination of i...
To get weekend list for a current year, write the following code:
private ArrayList weekendList = null;
public void findWeekendsList()
{
weekendList = new ArrayList();
Calendar calendar = null;
calendar = Calendar.getInstance(...
Exploratory Tests are categorized under Black box Tests that are aimed at testing in conditions when sufficient time is not available for testing or proper documentation is not available.
Exploratory testing is 'Testing while Exploring'.When ...
The following checklist provides as overview as to what should be concentrated when choosing /designing a Web Content Security Policy.
-Support for flexible policies that allow you to configure the product for your current and future needs.
-...
The CSS Box Model
In CSS, the term "box model" means considering all the HTML elements as boxes. It can be supposed as base of page layout. The CSS box model is essentially a box that wraps around HTML elements, and it consists of: margins, bo...
Let us first understand the process of Content Management System.There are basically three different aspects of Content Management Systems:
1.Templating
2.Workflow
3.Versioning
Templating
Templating is the process of Layout Design.Initiall...
1.Fast
Automation tool runs tests significantly faster than human resources.
2.Reliable
Tests perform precisely the same operations each time they are run, thereby eliminating human error.
3.Programmable
We can program sophisticated test...
A lot of trends come and go in web design, and its important for designers and business owners to keep up with them in order to stay up-to-date and avoid having an outdated website.
The major trends which are being followed includes:
Res...
If you have to add a multilingual feature in your drupal site then you can use 'Lingotek Translation' module. It provides machine translation as well as human translation for content type, fields labels, built-in terms, messages and for all keyw...
Pseudo Elements play important role while designing some web based stuff. With pseudo elements we can add content after or before any element in our web page.
Below is very simple demonstration.
<h1>Use of Before</h1>
<h2>U...
Hello reader !
How to make responsive iframe. We all are face this problem normally so there is an example and i hope it will helps you.
CSS :-
.wrapper {
width: 50%;
}
.container {
height: 0;
width: 100%;
paddin...
With CSS3, we can apply filters to our HTML elements in order to make them more interactive. There is no reqiurement of any designing software like photoshop anymore for making such effects.
Below are some filter examples:-
Blur:-
value from...
Simple Animations With The Help Of Jquery
You can slide elements or any content of HTML and even stop animations in mid-sequence. To slide elements up or down.
$("#Element").slideDown("fast", function() {
// For slide down
...