Monthly Archives: October 2019

Quote

Is China’s government ever going to grow up?


I have thought a lot about this piece since I read it: Is China’s government ever going to grow up? – The Washington Post Key quote from it:

.. the sad truth is that as China rises, instead of embracing a superpower mindset and growing a thicker skin, it is becoming increasingly more sensitive to perceived slights — all while it fosters a thin-skinned, resentful nationalism among its people.

I wonder why China is so thin-skinned and taking action against any one doing the slight thing (e.g. favouring a tweet). It is the response of a weak country or a bully, not a strong one. China is a strong nation: it should act like one.

Quote

What are the most beautiful streets in New York City?


The folks at the Thrillist have a great list, here, including images such as the one above.

It would be great to go to NYC again just to visit some or all of these.

Quote

How to make your brain healthier

Easy. Follow these five tips:  ‘I’m a neurologist, and these are the 5 things I do to keep my brain healthy’ | Well+Good

Some of them are easy and obvious, some not. And some are a 2 fer: exercise your body and you help your brain, too.

 

Quote

Thinking about work (especially if you are not motivated)

If you don’t feel like working this Monday, you can at least read some pieces about work that might help you get motivated.

Quote

A trick to resolve issues with YAML files for Kubernetes

I was going through this exercise for Using Calico network policies to block traffic when I thought that instead of deploying the webserver image using this command:

kubectl run webserver --image=k8s.gcr.io/echoserver:1.10 --replicas=3

I would create a yaml file to deploy the webserver instead. Unfortunately, there was something about my yaml file that preventing things from working. That’s when I came across this trick.

  • Step 1: deploy the web server using the kubectl run command.
  • Step 2:  run the following command to get the YAML back for the deployment


kubectl get deployment webserver --output yaml > webserver.yaml

  • Step 3: edit the webserver.yaml file to remove extra lines. For me, I was able to remove:
    •  the status section
    • the annotations section
    • the strategy section
    • etc.

And just keep the following lines (note, note formatted properly):


apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
run: webserver
name: webserver
namespace: default
spec:
replicas: 3
selector:
matchLabels:
run: webserver
template:
metadata:
labels:
run: webserver
spec:
containers:
- image: k8s.gcr.io/echoserver:1.10
name: webserver

Now, you do not have to edit the file. But I think this is cleaner than the full version that comes back.

So you can delete the deployment that was the result of the command line and instead build future deployments using the yaml file.

Quote

Atoms Shoes: now in quarter sizes


Among other good features of  Atoms Shoes is their availability in quarter sizes. So if you really want an accurate fit, you can get it. They are a nice looking shoe, too. Worth checking out.

Quote

For MacOS users who need a simple and free stopwatch or timer

 This tool seems pretty good. Using it right now.