Golang + TFLite

Tensorflow Lite(TFLite) with Golang

Published in Analytics Vidhya https://medium.com/analytics-vidhya/tensorflow-lite-tflite-with-golang-37a326c089ff Tensorflow Lite commonly known as TFLite is used to generate and infer machine learning models on mobile and IoT(Edge) devices. TFLite made the on-device(offline) inference easier for multiple device architectures, such as Android, iOS, Raspberry pi and even backend servers. With TFLite you can build a lightweight server based inference application using any programming language with lightweight models, rather than using heavy Tensorflow models. As developers, we can simply use existing optimized research models or convert existing Tensorflow models to TFLite....

July 18, 2020 · 7 min · 1383 words · Dulan Dissanayake

Edge(Fog) computing and Tensorflow lite

For the past few years IoT has become the hot topic in the technology world. This led the evolution of Edge computing to gain momentum and introduced new technologies. In mid 2017 Google announced the Tensorflow lite, which is an advanced and lightweight version of it’s predecessor Tensorflow mobile(Google is planning to replace Tensorflow mobile with Tensorflow lite in future). What is Edge computing ??? Edge computing is a method of optimizing cloud computing systems “by taking the control of computing applications, data, and services away from some central nodes (the “core”) to the other logical extreme (the “edge”) of the Internet” which makes contact with the physical world....

June 20, 2018 · 3 min · 593 words · Dulan Dissanayake

Java Unit testing using JUnit @RunWith(Suite.class)

As developers we should start writing unit test cases, to be sure the unit of codes we have written works fine. Along with unit testing we can write functional test cases to be ensure our functionality works as expected. In this blog post i’m planing to explain how i used JUnit and selenium for an external OAuth login module. In my module I needed to support set of external account from different OAuth providers, such as google, facebook, microsoft etc … This module is responsible for provide a valid access token for different provider from an API exposed to external systems....

March 31, 2017 · 3 min · 535 words · Dulan Dissanayake

SSL Pinning in Android

In this post I would like to explain how to do the SSL Pinnig from Android. First of all we will get a little idea about what is SSL and Pinnig means. In this post I did referred the OWASP (Open Web Application Security Project) page, where we can gain knowledge in common security risks of our software. Mostly in client-server communication, we uses TCP/IP protocol. Based on TCP/IP there are application layer protocols, which are well known to the world(Such as HTTP, SMTP, FTP etc…) Widely used client-server communication protocol is HTTP....

March 16, 2015 · 5 min · 1052 words · Dulan Dissanayake

Android Linkedin SDK 1.0.0 Example

In a previous post, I have explained how to access the Linkedin API’s using Scribe. But luckily Linkedin have introduced their Mobile SDK for Android recently. This will save lot of times for developers and hope in the future will have lot of functions over the SDK. In this post I’m going to give some hints and important steps to integrate Linkedin SDK for existing linkedin integrated(Using Scribe) application. When using Scribe for OAuth authentication, linkein returned us an AccessToken and we saved that in shared preferences for future use....

March 8, 2015 · 2 min · 374 words · Dulan Dissanayake

Secure Android Application Development Tips

In Android Operating system, there are lots of security features which will protect your applications. The common security threat of Man in the middle attack, will help attackers to initiate an attack from a mobile application. This may of a small mistake like adding log of sensitive data. After development of an application it is better to do a Penetration testing. There are lots of tools and services for penetration testing and vulnerability testing....

February 28, 2015 · 6 min · 1263 words · Dulan Dissanayake

Android Linkedin API with OAuth Authentication (Using Scribe-Java Library)

As Linkedin is one of the professional social media network, most of us needs to access there web services to collect data. In this post I would like to give simple examples on how to get logged in user information such as email, full name, friends list. And I’m planning to update this post with the sending messages and share posts. There is no official SDK provided by the Linkedin developer support....

February 24, 2015 · 2 min · 325 words · Dulan Dissanayake

Android Event Bus Implementations using Otto

As android developers we face difficulties on decoupling different parts in android application. To overcome this difficulties, the Square has introduced an event bus for android called Otto. In this post I will demonstrate how to use Otto event bus with IntentServices in Restful android client. This code can be more optimized. This publish-subscribe style can be used to decouple many other components except the Services. This is just a sample implementation to demonstrate Event Bus concept with IntentService, except ResultReceiver usage with Services....

February 16, 2015 · 3 min · 482 words · Dulan Dissanayake

Searching For Bluetooth Devices

Bluetooth is a wireless protocol for exchanging data over short distances from fixed and mobile devices, creating personal area networks (PANs).When any two devices need to talk to each other, they have to agree on a number of points before the conversation can begin.The Bluetooth protocol is used to communicate with mobile devices in wireless media.It is a well known and popular technology that is being used by many mobile device manufactures....

January 29, 2009 · 2 min · 262 words · Dulan Dissanayake

Finding GPS using J2ME

The Global Positioning System (GPS) is a satellite based navigation system made up of a network of 24 satellites placed into orbit by the U.S. Department of Defense. GPS was originally intended for military applications, but in the 1980s, the government made the system available for civilian use. GPS works in any weather conditions, anywhere in the world, 24 hours a day. There are no subscription fees or setup charges to use GPS....

December 3, 2008 · 4 min · 802 words · Dulan Dissanayake