How to display all errors in php

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 in VisualStudio

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

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...

How to integrate time zone in jquery calender

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...

Using Intent in android application

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) {...

Pasword Reset Link in .NET

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...

join() method of JavaScript Array

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 ...

Setting Div property from code behind

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() & fwrite() function in PHP

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 ...

Add/Subtract number of days to specified date in 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...

Restore Android Activity state

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...

DOM Element Replacement in jquery

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: ...

Cookies in PHP

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...

Save your Activity state

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 ...

how to show multiple location from database using lat and long in google map?

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...

How to install downloaded apk through code in android?

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. /...

Creating a unique home page template, Drupal 7 theme

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 ...

How to get the name of Controller and Action method in View using Asp.Net MVC

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...

How to call different layout in Zend Framework

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...

Retrieving the text contents and reading the selected portion of a field's value

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 ...

Slidebar Menu plugin in Jquery

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...

Jquery animate() method

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....

How to install Appium on Windows

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 ...

How to disable layout in Zend Framework

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...

How to check an element is exists or not?

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 ) /...

What is available by default if you forget to declare in .info file, Durpal 7 Theme

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...

File upload in PHP.

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...

How to use BREADCRUMB in Zend Framework

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 ...

Release Notes

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...

jQuery detach( ) method

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()...

Cool widgets in Odoo-9

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...

QueryString Value in Javascript

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 + "=([^&#]*)"), ...

How to set pagging in Zend Framework

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')-...

lastIndexOf() method of JavaScript Array

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

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...

Multiple file upload using fineuploader in springs.

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...

Customizing an existing theme, Drupal 7

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 ...

Access rights in Odoo-9

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...

jQuery Filtering - eq( ) method

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> ...

How to perform drag and drop in Appium ?

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...

How to set flash messages in Zend Framework

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...

jQuery Filtering - last( ) method

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> <...

How to solve "can't adapt type 'dict' error" ?

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', ...

ORDER BY Clause

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...

jQuery Filtering - first( ) method

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...

How to enable Cross-Origin Requests for a RESTful web service.

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...

How to check a value exist in array or not

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...

jQuery toggle( ) Method

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...

How to revert a particular migration in Rails

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.

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...
1 166 292