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

How to integrate the Live chat with OpenERP(Odoo)?

Step-1 Install the live chat (im_livechat) module. Step-2 After that customize .py(Python file) file: In below example, I have custmozied the .py file. You can directly paste below python code in your .py file. class im_livechat_channel(osv....

Laravel 4.x Queue

Laravel Queue is one of the best feather of laravel 4.x. When we want to make our site fast and we have to fetch and store large amount of data then we will run our query on back end. In laravel 4.x by using queue we can run time consuming on bac...

How to list table names using primary key of a table

Hello all, I have approx 100 number database tables in db from that I want to list all the tables which is using primary key of a table as a reference in MySQL InnoDB?

How to integrate the LinkedIn with OpenERP(Odoo)?

Step-1 Install the Web LinkedIn module. Step-2 After that custmozie .py(Python file) file: In below example, I have custmozied .py file. You can directly copy the below python code in your .py file. import openerp import openerp.addons.web ...

Unable to select file from Appium android setting modal

In Appium Android setting modal, on clicking the choose button, the modal gets closed and user is not able to select the desired file from his machine. The reason for the above issue that Appium is not able to find some registry files require...

How to add folder in controller using laravel 4.x

Hello Readers, In my previous blog I have explained about How to implement cron job using laravel 4.x Now, In this Blog I will guide you How to add folder in controller using laravel 4.x If we want to add our own folder in controller and...

HTML Interview Questions and Answers

HTML Interview Questions and Answers for Beginners Hello This tutorial, will provide you HTML questions and answers. The content here will help people to get through with their interviews for software industry. If you want to get to get int...

Find method with JOIN in CakePHP

Hello, if you are working on cakephp and you need the joins with find method here is an example. Here $my_joins is and array having multiple join cases in other different arrays inside it. $my_joins=array( 'joins' =&g...

Java with MongoDB

Java with MongoDB:- The MongoDB is the Document type Database. It is set of Collections and documents. it supports the NOSQL and to manage the collections inside the collection there are numbers of documents. The Below code will show you how to c...

What are the latest html elements added in html5

Here are various html elements which has been added to html5, some of the important elements are listed bellow: . <header> This html element is used for define the header section of the html page. <header> <p>this...

How to calculate characters inside html editor with JavaScript

Hello all To calculate characters inside HTML Editor we can use following block of code: In HTML side we have : <div id="editorDiv" contenteditable="true" onkeydown="calculateChar()"> </div> In JavaScript we have : f...

How to handle error globally in asp.net web api

Hello All, Working with asp.net web api, we have multiple ways of handling error that is at controller level, method level we can use try and catch block and we can put our logic there to handle errors. But to handle error occurred any wher...

Implement Binary Search Using C

Binary Search:- The Binary Search is one of the most important searching technique in Searching Algorithm. The one of property of this searching algorithm is, all the elements are in sorted order in array. The worst case and average case complexi...

Implement Doubly LinkList Using C

Doubly Linklist:- In Singly Linklist we have to move only in forward direction. we don't move in backward direction in linklist but Using Doubly Linklist we can iterate in both forward and backward direction. The Below code will shown you how to...

How to accessing the Auth Componenet from a view in CakePhp

In CakePHP, you may want to use the Auth component to check if a user is currently logged-in to the system. you cannot access the Auth component from a view. So doing something like this in a view $user = $this->Auth->user This will ...

How to change the password of role in pgadmin

If user want to change role of password in pgadmin Run these commands in Terminal 1- sudo -u postgres psql 2- sudo -u postgres psql template1 3- ALTER ROLE postgres WITH PASSWORD 'openpgpwd';

A numeric only text box in web application

A lot many times when creating web applications it so happens that we need to accept numeric vales i.e. which accepts positive, negative numbers , whole numbers or decimal numbers. Its easy, show a message on the page that the particular field ne...

Difference between setTimeout(), setInterval() in Javascript

In Javascript we can execute some code at specific time intervals. These are called timing events. There are two methods that are used: 1.setInterval() 2.setTimeout() setInterval() Method : The setInterval() method executes the function ...

How to delete provisions fields in OpenERP(Odoo)?

In provisions fields first we have to go in .py file (Python file) After that we have to decide where we want delete fields and then write the python code of that field. use below code in .py(python file): cr.execute('SELECT id FROM account_...

pgadmin not connect to openerp server and open the openerp than accour error

If you faces such below error pgadmin not connect to openerp server and open the openerp than occur error than follow these step to resolve this type of error 1- first update the postgresql.conf file in pgadmin go to this location /var/li...

Difference between user and daemon thread in Java

Difference between user thread and daemon thread: When we talk about multi-threaded programming then we talked about threads. And when we talk about threads, then the question comes the types of threads. So guys we mostly work on user thre...

Difference between slice and delete method in javascript

splice() : it is used to delete an item from an array that effects array length. delete() : it replaces the item with undefined instead of the removing it from the array. It means that it does not effect the array length. note:Instead of usin...

How to create Navigation Menu in AngularJS

In the example below, I have built a navigation menu. Here I am using Angular directives to set menu button, when I will click on menu button It will display just below navigation menu bar. <div id="main" ng-app> <!-- The navigat...

Spring OXM with XStream API

Spring with XStream : XStream is a simple library to serialize the Java object to the XML document and vice versa.We can use Spring OXM with XStream library for XML binding. The benefit of the XStream library over Castor is that XStream does not ...

Error occur when create new server in pgadmin

When Error occur to create new server in pgadmin than use these commond in terminal to resolve this type of problem in pgadmin 1-sudo -u postgres psql 2-sudo -u postgres psql template1 3-ALTER USER postgres PASSWORD 'newPassword';

What is difference between String and string in C#

C# defines number of alias names for CLR (i.e. Common Language Runtime) types. Technically, there is no difference between string and String, as string is just the alias name for System.String or String. System.String is a static sealed class, w...

Playing sounds in Android

Playing sounds in Android Copy your sounds in raw/ folder in res/ . If you do not have raw/ folder then make one by right clicking on res/ folder, click on Android resource directory and then giving directory name as raw and selecting resou...

How to handle IndexOutOfRangeException

"Handling IndexOutOfRangeException"     Before learning how to handle this exception, we should know why this Exception is thrown IndexOutOfRangeException:     This Exception is raised when we are ...

How to set the traceability fields in OpenERP(Odoo)?

In traceability fields first we have to go in .py file (Python file) After that we have to decide where we want traceability fields and then give start to end Path to that field.Use below .py code in python file: 'date': fields.date('Entry D...

How to use ng-src

Hi all, Here is an example, to how to use ng-src. It is basically used to use a path or source in a tag. If we are not using the ng-src then we will get just a path on our page on. controller.Js var socialApp= angular.module('socialApp...

Getting Mouse Click Event form a 3d GameObject in Unity

 We get a click event when we click a Button in UI , but how to get a click event while clicking on  a GameObject from our scene .  It is very simple .  To get a click event from a object , add a collider to that obje...

Reverse an array in Objective C

If you want to reverse an existing array in objc, you can do it this way. - (NSMutableArray*)reverseArray { if ([self.assetsArray count] == 0) return; NSUInteger i = 0; NSUInteger j = [self.assetsArray count] - 1; ...

Redirect to app settings in iPhone

If you want to redirect to app settings from your app then use below code to do it. Apple provides a list of URLs to redirect the app to its setting section. Here is the code :- In a Swift Program:- UIApplication.sharedApplication().ope...

How to manage amount interest provision in accounting in OpenERP(Odoo)?

In below example, I have written Python script to amount interest provision in accounting. Use below python code in your .py file : if demand.amount_interest: cfpline_obj.create(cr, uid, { 'origin': dem...

How to make the confirmation receipt through python code in OpenERP(Odoo)?

In below example, I have written Python script to confirmation receipt through python code. Use below python code in your .py file : 'partner_id': fields.many2one('res.partner', 'Partner', change_default=True, required=True, states={'confir...

How to inherit workflow in openerp

To Inherit workflow in openerp use this below code in worlflow.xml file in openerp <record id="module_name.act_done" model="workflow.activity"> <field name="wkf_id" ref="module_name.wkf"/> <field name="name">done&l...

How to give look and feel to TextView like EditText

In many applications we have to create form that contains both EditText and TextView. The look and feel of EditText and TextView are completely different. So for making the TextView appearance similar to EdiText we have to specified its style att...

How to Add a prefix to every URL in CakePHP?

Hello Reader! If you looking to fix a default language prefix for your all url in cakePhp then you can follow the steps which is the easiest and clean way :- Open file routes.php from the location Config/routes.php There in first line wri...

How to create workflow in openerp

To create workflow in openerp use these below step In academy.py file import academy.py In __openerp__.py file data:["academy.xml", "academy_workflow.xml"], In academy.py file class session(osv.osv): _...

How to make the loan/invest demand fields in OpenERP(Odoo)?

In below example, I have written Python script to loan/invest demand fields. Use below python code in your .py file : 'date_start': fields.date('Start Date', states={'confirm': [('readonly', True)]}), 'date_stop': fields.date('Matu...

Standard directory structure for angular

The directory structure is also an important part for any framework and you can manage and maintain properly. May be it is possible you have searched tutorials and examples for Angular directory structure. Directory structure always helps you ...

Routing in AngularJS

Hi all, Here is an example, how to use Routing. We can use .config() to configure $routeProvider and in the same file we define two controllers firstController and SecondController. Usually these controllers holds a lot of logic but for ex...

Android: Disable space and special characters in Edittext

Many times we have faced problems like we want to disable special and space character in edit text. So to prevent this we have a property called "android:digits", we have to list the characters which we want to allow in edit text. ...

Route Config in Asp.Net MVC

"Basics of Route Config in Asp.Net MVC"     Routing is one of the primary concern of MVC. In MVC we have to map URL to a particular Action method on a particular Controller, the Action Method is then executed and returns a...

How to remove 'provision' from selection list when configuring Cash Flow Codes in OpenERP(Odoo)?

In below example, I have written Python script to remove 'provision' from selection list when configuring Cash Flow Codes. Use below python code in your .py file : def fields_get(self, cr, uid, fields=None, context=None): res = super(accou...

Difference between save() and persist() methods

Difference between save() and persist() methods in hibernate: Using Hibernate framework to save object we mostly use two methods save() and persist(). Both methods fulfill the same purpose. What is the difference between save() and persist() me...

Responsive CSS Counter-Increment

Hello Reader's In this article I will guide you about the Responsive CSS Counter-Increment. As in example you can see the css counter counting itself. Here is the example below you can copy & paste the code. Here is the HTML <div...

Difference between Process and Thread in Java

Difference between Process and Thread : A process is an executing instance of an application, it can be seen as a program or application. It has it's own memory space and resources. A thread is a lightweight process, it can be seen as a part of a...

Pretty Print JSON Output in Jackson

**How to convert Java object to Pretty Print JSON :** Converting Java object to JSON is a little complex work in Java. We can use the third party api to make this easy. Jackson is one of the most popular api for JAVA JSON processing. Jackson ap...

How to bind onclick event function in JQuery

In the example below, I have created a bind onclick event function. when we will click on the button, element will dynamically added to DOM and it will bind the click event only to the elements that exist at the time of binding. To bind the cl...
1 241 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: