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

Advertisements

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

Nugget Post: Golang: RPC server/client implementation

As part of my efforts to learn golang, I attempted to write a simple RPC server / client implementation. Between gobs (see my previous post) and the RPC implementation, golang makes it very easy to build a distributed system where servers and client share not only data via gobs, but also methods and functions via … Continue reading Nugget Post: Golang: RPC server/client implementation

Android NFC access card reader demo

What if your company/client has rolled out an access card system... You know, the sort that you swipe your card across a reader, it beeps green and doors open... and you'd like the same functionality for your mobile apps? Something like, the user swipes their card, and an app opens, detects the user, and displays … Continue reading Android NFC access card reader demo

Playing around with the SB1, HTML and Javascript

Seems i'm on an HTML5 / Javascript streak this week. I've been testing and checking out the capabilities of the SB1 device from motorola. This nifty device comes packed with HTML5 and javacript, from rhoelements (previously known as rhodes), and can do quite a bit of things....Looking forward to building a production app with this … Continue reading Playing around with the SB1, HTML and Javascript