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

Search In

compact() or set() in cakephp

set() is the way to set values in your controller and get those values in your view file. Syntax of set is-> $this->set('variable','value') In cake-php controller you can set the values as - set('variable1','value1'); $this->set('varia

Merging Panda Dataframes

I have two dataframes. One is user(UserID, Name) and other one is rating (srcUserId, dstUserId, RatingValue). I have to merge these two dataframes such that in place of srcUserId I get the name of the user corresponding to userid from user dataf

Create many2one and one2many relationship in OpenERP

In OpenERP we can create many2one and one2many relationships between models very easily by creating many2one and one2many fields. You just need to declare a field in _columns and then using this field normally in the rest programming and views as we

Array and it's type in java

In this blog we will learn about array and it's type in Java. Array is defined as a collection of similar type of elements.          Array are seen as a collection of elements these elements belongs to sam

How to swap two variables in one line in python?

Python program to swap two variables in single line in python Python program to swap two variables in single line a = 5 b = 10 a, b = a, b print "Swapped values of a and b are", a, b Output Swapped values of a and b are 10 5 Explanation: Py

Computes the difference of two or more arrays with additional index check

If you want to compute the difference of two or more than 2 array with index means to compare 2 array with the index of arrays for this you can use the predefined PHP function "array_diff_assoc()". array_diff_assoc() compares array1 against array2 an

How to replace whole word with Word Boundaries in Java?

Sometimes we need to replace whole word with the word boundaries in a string. For this we use "\b" regular expression token which is called a word boundary. It usually matches at the start or the end of a word. Example: You just need to place the wo

RewriteRule that preserves GET parameters

In case of using simple RewriteRule directive our URL changes with the query string as well but if we want to use the existing GET parameters along with the new parameters appended we should use the flag [QSA].Using flag [QSA] appends the new query s

The use of mixer brush in photoshop - part 1

This tutorial is to explain,the use of mixer brush,the various properties in it and how we relate it to original/physical painting process.This tutorial divides in two parts,first one is about the info of that tool and in other we use that tool on a

Aynchronous Routing in ember js

It is not possible to have two db queries in model hook of ember js router. You can either create two router files- one for fetching the new records from database and the another one for fetching record. That is not a good approach to create two ro

prev 1 2 187
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: