jamesingold@home:~$

  • Split Large Files into Lines with NodeJS

    Splitting a file into lines is pretty straight forward when working with smaller files, however larger files can run into memory issues. The convenient way to split a file into lines with NodeJS is to use fs.readFile and then split it by the newline character. You can even make it...

  • Using Binary Files in AWS Lambda

    I struggled for a few hours trying to run a binary file in an AWS Lambda function. I kept getting “cannot execute binary file”. I tried all sorts of fixes such as giving the file execute permissions and moving the file into the writeable tmp directory in Lambda to reapply...

  • Deconstructing an Object Relationship Mapper (ORM) in Typescript

    Deconstructing a Typescript ORM - Mapping Objects - Part 1 Have you ever wondered how an ORM works? After working through rolling my own lightweight Typescript ORM, I have some answers. We’re not going to talk through building a full ORM in this article but we will set up a...

  • Amazon Cognito MFA with Email Using Lambda Triggers

    Amazon Cognito is a great service for easily getting started with authentication. It also has multi-factor authentication (MFA) right out of the box using a cell phone for SMS or a TOTP (Time-based One Time Password) device such as Authy or Google Authenticator. The requirement that I had was to...