Digital Minimalism - Book Notes

I heard about this book while listening to numerous podcasts when it was first released. I was able to borrow it from the library last week and was quickly drawn into the ideas presented by the author, Cal Newport. The main premise of the book is the fact that technology...

Installing Open edX Ironwood Release

I've spent the last couple of days struggling to install the Ironwood release of Open edX in an Ubuntu 16.04 Virtualbox. After struggling with various issues, I came across this post in the General Open edX Google Group: https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/edx-code/cgMseEEKGAg/wgvld6EkAwAJ The following instructions worked for me to finally install a stable...

Running Python in the Web Browser

A significant part of the project I am currently working on involves executing code submitted by the user. Every bone in my body screams at the fact that the project will accept code from the user and then execute it. A good chunk of the past 20 years I’ve spent...

Serving a WASM file from Apache

I've been spending a considerable amount of time playing with WebAssembly the last few weeks. It is fascinating what is possible in the browser. One issue that I ran into with my Ubuntu Apache setup was an the following error message: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME...

Running a Subprocess from Python and Capturing the Output and Errors

This post is more of a "scratchpad" post than anything else. I wanted to try a different method of running racket code that did not include docker. After some experimenting, I came up with the following Python code: import subprocess output = subprocess.run(["racket", "a6q1_solution.rkt"], stdout=subprocess.PIPE, stderr=subprocess.PIPE) print(output.stdout) print(output.stderr) Everything in...

Accessing Services From a Docker Container on the Host

As part of my current project, I needed to call a Django web service that I was running on my host from a Docker container. I was unclear how to do this until I came across this Stackoverflow post: https://stackoverflow.com/questions/24319662/from-inside-of-a-docker-container-how-do-i-connect-to-the-localhost-of-the-mach

The Longevity Solution - Book Notes

Calorie Restriction / Fasting Has the potential to increase longevity and improve health Very difficult for most people to implement Can try to stop eating before you feel full (like the Okinawans) but most are unable to do this More practical may be to try intermittent fasting 12 - 14...

Open edX - Quick Tip - Clearing LMS Cache

A quick tip that I discovered when working with the LMS on devstack. I would make changes in the Studio but they would take forever to show on the LMS. Restarting the memcached container did the trick: docker restart edx.devstack.memcached You will need to sign back into the LMS, but...