There is often a better way
I recently posted about how you should try to avoid duplicating Identity in Software Systems because there is almost always a better way to organise things. This short post is on a similar theme and has a similar conclusion.
Identity systems store identities. Users (people) and other entities like bots or service accounts. Using various protocols and technologies you can use a trusted external identity system to authenticate an entity. To provide confidence that you are dealing with what you think you are dealing with. You can then authorise the entity within your application. …
I didn’t come up with this notion, but I think it’s the correct way of looking at things and worth elaborating on a little.
I can attribute it to John Cutler via LinkedIn:
There is almost always a better way
In the real world we have a single Identity. I’m sure you can think of edge cases, but generally that’s how it works. We are who we are. And there are different mechanisms for proof-of-identity. Birth certificates, passports, government-issued ID, drivers licenses, utility bills etc. No type of proof is perfect. But each one lends confidence depending on the trustworthiness of the entities involved in providing it. And the confluence of different identity proofs provides higher confidence. …
Using GitHub gists to display code in medium.com posts.
There are several viable ways to display code in your Medium posts which suit different goals. Please see my previous post to get a handle on the following:
You can use an external program to host the code and embed the content into the article.
The different ways that you can display code in Medium.com Posts to help write more useful software related content.
There are several viable ways to display code in your Medium posts which suit different goals.
Create a code block by typing 3 backticks (```). Or highlight a section and hit the following keyboard shortcut (hit again to toggle).
MacOS: Command + Option + 6.
Windows: Ctrl + Alt + 6.
Create inline code
print("Hello World") by typing 1 backtick (`). Or highlight some text and hit the backtick (hit again to toggle).
You can add an image of the code by taking a screenshot and using the Medium Editor functionality to upload the screenshot to your post. …
Getting Containers and Kubernetes Pods to consume local Apps in Docker for Mac
Docker for Mac is great for developing and testing containers using Docker and even Kubernetes on your workstation. Whilst doing this you may want your container to talk to another application that is running on your computer.
Typically app-a can consume app-b locally using the following name
http://localhost:<port> . But (because OS X is not Linux) the container is actually running in a VM under the covers and so is on the guest local network not the host (your machine).
In the case of a Kubernetes Pod references to
http://localhost:<port> will surface applications that are running on other containers in the Pod definition. …
QUICK TIPS #2
Microsoft Visual Studio Code — like many consumer products — has default settings applied to help protect us from ourselves and reduce the chance of causing issues by accident.
One such setting is that certain files and directories are excluded from the VS Code file explorer view. And one specific example is the
This folder is used to store important git related information and typically you absolutely want to leave it alone! However, I was recently looking at pre-commit hooks. These are implemented with scripts that live in the
QUICK TIPS #1
The Microsoft Visual Studio Code Editor enables fast, intelligent code commenting shortcuts for many languages as a feature.
This shortcut saves the most time for me!
Windows & Linux:
Minimal .zshrc examples to include git branch name in prompt
Configure the zsh shell prompt (default on macOS Catalina) to spit out your git branch name if you are inside a git repository with minimal effort so you can just move on to something else.
By minimal I mean some combination of least additional downloads, least dependency on other tools / programs and least configuration while still being simple enough to read, understand and adjust.
~/.zshrcfile and save.
In this article, I want to illustrate how the AWS Elastic Kubernetes Service allocates IPs for the cluster so you can better manage your platform!
We will create a new EKS cluster and perform some other actions. At every step, we will seek to understand what is happening in terms of IP allocation.