[ POPULAR STORIES ]

CATCH UP THE POPULAR STORIES

Location – Latitude/Longitude (Lat/Lon) to Degrees Minutes Seconds (DMS) Conversion – JavaScript

Sample JavaScript Program: function truncate(n) { return n > 0 ? Math.floor(n) : Math.ceil(n); } let getDMS = function (dd, longOrLat) { let hemisphere = /^[WE]|(?:lon)/i.test(longOrLat) ? dd < 0 ? "W" : "E" : dd < 0 ? "S" : "N"; const absDD = Math.abs(dd); const degrees = truncate(absDD); const minutes = truncate((absDD -… Read More »

Read more
Alternative text

Elasticsearch Java API – Get Type List from given Index

The following is sample Java program to get the list of type for a given index name in an Elasticsearch instance. Sample Program: package com.report.test; import java.util.ArrayList; import java.util.List; import java.util.concurrent.ExecutionException; import org.elasticsearch.action.admin.indices.mapping.get.GetMappingsRequest; import org.elasticsearch.action.admin.indices.mapping.get.GetMappingsResponse; import org.elasticsearch.client.Client; import org.elasticsearch.client.transport.TransportClient; import org.elasticsearch.cluster.metadata.MappingMetaData; import org.elasticsearch.common.collect.ImmutableOpenMap; import org.elasticsearch.common.hppc.cursors.ObjectObjectCursor; import org.elasticsearch.common.settings.ImmutableSettings; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.common.transport.InetSocketTransportAddress; public class SampleProgram{ public static… Read More »

Read more
Alternative text

NFC Ring – Unlock smartphones, door locks and transfer information

      Smartphones are making our way easy to go. Most of the people use smartphone particularity for communication. It doesn’t matter whether we  call, message, transfer media content, photos or any other. The communication happens through radio signals. Bluetooth technology is one of the technology which lead way to next generation communication standard NFC(Near Field Communication). What is NFC? It is a set… Read More »

Read more
Alternative text

Samsung Galaxy S4 – Its a Superphone!!!

            We live in a mobile world.We travel a lot. We always want to be connected with other. Smartphones are one choice which makes it. But how about a super smartphone which replaces desktop, laptop, tablet, iPod  camera etc. We have all the above mentioned electronic products in one form Samsung Galaxy S4… Read More »

Read more
Alternative text

Samsung Galaxy Grand – A Powerful Beast at Better Price

            Everyone wants to own a high end smartphones like Samsung Galaxy S3, iPhone, Xperia Ion which costs more than Rs 30,000($600). Is it really worth having such costly mobile for normal use? Instead you can go for Samsung Galaxy Grand,a dual sim phone which is priced Rs 21,500 in… Read More »

Read more
Alternative text

[ LATEST STORIES ]

CATCH UP THE LATEST STORIES

[ SUBSCRIBE TO OUR BLOG ]