Jump to Content

Andrew M McCall

Web Development

Golang Create a Random String

Go’s rand package can help us easily generate a random string for when we need to ensure uniqueness with naming in our applicaton. We walkthrough the process of generating a random string using golang.

Go Channels Tutorial - Understanding Goroutines and Channels

Go has powerful concurrency tools fully baked into the programming Language. This post aims to explain go routines and channels so you can get started using them in your own projects.

Call, Apply, And Bind Methods In Javascript

Call, apply, and bind methods can be confusing for newer Javascript developers. In this post, we break down Call, Apply, And Bind methods for newer Javascript developers.

Vanilla Javascript Carousel Slider: A Beginner's Tutorial

Vanilla Javascript Carousel Slider: A Beginner Slider A photo or content slider is one of the oldest, but most popular design assets one can create with javascript. Many developers will reach for popular carousel frameworks such as swiper, slick, or photoswipe. Most of the time, you don’t need so much overhead. Let’s build a slider together and see how we can build a responsive slider without using a ton of a extra javascript.

Golang Image Resize and Golang Image Crop: Image Manipulation With Go Programming Language

An introduction to some of the very basic features of iamge cropping with Go.

How To Create A Website For Your Online Business: Small Business Website Guide

Why Do You Need A Business Website? A business website is one of the most important tools you can have for promoting your company online. It is a cost-effective way to reach out to potential customers and clients, and it can help you build a strong online presence. It can be used to showcase your products and services, provide information about your company, and even sell products and services online. If you are not sure where to start, there are many website builders and platforms that can help you build a professional website quickly and easily as well as a few DIY options.

Frontmatter Data And Hugo Templates: How To Output Data With Hugo Static Site Generator

Hugo makes quick work of small client jobs. It can even handle structured data like coffee shop menus or restaurant pricing. VIDEO: Creating A Coffee Shop Menu Using Frontmatter YAML and Hugo Creating A Hugo Homepage hugo new site my-coffee-shop && cd my-coffee-shop The first thing we are going to do is create a new Hugo website. In the config.toml file, we added a site title. We also need to make sure we create a index.

Golang Read Environment Variables From File: How To Do It [Code Snippets]

What Are Environmental Variables In Go A Cautionary Tale: My AWS Account Was Hacked And I Have A $50,000 Bill If you have ever used an API key or database connection string, you have most likely had a need to secure some sensitive data. Environment variables are a way to achieve this. We may need to do this because certain API’s can only be called so many times and the key is a way of authorizing our requests and keeping track of them.

Bootstrap A New Hugo Theme From Scratch [video]

A part of using Hugo is the freedom of making your own theme. In this tutorial, I will explain how to bootstrap a new Hugo theme so you can customize it exactly how you want to. I will go over verifying installation, creating a theme, telling Hugo how to use your new theme, and we walk through the very basics of setting up a theme so that the home page displays.

Install Hugo With Chocolatey Package Manager On Windows 10 [video]

Installing Hugo on Windows is easy with chocolately package manager. For those who are not familiar, Hugo is a static website generator that can help you manage blazing fast static websites with minimal effort. If you are on Windows, installing Hugo is easy using Chocolately Package Manager. Here are the steps we take. Directions To Install Hugo on Windows 10 With Chocolately Package Manager Navigate to chocolately package manager Click the “install” link which is located at the top right hand corner next to the light/dark toggle.