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

Search In

What is Thread pool in Android and how to use it ?

Thread pool basically manages the pool of worker thread or it manages the collection of runnable and worker threads execute Runnable from queue. Here is an example of creating threads 20 times and calling its runnable methods like this : public cl

How to check if audittrail rule apply in super admin mode in OpenERP/Odoo ?

Step-1 Go to audittrail module. Step-2 audittrail->audittrail.py. Step-3 After that used below code in audittrail.py file. if self.check_rules(cr, SUPERUSER_ID, field_obj._obj, method): x2m_model_ids = pool.get('ir.model').se

Find the maximal of maximum sum of contiguous subarray by deleting no more than one elemnent?

You're given an array of N integer numbers. The maximal sum of the array is the maximal sum of the elements of a nonempty consecutive subarray of this array. For example, the maximal sum of the array [1, -2, 3, -2, 5] is 6 because the sum of the

SQL Outer-Right Join

2) Right Outer Join -> It is also known as Right join . In right join all the content of right table will come in resultant and from the left table only matching rows will come . If no rows is matched from left table then null value will be return

How to define many2many field in OpenERP/Odoo ?

If you want to define many2many field in OpenERP use like below code - class test (osv.osv): _inherit='sale.order.line' _columns={ 'product1_cat':fields.char('product academy'), 'product&_cat':fields.many2one('produc

Difference between java and c++

JAVA 1) Java is completely an object oriented language. 2) Java does not have template classes. 3) Java supports multiple inheritance by the use of interface. 4) Java does not support concept of pointers. 5) java does not have header files C++ 1)

String Comparison using equals() and equalsIgnoreCase():

equals() and equalsIgnoreCase(): Both are used to compare two strings for equality and both methods are of String class. equals() general form: boolean equals(Object str) It returns true if the invoking string and the string passed in the equals

How to pass a function as a parameter in JavaScript?

In Javascript it is possible to pass a function as an argument to another function just like we pass a normal variable to a function. Suppose i have a requirement that i want to call 2 functions one after the other and the second function has to be

what is difference between array_merge and array_combine in php

Array_merge Array_merge  merges the elements of two or more array in one array such that the value of second array is appended to the value of first array. If two or more array elements have same key, then the later value will overrides the pre

Compare two strings by comparing the sum of their letter-Values

Description: Compare two strings by comparing the sum of their letter-Values (char-Value). For comparing treat all letters as UpperCase. Empty and null-Strings should be treated as they are equal. If the string contains other characters than letter

1 11 423
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: