Categories
JavaScript Web

JavaScript Remove duplicates from Array – Example Code

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;
};

Categories
Android Apps Nexus 5 Solutions

Android – How to remove Unwanted App Notifications

Wishing You a...
Wishing You a… (Photo credit: premasagar)

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:

  1. In your notification bar, do a long press on the unwanted App Notification.
  2. You should get a pop up option “App info
  3. Tap on App Info and you will be taken to the App Info page of the App
  4. Here Uncheck “Show Notifications” and hit OK in the confirmation box.

Now you should be free of unwanted notifications in future 🙂

Categories
Android Apps Solutions

How to Remove Picasa Albums from Gallery (and stop Sign In requests) – Android

Image representing Android as depicted in Crun...
Image via CrunchBase

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:

Categories
Android Nexus 5 Solutions

How to Insert Sim Card in Nexus 5?

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).

Categories
Chrome Firefox Open Source Solutions Web

Deleting specific Cookies in Firefox & Chrome

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:

  • Click on Tools, then Options (or Edit | Preferences on Linux)
  • Select Privacy
  • In the Cookies panel, click on Show Cookies
  • To remove a single cookie click on the entry in the list and click on the Remove Cookie button
  • To remove all cookies click on the Remove All Cookies button
  • Voilà, you are done 🙂

Chrome:

  • Click the “wrench” icon on the browser toolbar (usually on the right extreme)
  • Click the Under the Hood tab.
  • Goto the Content settings in the “Privacy” section.
  • Click the Cookies tab in the Content Settings dialog that appears.
  • Click All cookies and site data to open the Cookies and Other Data dialog.
  • To delete all cookies, click Remove all at the bottom of the dialog.
  • To delete a specific cookie, select the site that issued the cookie, then the cookie, and click Remove.
  • Voilà, you are done 🙂