Blogs
Removing Objects from …
Finding and remove duplicate information in an array is a very common task. In JavaScript this is pretty easy using the .reduce() method. Let’s say we have a simple array of objects like this: const myArray = [{ first_name: 'brian', last_name: 'wayne', age: 36 },{ first_name: …
Useful Postgres / PSQL …
From the Command Line: Connecting to a Postgres server psql -h < host > -U < username > Connect to Database (Once connected to server) \c < database name > Read File into Database psql -h < host > -U < username > -f < filename > Listing Commands List Databases \l …
Calculating NodeJS API …
It’s important to have as much information about the speed and health of our applications when they are running in the wild. In this blog post I’ll show you how to create a simple response time middleware that calculates the total time it takes for your application to process a request. …