This blog will help the readers to understand that how ATM machine dispatches the money. Lets have a look on the ATM code in PHP:
<?php
$amount = $_REQUEST['amount'];
$rupees = array(1000,500,100,50,20,10);
$count = array(0,0,0,0,0);
...
Some of the basic 2-D Geometrical transformations which we can perform in android.
Translation:- Translation is the moving of object from one place to another.
Rotation:- If we wish to rotate an object in a certain angle/degree.
Scaling:...
In this blog I am going to explain how to insert data from html form into mysql. We have three steps for completing this process.
Create HTML Form
Create MYSQL Database.
Mysql Database Connection and retrieve HTML for...
Sometimes we want an image, control or element in a page to fade in and out of visibility .With jQuery it can be done easily. Below are examples of fade in and out method for a div element:
Fade In: fadeIn() method is used to fade in a hidd...
Extensions are used to extra features to the Joomla website. They are very easy to install and use. There are two ways to install joomla extensions:
Installation from Backend:
To install from backend you will need to follow the followin...
What is Defect Density ?
Defect Density is measured as the number of bugs or defects detected in an element or system divided by the size of that element or system. In normal measurement terms, it describes all line of code, or the quantity of...
Hello guies,
I was working on key stores and found a bit tricky to locate the debug.keystore on ubuntu system so thought to share the details with you.
Follow the steps in order to locate the debug.keystore on ubuntu
1) Go to the home d...
It is very easy in Joomla to assign login modules to selected web pages. You need to follow the following steps:
Login to backend of your website(Joomla administrator).
Go to Extensions --> Module Manager (You will get a page displaying ...
add() Method
The add() method is used to add an option in a drop-down list.
This simplifies the work of user whenever it is required to add element or option.
below is the example of add() method which is used in dropdown menu and gives the ...
What is Security testing?
Security testing is a method by which tester try to find loopholes in the application . The main motive while performing security testing is to make the application secure for public or private use and to make sure t...
Hi guys,
How to allow copy content option for a secured PDF. Currently am using Spire.PDF library, it is giving result as I except, it is a free version supports only for below 10 page PDFs, but my pdfs have more than 200 pages. Any other solut...
Basically Array is used to store multiple values in a single variables(only store a fixed size sequential collection of same type of element) .
Syntax ->
var names = new Array( "Mukesh" , "Ravi");
Parameter of an Array can be a list...
Hello,
I need help to understand why my java MVC doesn't upload images. There is no errors just nothing happening.
My project is on dropbox DropBox
Please help me because I'm totally stuck with this.
Please look on it and tell me if there is...
If you want to change default auth fields, add the below code in your app controller
public $components = array('Session',
'Auth' => array(
'authenticate' => array(
'Form' => array(
'userMo...
To check mod_rewrite enabled or not you need to follow the following steps:
Create a php file on to your server and call phpinfo() function to that file.
Now access the file using your Browser.
Inside apache2handler you will find a field L...
Hello readers. On developing the website the error 'Header already sent' is very likely to occur.
This is cause by PHP when it receives outputs like echo or html tags now it can take the data but then further passing it to HTTP will be very diff...
Some time developers fetch the cache problem when they are developing the app with the codeigniter framework. Below I am giving some methods that how you can clear the cache of codeigniter.
In codeigniter, the cache is save in the folder with...
Hi all,
To underline your button use this class :-
.h
@interface UnderLineButton : UIButton
@end
.m
@implementation UnderLineButton
- (void)drawRect:(CGRect)rect {
// Drawing code
CALayer *bottomBorder = [CALayer ...
my code this
AllProductsActivity Class
public class AllProductsActivity extends ListActivity {
// Progress Dialog
private ProgressDialog pDialog;
// Creating JSON Parser object
JSONParser jParser = new JSONParser();
ArrayList<H...
Sometimes in Joomla you can come across the situation that the default PHP mailing service not working properly. So in such cases you can use SMTP mail service in your site. To set SMTP service in Joomla site with gmail we need to follow the foll...
If you want to Javascript Options in OpenERP(Odoo) follow the below mentioned code in your Static->SRC->JS file: -
<div data-js="snippet_testimonial_options" data-selector=".snippet_testimonial">
[...]
</div>
(function(...
If you want to default option methods in OpenERP(Odoo) follow the below mentioned code in your .xml file: -
<template id="snippet_demo_opt" name="Snippet demo Options"
<a href="#">Your Option</a>
<template id=...
Joomla is a Content Management System which is free and open source to design websites easily. To add extra features in Joomla which are not available we need to extend it using extensions. Extensions role is to add some extra functionality to th...
If you want to options group properties in OpenERP(Odoo) follow the below mentioned code in your .xml file: -
<template id="snippet_demo_opt" name="Snippet demo Options" inherit_id="website_less.snippet_options">
<xpath expr="//di...
While working with fragments we counter the management of fragments in Backstack most of the time we create multiple instance of fragments in Backstack unknowingly.
Here are some points that need to be taken care while creating fragments.
...
If you want to add custom styles to your theme in OpenERP(Odoo) follow the below mentioned code in your .xml file: -
<xpath expr="/form/header/button[@name='action_quotation_send']" position='attributes'>
...
If you want to create a specific page layout in OpenERP(Odoo) follow the below mentioned code in your .xml file: -
<!--?xml version="1.0" encoding="utf-8" ?-->
<openerp>
<data>
<!-- === Demo Page === -->
...
HTML5 Local Storage Introduction:
HTML5 Local Storage is a web and mobile based standard technology which allow a user to store and retrieve data in a person's local device.
By using local storage, web based appl...
If you want to Extend the default Header in OpenERP(Odoo) follow the below mentioned code in your .xml file:
<template id="snippet_testimonial" name="Testimonial snippet">
<section class="snippet_testimonial">
<div class...
What is Volume Testing ?
Volume testing comes under the non-functional testing group. Volume testing tests an application/software for a confirmed data volume or any product with specific quantity of facts or data. For exp, if we want to volum...
To check the version of joomla you are using includes various steps depends upon the version of joomla you are using. So here various steps are given according to the joomla version
Joomla 1.0.x:
Login to the backend of your site(admin se...
htaccess File method:
Any website running on Apache server you can use htaccess file method also called as Apache redirects.
Important point is that it will work only on Linux servers with the mod_rewrite enabled.
Now question is...
To install joomla following steps needed to follow:
Download the Joomla installation package from the Joomla.org.
Once downloaded you will get a zip file. Unzip the file and upload the joomla files to your server.
Next you need to create a...
If you want to create Structure in OpenERP(Odoo) follow the below mentioned steps: -
Step-1 Insatll the website builder module.
Step-2 Go to website menu and click it.
Step-3 Click on content->new page.
Step-4 Add the new page.
Step...
In an Array , elements are zero-indexed i.e first element of an array is at index 0 and the last element is at the index equal to the value of array length minus 1 (array.lenght-1)
Example ->
var name = [ ' first ' , ' second '] ;
consol...
Do While loop Executes a statement once, and then it repeats the execution of the loop until a condition expression becomes false.
The do while loop consist-
do {
statement
}
while (expression) ;
statement--> The statement t...
If you want to installing your theme in OpenERP(Odoo) follow the below mentioned steps: -
Step-1 Go to website module and click it
Step-2 Select Users->Content New Page
Step-3 create a template
Step-4 select the update theme
Step-5 Ap...
Hi
When the page loads I see a lot of error message's in every field and then they go away when the page load. It seems odd...is there anyway to not show that first.
Thank you
Advantages of using testing tools:-
There are many benefits/advantages, when we used testing tools to perform the testing. Few are mentioned as below:-
1- Decreasing of recurrent work
2- Better regularity and repetition
3- Objective evaluat...
Conversion of array into a string in JavaScript.
There are two method to convert element of array into a string in JavaScript.
1st Method: toString()-> toString() method joins the array & returns one string that contain each element ...
Basically Javascript previous version ES5(script 5) support three loops and new version ES6(script 6) version support two more loops i.e for-of loop (ES6 ) and an iterator (ES6) .
1) for each loop
for each() method iterates the speci...
If you want Edit __openerp__.py in OpenERP(Odoo) follow the below mentioned steps: -
Step-1 Go to given module and click it.
Step-2 You will find four files mentioned below.
(i)-__openerp__.py
(ii)- __init__.py
(iii)- _python.py
(iv)-_vie...
If you want to create a theme module in OpenERP(Odoo) follow the below mentioned steps: -
Step-1 insatll web_theme module .
Step-1 Go to Settings menu and click .
Step-2 Select update theme.
Step-3 Select the menu .
Step-4 Click on Edit bu...
Google webmaster account is a very important tool for a Company website. Using this tool we can check website performance and maintain it according to google guidelines. Google provide this tool and it is absolutely free for everyone. As well as ...
If you want to update Your Theme in OpenERP(Odoo) follow the below mentioned steps: -
Step-1 Go to Settings menu and click
Step-2 Select Users button
Step-3 Select the logged-in User button
Step-4 Click on Edit button
Step-5 Enable "Techni...
For creation of Odoo module we need four files, given below
1-
Demo_views.xml
(with the view definitions of Demo module).
2-__openerp__.py
(with the description of your module and import of your xml files)
3-Demo_python.py
(with demo m...
Sometimes in mysql we have to count the values that are comma separated from a field in mysql. For this we will use the length function in mysql as follows:
select LENGTH(fieldname)-LENGTH( REPLACE( fieldname , ',', '' ) )+1 from tablename whe...
Facebook is the biggest social media website, where we can post daily status updates, share images, videos, create groups, write notes, and ask question and answer and create pages for promoting business. We can also use Facebook platform f...
In my last blog Role of Google+ in Social Media Marketing, I have shared my knowledge about 'what is Google+, what is the role of Google+ in social media marketing and how to optimize a profile along with business page properly'. As we are ...