Hello Readers,
We have a session helper in cakephp which is known as setFlash() basically use for showing messages after login successfully , user registration etc.
First of all we have to assign the session helper in Controller.
Code us...
Spring @PropertySource Example : Spring is a powerful framework, having almost everything a developer need to develop an application. Today we are going to talk about the @PropertySource annotation. Suppose we have a property file and we want to ...
Session objects are used in ROR to store small amount of information which can be used later on. In fact websites following http (a stateless protocol) use session object to keep logged in user informations so that those informations persists b...
With the help of javascript, I have created deleteCookie() function. In the code given below, I have stored all the values in a single cookie and then used deleteCookie() function for deleting the cookie. When the cookie session expires, previous...
Today we are going to discuss the diffence between return false and preventDefault. We mostly use these scripts but don't know their working so let's go we first discuss the preventDefault.
A) PreventDefault: it is helpful to stop the default ...
There are many git client that are used for pulling and pushing the changes made in the remote/local repository.
Some of the Git Clients that are used to manage projects remotely for Linux platform are as below:
git-cola (free)
SmartGit...
JPanel is class of swing package in java and swing package part of j2se to develop standalone application. JPanel is a container and component of the JFrame.
Constructor & Description
1. JPanel()
Creates a JPanel with a dou...
Events are the strength of jquery. There are different types of events for different purposes in jquery such as click,change etc. We are going to discuss one of the events named resize. It will be applied on the window size change. It will call a...
If you want to change password of any user from admin login in OpenERP(Odoo) follow the below mentioned steps:-
Step-1 Go to Setting Menu and click it.
Step-2 Go to users->users->Chek user
Step-3 Go to More Menu-> Ch...
Android give facility to change the view of a Toast. Sometimes we need to show message on a better way to user .
Here I am writing code to implement custom Toast. I make a separate layout for Toast .
Here I am showing a ImageView and TextVie...
Use case testing:- Use case testing is a high level functional black box testing technique which helps in determining/identifying test cases to test a particular system on a transaction by transaction basis from start to finish.A use case is a de...
JFrame is class of swing package in java and swing package is a part of j2se to develop standalone application.
Here below I am Creating a frame with single argument constructor of the JFrame where I have declared the title of the f...
Test Plan
It is a document prepared by managers or leads which consists of all the activities related to testing, once the requirements are given the managers and lead study the requirements and prepare the test plan.
The test plan is followe...
What happens when the user views a form in the browser for a resource, rails application creates a random string as a authenticity token and store that random token in the session and when the form generates, it places that token in the form as a...
Performance testing define as the non-functional testing which used to determine that how the system will react in different different level of work load or stress. This testing basically used to determine the issues of performance.
In perfo...
On testing application by QA Eng it is not that every-times all the defect is get raised or find by QA Eng , sometimes defects get slip out from the QA end and it is raised by the customer or the end user .
Defect seepage is the ratio of post d...
Rake is a tool that is written in Ruby language and very similar to Ant, Make. The difference between the other tools and rake is that it is a domain specific language which means outside the boundaries of rails it has no existence. It basically ...
Filter in Rails
Filters are the methods, that run before, after or around a controller action. We can better understand it by taking an example. Suppose in a blogging site, there are groups and we want that a user can only read blogs of his gr...
This video tutorial describes how to implement ListView
A ListView is a view group that displays items in a scrollable list. By the help of adapter, list items are automatically inserted into the list. We just need to set the adapter using setAd...
Cross domain request is a HTTP request from other domain. Browsers do not support the XmlHttpRequest from other domain. Cross origin resource sharing provides a way to allow these type of requests. You need to set the headers to allow the other ...
WordPress provides comment feature. Website needs comment section for reviews which makes visitor engagement on web page.
You can change the look and feel of the comment section. In default WordPress themes we have comment.php which is responsib...
Welcome to wordpress discussion. Today we are going to discuss the database related functions in wordpress. We can simply create query to display the different types of posts. We start the discussion with hook named pre_get_posts which calls the...
Wordpress provides different templates to manage the website like comment.php is useful to manage the comment box. We are going to discuss these different templates which are useful in theme development.
Suppose we want to show the specif...
With the help of AngularJS, I have created a conditional display function. In the example given below, I have used ng-show( for showing the element ) and ng-hide( similar to 'display:none' or hide the element ) derivatives.
HTML-
<!DO...
Welcome to this blog.
You can get the photos from Instagram by setting up the username in the url. You can simply use the ajax request and to avoid the cross domain issue you can use the whateverorigin.org in your url. You can use the dataType...
Wordpress themes includes different files for different purpose like single.php for showing the single post. We make the changes in search.php to modify the look and feel of the search results. You can see this file in default wordpress themes an...
If you want to create php pages in wordpress or in other way you want to create templates in WordPress then you need to simply create a file in your activated theme and write below code in top of the file.
After that you can create a wordpress...
If you want to promote the page in OpenERP (Odoo) follow the below mentioned steps: -
Step-1 Go to website menu and clik it.
Step-2 Go to promote page and click it.
Step-3 Define Keywords->Add keyword->Reference Your Page->Tit...
This error used to come when you are trying to do bundle install and mysql2 gem is unable to install properly. So below are the steps as per the different operating systems:
Sometimes you need to update your Ruby library, run this code:
Ste...
Wordpress provides different powerful functions which are useful for different prospective. We are going to discuss one function named get_home_path(). Through this function we can get the path of root directory in your wordpress setup. We can si...
At the time of development of a module or functionality we always curious that the code we wrote will work perfectly or not until and unless we run that in a browser. so rails provide us a way where we can test the functions via a console. By run...
The main difference between attr_accessible and attr_accessor is that attr_accessible is a Rails method that basically specifies a white list of model attributes that can be set via mass-assignment and on the other hand attr_accessor is a ruby me...
Test Case Review process
When Customer gives requirements, development team start developing the product looking at the requirements and testing team start writing test cases looking at the requirements. Test engineers are writing test cases f...
Effort variance is the term used in QA to refer the difference in the Planned effort against Actual effort. Here effort is in the terms of Hours. To calculate the Effort variance we use the following formula :
Actual Effort - Planned Effort
...
Hi Readers,
Below are two simple lines you need to add to your code for changing the font and color of the UITextField's Placeholder.
_txttest.font = [UIFont fontWithName:@"HelveticaNeue-Thin" size:30.0f];
_txttest.attribut...
Static testing:- Static testing is done without executing the code. It is done manually to find errors in the code, requirement documents, test plans, test cases and design documents to find errors in early stage of life cycle. As it is carried o...
Hi All,
JQuery is a awesome JavaScript api to handle HTML DOM elements. We can do client side form validation, DOM manipulation using the JQuery library. In this article I will show you how to select or manipulate a DOM element using it's attr...
If you want to make user in OpenERP (Odoo) follow the below mentioned steps: -
Step-1 Go to Settings menu and click it.
Step-2 Go to users->Users
Step-3 click on Create button
Step-4 Name->Email->Adress->Access ...
In MySql you have normally used below code to find by like
select * from users where name like '%text%'
But in order to use like in mongoDb you have write the below code:-
You can use the actual regex object via MongoRegex
db.collec...
Regression Testing:- Regression testing is done in order to ensure that after bug fixation or enhancements done in module has not affected the unchanged part of the code. Its a kind of verification to ensure that reported bug has been fixed and n...
If you want to setup Google Drive in OpenERP (Odoo) follow the below mentioned steps: -
Step-1 install Google Drive integration module.
Step-2 Go to the Settings menu and click it.
Step-3 Go to Google Drive ->Template
...
With the help of JavaScript, I have created a dynamic checkbox function. When i will click on create button it will dynamically create a checkbox item list and by clicking on checkbox item it will be removed easily.
<html>
<head>
...
Android give facility to access the Wifi Network in your Application. You can access nearly every information of the connection.
Android have WifiManager API to handle all Wifi Connectivity.You can use it like this:
WifiManager wifiManagerO...
Hi friends,
As we all know, rails always encourages RESTful (REpresentational State Transfer) design for resources, that specifies standards for using different kind of requests. Rails also supports this. Thus if you are using RESTful, you would...
Date and Time Helpers in Rails
Date and time selection are very common in forms for saving event times, schedules, birth date etc. Rails also provides date and time helpers for taking inputs of date, time or datetime. While dealing with date...
Uploading Files in Rails
Uploading files from a form is a very common task(i.e uploading images, files etc). As you may already know that you need to set multipart/form-data, if you want to upload files from a form. Similarly in rails, you need ...
In android, thread pool pattern is use in AsyncTask.
Early the size of the pool was 1 i.e,
there was no support for parallel bunching of AsyncTasks.But from HONEYCOMB version Android allows multiple Asynctask at a time.
We just have to use...
Test Case Design Techniques
These are the techniques that should be followed while writing the test cases to drive the maximum test coverage.
Following are the Test Case Design Techniques:
Error guessing.
Equivalence partitioning.
Bo...