KyleHQ

Honest, loyal, senior software engineer, looking to make a real difference by putting people first.

KyleHQ © 2021
Feed Army

Feed Army

#UPDATE: 9 May — we are having issues connecting with Instagram at this stage in the production environment. My apologies as I deal with Facebook to rectify error. Connect up with Twitter as they know what they are doing… Having been originally frustrated with Instagrams' user experience and your common web browser, I researched what available browser based extensions or services were available to aggregate my own personal social media feeds.

Read more...
May 1, 2021
|
code
|
go
|
svelte
|
tailwind
Go Templates - a final outcry

Go Templates - a final outcry

Working with Go templates, being a compiled language, is not always an easy task. And I have definitely had my fair share of gnashing of teeth in past which you can easily refer to here and here. So when I started a new Go project that required a web view component, I decided to take my past learnings and create a public package that will hopefully, remove most of the hurt from your rendering needs too.

Read more...
March 18, 2019
|
code
|
go
Another year of interest?

Another year of interest?

Wow….it’s been quite “the” year. At the LGBTQ party hosted by the US Embassy in Mexico I’m not sure how most measure their years??? I measure mine not only by time, but by distance as well. We just need to to define our distance metric =] So what has changed? Well, I no longer fear or doubt myself. That’s a biggie! Opinions are just that. Social media aghhh…reach out rather than opt in!

Read more...
November 21, 2018
|
personal

Sad beautiful truths

Serendipity played it’s part yesterday. A series of events that lead me to an open invitation track day at Hampton Downs. With summer drawing to a close here in New Zealand, and my bike going back into storage due to overseas committments, “scratching” on a track day was the perfect way to end the season. But it wasn’t the thrill of the 20 somethings on their sports bikes being left in my wake on my “tourer” that I enjoyed most.

Read more...
April 1, 2018
|
personal
|
motorcycles

MyDigest - A learned journey

Luckily and happily, I’m always in an ongoing pursuit to level up my knowledge. For me personally, I’ve found the best way I learn is not by reading, but by building instead. With that, I present to you my latest online application: Starting simple and small, MyDigests' current purpose is to deliver a daily sales digest to retailers using the Vend POS Retail platform. We have much larger future goals, but we plan to grow with the feedback of our users into different data sources and broadcasting mediums.

Read more...
August 1, 2017
|
code

Golang Templates - An Addendum

Dealing with DOM Ready. Note: If you haven’t been playing the at home game, then I suggest you read the first post here, otherwise let’s assume that you have a directory structure like the following. main.go templates ├── _footer.html ├── _header.html ├── layout.html ├── templates.go └── user ├── dashboard.html The problem: ensuring that any JS snippets defined throughout your application templates are executed with a valid DOM available. Granted, it would be best practice for you to combine all of your .

Read more...
June 2, 2017
|
code
|
go

Golang Templates - What I missed!

TLDR Don’t include {{define}} calls in your templates parsed with template.ParseFiles(). Know that template.ParseFiles() will overwrite any reference to a template with the same filename, not filename and path! Go look at the way I now parse my application templates here - https://gitlab.com/snippets/1662623. Otherwise feel free to stick around and read why =] So what’s the issue? Having happily built out the backend of a little Golang app I’ve been working on, I’ve refocused my attention to the frontend.

Read more...
May 21, 2017
|
code

Qupid - A Golang Queue

In my experience working with Golang thus far, I encounter a pretty regular requirement to fetch some sort of data, process the data accordingly and then persist or send the output. Naturally the use of Golangs' channels really shines here, but you still need a little orchestration to tie your channels together. Publish to one and subscribe to another along with the ability to stop processing as and when required too!

Read more...
March 2, 2017
|
code

What JSON?

If you’re one to consume JSON api’s (who isn’t really?), then it’s likely you’ve bumped into the issue of figuring out whether the resource you just called is returning a single JSON object or an array payload. As per the JSON API Spec, The document’s “primary data” is a representation of the resource or collection of resources targeted by a request. Primary data MUST be either: a single resource object, a single resource identifier object, or null, for requests that target single resources an array of resource objects, an array of resource identifier objects, or an empty array ([]), for requests that target resource collections To help out all the Gophers out there, I created a simple little helper package to figure it out for you.

Read more...
December 31, 2016
|
code

Lessons in Golang - Goroutines and Channels

Recently I made publicly available an in memory scheduler written in Golang, https://gitlab.com/kylehqcom/kevin. Writing code for public consumption is always something of a scary exercise. Knowing full well the critiques, scrutiny and chin rubbing that will come from your peers and non peers alike. But being an optimist I appreciate any feedback. Good or bad it is always greatly received as it all just helps with the learning. My goal here is to share some of that learning, mistakes and “a ha” moments I have found in developing with Go.

Read more...
September 1, 2016
|
code

29 Days in Murica No.2

Las Vegas I certainly had expectations before entering Las Vegas. Most were met. But other experiences I encountered I hadn’t expected at all! I mean the bar was well ‘n truly set exiting the plane “offramp”, walking through the airport doors and being faced with an entire wall of slot machines. Forget airport security, just give us some coin! The start of an underlying theme was beginning to occur. Making our way from our gated “trailer park” community towards the “strip”, the shear scale began to bed in.

Read more...
August 30, 2016
|
travel

29 Days in Murica No.1

Having recently spent 29 days in the good ol U S of A, I wanted to share just some of that experience with you. How better than to list 29 sights, sounds, emotions invoked and/or “things discovered” along the journey. *God knows I wanted and had every expectation to be writing these posts in transit. But to be perfectly honest, I’m actually glad I just let the road get in the way.

Read more...
August 19, 2016
|
travel