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 “Two reasons why I uninstalled facebook application and Facebook messenger from my mobile”

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

document.getElementById("myElement").style.color = "#000";

document.getElementById("myElement").style.borderColor = "blue";

document.getElementById("myElement").style.visiblity = "visible";

Method 2

document.getElementById("myElement").style.cssText = "color: #000; border-color: blue; visibility: visible";

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

document.getElementById("myElement").style.cssText +=';'+ "color: #000; border-color: blue; visibility: visible";

Method 3

document.getElementById("demo").setAttribute("style",  "color: #000; border-color: blue; visibility: visible");

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 “ARE YOU A DEFENSIVE DRIVER?”

Google develops contact lens glucose monitor

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.

No Christmas

image

A viewing from a construction site near our apartment, on Christmas day.

To keep their families happy with good food and living environment, these daily wages workers cannot take a day off, even on Christmas Day.

There’s Something Wrong

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

Tea

I just had a cup of boiled water with added sugar and colour for Rs.10 from trivandrum railway station. They call it as TEA.