IoT is really rocking now. My prediction comes true once again :-)


IoT as a technology is really rocking now. Almost every big player has started looking at this technology very seriously and started putting some efforts in their companies towards building an eco-system around this technology.

Recently Google announced its IoT products like Brillo OS and Weave communication platform in Google I/O 2015.

Huewai too announced its IoT OS named LiteOS recently. Apple already has this technology rolled out using the iBeacon which uses BLE for communication between the devices.

Lots of standards also being put in place like AllJoyn, Iotivity, O-DF & O-MI from open group and so on.

Not sure which one will WIN the race. But there are HUGE opportunities for business people as well as developer. I do see that in next 12-18 months every company job description will mention the word “IoT”, “CoAP”, “MQTT”, “BLE”, “ZigBee”, “Brillo”, Iotivity”, “AllJoyn” etc.

So everybody, get ready for the race in the world of IoT. Wish you all the best of luck for the success and build a billion dollar company using this technology.

Advertisements

Needed to know the number of days between 2 dates in java?


The two dates are kept as Date objects.

  1. Convert them to Calendar objects
  2. Clear the times of both to midnight
  3. Convert them to milliseconds since the epoch
  4. subtract the milliseconds
  5. divide by 86,400,000 (The number of milliseconds in a day)

Here’s the code from Uncle Bob’s website.



private int daysBetween(Date now, Date returnDate) {
Calendar cNow = Calendar.getInstance();
Calendar cReturnDate = Calendar.getInstance();
cNow.setTime(now);
cReturnDate.setTime(returnDate);
setTimeToMidnight(cNow);
setTimeToMidnight(cReturnDate);
long todayMs = cNow.getTimeInMillis();
long returnMs = cReturnDate.getTimeInMillis();
long intervalMs = todayMs - returnMs;
return millisecondsToDays(intervalMs);
}

private int millisecondsToDays(long intervalMs) {
return (int) (intervalMs / (1000 * 86400));
}

private void setTimeToMidnight(Calendar calendar) {
calendar.set(Calendar.HOUR_OF_DAY, 0);
calendar.set(Calendar.MINUTE, 0);
calendar.set(Calendar.SECOND, 0);
}

Want Quality Education? But for free of cost? Check this out…


The following are few best websites which you can rely on getting the best of education sitting at your desk. I have been using few of them for few months now. Wonderful to be part of these courses. Helps you do self-introspection on the quality of education you have received till date and helps you to learn international quality education. I would recommend these to any body going into colleges fresh as well as who has just passed out of college. Will be of great use for any body who wants quality education…

https://www.coursera.org/ (This is one of my favorite website)

https://www.edx.org/

http://nptel.iitm.ac.in/

http://www.ocwconsortium.org/