I enjoy researching and designing solutions. I’m sharing what I learn along the way.
Projects
<jamilghar.com> A recipe blog I run with my wife.
<groupprojections.com> Run projections for sports group/league tables
I enjoy researching and designing solutions. I’m sharing what I learn along the way.
<jamilghar.com> A recipe blog I run with my wife.
<groupprojections.com> Run projections for sports group/league tables
I manage the build process for Android applications. Part of the process automatically updates the version of the application in various build.gradle files. In a Jenkinsfile, a list of file paths are passed into a for-loop in which the find-and-replace sed command is run to set the new version number. Sed for Find-and-Replace Sed is a library used for performing all sorts of text operations, which makes it very handy for scripting related work....
To count the number of increases in depth, this function iterates over the given input and checks to see if the previous number was smaller than the current one. If so, the counter gets incremented. At the end, the value of the counter is printed which refers to the total number of times that the depth measurement increased. def day1(): input_file = open("day1/day1-input") lines = input_file.readlines() counter = 0 for index, line in enumerate(lines): if index !...
After a few attempts, I have automated the process for optimizing images for JamilGhar. As my wife adds images to the project’s git repository, a bash script that runs on regular intervals will compress them. The end result is fantastic because she no longer has to wait on me to manually optimize them for her and the Raspberry Pi that sits under my desk is being very useful. Why is optimizing images important?...
Search is an important functionality for any content heavy website. Our decision to use a static site for our recipe blog meant that adding complex features that involve server operations would be difficult to implement without relying on third-party tools. These features include comments and custom metric tracking. Luckily, this problem has been solved by a Javascript library called Lunr.js. Lunr provides a fast search experience for the user by processing JSON documents produced by static site generators like Hugo....
I really enjoy riding my Jamis Allegro A3 hybrid/fitness bike and exploring the areas east of Raleigh, NC. I’ll try to update this post with photos from recent rides. 2021-10-03 White Oak Creek Greenway American Tobacco Trail 2021-09-12 Holly Springs, NC. 2021-09-05 American Tobacco Trail. 2021-08-15 Downtown Cary. 2021-08-05 American Tobacco Trail. 2021-08-01 Towing the kids for the first time. 2021-07-18 Cary Veterans Park....