I have recently begun redecorating my room and a recent addition was a new set of frames. While the frames are nice, I am not the greatest fan of the default prints that have come with it! After struggling to find adequate prints of the desired size, I have come to the conclusion that I may as well use this as an opportunity to explore generative art and create some stills to print on my wall in the interim (until I find my desired prints).
In today’s tutorial, we are going to explore p5.js and slowly explore a generated sinusoidal…
ndb describes itself as “an improved debugging experience for Node.js, enabled by Chrome DevTools”.
It enables some of the best features of Chrome DevTools to become an ally when debugging Nodejs applications.
In a previous blog post, we went through debugging through VSCode. In this post, I will show how the profiler from ndb can help you identify and address bottlenecks where possible.
Install ndb globally, initialise a new project and create a new file for the example:
package.json, update the scripts to include a
We are going to calculate the Fibonacci number and…
VSCode comes jam-packed with some incredible tools to help you build your applications.
One such tool is the built-in debugger. This debugger can make life far easier when you are debugging Node.js applications!
In today’s post, we will create an incredibly simple Node.js application to sum two numbers and show how the debugger can be a powerful tool for help to run through your programs and identify issues.
We will initialise a new npm project and install jest from your root directory of choice and create some files to run things through:
Open your new
hello-vscode-nodejs-debugger folder in VSCode…
Today’s post will demonstrate how to have a script automatically run as a cron job on your Mac computer using
We will demonstrate by automating a simple script to add the word “hello” onto a new line every minute and showing how we can log out
stderr to a file after each run for our sake.
We will create a
.scripts folder at the root using to store our scripts to be used by
crontab and create a file
hello.sh to store our script:
Inside of the file
hello.sh, add the following:
The above does…
LocalStack provides an easy-to-use test/mocking framework for developing Cloud applications. In today’s post, we’re going to have a quick look at setting up LocalStack locally to work with their free tier AWS emulated products.
In particular, today’s post will have a quick look at emulating S3 buckets for local development.
Before getting started, it is required that you have the following on your machine:
Following the instructions on their README, we can use
pip to install the package.
In this post, we will set up DynamoDB for local development and learn how to use the provided UI to explore the data we work with.
Create a new project directory to work within.
Head to the AWS documentation page and download a version of DynamoDB into the project directory.
I will download the Oregon zip file.
Ensure to unzip the folder into the project directory. Within that folder, I am going to move the
DynamoDBLocal.jar file up to the project directory root (you can remove what is left of the folder after if you would like).
When building out a UI component library for my own work, I ran into a couple of pain points while searching for how to create a simple workflow that “just works.”
This tutorial will show you how to set up a…
Password protection for deploys can be a costly payment when hosting websites, particularly when you want to protect branch deployments.
In today’s tutorial, I am going to show you how you can set up your own simple authentication protection on these branches using Next.js 10 and Next.js Auth.
pages/api/auth/[...nextauth].js, add the following:
We are going to use
NEXTAUTH_PASSWORD to set up our basic environment variables.
The above will make a comparison, and if that comparison is correct, we’ll return the
user object which will just be a name of
admin and ID of
Next.js released an optimised image component that optimizes how images load on Next.js websites. In their own words: “Images are always rendered in such a way as to avoid prevent Cumulative Layout Shift, a Core Web Vital that Google is going to use in search ranking.” — Next.js image docs
In this post, we’re going to explore and play around with this new component to see it in action.
We will use
create-next-app build out the project:
For this particularly exploration, I went to Unsplash and chose an image to my taste.
In this case, I went with Florian…
Create a new Next.js 10 project by running
npx create-next-app i18n-example to create a new project name i18n-example.
We will run some other commands to set things up:
--legacy-peer-depsas there was a peer dependency of
react@^16.3.0and I was running npm v7.
Now that we have some files going, let’s get started with some basic content!
Follow on from the docs on getting started, we need to…
Senior Engineer @ Culture Amp. Tinkerer and professional self-isolator in 2020.