Blog

Advent of Code 2021 - Day 5

Sunday, Dec 5, 2021 by Barret Advent of Code 2021

Photo by Any Lane from Pexels I’m participating in the Advent of Code 2021. Here’s my solutions for Day 5 - Hydrothermal Vents. Going forward I’m combining the posts into a single post per day. Problem 1 Puzzles for Day 5 is about finding the intersections of lines plotted on a grid. In this case, we have a set of lines defined by the endpoints across a 1000 x 1000 grid.

Continue Reading

Advent of Code 2021 - Day 4, Puzzle 2

Saturday, Dec 4, 2021 by Barret Advent of Code 2021

Photo by Any Lane from Pexels I’m participating in the Advent of Code 2021. Here’s my solution for Day 4, Puzzle 2 - Let the Squid Win Problem Puzzle 2 for Day 4 continues the bingo game. This time we’ll let the squid win. So, instead of finding the first winning care, we’re going to find the last winning card. Solution All my solutions are written in C#. You can find all my solutions in my Git repo.

Continue Reading

Advent of Code 2021 - Day 4, Puzzle 1

Saturday, Dec 4, 2021 by Barret Advent of Code 2021

Photo by Any Lane from Pexels I’m participating in the Advent of Code 2021. Here’s my solution for Day 4, Puzzle 1 - Giant Squid Bingo Problem Puzzle 1 for Day 4 is all about bingo. A giant squid has attached to the sub… for a game of bingo. In this case, we’ll process a set of 100 bingo cards and then “call” numbers one at a time until we get a bingo on one of the cards.

Continue Reading

Advent of Code 2021 - Day 3, Puzzle 2

Friday, Dec 3, 2021 by Barret Advent of Code 2021

Photo by Any Lane from Pexels I’m participating in the Advent of Code 2021. Here’s my solution for Day 3, Puzzle 2 - Binary Diagnostic - Life Support Problem Puzzle 2 for Day 3 involves analyzing the same set of binary numbers from Part 1, but looking for a different analysis result. This time we’ll analyze the bits positions one at a time. For each one, we’ll reduce the pool of input data to only those who have a value in that position that matches either the most popular (Oxygen) or least popular (C02) value in that position.

Continue Reading

Advent of Code 2021 - Day 3, Puzzle 1

Friday, Dec 3, 2021 by Barret Advent of Code 2021

Photo by Any Lane from Pexels I’m participating in the Advent of Code 2021. Here’s my solution for Day 3, Puzzle 1 - Binary Diagnostic Problem Puzzle 1 for Day 3 involves analyzing some binary numbers that are output and using the frequency that a particular bit is 1 vs 0. For each bit position, we get the frequency across all the input data, then use that total to build two final binary numbers.

Continue Reading

Advent of Code 2021 - Day 2, Puzzle 2

Thursday, Dec 2, 2021 by Barret Advent of Code 2021

Photo by Any Lane from Pexels I’m participating in the Advent of Code 2021. Here’s my solution for Day 2, Puzzle 2 - Adding Aim Problem Puzzle 2 today involves reworking the commands from puzzle 1 to instead interpret the up/down to be an aiming value. And when you move forward, it also adjusts depth based on that aim (depth adjusted by forward * current aim). Solution All my solutions are written in C#.

Continue Reading

Advent of Code 2021 - Day 2, Puzzle 1

Thursday, Dec 2, 2021 by Barret Advent of Code 2021

Photo by Any Lane from Pexels I’m participating in the Advent of Code 2021. Here’s my solution for Day 2, Puzzle 1 - Dive! Problem Puzzle 1 today involves following a series of commands that will take you forward, up or down. Each line of input is a command, followed by a number in the form of : forward 10 Solution All my solutions are written in C#. You can find all my solutions in my Git repo.

Continue Reading

Advent of Code 2021 - Day 1, Puzzle 2

Wednesday, Dec 1, 2021 by Barret Advent of Code 2021

Photo by Any Lane from Pexels I’m participating in the Advent of Code 2021 (@adventofcode). Here’s my solution for Day 1, Puzzle 2 - Three Measurement Sliding Window Problem Puzzle 2 involves a more refined measurement of the depth readings by comparing measurements of 3 consecutive readings to the next 3. By that we mean, taking the sum of measurements 1, 2 & 3, and then comparing that to the sum of 2, 3 & 4.

Continue Reading

Advent of Code 2021 - Day 1, Puzzle 1

Wednesday, Dec 1, 2021 by Barret Advent of Code 2021

Photo by Any Lane from Pexels I’m participating in the Advent of Code 2021 (@adventofcode). Here’s my solution for Day 1, Puzzle 1 - Measuring depth increases Problem The elves have lost the keys to the sleigh into the ocean. Puzzle 1 involves reading depth measurements of the ocean floor to determine how quickly the depth increases. We need to determine from a list of measurements, how many of them are an increase over the previous measurement.

Continue Reading

From the Archives - Re-posting Old Blog Posts

Tuesday, Nov 23, 2021 by Barret Power Automate, flow, content

Photo by Lara Jameson from Pexels Once you’ve built up some content, one of the ways to keep your social media presence more active is to re-share your older blog posts. For long time followers, it can remind them of previous content. And it can help bring in new followers who didn’t see that content previously. If you’ve got a blog with an RSS feed that includes all of your content, then picking one at random to re-share is easy to accomplish with Power Automate.

Continue Reading

INTERESTED ?

I am available for part time consulting work. If you are looking for someone to help with Power Automate, SQL Server, Azure or .NET work, feel free to contact me.

Contact me