/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

rednafi.com
| | pliutau.com

Welcome to my personal blog
6.5 parsecs

Travel
| |
| | nelson.cloud

Most programming languages have a way to detect if it's being run in a terminal.
5.2 parsecs

Travel
| |
| | philiplaine.com

It has been an issue for a long time to run Docker images on multiple architectures. I remember the first time I got the idea to install Docker on my Raspberry Pi and I realized quickly that what I was trying to do would not work. The issue of course was that I was trying to use an AMD64 compiled Docker image on a ARM 32 bit CPU. Anyone who works with any lower level languages would call me an idiot for realizing this sooner than later. I would agree with them. Docker just seems to work like magic, running on most machines without any issue, like running Linux containers on Windows. One thing that has not been easy though is building Docker images on one type of CPU and running them on another.
7.4 parsecs

Travel
| |
| | blog.nuculabs.de

Hi In this article I want to highlight a simple pattern for sorting a slice in Go on multiple keys. Given the following structure, let's say we want to sort it in ascending order after Version, Generation and Time. 1 2 3 4 5 type TheStruct struct { Generation int Time int Version int } The way we sort slices in Go is by using the sort interface or one of the sort.Slice functions. To sort the slice after the above criteria we'll call slice.Sort with the following function.
30.8 parsecs

Travel
|