Project Euler Problem 22

Posted on Thu 12 December 2019 in programming • Tagged with python

This is a short post, showcasing my solution to problem 22 on Project Euler. I worked on this problem over lunch with a few co-workers, and they found the solution useful. If you find this article, I hope it is useful to you as well.

The prompt for this exercise …


Continue reading

Breaking my Advent of Code 2019, day 1 solution

Posted on Wed 04 December 2019 in programming • Tagged with python

The Advent of Code 2019 challenge is open. These are my solutions to the problems presented on day 1.

Part one

Asks us to figure out how much fuel is required to lift a given spacecraft module if we know its' mass.

import math
import sys

def calculate_fuel_cost(mass):
    return …

Continue reading

Vim folds helped me write a markdown presentation

Posted on Wed 27 November 2019 in Programming • Tagged with vim, markdown

Vim. For a program that was released in 1991, I am still amazed at the vast amount of features that I both know, and have yet to learn.

One such example are folds. In vim, folds are a concept that allows you to collapse parts of code based on rules …


Continue reading

Gotta Go Fast

Posted on Mon 25 November 2019 in talks • Tagged with go

A project at work requires that I learn Go, so I put together a few talks on the essentials of the Go language.

Part one can be found here

Part two can be found here


Continue reading

Write readable code with object destructuring

Posted on Fri 15 November 2019 in programming • Tagged with javascript

When I started writing Python, I quickly fell in love with keyword and keyword-only arguments because I realized they could make my code much more readable and robust. When I started writing Javascript, I was disappointed that there was no such thing. Until I read about object destructuring.

What is …


Continue reading

Using a database | large data

Posted on Tue 05 November 2019 in programming • Tagged with python, data

This is part of a series of articles on how to work with large data

The first method I want to explore when working with large data, since we cannot use RAM, is to use a database for our dataset. Databases are a staple of data processing and analysis, and …


Continue reading

How to work with large data

Posted on Mon 04 November 2019 in programming • Tagged with python, data

Here's a question: how do you analyze data that is too big to fit into memory?

Those of you that have worked with pandas before are probably intimately familiar with the following syntax, which reads csv file into a DataFrame variable

import pandas as pd
df = pd.read_csv('dataset.csv …

Continue reading

Embracing Javascript

Posted on Fri 28 June 2019 in programming • Tagged with javascript

I have a confession to make; I don't know javascript all that well. As a developer whose strengths lie primarily in back-end work, I've always held the language at arms' length, relying on it only when absolutely necessary. All that is about to change, because I am finally embracing javascript …


Continue reading

Heroes of the Storm Game Analysis

Posted on Tue 20 November 2018 in programming • Tagged with python, data

The HOTS Logs website (https://hotslogs.com) has an API with a data dump of the past 30 days' worth of replays.

https://www.hotslogs.com/Info/API

It's an automated version of this reddit post:

That being said, this information is incredibly awesome! What kind of information can be gleaned from it?

Pets of Seattle

Posted on Thu 04 October 2018 in programming • Tagged with python, data

Seattle has a reputation for being a pet friendly city. By some estimates, there are more dogs in the city than there are children, an impressive feat for a place as populous as Seattle. Seattle's open data portal contains, among other things, information on licensed pets.

Awesome!

Let's explore the kinds of insights that can be found by looking at this data.


Continue reading