Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Static and Dynamic binding in java

Static Binding: It determines the the type of object at early stage during the compilation itself, i.e. it tells that the object belongs to which class during the compile time of the program.  There is no ambiguity in deciding the type...

How to apply the domain of the user's selection in OpenERP?

In OpenERP first we create the user's in user form. Then the user clicks the selection's icon in the web client, compose a default action for the model in the user's selection and  Return the action that contains all of this and ...

PIM Desktop -Data Import

Hello Todays blog post explains the data import process in Informatica PIM desktop and the various stages that follow.  Firstly, it is important to understand what exactly Product Information Management (PIM) is and why is it usef...

How to manage the point of sale payment method in Odoo?

If you want to manage the point of sale payment method then follow the following code in your .py file.   import time import pos_box_entries from openerp import netsvc from openerp.osv import osv, fields from openerp.tools.tr...

Error handling php

It is basically the process  of catching the error that occurred in the program and then taking an appropriate action. It is very simple to handle the error in php. While writing the program we should check all the possible error condi...

How to update multiple row in single mysql query

Hello friends, Most of time we need to update multiple row at a time or in single mysql query, So most of developer use iterate the update query and execute many time. This is not good practice. We should use syntax given as below. For Exam...

How to return models and ids of the user's in OpenERP?

In OpenERP first we create user's in user's form. Then the access of user's models res_users and pass the ids of the user's. After passing ids of the user's then user's selection will active and Return a tuple. Use this...

How to call custom create method if method is not defined in Odoo?

If you want to call custom create method if method is not defined then follow the following code in your .py file. if values.get('acquirer_id'): acquirer = self.pool['payment.acquirer'].browse(cr, uid, values.get('acquirer_id')...

Beta Testing Process and Plan

Beta Testing Process:-   In this section, we will concentrate on the Beta testing process step by step as specified below:-   1.) Beta Testing process 2.) Beta Test plan   1.) Beta Testing Process   ...

How to use a unique cron job for all subscriptions system ?

If you want to use a unique cron job for all subscriptions system then follow the following code in your subscription module in .py file. def set_process(self, cr, uid, ids, context=None): for row in self.read(cr, uid, ids, conte...

Printing current Date in Java

Date Class in java: There is a Date class in java under java.util package which can be used to print the current dates. There can be various ways to print the current date. Lets see with the help of example: import java.util.Date; ...

OVERRIDE LAYOUT CORE FILES IN MAGENTO

Sometimes we are required to do some changes in our core phtml files. Its a good habit of every Magento programmer to override the core file instead of the making change in the core file. To do so overriding the core file can be done as : S...

How to add custom page in wordpress through function.php?

Hello Readers, Today we discussed about How to add custom page into admin dashboard and pagination into WP_Query.   If you want to add custom menu page into your admin panel you can create a plugin or write the code into your function....

PHP superglobals

PHP has a large number of variable the are defined already. PHP provide an additional set of predefined arrays containing variables from the web server. PHP superglobal 1. $GLOBALS- It got the reference to every variable in the global sc...

Convert Xml to Json format using java

Xml to Json conversion: Lets see with the help of example. Following jars are required for conversion: apache-commmons json-lib ezmorph Suppose we have the xml file with name demo.xml with the following data: ...

Tools for Beta Testing

Tools for Beta Testing:-     Beta testing is a very remarkable procedure that includes people running a variety of controls including your customers Effective Tools. It can contribute incredibly to the achievement/success o...

Configuring Magento for Debug Mode

firstly Disable Cache System > Cache Management > Select All [check-boxes] > Actions = Disable > Submit  Secondly Re-Index All System > Index Management > Select All [check-boxes] > Actions = Reindex Da...

Types/Sorts of Beta Testing

Types/Sorts of Beta Testing:- There are a wide range of types of beta tests and each of it has distinctive sets of difficulties, objectives, and advantages. Any individual product/item test is likely contained these :-   Sor...

How to create Custom Notification in android

  In the below example code I have created Custom Notification in android. Here first I have added ImageView and TextView in activity_main.xml layout. Then I have used NotificationManager class and NotificationService in MainActivity. You...

JQuery Simple Scroll To Top

In this tutorial, you will learn that how to add scroll to top in any of the page. As we see in many websites the scroll top function. Its very helpful for users to go to the top of the page automatically without scrolling. It appears when the pe...

Simple and Responsive Sticky footer through CSS and JavaScript

Here I created a simple and responsive Sticky footer for any screen size or device. In this sticky footer, I used JavaScript code to get the height of document and footer. I build this sticky footer to avoid the huge code packet and plugin fil...

Create simple responsive form using html and css

If you want to create simple responsive user regestration form using html and css, below example will helps you.   In the below code I have create complete responsive form that includes several different elements and attributes. These ...

Setting limit for the no. of words per record in solr while fetching

Fetching records in solr: Once you have finished with indexing in solr, now you can perform search on your records with the help of queries. Go to the url: http://localhost:8983/solr/#/collection/query  There is box with q,&...

Upload file to server using PHP

We can use php and html to upload the file to the server. Initially the file are added to the temporary folder and then are transfer to the server by using the script. phpinfo.php define the temporary file  that is used for the upload....

File input output

Opening files fopen() function is used to open the file. It require two arguement first the name and the other the mode. the different mode are r- open for read only r+- open file for read and writing w- open file for writing w+...

Add HTML Content To div Using AngularJS

Hi All, Making a webpage dynamic , you need to add/remove control from you HTML file. Building web application containing multi data entry fields is only possible if your web application is working dynamically with controls. In this case, you ...

Beta Testing

  Beta testing includes sending the product to beta test sites outside the testing environment for real world exposure. Numerous people have run over beta testing in real life circumstances – it could have been anything for one ...

How to disable Cache in Magento

Hello Friends, If you are new in Magento and looking to learn development in this framework. This is the first step to disable "Cache" before making any development activity other wise your development changes will not reflect on you...

Defect Detection Efficiency (DDE): Software Testing

Defect Detection Efficiency (DDE) In The Software Testing:-   DDE or Defect Detection Efficiency is the number or the count of the bugs or defects throughout a phase that are inserted throughout the same phase divided by the complete n...

How to make Custom Switch in android

In the below example I have created Customizing Switch button. Here I have added a Switch in activity_main.xml layout. In second step I have created backgraund.xml layout in drawable folder, here I have design switch backgraund shape. In third st...

Sharing Data Between Controllers in AngularJS

Hi All, To share data between two controller you should have your factory return an object and let your controllers work with a reference to the same object: A simple example in which two controllers are sharing name of a user. TEST.html...

How to login with Facebook using CakePHP Facebook Login Plugin?

In this tutorial, we will learn that how we can login with facebook in cakephp . As we see that most of users do not take too much interest in signing up in any website that's why we use social media login by which they can logging or sign up...

Implicit intent in android with example

Intent: Subclass : android.content.Intent class Intent is basically a way of communication between the various components such as activities, broadcast receivers , etc. We use it with startActivity() method to start a...

include() require()

We can include the content of a PHP file into another PHP file before executed by the server. There are two type of function to include one php to another. The include() function. The require() function. The include() Function It t...

Replace all the letters of a string by any wildcard character except the first and the last

Here we will learn how to replace all the letters of a string by any wild character except the first and the last one with the help of the following string function in php. strlen(string) : This function returns the length of the string if suc...

Identifying Browser & Platform

PHP has given some useful environment variable that are there in the phpinfo.php page that was used to setup the PHP environment.The best environment variables set by PHP is HTTP_USER_AGENT which identifies the user's browser and operating sy...

Cache System in Magento

If we are required to have a custom module and wanted to save some data in magento cache, we will use cache in our custom modules. To save the data in cache lets see, $data = array(1,2,3,4); $id = 'my_mod_id'; $tags = array('coll...

Difference between Dense_Rank() and Rank().

Rank() This function assigns a row id to each row returned by the sql query fired. It provides distinct row id to distinct values, similar values have similar row id, the next row id is calculated as number of occurrence of prev...

How to disable select box if no option is set using Jquery

Hello Reader's if you have desing the html web form where you want to put the select box dissable if no option is selected. So let's start with the html form and its code will go like this:- <form name="sell" id="sell" method="...

How to integrate Google Place Autocomplete?

How to integrate Google Places Autocomplete in Javascript? Places Autocomplete is the web service provided by google. It returns place predictions in response to an HTTP request. Running example can be seen here: http://www.geocodezip.com...

What is NOWAIT in SQL Server

Today i will discuss one interesting topic NOWAIT in SQL Server and would explain  how to use it.   As we know about the transaction in SQL it is unit of work which is to be executed as whole. Suppose we are updating some rec...

How to create Membership State for Given Partner in OpenERP

In OpenERP first create partner and then validate the partner form. After this compare it with the membership of the other partner. Then standard dictionary for contextual values and the dictionary of Membership state Value. Use this function ...

Instance Initializer block in java

Instance Initializer Block: There are two types of data members: static and instance data members.  Instance data members are those that belongs to instance of a class. i.e objects. Here comes the role of instance initializer block. It...

Editor Templates for Complex Types in Asp.net MVC

Hi Friends, This is a small article about editor templates in Asp.net MVC. What are they? Why do we need them and what are the scenarios where these editor templates can be used?. Let's find out. Editor templates are provided in asp.net...

Cookies in JavaScript

What are Cookies? Cookies are stored in small text files, on your computer i.e., cookies are the data. To create a cookie in javascript let us look at the code below : document.cookie="username= Ramesh"; whenever a browser requ...

How to create a module in Magento

We will see a basic hello world module in Magento. Before going for we should have some basic MVC idea in magento.  lets make a module before moving on we should have the basics as  Module name usually contains 2 parts <Compa...

How to perform a super with count as False, to have the ids, not a counter in Odoo?

If you want to perform a super with count as False, to have the ids, not a counter in Odoo then follow the following code in your .py file. ids = super(mail_message, self)._search(cr, uid, args, offset=offset, limit=limit, order=order, ...

How to use Custom Exception in android

Custom Exception is user-defined exception. It is used to customize the exception according to the user requirement. Here In step one we have defined own exception . In step second Using the custome defined exception extends "Exception"...

How to calculate distance from array of coordinates in iOS

If we want to calculate the distance from the array which contains the coordinates i.e Latitude and Longitude then use the following code- -(void) getDistanceFromArray { CLLocationDistance totalKilometers = 0; for (int i = 0; i < ...

Session

To make the data accessible across the website we need to use session. Session create a temporary file on the server where the registered data is stored and the data is made available to all pages. The location of the temporary file is dete...
1 107 269
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: