
Search In
1> 'each' will loop through each element of the array and evaluate whatever is return inside the block, but it returns the original array without any change.
a = [5,10,15,20]
=> [5, 10, 15, 20]
a.each {|t| t+2}
=> [5, 10, 15, 20]
a.each
To shuffle(randomize) an array in javascript, there is an algorithm called Fisher-Yates devised and Don Knuth popularized algorithm.
Below is the code for using it:-
Arr.prototype.shuffle = function() {
var input = this;
for (var i = input
Android provides Cursor interface to get all calls logs. A cursor interface provides read-write to get the result set by database query.
Here stringOrder query will access phone calls date wise in desc order.
Cursor loader basically perform queries
Store Procedure:-- These are set of SQL Statements which are grouped in such a way that they execute to do a certain task and make processing of our application fast.
Advantages:- They are stored in precompiled format and therefore are fast.
Only
The social media saga
The previous year was distinctly different in the social media domain. Platforms like Pinterest, Instagram,Stumble Upon and a few others rose up to challenge the dominance of Facebook and Twitter. But the platform to gain most
There are many advantages that can be gained by using tools to support testing. They are:
Reduction of repetitive work : Repetitive work is very boring if it is done manually. People tend to make mistakes when doing the same task over and over. Exam
Sometime we do need to send additional data while sending Push-notification on iPhone , this can be easily achieved by adding following line to your code. But one should keep in mind that apple does have a limitation of 144 character while sending a
Hello all, Below is the process to create Line Items in DPP (Double Click for Publishers),
To create a line item first you need to create an order if the order is already created then you don't need to do that, else every time whenever you have new
Hi guys ,
Here is a quick help of saving a class on parse cloud.
Download Parse FrameWork.
Import it.
ParseSave.m
NSMutableDictionary *dict=[[NSMutableDictionary alloc]initWithObjectsAndKeys:[data objectForKey:@"Id"],@"Id",[data objectForKe
Rotating and zooming a view is a pretty simple task. This blog shows how rotate and zoom a view by implementing UIPinchGestureRecognizer and UIRotateGestureRecognizer.
1. Add pinch and rotate gesture recognizers to the target view. (Gesture recogni
