• Implement a RESTful interface with Android Things and Raspberry Pi (1/13/2017) - Android Things (formerly “Brillo”) is a streamlined version of Android designed for small form-factor and IoT devices. Here is a simple example of a Things app that provides a RESTful web interface to control the state of an LED on a Raspberry Pi GPIO port.
  • Lazy-loading content with angular-cli (1/12/2017) - A quick example of creating a lazy-loaded module with angular-cli.
  • Create reusable chart components with Angular 2 and D3.js version 4 (10/17/2016) - Integrate D3.js (version 4) with the Angular 2 component life cycle to create reusable charts and other visualizations that support animation and dynamic data.
  • Using Auth0 with Angular 2 and angular-cli (10/15/2016) - Auth0‘s standard Angular 2 quick-start uses SystemJS and loads the Auth0 Javascript files globally from index.html. That’s fine for demo purposes, but not ideal for production. I’ve created a github repo (and some additional notes in this gist) that demonstrates using Auth0 with an Angular 2 app generated with angular-cli. This example loads Auth0 as modules and […]
  • A “shrink-wrap” Python project template and development pattern (10/14/2016) - Javascript development certainly has its ups and downs, but one of the good things about its ecosystem is the ability to easily share projects and quickly get other developers up and running. With most projects, it is simply a matter of cloning the repo and running “npm install” and you are ready to go without […]
  • Python, LDAP and macOS (10/11/2016) - The Python LDAP packages (python-ldap and pyldap) mostly work on macOS, but if you try to use some options and APIs, you will run into trouble. For example:
  • RESTful Flask application quick-start (10/8/2016) -   With the rise of the single-page application (SPA) web front-ends and mobile apps, the backend of many web applications is a collection of RESTful interfaces that provide JSON data rather than generating HTML. The rendering is up to the client side. While there are some drawbacks to this approach (heavier client, slower initial page […]
  • Cmder tip: enable forward slash completion (10/7/2016) - Cmder includes better command-line tab completion – normally, paths will be completed using the default Windows path separator, the backslash (“\”). But Windows has recognized the forward slash (“/”) as an optional path separator for a while now and there are instances where this might be desirable, especially if you switch between Windows and Unix-like environments […]
  • Debugging pytest in VSCode (without adding files to your project) (10/5/2016) - For debugging pytest executions, the official VSCode Python extension documentation recommends creating an additional file in your project, e.g.: [crayon-592b15f098d19684031238/] and setting up a launcher to start the debugger against it. While this is simple, I really don’t like having to modify my project’s code or add source files just to satisfy my editor/IDE. So, to […]
  • Debugging a Flask 0.11 app in Visual Studio Code (10/3/2016) - Visual Studio Code with the the Python extension makes for a great Python development environment – especially if you work on blended Python/Javascript web apps. The Python extension includes a built-in template launch definition for debugging a Flask app, but it assumes you have an old-style “run.py” script in your project. If you are using […]