Two reasons why I uninstalled facebook application and Facebook messenger from my mobile

Reason 1

Facebook recently pushed an update of their application, which requires a lot of additional permissions.

I tried to upgrade facebook application on my mobile, and got worried to see the permissions they are asking to run this application.

Take a look at this picture. I took 4 screenshots and combined together to get a single image.

Have a closer look at the permissions which is marked in red. Continue reading

Set multiple css style properties in Javascript

In three different methods you can set multiple style properties to an element using javascript.

for example, consider, you want to apply colour, border colour and visiblity to an element with id myElement

Method 1

Method 2

Now, the above step is going to replace the existing inline style. If you want to keep existing inline style and add these styles additionally, here is the trick

Method 3

How to check if a javascript function exists or is defined?

To check if a Javascript function exists before calling it, try this:

If you want to reduce the number of strings hanging around in your code, try this instead

ARE YOU A DEFENSIVE DRIVER?

Defensive driving refers to adopting a proactive attitude and anticipating potential hazards instead of simply reacting to them. Here are a few techniques to help you avoid dangers proactively:

BE AWARE

Eliminate the potential distractions of cell phones, loud music and passengers who may distract you while on the road. Keep your eyes on the road at all times, and check your mirrors- internal as well as the external ones which collectively give you a complete panoramic view. Side vision is as important as your view of the front- do not put shades of sun film that can block your view of the sides. Continue reading

Link

http://www.thehindu.com/sci-tech/technology/gadgets/google-develops-contact-lens-glucose-monitor/article5585648.ece?homepage=true

Excerpts from news

The lenses use a minuscule glucose sensor and a wireless transmitter to help those among the world’s 382 million diabetics who need insulin keep a close watch on their blood sugar and adjust their dose.

The contact lenses were developed during the past 18 months in the clandestine Google X lab that also came up with a driverless car, Google’s Web-surfing eyeglasses and Project Loon, a network of large balloons designed to beam the Internet to unwired places.

The device looked like a typical contact lens when Otis held one on his index finger. On closer examination, sandwiched in the lens are two twinkling glitter-specks loaded with tens of thousands of miniaturized transistors. It’s ringed with a hair-thin antenna.

“It doesn’t look like much, but it was a crazy amount of work to get everything so very small,” Otis said at Google’s Silicon Valley headquarters. It took years of soldering hair—thin wires to miniaturize electronics, essentially building tiny chips from scratch, to make what Otis said is the smallest wireless glucose sensor ever made.

The Google team built the wireless chips in clean rooms, and used advanced engineering to get integrated circuits and a glucose sensor into such a small space.

It’s easy to complain about what’s wrong. It’s hard to come up with solutions to fix the problem. My former manager at LivingSocial said, “Be a problem solver, not spotter,” and I’ve taken this advice to heart in my everyday life. If you see a problem, don’t address the situation with what’s wrong; address the situation with an answer. If you don’t have a real solution, wait until you do. Sarah Ware, Markerly

Science Of Persuasion

“Secrets from the science of persuasion” by Robert Cialdini and Steve Martin offer some great tips for utilizing the power of persuasion and beginning to master a critical life skillset! It’s always great to have a starting point, and this video certainly provides a wonderful way to begin.

It is extraordinary when you think about it how much of our time we spend practicing the science of persuasion. With our peers at work, with our children, with our parents, with our friends…

Yet it is rare that we consciously think about getting better at this critical skill. While it takes a lifetime to get good at effective persuasion, this short video might be a great way to take the first step. Print out the six principles, stick them on your office wall, bathroom mirror, kitchen fridge and consciously try to get better.

  1. Reciprocation: People like (even feel obligated) to return favors
  2. Authority: People tend to look to experts for guidance. This can include precedent.
  3. Commitment/Consistency: People like to feel that they live and act in accordance with their values, that they keep their word.
  4. Scarcity: We tend to want what we can’t have. This makes the “fading or limited time offer” effective. In other words, “That which we obtain too cheaply, we esteem too lightly.”
  5. Rapport/Liking: If we like or care about others, we want to please them, say yes to them. People like to bond, to belong.
  6. Social Proof: The behavior of the group frequently guides individuals’ behavior. We look to others for clues on how to react.