struct-to-map

Occasionally in go we want convert our structured data into an unstructured format, such as a map[string]interface{} for struct like: type Foo struct { A Bar `json:"a"` B Bar `json:"b"` C Bar `json:"c"` D Bar `json:"d"` E Bar `json:"e"` F int `json:"f"` G uint `json:"g"` H string `json:"h"` } type Bar struct { Bar string `json:"bar"` } There are a couple ways we can convert it into a map. manually func base(foo Foo) map[string]interface{} { result := make(map[string]interface{}) result["A"] = foo.
Read more →

reddit

Reddit is a link aggregator and thats all it should be. Through a system of anonymity and fake internet points reddit brings attention to things that people generally find interesting or important around a particular topic. Often times people treat reddit as if it were a discussion board. They will get into heated debates surrounding a particular topic in the comment sections. Don’t do this. It’s naive. You are trying to convince a random person behind a keyboard of a particular viewpoint.
Read more →

retro-gaming-devices

I loved playing pokemon games as kid. Problem is that I still love playing them. I’ve played pokemon games on emulators at my PC, but sitting at computer after I just sat there all day for my job doesn’t really capture the joys of my childhood. So I’ve started to trying to find a handheld device that will let me re-experience the glory days of the game boy and the Nintendo DS.
Read more →

dual-booting

This is a guide to a bare metal dual boot of Windows 10 and Ubuntu. No emulation, or virtualization. Most of this guide comes from my personal experiance over several years of having a dual boot install, any pain points that I highlight are because I have experianced them myself. Obiviously, this is not a complete resource of all the information you might need to do this, but this post does have all the information you mighy need.
Read more →