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

Use of strtok() function in php

It is basically the string function and its used to split the string into smaller strings but other than this we have also other string functions to split the string like explode (return the complete split string in an array). But strtok is di...

What are the differences between abstract classes and interfaces in Java 8?

Difference between abstract class and interface in Java 8 : To create abstract classes we use the 'abstract' keyword whereas keyword 'interface' is used to make the interfaces in Java. For inheritance the 'extends' keyword is used by the su...

How to Data Mapping using ETL Tools in OpenERP/Odoo ?

The data mapping fixates on the powerful data between systems, It leads to more significant consistency, which results into preponderating productivity, reducing perpetual maintenance costs, amending readability of software and additionally makin...

Using Javascript to access liferay services

The Below code will show you how you can create the service in Liferay and how you can call that services using javascript. For this, First you have to create service builder(service.xml) to build service using ant build-service command. ...

How to handle or remove warning of security in chrome through Selenium WebDriver?

Below is the error while run in chrome. Use this code, it will always work System.setProperty("webdriver.chrome.driver", YourChromePath); DesiredCapabilities capabilities = DesiredCapabilities.chrome(); ChromeOptions op...

Enable/Disable Bluetooth

How to on-off the bluetooth progamatically in android:- Here, we will use the class "BluetoothAdapter" , which allow us to all bluetooth interaction and perform its tasks. Firstly , we have to set permission in manifest to access device blu...

How to fetch Calendar (calendar.event) meetings for particular date in ODOO?

To fetch Calendar (calendar.event) meetings for particular date follow these step as mentioned below:- Step1 - To install base_calender module in openerp Step2 To install web_calender module in openerp Step3 - Go to Messaging -> Organi...

Difference between ArrayList and LinkedList

This is one of the important thinks that we need to know when we talk about Collections in Java. There are so many similarities in ArrayList and LinkedList like they implements List interface. They both come under non synchronized classes. ...

TreeSet in Java

TreeSet class is the class that implements NavigableSet interface and NavaigableSet extends SortedSet which extends Set. TreeSet contains unique elements. Another important and powerful property is that it maintains ascending order. To us...

PHP: Read CSV FILE, Write CSV FILE and READWRITE CSV FILE

1> Read CSV file When you read the CSV file in php you use the code given below.Here we use the fopen(), fgetcsv() functions to read the csv file. The below code reads data from a CSV file read.csv <?php if (($handle = fopen("re...

How to send mail from Any Button in OpenERP/Odoo ?

OpenERP enables utilizer to send and receive emails when an action is done from OpenERP. We can configure emails to be send when a sale is verify or invoice is paid etc. But to implements these type of functionality, we require to update the func...

Agile Software Development: What you should know about Agile Development Model?

Over the past decade, many organizations have adopted the Agile development models, for successfully developing software products. Agile Model has various development methodologies which essentially involve iterative and incremental approach to s...

Display node form in a different page of in a block

Sometimes we need to display our node form in some other pages or simply in a block of front page. Here is the code snippet which can render our node form in any block or any other page: for a page: module_load_include('inc', 'node', 'n...

Implement hook_theme in drupal 7

As per Drupal's definition "A hook is a PHP function that is named foo_bar(), where "foo" is the name of the module (whose filename is thus foo.module) and "bar" is the name of the hook. Each hook has a defined set of parameters and a specified r...

App invitation to facebook friend in android

How to invite facebook friends to install aperticular application There are two functions given that will help to implement app invitation functionality. CallbackManager callbackManager; ShareDialog shareDialog; First Function...

Java Interview Coding problems for Freshers- Part II

In the previous tutorial of Java Interview Questions and Answers Part 1, I have explained some basic coding problems of Java.This part is in continuation with the previous Java Interview Questions and Answers tutorial. In this part of the tutoria...

What Does Scalability Mean in Cloud Computing?

Cloud computing has turned out to be a groundbreaking advancement in information technology. It has already enabled many businesses to make profits that were not possible in the past due to no-access to significant information on the cloud to imp...

How to make the sale Order Double Validation in OpenERP/Odoo ?

Sales module OpenERP is utilized to manage Sales from OpenERP. In OpenEPR v7, when a sale is engendered, Utilizer have the option to attest the sale to engendered invoice and/or distribution order predicated on the configuration take in the sal...

Local Database in Android

In certain cases, it is recommended to store specific data in the database. For this, one has to follow the given steps:- In this example, I am storing song details with user id so that if users login with different names then he can get only hi...

Digital marketing strategies the need of the hour

In the modern era, digital marketing strategies play a big role in making customers aware about products on offer and services they can avail from you. Always remember, marketing can go against your business if not done in a pragmatic manner to w...

Drupal 7: how to restrict file access to specific user roles

The best way to restrict the file access, is to set default download method to "Private" from Configuration->media->file system. After making this change we can use Content access module to manage the access of files. I found this lin...

Attaching image files to nodes programmatically in Drupal 7

Hi All, It is quite easy to add a node programmatically in Drupal 7. But it gets little bit complex when we need to add an image to this node as well. Use the following codebase to add an image to a node programmatically: global $user_...

How to detect your website is running on mobile or web browser with jquery

If you would like to know your web application running on which platform like mobile or web browser. Please use the below code for the same. if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ){ aler...

Extract frame from video in Android

There are many cases where one need to extract frames from video irrespective of its length. With the given function one can retrieve the desired number of frames per second. ArrayList<Bitmap> frameList; String absolutePat...

Different Language Support in Android

Android gives us the facility to support different languages in your application. The solution is very easy, you just have to define separate values folder for each language and define every String there. You need to add a hyphen and ISO language...

Recursive In CakePHP

Hello Readers By default cakephp will get the data of the Model that you are querying for and the data of the Models that are linked to the main Model. So, by using recursive in cakephp you will get the data of the single association as wel...

$this->request and $this->data in cakephp

Hello Readers, Generally, we use the $this->request and $this->data in cakephp to get and post the data in application as well as in API's. So, below we describe in brief about the request. $this->request: Above, request is the de...

How to Do a Perfect On-Page SEO of Your Website: Part 1

Hi , When we launch a website or taking steps to official launch, the Word SEO many times come in our mind. So what is this SEO? SEO: Search Engine Optimization (SEO) is the process of affecting the visibility of a website or a web page in ...

How to create Procurement Exceptions in openerp

Procurement Exceptions means A Procurement Exception occurs when the system cannot find a way to fulfill a procurement. Some exceptions will resolve themselves automatically, but others require manual intervention. To Create Procurement Excep...

Create a custom shipping method in Magento

Magento supports various shipping methods by default like flat rate, free shipping etc. To view the list of shipping methods available go to "System->Configuration". Under left menu select "Sales" section and then select "Shipping Methods" tab...

Benefits of Using E-Commerce OpenERP/Odoo software

1-An Enterprise Resource Planning Software-As we don't need to describe the benefits of implementing an ERP solution for organization, with OpenERP/Odoo solution, you get a consummate ERP solution where you can manage Warehouse Management, Sales,...

7 Important steps before implementing an ERP system

1- Working on the direct work of your business processes, roles, hierarchy, departments is consequential. Develop a inspired flow ahead of you, initiate your ERP implementation as it extract your timeline and finance. 2- Understanding each emp...

OpenERP V7 and V8(odoo) installation on Ubuntu

Hello guys, As we know OpenERP(v7) / ODOO(v8) is an open source suit of ERP business applications. There are several ways to install OpenERP(v7) and odoo(v8). We will guide you how you can easily install OpenERP(v7) from Launchpad and v8...

Map Interface in Java

We use Map Interface for mapping unique keys and values. By using these keys, we can retrieve the mapping values at any time. Map Interface has so many methods. Some of them are given below :- clear() : It clears all pairs from the given map....

TextClock in Android

Hi Friends, TextClock is used to show the current time or/and date. In TextClock we use formatted String to show the time or/and date. Basically it is a digital clock added from Api level 17 replacement of DigitalClock. By using this method we ge...

Change brightness of the device in Android

Hi, Here I have written this code to change the brightness of the device in our application. I use the seekbar to change the brightness of the device. To handle the System Settings I use ContentResolver class and to handle current window referen...

Analog clock in Android

Hi Friends, Analog clock is a two handed clock, one shows hour and other shows minutes. It looks like a normal clock. Android provides AnalogClock to show the time. Here is the code :- Button buttonClock = (Button) findViewById(R.id. chang...

How to prevent the default event of a button and avoid the page refresh in javascritp

This tutorial will help to understand the basic behavior about button element. Button is a form element and hence button can do things happen when we use it in it's natural environment i.e. the form. To use button without form we will have to u...

How to send email in OpenERP by python code ?

We can manage email sending by .py (python) code. To send an email in OpenERP using python code you can use the below code. import base64 import logging from openerp import netsvc from openerp.osv import osv, fields from openerp.osv im...

Setting listview and pager together in a scrollview

Putting listview and viewpager or anyother view together in Scrollview is not good habit but sometimes it's necessary to do So in that case we can use that following method to set listview height at runtime so that we can scroll listview as well ...

How to Change the Number of Records show 10 entries of jQuery Datatable

Hi, In this short tutorial I have given an example to change the number of  records  “show 10 entries” of jquery datatable. If you are using the DataTable then by default it will show the records for 10,25,50 ...

Create a dynamic view in OpenERP/Odoo

In dynamic view we can manage view from xml file. Therefore you can create a dynamic view as done in example stated below <record model="ir.ui.view" id="session_tree"> <field name="name">session tree</field> ...

how to restrict file access to specific user roles

Drupal has great features for files management. Website user with required permissions can set the content type and manage the file upload process. User has the authority to set the content type as well as file size to upload. If you want to resi...

Reset or Retrieve value of all hidden type input box of FORM or DIV using jquery

Reset or Retrieve value of all hidden type input box of FORM or DIV using jQuery .each() method. You can use below code for this <!DOCTYPE html> <html> <head> <title>Reset or Retrieve value of all hidden ...

How to Implement ERP Software Successfully ?

Since 1990, Enterprise Resource Orchestrating (ERP) software has gained immense popularity world over, thanks to its outstanding features. Implementation of Enterprise Resource Planning (ERP) software solutions ensures better optimization of reso...

Implementing AlertDialog in your Android Application

This video tutorial describes how to implement AlertDialog in your activity. A dialog that can show a title, up to 3 buttons and a list. It is a subclass of Dialog that can display one, two or three buttons. This video tutorial describes the th...

How to manage your Resource in better way with ERP software ?

For an organization, human resource is the matter of paramount importance. Human resource acts as a clear for an organization, since it is the substructure to determine the generation and the activity of any organization. A company spends a ...

How to use request handler to route different requests in Node.js

This tutorial will help user to learn how to use request handler to handle different URLs. For this we will create another module named requestHandler wherein we can define some functions and the request to these functions will be handled by t...

Retrieve only the queried element in an object array in MongoDB collection

Suppose we want retrieve only the queried element in an object array then we need to perform mongo query like below. Let me explain with this help of example. { _id: 4, zipcode: "63109", students: [ { name: "ankit", scho...

How do I perform the SQL Join equivalent in MongoDB

MongoDB does not have joins but sometimes we want references to documents in other collections. For this we have to use population. Population is the way of matching the specified paths in the document with document(s) from other collection(s)....
1 206 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: