Monday, 31 August 2015

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 openerpimport openerp.addons.webfrom openerp.osv import fields, osvclass Binary(openerp.http.Controller):

For full blog about How to integrate the LinkedIn with OpenERP(Odoo)visit FindNerd.
You can also increase your tech knowledge through findnerd by giving answers of tech queries at findnerd's Tech Q & A Section.



jQuery .prop() vs .attr()

Jquery .attr():

    Get the value of an attribute for the first element in the set of matched elements.

    An attribute value may only be a string.

Jquery .prop():
Gets the value of a property for the first element in the set of matched elements.
A property can be of any type. For example, the checked property is of Boolean type.

For full blog about jQuery .prop() vs .attr() visit FindNerd.
You can also visit findnerd to ask tech queries related to Android,php,iPhone,Javascript etc.

Sunday, 23 August 2015

Thread States and Lifecycle in Java

Thread Lifecycle: Want to start the multithreaded programming? Before starting you need to know what is Thread and what is the life cycle of the Thread. Thread having different states and life cycle methods. To know about the thread you can Visit my last post Java Thread Example. Here we will talk about the life-cycle of the Thread.
Following are the states in the life cycle of the Threads :
  1. New: When we initialize the new thread using new operator, new thread is created and state is called New Thread. In this state thread is not active or running.
  2. Runnable: At the time when we call Thread.start() method, state of thread object changed to Runnable and it's now on OS that it when or how it will get CPU to run. In this state the control is given to Thread scheduler to finish its execution.
To View full blog about Thread States and Lifecycle in Java visit FindNerd.

Thursday, 20 August 2015

How can we resolve conflict between prototype and jQuery?

To resolve a conflict between jQuery and prototype, use below method



jQuery.noConflict



and using jQuery instead of



$('code').code;
jQuery.noConflict();
jQuery(function($)



To view the full code about How can we resolve conflict between prototype and jQuery? visit the link mentioned.
Also visit the javascript developer forum to ask questions related to java, or you can also post your queries in other programming languages like Android,PHP, Javascript, HTML etc. on ask tech query section.

Wednesday, 19 August 2015

Java Thread Example

Thread: Thread is a lightweight process. Thread requires less memory space and resources to create and exists in the process, thread shares data and resources of the process.
Every Java application has at least one Thread (main thread). There are some threads running in the background by default like garbage collector, memory management etc. But as a application's point of view we can create more then one threads as per our requirement.
Java provides two ways to create a thread programmatically.

For full blog about Java Thread Example visit FindNerd.

You can check more informative blogs and tutorials at java development blogs section and can also browse the java developer forum for posting and viewing latest questions on java development.

Tuesday, 18 August 2015

Difference between Service, Provider and Factory in AngularJs

In this blog we will discuss about the differences b/w services ,provider and factory in angular jS
a)Service-
This will return the actual function with an instance of the function.
Syntax-
module.service( 'serviceName', function );
b)Factory-
This will return the actual value returned by the function.
Syntax-
module.factory( 'factoryName', function );
c)Provider-
This will return the value returned by the $get function of the function.
Syntax-
module.provider( 'providerName', function );
TO read full blog about Difference between Service, Provider and Factory in AngularJs visit FindNerd.


Monday, 17 August 2015

Difference between get() and load() methods in Hibernate

What is the difference between get() and load(): The most important question for the interview's perspectives that what is the difference between get and load methods in Hibernate? Developers use both the functions when coding but most of them use them without knowing the pros and cons of these methods.
In this article we will try to make you understand the similarities and difference between hibernate load and get methods.

Similarities between load() and get() methods :
  1. The load() and get() both methods used to retrieve object (a row) from database.
  2. Syntax wise both load() and get() methods are same.
  3. load() method is older whereas get() is new, but both belongs to Hibernate API.
  4. load() and get() both methods belongs to Session interface.
To read full article about Difference between get() and load() methods in Hibernate visit Findnerd.
You can also ask questions and check your knowledge on Java by posting and giving answers of tech queries on our java developer forum