Here is the code to remove duplicates from an Array:
var distinctVal = function(arr){
var newArray = [];
for(var i=0, j=arr.length; i<j; i++){
if(newArray.indexOf(arr[i]) == -1)
newArray.push(arr[i]);
}
return newArray;
};
Here is the code to remove duplicates from an Array:
var distinctVal = function(arr){
var newArray = [];
for(var i=0, j=arr.length; i<j; i++){
if(newArray.indexOf(arr[i]) == -1)
newArray.push(arr[i]);
}
return newArray;
};

Unwanted App Notifications are a pain. Also If you didn’t know, these notifications can also be a big battery drain.
Fortunately if you are on Android version 4.1 or higher there is a simple way to permanently remove an app’s notifications. Here is how you do that:
Now you should be free of unwanted notifications in future 🙂


Update: This solution also removes the annoying sign in request from Picasa that is seen on some android devices.
When you first start using an Android phone it will request you to sign in to a Google account. Doing so automatically triggers a process that syncs your data and photos from your phone to your Google account and vice versa. This synchronization also downloads all your old Picasa web albums to your phone.
While this is a useful feature at times, it tends to be a problem when you really don’t want those pictures on your phone or need to save the space on your phone. Then it makes sense to disable this feature. Here is how to do it:
To make calls and use mobile Internet on your Nexus 5, you will need to insert an active micro SIM Card. If no card is inserted, the message “No SIM card” appears on the phone’s lock screen.
To insert the sim card you will need to eject the SIM card tray or slot. This is located in the right hand side of the phone. The eject button is a small hole just below the tray door(on the top below the Power on button).
Sometimes when websites are updated,they tend to change the way they manage cookies. What happens then is that there is a small possibility of certain parts of the website not functioning as the old cookies remain in the browser. In those cases the best approach is to remove the errant cookie and let the website recreate the cookies.
Here is a quick tutorial on how to do that:
Firefox:
