
Featured
-
How Regression Testing Detects Integral Errors In Business Processes
Humans are forever changing and evolving and so to
by kristina.rigina -
Get Display Banner Advertising Opportunity on FindNerd Platform
“Do you have a product or service that nee
by manoj.rawat -
Android O Released with Top 7 New Features for App Developers
Android was founded by Andy Rubin, Rich Miner, Nic
by sudhanshu.tripathi -
Top 5 Features That Make Laravel the Best PHP Framework for Development
Laravel is a free open source Web Framework of PHP
by abhishek.tiwari.458 -
Objective C or Swift - Which Technology to Learn for iOS Development?
Swift programming language is completely based on
by siddharth.sindhi
Tags
When to use dup, and when to use clone in Ruby?
Clone copies the exact copy of the original (same address.id) and the dup copy is a new record (address.id = nil). Any changes you will made in the clone copy will be changed the original object, but any changes to the dup copy attributes will re...
How to configure database in CakePHP ?
Database configuration in cakePHP: Cake PHP configuration file is found in app/Config/database.php
Example of database configuration file in app/Config/database.php.default.
class DATABASE_CONFIG {
public $default = array(
'...
What is the difference between two vendors folder available in cakephp?
Hello Readers
In Cakephp framework (based on MVC) you noticed that there are two vendors folder.
1. One is it is in app folder.
2. Second one is in root folder.
Therefore, the use of two vendor folders in Cakephp is that first (whic...
Data Validation in Cake PHP
Data validation becomes an important part of any of the application. It helps to make it sure that the data input by the user is proper or not.
Defining the validation rules in any application makes the form handling easier. Validation differs ...
Implementing Fragment in Android
In this example we are using two fragments Fragment1 and Fragment2 where Fragment1 consist of a button named click, this button will show the Fragment2 on clicking the Click button.
To implement Fragment in Android follow the steps mentioned b...
Cookie in php its uses and types
Hello Readers
A cookie is often used to identify a user. It is a small amount of information that sent by a server to a browser and after that sent back to the browser.
The below is the syntax of cookie:
Syntax:
setcookie(name, valu...
Basics of IP addressing
What is IP Address ?
IP is an address which is given to each and every device in a network.
It's a logical address given to devices in a network.
It Works in Network layer
IP Versions:
1> IPv4
- 32 bits(represented by 0 and...
How to change Font size of a UI Segmented Control in IOS?
Simply Use following Code & set the "size" field according to your desired font
[[UISegmentedControl appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIFont fontWithName:@"STHeitiSC-Medium" size:13.0], UITextA...
What is TMM ?
What Is TMM ?
TMM stands for Test Maturity Model. TMM (Test Maturity Model ) is established on the CMM (Capability Maturity Model). This model was first of all cultivated by the Illinois Institute of Technology. This model (Test Maturity Mode...
Controller in Rails
The logical center of your application, which provides interface between model and view is Controller. It is used to handle people-friendly URLs . Sessions are also managed by Controllers, providing users the facility of an ongoing interaction ...
Managing processes using Foreman gem
Foreman is a gem (aka manager) for managing multiple processes that your rails application is depending upon when running in development environment and also has a option to move it into production environment as well. It is based on a Procfile t...
Defining the data model
If you want to make data model in OpenERP(Odoo) follow the below mentioned code and paste it in your model.py file:
session_ids = fields.One2many(
'openacademy.session', 'course_id', string="Sessions")
@api.multi
def copy...
Programming VoiceXML application
VoiceXML applications include taking orders from customers, making inquiry about any product, package tracking, driving directions, emergency notification, wake-up, flight tracking. VoiceXML is broadly used by call centres for Customer relationsh...
Benefits And Drawbacks of Model Based Testing
Benefits And Drawbacks of Model Based Testing (MBT):-
There are few benefits and few drawbacks when performing MBT (Model Based Testing). Few benefits and drawbacks are mentioned as below:-
Benefits of MBT (Model Based Testing) :- Few bene...
Domains in Odoo
A domain is a list of criteria, each criterion being a triple (either a list or a tuple) of (field_name, operator, value) where:
field_name (str)
a field name of the current model, or a relationship traversal through a Many2one utilizing ...
How to Use Prototype?
The application runs faster after the prototype property of the GameObject is defined. As a direct result, every instance of GameObject references the methods within GameObject.prototype, taking them as their own methods.
// define the GameO...
How to Market Your Mobile Application
In order to promote a mobile application there are various strategies & goals that need to be implemented, so that the targeted audience know the existence of your mobile application alo...
Volley api to post parameters
Volley api is powerful api to perform network operation like to perform long running network operations.
you have to create HashMap that will contain key value pair for each variable and then put that hashmap object in JsonObjectRequest as a p...
How to make the navbar tab active on click?
To make the clicked tab active in the navigation bar, the <li> corresponding to the clicked href in index.html introduces the css of 'active' class and removes the 'active' class from the previous <li> on click.
Example:
index....
jQuery HTML()
This method is used to change the content of the elements . It change only selected elements .It can also replaces the selected content with new content.It doesn't take any arguments.
Syntax :
$(selector).html()
Return content :
$(se...
Add element to Array in parse.com Android
Here I am writing code to add an element to Parse Array.
It is very simple to add values to parse array.
We need to insert using add() or addUnique() instead of put() method.
So for normal column, we use put() method of ParseObject and for...
Javascript constructor()
Lets talk about a constructor. It is actually a function to serve the purpose of using as a constructor. You can write a function to use it as a constructor or call it as a normal function, or use it both ways.
You can easily perform the task o...
Add any character to String on a particular location
Sometimes, we need to change some special character on String to fulfill our requirements.
For example, we need to show phone number, i.e, 2001256443 as (200)-125-6443
Now we use the substring method of String to solve it.
We just add Stri...
Date set hour function
Javascript Date.setHours() method sets the hours for a specified date according to local time.
It set the hours, minutes, seconds, and milliseconds fields of a Date
date.setHours(hours)
date.setHours(hours, minutes)
date.setHours(hours,...
How to show progress in a ProgressDialog while downloading
Progress dialog in android to show progress indicator/updates while downloading a file or when waiting to load a file while playing a game. Progress dialog have various features like:-
setMessage() to display message Example: Loading... (or) P...
Create, Edit and Delete Crontab Jobs
Hello readers, today we will discuss about Crontab jobs.
Q. What is crontabs?
Ans- Cronjob is a service or we can say its a tool that run in backend periodically at fixed times, dates, or intervals.
The crontab is a list of commands that...
Setting a Date
Sets the day of the month for a specified date object using local time.
dateObjectName.setDate(dayValue)
dateObjectName is the name of a Date object.
dayValue is an integer from one to thirty-one, representing the day of the month.
F...
Escaping string in Javascript
The escape function returns a hexadecimal encoding of an argument in the ISO Latin-1 character set that contains the contents of charstring. The Syntax is:
escape("string")
String is a string in the ISO Latin-1 character set.
The value...
Converting a value to Integer
When the user types a value in an edit box or selects a value from a text-based control, the value is considered a simple group of words and the browser may not be able to identify or categorize what exists in a text-based control. The parsetInt(...
HTML List attributes and types
HTML Lists
i)Unordered HTML Lists
An unordered list starts with the ul tag. Each list item starts with the li tag.
Unordered HTML Lists - The Style Attribute
1)Disc: All the list items will be marked with bullets.
eg:
<ul st...
html5 new input attribute- Part 2
Hello
This blog is in continuation with my previous blog about the html5 input attributes.
Here is the link:
html5 new input attribute
1)FORMMETHOD
This attribute is used for submiting data to the given action url overriding the metho...
How can I sort one dimensional arrays and data in PHP?
Basic one dimensional arrays
$array = array(3, 5, 2, 8);
Applicable sort functions:
sort
rsort
asort
arsort
natsort
natcasesort
ksort
krsort
These all are the sorting method which will help us to sort an one dimensional array.
What is the difference between client-side and server-side programming?
There are n number of difference between client-side and server-side programming.
The below code is split into two entirely separate parts, the server side and the client side.
|
---------->
...
Create new project in Ionic framework
If you want to create a new project in Phone gap with Ionic framework, you can do that with the following lines:
First of all we have to install ionic, to install ionic in the system we have to run the following command in our terminal:
$ n...
Global variables in Angularjs
There are two ways to use global variables:
1.$rootscope
2.service
1- We can use rootscope which is the parent of all scopes. Values exposed there will be used in all controllers and templates. We can use this in a simple way by just in...
Where to find error logs in PHP
Hello Reader's!
If you need to access your error log files in php then using Linux you can browser it as follows:-
abhishek@roor /var $ sudo updatedb
[sudo] password for abhishek:
abhishek@roor /var $ sudo locate error_log
...
eloquent laravel: How to get a row count from a ->get()
count is method which will return an array.It is a query builder. So to count rows from using a ->get() is
The syntax to count a row a -> get() is
$wordCount = count($wordlist);
If you have a wordlist model, then you can use Elo...
How to make a quick login page in Wordpress
Hello Reader's!
If you are new to Wordpress and want to make a login custom page, then you can see an example below:-
First you have to create a page on the root, name it login.php
<?php
/*
* Template Name: Sign In
*/
if($_PO...
Model Based Testing
Model Based Testing:- What Is MBT (Model Based Testing) ?
Model based testing is a testing approach which defines how system performs in replication to an activity or action (resolved by a model). Furnish activity, when system acknowledges as ...
Non-Semantic Elements and Semantic Elements in HTML5
Non Semantic Elements:- Traditionally, developers have implemented non-semantic elements with a class attribute to define the structure and express the meaning of content. It tells nothing about its content. The element has no special meaning at ...
Html5 new input attributes
1)AUTOCOMPLETE:- AUTOCOMPLETE attributes is having two features either on or off. If autocomplete is on then the browser automatically complete the values based on values that the user has entered before. This attribute works with form and the fo...
Difference between Joomla and Drupal
Hello Readers
Below are some points to differentiate between the Joomla and Drupal:-
Joomla uses plugins components and modules while Drupal has a module only.
Joomla has lower technical curve while Drupal has high technical curve.
...
Component & Helper in Cakephp and why are they used?
Hello Readers
A component is an independent piece of code written for specific task in cakephp that can be used for Emails, RequestHandling etc.
Components is basically a package of logics that are shared between controllers. User also crea...
Basic Functional Test Scenarios for the Mobile Devices
Hello Readers,
By this blog, I am sharing some common functional test scenarios for the mobile devices. I hope these will help in the time of functional testing on the devices.
Some of these scenarios are mentioned below:-
Verify that all ...
How to show hidden files and folders in Mac OS X Finder
Hi Readers!
This blog will help you in displaying hidden files and folders in MAC OS X Finder.
Please write below 2 commands one by one in terminal, and then open Finder again
defaults write com.apple.finder AppleShowAllFiles YES
kill...
Adding Blur effect in swift
Hello friends,
To add blur effect in swift you may use the following code:
IBAction func blurImage(sender: AnyObject) {
// 1 Create an object of UIBlurEffect,you may change the value of style as per your requirement
var darkBlur = UIB...
Features of cakephp
Hello Readers,
Below are some of the features of CakePhp:
CakePhp is basically a framework which is based on MVC pattern i.e(model view controller).
Cakephp is compatible with php version 4 and 5 plus.
Cakephp have built in validati...
Challenges for QA with agile software development
There are many challenges for the QAs when any software development go through the agile methodologies. Below are mentioned few challenges which are taken by the QAs :-
Probability of errors or mistakes are more in the agile methodology for ...
How to load data on scrolling top using angularjs?
First you need make a directive for this.
mainApp.directive("loadMoreData", [function() {
return {
restrict: 'ACE',
link: function($scope, element, attrs, ctrl) {
// alert("check");
...
Compare two dates with JavaScript.
If you want to compare two dates, the Date object will do the following purpose. This describes the JavaScript Date Object including properties, constructors, and methods.
Here is the code example :-
var d1 = new Date();
var d2 = new Dat...