Well, a warning is a warning and this is a harmless one. I for one do not like seeing warning icons beside my XML files in Eclipse. I find them annoying.

To clear this warning message, go to Windows > Preferences > XML > XML Files > Validation.

There is an entry there under the group Validating files called No grammar specified. Change the dropdown value from Warning to Ignore.

Voila! No more warning message!

This is the best 1 liner answer I found in the Internet to check if an array’s item or value or however you may call it exists in another array.

Using the function array_intersect(), you can achieve this. User lorenzo-s from Stack Overflow gave this 1 liner code that did the trick.

Do note that array_intersect() is case sensitive.

Samsung Galaxy S 4 has made it known that is has quite a number of sensors inside its Galaxy S4 smart phone. Some of these include the on board barometer and temperature/humidity sensor.

Samsung has revealed that there are a total of nine sensors on board its latest flagship smartphone and detailed their roles in phone’s features via an info-graphic (photo from Sinful Android).

Most of the modern smartphones come with some common sensors like accelerometer, gyroscope, magnetometer and proximity sensor, which are necessary to provide some practical features, but Samsung has taken it to a whole new level.

Despite these number of sensors, the battery-backup of the phone will not be affected.

Related Posts Plugin for WordPress, Blogger...