Google Yolo and Spring Boot 2.0 Authentication

Back in 2016, Google announced the "Open Yolo" project: You Only Login Once. It originally seemed to be an Android library but during Google's last Dev Summit in October 2017, Google released "One-tap Sign-ups On Websites and API Integrations" which brings Google Yolo to your website via JavaScript goodness. There's a very easy guide that … Continue reading Google Yolo and Spring Boot 2.0 Authentication

Advertisements

Nugget Post: Reactive Functions to parse nested objects

Note this article assumes familiarity with the Observer Pattern / Reactive Programming as described here: http://reactivex.io/ Some APIs return complex nested JSON objects. For example, take this cleaned up sample response from ElasticSearch (which incidentally is used to build the "Data Table" visualization): https://gist.github.com/dvas0004/8f3427955a5bb21213c864d30094d072 Note the structure of the object. Within the top level "aggregations" object … Continue reading Nugget Post: Reactive Functions to parse nested objects

Elasticsearch REST API: JEST upsert

I've already written about tips and tricks when using the Elasticsearch Java API. The Elasticsearch REST API has been going from strength to strength, and it seems that going forward the Elasticsearch team will focus more on the REST API than the native JAVA client. At the time of writing however, the official java REST library … Continue reading Elasticsearch REST API: JEST upsert

React JS : Tables in the browser

A good exersize while learning React JS was building a re-usable component that produces HTML tables given an arbitrary JSON array of objects in the form: [{'col1_name':'col1_value','col2_name':'col2_value'} , {'col1_name':'col1_value','col2_name':'col2_value'}] So a practical example of the above would be: [{'name':'dave','age':'12'},{'name':'foo','age':'19'}] With the resulting table being: Here's the reusable code (feel free to improve/include in your projects): … Continue reading React JS : Tables in the browser

Lessons Learned: CrossWalk and Enhanced Webviews

I recently had a problem (seems to be a very common one [1][2][3]) when building a hybrid HTML5 mobile app. As can be seen in this online demo (https://mobilehtml5.org/ts/?id=23), one can use the input html tag with type="file" accept="image/*" to quickly and easily bring up the user's camera if they visit the site from a mobile … Continue reading Lessons Learned: CrossWalk and Enhanced Webviews

BLE Health Devices: First Steps with Android

Bluetooth Low Energy (also known as Bluetooth v4) is the current standard in Bluetooth Technology. It is particularly interesting to me when applied to healthcare devices, for a number of reasons: No pairing necessary. These healthcare devices are normally handled by carers or vulnerable people who do not want to go through the hassle of … Continue reading BLE Health Devices: First Steps with Android

Nugget Post: Golang HTML Templates

Golang authors have an excellent article on how to build a wiki web application entirely out of go. Towards the middle of the article, they mention the html/template package. For those of you familiar with templating systems like jade, handlebars, or flask/jinja... you should feel right at home. In golang, templating needs no third party frameworks, no … Continue reading Nugget Post: Golang HTML Templates