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

Search In

Javascript Round Function

The Round function return a value towards the nearest integer. Syntax:- Math.round(number) number is any numeric expression. If the fractional portion of number is .5 or greater, the argument is rounded to the next highest integer. If the fracti

How to write forward SQL query in cakephp2.x

We might be familiar with the cakephp simple feature which allows us to retrieve and save data in database using find() and save() functions respectively. But there is an another way of writing forward SQL queries in cakephp through which we can wri

Returning Multiple Values in Python using tuple?

# A Python program returning multiple values from a method using tuple # Function is defined that returns a tuple def fun(): str = "Demo" x = 20 return str, x; # Returning a tuple # Driver code to test above method str, x = fun(

Returning Multiple Values in Python using Dictionary?

# A Python program returning multiple values from a method using dictionary # Function is define that returns a dictionary def fun(): d = dict(); d['str'] = "Demo" d['x'] = 20 return d # Driver code to test above method d =

Sorting Tuple/List In Python

Hi All, In programming world, we have to perform some basic operation on list or tuple but in python , it is easy to perform any operation on list or tuple. for example:- If you have a number tuple/list like  data = [[1,10,8], [4,5,6], [7,8,

PHP 5 For Loops

There are two kind of for loops in PHP, one is for() loop & other is foreach(). The for() loop has three sections: init, termination & increment. Syntax: for (initialization; Condition Check ;increment) { code to be executed; } First

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 MVC to

TimelineLite in AS3

In starling we can easily used greensock library. Sometime we need to add two property at the same time on different objects, By using TimelineLite we can do this. here is the code which represents the following. var timeline:TimelineLite = new Tim

How to get images on Canvas from device

Step 1:- Create a custom CanvasView class that must extend View class and includes below function.   1) Declare the required variables in CanvasView class private Drawable mImage; // width and height of original image private flo

How to remove 'provision' from selection list when configuring Cash Flow in Odoo

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

1 21 217
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: