Categories
JavaScript jQuery Web

JQuery Check if Checkbox is checked – Simple Solution

For a check box with the id “checkbox”, here is how to check if its checked:

$('#checkbox').is(':checked'); // Returns True if checked else False

Categories
JavaScript Web

JavaScript Basics: How to check for null & undefined

To check if a variable(a) has the value null, use the following code:

if (a === null) // Best way to do it!

if (a == null) // This does return true if a is null but it returns true also if a is undefined... so avoid it

To check if a variable(a) has the value undefined, use the following code:

if (typeof a === "undefined") // This works

if (a === undefined) // This works too

if (a == undefined) // This does return true if a is undefined but it returns true also if a is null... so avoid it

Categories
Android Apps FaceBook Solutions Web

How to Disable Facebook Links from opening in the Facebook App Browser

Facebook logo Español: Logotipo de Facebook Fr...Facebook recently update added a new feature to its mobile app. The feature loads all links clicked on Facebook to open in the in-app browser as opposed to a browser installed on the phone. While this is faster, it seriously limits what you can do with the open page (for eg. sharing is limited). But fortunately this feature can be disabled.

To disable it, do the following:

  1. In the Facebook app, goto Menu > App Settings
  2. In General Settings, you will find the “Always open links with external browser” option. Tap it to Enable it.
  3. Now your facebook app should behave just the way it did before the update.

Screenshots:
_20141117_204056 _20141117_204038

Categories
Android Open Source Solutions

Android: How to Set Mobile Data Limit

The official online color is: #A4C639 . 한국어: 공...
The official online color is: #A4C639 . 한국어: 공식 온라인 색은: #A4C639 . (Photo credit: Wikipedia)

If you are using Android ICS or above there is a simple way to keep track of your Mobile Data Usage.

  1. Go to Settings and select Data Usage.
  2. Drag the orange line and set it to approx 75% of your allowed Monthly data usage. When your usage crosses this limit a warning notification will be given to you.
  3. Drag the Red line and set it to approx 95% of your allowed Monthly data usage. When your usage crosses this limit your Mobile Data will automatically be disabled
  4. Set your data usage cycle based on when your bill cycle starts and ends.

Note: The Data usage of your phone may vary slightly from your carrier’s tracking(this is why we limit your usage to 95% of your quota)

Categories
Android Nexus 5 Solutions

Nexus 5: How to take Photos while recording Videos

The Nexus 5 is capable of taking live photos while recording a video. Here is how to do it:
{adinserter 2}

  1. Start recording a video using Google Camera
  2. While recording, simply tap the screen in the part showing the video to take a picture. A flash of white on screen will confirm that a picture was taken.

These pictures are limited by the resolution of video being recorded. If you are recording a Full HD video, the picture will be of the size 1920×1080 pixels