" Hi my name is Lee.
I'm a writer an engineer a trainer and a public speaker.
I create fixes & I fix headaches...
Welcome to my dev blog."

Blog

Tutorial: Full-stack JavaScript for the Enterprise. Getting started with: Ext JS, Node.js, Express, MongoDB and Docker. (1)

Posted on in 

This is part I of the tutorial, and covers: JavaScript on the client.

Yeah you are correct, when you have a web project, optimized for production, you can use FTP and simple upload the folder on your server. That’s easy, and when you only have a simple HTML5/JS/CSS app, or an application with a PHP back-end on Apache this probably works fine for you. But what, if you have a very complex application, or you are working on an application with a large team? You probably want to automate as much as possible, and make every live build easy. This tutorial will show you, how you can create an app where we will use JavaScript on the client (an Ext JS 6 app), and JavaScript on the server (Node.js with Express).

Read More

Asynchronous JavaScript: Promises

Posted on in 

JavaScript is single threaded, causing code to execute from top to bottom, so two bits of code cannot run at the same time. For example, you might download a JSON file from an (external) server and you’d have to wait until you retrieve that file. Instead of blocking the thread, there are ways you can streamline this code execution by using asynchronous JavaScript.

Read More

Connect & play around with BB-8 by Sphero with JavaScript on a Mac

Posted on in 

I’m a huge Star Wars fan, and like most of you, i’ve seen The Force Awakens as well. I immediately felt in love with BB-8. The little white orange droid. So you can imagine, how happy I was, when I opened my christmas presents, and found the little BB-8 by Sphero droid in a box. BB-8 by Sphero, is a little toy robot that you can control with apps for Android and iOS, via bluetooth. Actually the sphere is the true robot, BB-8’s head is attached to the big sphere, via a magnet, and it has little wheels so it always stays on top, and gives it the Looney Toones Road runner look, while rolling. Cute.

This little droid has the following functionalities; it can roll around (quiet fast,), it can listen to your voice (via the app), it can show colors, it has IMU, 3 axis accelerometer, 3 axis rotation gyro and locator sensors. The BB-8 uses a Bluetooth Low Energy (LE) interface, also known as “Bluetooth Smart” or “Bluetooth 4.0/4.1”.

What’s really awesome is that Sphero opens up their APIs, so developers like me, can play around with this. And that’s great. There are SDKs for Android, iOS, Windows development, and there’s a JavaScript SDK! Since I’m a JavaScript lover, I thought, let’s give it a go, and try this out myself.

Read More

Make your mobile webapp work offline with application cache

Posted on in 

This tutorial will help you to put your mobile webapp offline.

Read More