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; };
Tag: remove
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: In your notification bar, do a long press […]
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 […]
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 […]