Sunday 7 October 2018

Life anew with MacOS


Change is ubiquitous. And now I find myself with an opportunity to start to use MacOS. Okay. So I have a MacBook Air 13" which I won (yes, I know, I never win things) but I was never able to really use it as others in the household had an a more pressing need to use it.  Plus work provided a windoze box.

I started programming with Windoze 1.0. Now I am using Windoze 10 and I am honestly done with it. I will now try to always use MacOS (BSD with a funky screen manager) or Linux.

Honestly, 30 years is a good try. Its time for a change.

Ok, I have other linux boxes and have been using linux for a while. So its not like I am a noob at it. Plus I have been using various flavours of unix since 1985.

But my main in my face system has always been windows since that is what work always provided.

But now I am done. I returned my last windoze laptop to my former employer (now that is another story) and my new employer will provide a MacBook pro. Sorted.

What will follow are post converting my modern lifestyle to using most MacOS or Linux in my face.

Thursday 5 July 2018

Welcome to Canada, please set your watch back 50 Years



Don't get me wrong. I love my country and (most, I accept the rest) of its people. But I find we have quaint colonial notions and our future will be at risk. Our current Achilles Heel that will hinder our progress moving forward.

That Achilles Heel is our 19th Century electoral system.

Regardless of your political persuasion, you cannot debate the fact that when only 58% of eligible voters vote, and 60% of those people vote against a political party or leader, then that party should not have majority control of parliament. This just happened in Ontario.

This same system rules the provinces (I am not sure about the territories) and the federal electoral system.

I cannot square this circle with the fact that most parties elect a leader on a ranked ballot (one form of proportional representation) and yet the public is misrepresented with a first-past-the-post (FPTP) system.

This, in Ontario, means that 60% of our voices are not heard.

This flawed system will mean that the majority of people will become disgruntled and disengaged with our democracy and this is very dangerous. This will also affect all other services provided to residents, from health, to education.

For us to move forward as a people we must modernize our electoral system to a mechanism of proportional representation. Our future and success are at stake.


Monday 14 May 2018

Docker, debian (ubuntu, kali etc)




1.  Add the GPG key for the official Docker repository to the system

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

2. Add the Docker repository to APT sources:

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

3. update the package database with the Docker packages from the newly added repo:

sudo apt-get update

4. Make sure you are about to install from the Docker repo instead of the default Ubuntu 16.04 repo

apt-cache policy docker-ce

5. Ensure the version table has all docker.com sources.

  Candidate: 17.12.1~ce-0~ubuntu
  Version table:
     17.12.1~ce-0~ubuntu 500
        500 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages
     17.12.0~ce-0~ubuntu 500

6. Install Docker

sudo apt-get install -y docker-ce

7. Check to ensure  Docker is running

sudo systemctl status docker

docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2016-05-01 06:53:52 CDT; 1 weeks 3 days ago
     Docs: https://docs.docker.com

References:
1. https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04