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

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

How to display the server time with the use of ajax

In this tutorial , you will learn that how to get the server time automatically with the use of jQuery-ajax code. We can make the simple input form in html for time.When the name is input by the user , the time input feild will automatically call...

Alpha Testing versus Beta testing

What is Alpha Testing? Alpha testing is a sort of acceptance testing; performed to recognize every possible issue/bugs before releasing the product to ordinary clients or public.  The center of this testing is to simulate genuine user...

How to use AsyncTask in android?

In the below example I have clearly described how to use  AsyncTask. First of all you should know what is AsyncTask ?   AsyncTask is an abstract class provided by android which helps us to use the UI thread properly. AsyncTask class...

CDD verification process?

I know that one has to pass CDD and CTS to get GMS license. As for CTS, I have learned that the developer needs to get the log file after running CTS and submit the log file to google. But what about CDD? As far as I know, CDD is just a lis...

The difference between constant and variable

In php we have both constant and variable A constant is a name for a value which can not be changed during the execution of the script. It start with a letter or a underscore. It start with constantname().   The differences- ...

How to get currency in param in Odoo?

If you want to get currency in param in Odoo then follow the following code in your .py file. incl_tax = prod_taxes.filtered(lambda tax: tax not in line_taxes and tax.price_include) if incl_tax: return incl_tax.compute_...

QuickBlox Imaplementation

Hi Team, I am new to develop chat base app.from where i should start i donot know.Can any one give me brief guidline so that i am proceed further.i am totally stuck here.

How to get the outstanding residual value in invoice currency in Odoo?

If you want to get the outstanding residual value in invoice currency in Odoo then follow the following code in your .py file. # -*- coding: utf-8 -*- import json from lxml import etree from datetime import datetime from dateutil.relat...

How to use the Autocomplete API with Google Maps SDK on iOS

By Using the following code you can integrate the Google Maps SDK in your iOS project. First we will write the function which results the array of related nearby places. -(void) searchLocation:(NSString *)locationName{ GMSAutocomplet...
1 123 292
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: