JavaScript has had Async/Await for a couple of years, but more and more languages are getting these features

Photo Illustration by David Fekke

Originally published at https://fek.io.

Concurrency

Concurrency is becoming more and more important in today’s software. The reason is pretty simple. If you look at the processors that are being manufactured today, we are getting more and more transistors onto chips as well as more…


Developers trying to debug with Xcode and Safari may run into this crash

Photo Illustration by David Fekke

Originally published at https://fek.io.

I was running into nasty crash whenever I tried to debug the WKWebView in one of my iOS apps. It is a common practice among developers to debug using Safari while running JavaScript code in their WebViews.

I noticed several months ago whenever I had Safari running on my Mac, and I was running the debugger in Xcode, I would get a crash with the following exception.

It turns out there is a bug in iOS 14.5 and 14.6 that prevents developers from…


Find out how to use MDX instead of Markdown in your Gatsby Blog

Photo Illustration by David Fekke

Originally published at https://fek.io.

Currently Markdown allows authors to add HTML tags to their posts. One of the nice things about React is that it makes it possible for us to create components of a combination of HTML elements, and then reuse those elements in our React applications. …


Make your Tags linkable by creating a Tag template for your Gatsby Site

Image courtesy of Kyle Glenn on Unsplash

Originally published at https://fek.io.

Gatsby actually has the queries and code examples you need pretty well documented. I wanted to show how I used these on my site. The Creating Tags Pages for Blog Posts documentation describes the code you will have to write in order to add the tag linking and templates to your site. The code…


Use the Mutation Observer to watch and identify changes occurring to any DOM element

Photo courtesy of the National Cancer Institute on Unsplash

Nearly a decade ago I used to use jQuery for manipulating the document object model, or (DOM), in my web applications. jQuery has been supplanted in popularity by other frameworks like Angular, Backbone and React. These frameworks have become almost a standard for web development.

I ran into a situation a couple of years ago where I had to watch for changes to a particular DOM element, and remove any children that were being added by another framework inside of a WebView. …


Tags are an essential part of Web 2.0

Photo courtesy of Kyle Glenn on Unsplash

Originally published at https://fek.io.

When I setup my blog I never bothered setting up tags because I could never get them to show up in my GraphQL queries. Going through my build logs today I discovered what the problem was, I was using two different types of tags in my FrontMatter.

Frontmatter

FrontMatter is…


Find out how you can send email easily from Node.js

Photo Courtesy of Xavi Cabrera from Unspash

Originally published at https://fek.io.

Like many other HBO Max subscribers, I received an email titled “Integration Test Email #1” to the email I use for my HBO Max account. I decided to write a post about how you can send your own ‘Integration Test Email’ from Node.js. There are a couple of different ways.


Find out how you can easily create Hypertables in TimescaleDB

Photo from Wolfgang Hasselmann on Unsplash, illustration by David Fekke
Photo from Wolfgang Hasselmann on Unsplash, illustration by David Fekke

Originally published at https://fek.io.

In the previous posts I discussed how setup a dev instance of Postgres or TimescaleDB with Docker, and connect and query data from Node.js.

In this post we discuss TimescaleDB, and how to use it as an extension of Postgres.

TimescaleDB

TimescaleDB extends the functionality of Postgres by allowing a high volume of inserts and queries across a horizontally scalable version of Postgres. …


Gatsby makes it easy to serve static HTML files with your gatsby site

Photo Illustration by David Fekke

Originally published at https://fek.io.

Moving to Gatsby

As I was getting ready to start my next set of…


In this post we will look at creating tables and querying data from them in Node.js.

Photo from Wolfgang Hasselmann on Unsplash, illustration by David Fekke
Photo from Wolfgang Hasselmann on Unsplash, illustration by David Fekke
Photo courtesy of Wolfgang Hasselmann on Unsplash, illustration by David Fekke

Originally published at https://fek.io.

Read part one here.

In the first part of this series I wrote about how to get an instance of Postgres or TimescaleDB running and communicating with Node.js. In this post we will describe how tables and indexes are used to store and query data. We will also cover DDL, DML and DQL SQL statements.

Tables and Indexes

Relational database software is composed of specific database objects…

David Fekke

I am a software engineer and commercial pilot in jacksonville, Fl. I also produce videos for the Polyglot Engineer Channel on YouTube.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store