Community Posts

Last Updated: 2021-04-06
Submit a blog

Deploying WASM to Fastly's Edge

September 6, 2019 - https://burgers.io

Not so long ago, Fastly introduced a new platform for edge programming. Fastly’s vision is to use wasm to sandbox and run applications, which means that any language that can compile to wasm can run on their edge servers. The idea of edge functions is by no means new. Amazon does it with Lambda, CloudFlare has Workers, Google Cloud and Azure both call theirs Functions. To the best of my knowledge, Fastly’s offering is unique in its use of wasm, and this has enabled them to have really fast boot and response times. Read more about Deploying WASM to Fastly's Edge

Node.js on IBM i: Easy Peasy

June 5, 2019 - https://sobo.red

Node.js is on the rise in the IBM i ecosystem. People are taking notice, but there is still a misconception among some that Node.js and other open source software are difficult to install on IBM i. This article aims to show just how easy peasy it is to get Node.js installed, configured, and running fine on IBM i. Prerequisite This article assumes that you have yum installed and accessible on your IBM i instance. Read more about Node.js on IBM i: Easy Peasy

How to Pass Variables to a Partial Template in Hugo

April 14, 2019 - https://harmstyler.me

As a developer, I want to keep my code as DRY as is feasible for the given project. In a Hugo project, that’s where the Partial templates come in. Partials are smaller, context-aware components in your list and page templates that can be used economically to keep your templating DRY. Partials, however, have one serious limitation, they’re cached during the build of a given page (or scope). Once a partial has been created, no outside logic can adjust what the partial returns (for the page). Read more about How to Pass Variables to a Partial Template in Hugo

Hosting Hugo on Aws Cloudfront and Route53 Using Ansible

April 12, 2019 - https://www.shellrunner.com/

It’s really easy to to set up a website on AWS’s s3 service, but if you want to use a certificate (you do), it’s just a bit more work. With Ansible as my hammer, everything is a nail. Here’s a quick playbook I used to set up my site jxn.is to use cloudfront. This playbook creates the bucket, sets up an s3 website in the bucket, creates a cloudfront distribution with reasonable parameters, enables an existing Certificate Manager certificate on the site, and points DNS records at the cloudfront distribution. Read more about Hosting Hugo on Aws Cloudfront and Route53 Using Ansible

Getting Ec2 Instance Availability Zone With Curl or Powershell

March 10, 2019 - https://www.shellrunner.com/

I’m a big fan of AWS’s SDK’s and API tools because they’re so comprehensive and easy to use, in general, but I sometimes forget that there’s another good, even simpler API for getting data from some AWS resources… the magical http://169.254.169.254/ http endpoint! This endpoint provides read-only metadata about resources once you have access, and doesn’t require additional authentication. This is very handy, for instance, when a client gives me SSH or RDP access to an EC2 instance and I need to know its size, network info, or in this case what Availability Zone it is in: Read more about Getting Ec2 Instance Availability Zone With Curl or Powershell

Trying Out Hugo

February 8, 2019 - https://www.shellrunner.com/

I’ve been pretty heavily reorganizing and simplifying my life lately, so it was time to replace the tired old Wordpress blog at ShellRunner with something more deserving. Wordpress has been a great platform over the years, but as a constant target of attacks, it could also be a pain to keep up. Also, it’s much more fun to write my posts in Markdown, instead of in a browser editor. This is post #1 trying out Hugo, a fast static generator written in Go with a lot of features. Read more about Trying Out Hugo

Solving the "We were unable to load Disqus" Error

January 27, 2019 - https://justinsoderstrom.com

TLDR: Make sure you’re setting the category_id field in the Disqus load script to a valid value, or just don’t use it at all. Problem While migrating my blog over to GatsbyJS from Ghost, I ran into this peculiar error when trying to load Disqus. We were unable to load Disqus. If you are a moderator please see our troubleshooting guide This particular error was quite annoying because it gave no information on what actually went wrong. Read more about Solving the "We were unable to load Disqus" Error

How to Debug Entity Framework Migration Errors

January 21, 2019 - https://justinsoderstrom.com

Prerequisite In this article, I assume you have a working knowledge of the Entity Framework ORM and its migrations feature. If you don’t, take a look through Entity Framework documentation and its migrations section before continuing. Introduction If you’ve ever worked with the Entity Framework ORM for any length of time, then you’ve likely worked with its migrations feature. And more than likely, you’ve had to debug one (or many) of your migrations when trying to run an update-database through the package manager console. Read more about How to Debug Entity Framework Migration Errors