To display all errors in php we need to add following lines of code in php file.
error_eporting(E_ALL);
ini_set('display_errors', 1);
We can Set display_errors = On in your php.ini file.
or we can try the following code in php file....
Xamarin is a tool that can be integrated with visual studio for building mobile application using the language you are comfortable with like C#
With Xamarin you can build an Android application, IOS application using the C# code on your ba...
Services in Android is a component that runs in the background without any user interaction or interface.
Services in android are used to interact with the hardware and software for providing interactions and accomplishing tasks.
Ser...
Hello Reader's If you are making the html 5 form then you can integrate the user time zone in the date time calender also, Lets see the example below:-
first you have to downoad the JS an CSS file from here
Now you have to create an html pa...
While building android apps you need to start and end activities in background or in foreground according to your need
Intent is the interface through which you can interact with the OS.
protected void onCreate(Bundle savedInstanceState) {...
While resetting password of users you need to email link to the registered user for changing their passwords
For doing that you have to perform the following line of codes
/* To send mail function is being c...
JavaScript Array join() method : The join() method of the array is used to combine all elements of the array and return as a string by separating elements using the given parameter. By default the elements are separated by comma (,), we can pass ...
While programming we have used division tags many times and it is the best method to store and display data in an HTML page.
Setting up div values can be done from front page as well as from the code page
Ex: <div id="maindiv" runat...
fopen() function is used to open files. it contain 2 parameters, first parameter specify the name of file to be open & second one specifies in which mode file should be open. This function also used to create file.
Example
<?php
...
This article explains how to add and subtract number of days from a specific date in PHP. In many cases we have to get date after or before a specified interval of days, months and years from current date or from any specified date.
Note : Wi...
We know about the common life cycle methods of Activity but what happens when user rotates screen :
Basically whenever user rotates the screen android save the states in onSaveInstanceState() and recreate the activity by getting all view state f...
If you want to replace html element with some other element, the jquery replaceWith method can be used.
You can replace some specified DOM element with the other html or DOM element. The replaceWith() method is used in this case.
Syntax:
...
Cookie is a small file that identifies the users on the user's computer. whenever the same computer request to the server for the same page, the browser will send the cookie with the request.
To create Cookie we can use the setcookie() functi...
Android activity life cycle contains onCreate() -> onStart() -> onResume() -> onPause() -> onStop() -> onDestroy() where we have another life cycle method that helps to save activity current state everytime.
Basically Activity ...
Hello Reader's ,
Below is the code for showing multiple location .
Just create a HTML file 'index.html' and put the below code inside the body tag.
<script src="http://maps.googleapis.com/maps/api/js?sensor=false" type="text/javascrip...
If you want to install the downloaded .apk from your device through java code than you just need the path and the name of that .apk, if you have these two thing (path and the name of that .apk) than you just need to use the code given below.
/...
Drupal Provides you lot of option to creat a unique home page or say site front page. This could be achieved by number ways bdefined below.
Firstly Access the /sites/all/theme[active theme], copy a page.tpl.php page and paste it in same ...
Get the name of Controller and Action method in View using Asp.Net MVC
In one of my Asp. Net MVC project, I needed the name of the Controller and the Action Method in the View page.
For this I used the following code:-
@{
var acti...
Hello Friends,
Some time we need to set a different layout for our web-page. Mean this page will appear some thing different by the mean of different header, footer or some thing different by look and appearance. For this you need create a dif...
To retrieve the text selected by the user is to get the indices of the starting and the ending character of the selection. After that you need to extract that particular portion from the form fields value using those retrieved values.
To get ...
We can create a slidebar menu using jquery slidebar plugin. It is a jQuery plugin that gives a slidebar menu for easily implementing in the web pages.
We have to include slidebars.js in our source files.
Here is an example that shows how to...
Hello Readers,
The jQuery animate() method is used to create custom animations.
If you want to create some animation effect in your HTML, then you can use jQuery .animate() method for the same.
We use following syntax for create animation....
Appium is an open source tool for mobile automation. Appium is very user friendly and a powerful tool. The best part of this tool is to write test only once and then execute on different devices. This tool is also platform independent and we can ...
Hello Friends,
Some time we need to disable layout of our page. No layout mean no header, no footer, no left bar, no right bar. You want to display the main page content part like if you are using AJAX at that time you need to disable layout f...
In JQuery to check that element is exists or not we use length() function. Using length() function we will check the length of the selector, if it returns something then the element must exists else not.
if( $('#selector').length ) /...
Regions
If you did not mentioned any custom region in .info file the following regoins will be available by default.
Header
Highlighted
Help
Content
Sidebar first
Sidebar second
Footer
features
The .info file is also u...
Hello Reader's ,
While building any appication we definatley requires images to upload like profile image , company image etc , for this we require php file upload code .
You will get image data in array i.e. image name , temp name , image...
Hello Guys,
If you are looking to set Breadcrumb in zend framework. Please follow the below code for the same::
1)Open your controller file and function in which you want to add breadcrumb.
/* BreadCrumb starts Here */
$breadcrumbArray ...
What is Release Notes ?
Release notes is a kind of record or document which is delivered as a portion of the complete and final build. Release notes includes fresh and original developments which are as a portion of that release and also well...
This method is used to remove the selected elements( i.e all text and child nodes as well ). If we want to reinsert that removed elements , we can do that easily because it keeps a copy of the removed elements.
Syntax :
$(selector).detach()...
In Odoo9 Widgets are the GUI elements that can perform some controlling tasks. In Odoo9, we can see a few of widgets that have significance in the views like statuses of the any process, seeing states of an object, or getting lists out of huge da...
Hi All,
Here is quick way to get query string value in javascript:
function getParameterByName(name) {
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
...
Hello Guys,
We generally need paging in all the listing pages in website. To set paging in Zend Framework, please follow the below code::
// you need to set the below code in your controller
$select = $db->select()->from('posts')-...
JavaScript Array lastIndexOf() method : The lastIndexOf() method returns the last index of the given item inside the array. This method is used when array has an element more then once. It returns the numeric value 0 or greater if element found, ...
Temporary table is used to store the temporary record which can be reused in a single session. Temporary tables are created from the existing tables and these tables are drops once the session ends or connection is terminated but you can also use...
For multiple file upload, we are using fineuploader plugin with spring mvc. There is need to include the scripts of fineuploader plugin which allow to select the multiple files at a time. And then getting those files as multipart file using @Requ...
Steps of customizing an existing theme can be broken into three major steps
Select the base theme.
Create a sub-theme from the base theme
Make the changes to the new sub-theme
The relationship between a base theme ...
In odoo-9 every admin having many types of right to give permission of all users and manager.
And Access rights are defined as records of the model ir.model.access.
For example you can see below code->
id,name,model_id/id,group_id/id,perm...
This method is used to return the element with choosing index number of the selected elements.In this method, indexing is starting with 0 i.e first element have a index number 0.
Example :
HTML Code :
<!DOCTYPE html>
<html>
...
Drag and drop functionality is a very important functionality and we can easily perform through Appium.
DesiredCapabilities capabilites = new DesiredCapabilities();
capabilites.setCapability("device", "Android");
capabilites.setCapability...
Hello Guys,
If you are looking to set flash messages in Zend framework please follow the below process::
1) Open your controller and set below line under init()
$this->_flashMessenger = $this->_helper->getHelper('FlashMessenger...
This method is used to return the last element of the selected elements.This filter help users to filtering the selected elements.
Example :
HTML Code :
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<...
Hi Friends,
Please help me with the error, When I am installing rental module in Odoo-9. It is giving me below mentioned error -
2015-12-23 06:34:25,935 7070 INFO Mary_DB9 openerp.sql_db: Programming error: can't adapt type 'dict', ...
Sorting the result using Order By clause:
ORDER BY clause is used to sort the data fetched using select statement either in ascending order or in descending. By default data fetched is sorted in ascending order.
Syntax:
Select columnname...
This method is used to return the first element of the selected elements.
Example :
HTML Code :
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div style="border: 1px solid black;">
<p>This...
The RESTful web service need to include CORS access control headers in its response, there we have to add a @CrossOrigin annotation to the handler method.
It enables cross-origin requests only for the particular method. It allows all the HTTP me...
PHP provide a lots of built in functions for manipulation of array. in_array is one of the useful built in function of PHP which is used to check whether a specified value exists in array or not. If the search value found in array the function re...
This method is used to work with multiple functions i.e when you click on selected element first function will be fired and when you click on that selected element second function will be called and so on.
Syntax :
$(selector).toggle(functio...
Rails provides us the concept of migrations. Migrations allows us to alter the schema of our database at any time after it has been created.
It helps user by not letting him/her write the entire SQL query & it uses Ruby DSL(Domain Specific ...
This version is not compatible with Drupal 7.x and should be replaced.
I created a fresh sub-theme and deleted all the unwanted content and file's from my new sub-theme folder, On appearance page I was unable to enable it as it was showing me...