Publications by Posts | Joshua Cook

Favorite apps on my Mac

11.02.2024

Will do a separate post on command line setup and tools. VSCode is in the list and I’ll do a separate post on the extensions I have installed. For each application, I have indicated the price with one of the following icons1 – , , – indicating “free,” “free (with a premium tier),” and “paid,” respectively. Additionally, I have no...

4907 sym 18 img

Quickstart for playing with LLMs locally

31.01.2024

With so much hype around LLMs (e.g. Chat-GPT), I’ve been playing around with various models in the hope that when I come up with a use case, I will have the skill-set to actually build the tool. For privacy and usability reasons, I’m particularly interested in running these models locally, especially since I have a fancy MacBook Pro with Apple ...

6254 sym Python (1710 sym/7 pcs)

Leveraging generic type hints of classes in Python

18.06.2023

Introduction Python, a versatile and dynamically-typed language, gained significant enhancements with the introduction of type hinting in Python 3.5. Often though, there are cases where the specific type of an input and output of a function are not known, just that the types are the same. This is where generic type hints come in. There are cases wh...

4303 sym Python (838 sym/5 pcs)

Dirichlet Regression with PyMC

09.11.2022

I want to apologize at the top for the general lack-luster appearance and text in this post. It is meant to serve as a quick, simple guide, so I chose to keep it relatively light on text and explanation. Introduction Below, I provide a simple example of a Dirichlet regression in PyMC. This form of generalized linear model is appropriate when mod...

3780 sym Python (4508 sym/12 pcs) 6 img 2 tbl

Photo Zoom Animator in iOS

13.08.2019

This was an experimental iOS app explaining how to make a custom interactive transition (to use in my PlantTracker app). The goal was to replicate the transition used in the native phone app. I did my best to document the process here. Final Result Resources I used the SnapKit library to make the contraints on my views. This GitHub repository (a...

20558 sym Python (14254 sym/40 pcs) 6 img

Photo Zoom Animator in iOS

13.08.2019

This was an experimental iOS app explaining how to make a custom interactive transition (to use in my PlantTracker app). The goal was to replicate the transition used in the native phone app. I did my best to document the process here. Final Result Resources I used the SnapKit library to make the contraints on my views. This GitHub repository (a...

20563 sym Python (14254 sym/40 pcs) 6 img

Cutstom Plant LED Lights

14.08.2019

Due to the drastic differences between the natural environment of lithops and Boston, I have to grow the plants indoors and under artificial light. Below is to documentation of how I built my set up. The lights are setup and running, though I am still in the process of assembling the hanging mechanism. Materials Lighting Cree XLamp XP-G2 High Po...

8859 sym 22 img

Cutstom Plant LED Lights

14.08.2019

Due to the drastic differences between the natural environment of lithops and Boston, I have to grow the plants indoors and under artificial light. Below is to documentation of how I built my set up. The lights are setup and running, though I am still in the process of assembling the hanging mechanism. Materials Lighting Cree XLamp XP-G2 High Po...

8875 sym 22 img

Find the intersection of overlapping histograms in R

14.08.2019

Here, I demonstrate how to find the point where two histograms overlap. While this is an approximation, it seems to have a very high level of precision. Prepare simulated data I created two data sets, gamma_dist and norm_dist, which are made up of a different number of values sampled randomly from a gamma distribution and normal distribution, res...

2021 sym R (1354 sym/5 pcs) 4 img

Find the intersection of overlapping histograms in R

14.08.2019

Here, I demonstrate how to find the point where two histograms overlap. While this is an approximation, it seems to have a very high level of precision. Prepare simulated data I created two data sets, gamma_dist and norm_dist, which are made up of a different number of values sampled randomly from a gamma distribution and normal distribution, res...

2021 sym R (1354 sym/5 pcs) 4 img