What is form Validation ?
This is the process to validate web form according to our data format, when the user try to submit wrong data in the field, server will not submit wrong data because we have restricted(validate) the all field ...
Abstract class are simply the base class. They can not be instantiated but can be subclassed and have protected, private method unlike the interface.
Abstract classes can be declared by simply using the keyword abstract.
abstract class Graphi...
What is error guessing approach or techniques ?
Error guessing technique or approach comes under the Experience-Based testing techniques. Error guessing is an approach that should regularly be used as a supplement to another more
convention...
Interface is the way to get the multiple inheritance.
This means that a class can inherit two or more class.
As java, we can not extend more than one class but we can extend more than one interface.
So Interface is used to have inheritance
Bu...
If you need to get some limited key values of an array then you can use function array_slice used in PHP
Let see the example I'm having an array of 400+ values
$exp = array("34", "45", "45", "554", "2".......);
Now I'm limiting my thi...
$route: This is used for deep-linking URLs to controllers and views (HTML partials) and watches $location.url() in order to map the path from an existing definition of route.
When we use ngRoute, the route is configured with $routeProvider and...
Inheritance in java is concept by which one class can have the method of the other class.
The class that is being inherited is called Base or Parent class and the one which derive is called the Derive or child class.
Inheritance can be of the t...
The default code of cakephp paginator sorting label.
<?php echo $this->Paginator->sort('first_name'); ?>
We can change it as follows:
echo $this->Paginator->sort('first_name', 'First Name');
Explanation:
Here we c...
I have a SASS Application built on Rub on Rails [ Responsive Design]. Is there any way I can convert App to Android application and use it
Regards
Surya
Technological innovation has brought a revolution in how marketing and consumer engagement are perceived in retail sector. Availability of multiple shopping channels has impacted consumer behavior and provided easy ways to shop on the go. The p...
It is important to validate the form submitted by the user because it can have inappropriate values. So validation is must.
Form validation is required to prevent web form malicious users
Most of the web developers prefer JavaScript form valid...
Here is the code for:
calling a method after a time interval delay.
we use the NSTimer to implement this.
NSTimer *timer= [NSTimer scheduledTimerWithTimeInterval:3.0
target:self
...
A custom Directive helps us to control the rendering of the HTML inside an AngularJS application. It makes AngularJS responsive.
Here is a custom directive to check for password and confirm password validation:
angular.module('app')
...
Suppose we have a string with full path with filename and we want to extract only the filename from the given path, then we can use Path.GetFileName method to extract only the file name.
Syntax: filename= Path.GetFileName(path);
Where pat...
To split a string in javascript, we use split() method which splits the string into an array of substrings.
Syntax: string.split(separator);
Where separator specifies the character(s) to use for separating the string, and if this separat...
What Is Performance Testing ?
Performance testing concentrates on performance Engineering, an introducing computer application or computer science exercise which conflicts to build performance into the pattern or design and framework of a proc...
Joomla have many versions. So before installing Joomla your system required to fulfill the following requirements which varies according to the version you are using:
Joomla Version
Software
Databases
Web Servers
3.x
PHP *Recomme...
PDO does not account for database specific syntax. It can allow for the process of switching databases and platforms. PDO can simply switch the connection string in many instances.
PDO supports the following database:
PDO_FIREBIRD ( Firebird/In...
Joomla provides a Login Form module used for login/logout purpose in Joomla. Once user logged in it gives a logout button and also provides user access additional resources on your site. Login Form will appear in the position which you have assig...
Joomla contains Favicon inside templates/your_templatename/ directory. To change this icon you need to replace that file with the one you want instead of it. Process of changing favicon is described below:
First, you need to create a 16x16 p...
Hi,
whenever you need an Alert prompt, you simply need to create an object of UIAlertView and show the object wherever alert prompt is needed.
For example -
UIAlertView *alertView= [[UIAlertView alloc] initWithTitle:@"CAUTION" message:@"m...
By using 'eregi' we can validate our email address.For validate email we use a pattern and match our email address with this pattern
function isValidEmail($email_address)
{
$emailpattern = "^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0...
Hello reader!
Installing WordPress is a bit of lengthy task for a beginner but in this blog you can learn installing the WordPress using a application from you cpanel. There is a application names 'Softaculous automatic app installer' and using...
Im making a 2d multiplayer game, can u tell me how to sync contacts from gmail, for ex if iam downloading my game app, so i want to sync those contacts from my gmail who has already downloaded that app, like the game clash of clans, in which cont...
Software Testing Life Cycle & its different phases:-
STLC identifies the test activities to be performed along with the schedule to accomplish them. A tester needs to follow the phases of STLC to ensure timely completion of testing process.
...
Difference between High level testing and Low level testing:-
High Level Test Cases:- These test cases define the functionality of a software/product in a broader way without going into deep functionality. Like if we have to write high level t...
If you want to storing data in OpenERP(Odoo) follow the below mentioned step.
Step-1 first you have to difine the data model
Step-2 imported from __init__.py for loded the file.
Step-3 academy/models.py
Step-4 academy/__openerp...
If you want to creating templates in OpenERP(Odoo) follow the below mentioned code in your .xml file.
<openerp>
<data>
<template id="index">
<title>Academy</title>
<t t-f...
If you want to demonstration module in OpenERP(Odoo) follow the below mentioned step:
for creation of any module in Odoo you have to make five files,given below-
1-__init__.py // its indicate the import instructions for various Python ...
If you want to creating a basic module in OpenERP(Odoo) follow the below mentioned step:
for creation of any module in Odoo you have to make four files,given below-
1-__init__.py // its indicate the import instructions for various Pyth...
Template is one of the type of Joomla Extensions. It represents your site look i.e., layout of your site. Templates are of two types: one is Front-end Templates and other is Back-end Templates.
Template Types
Front-end Templates:
Front-e...
If you want to editing reference Guide for layout and media in OpenERP(Odoo) follow the below mentioned code in your .xml file:
To edit Media Reference Guide in Odoo-
<div class="media_iframe_video" data-src="[your url]" >
<div...
In Computing language, a Keyboard is an electronic typewriter like device which has a specific arrangement of buttons or keys that are used to input data into a computer. In this modern era, every Web Developer o...
Hi all,
if you want to give inter letter spacing to any kind of text of button , label , textfields etc then you can follow this code.
First make attributed string :-
NSMutableAttributedString * title = [[NSMutableAttributedString alloc]...
Magento provides a way to add product attribute from admin but sometime we need to add category attribute in our category settings. So here I am going to tell you the way we need to create category attribute programmatically.E.g. I am creating on...
Joomla works on Positions. It basically divides the page into different parts that is known as positions. Module are assigned to those positions. To display the module positions you required to follow the following points:
Login to the backe...
Removing the white spaces from a string is a easy task, but for doing this in whole of you website you need the recursive function in Cakephp
The 'array_walk_recursive()' will recursively get the request(GET/PUT) data and remove the white/blan...
Hi Android Nerds,
I'm looking for a solution to enable high accuracy GPS without any prompt so and it will also enable google location reporting is there any way to do this by android terminal or using adb shell on windows ?
Traditional hostings days are gone. Now Amazon Web Services is providing a different type of hosting service in which you can create your own virtual server and configure it like a real server and install applications & packag...
The first step to use Appium is to configure the system and the most common error that usually comes while configuring Appium is: Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Orig...
Requirements for Traceability Matrix :-
Traceability Matrix can be determined using a kind of tools or equipment, in other words requirements management software, spreadsheets and databases, or yet with hyperlinks in a word processor or tables. ...
I am doing some painting work and it involves creating complex selection and that selection highlight distracts me. If there is any way to hide that please let me know. Thanks
I am looking for a way in rails using which I can change the timezone i.e UTC or GMT of date time string without actually making any changes to the original string (just want to change the timezone) .
Is there any inbuilt time method in Rails...
We have few workers working in the background and there has been as error being recorded in the rails error log i.e "Celluloid::Task::TerminatedError from Sidetiq::Clock#loop!".
I am looking for a solution regarding the same but has been un...
JavaScript String charAt() Method
This method is used whenever we want to Return the first character of a string
for example:
var str = "PRANAV CHHABRA";
var v = str.charAt(0);
Result:
P
Now below is the full example to illustrate ch...
There are basically 4 different type of errors in Php.
Parse Error It stops the execution of php script . Commonly caused due to syntax mistakes in codes
E.g. Unclosed single double quotes, missing parentheses or adding extra parentheses...
Hello Guys,
I am working on my Linux Ubuntu 14.04 from a long time and I understood that Linux Command line interface(CLI) is very powerful tool but ignored by many user. And If you are a newbie to Linux than CLI interface may be a ghost to yo...
Joomla is a Content Management System which is widely used now a days. Joomla released various versions since September, 2005. List of versions are:
Versions
Joomla 1.0
It was released on September 22, 2005.
Joomla 1.5(LTS)
It ...