Skip to main content

Senior Web Engineer. Open web / music. Remote DJ. Tall Dutch guy. #3million

twitter.com/svandragt

github.com/svandragt

mixcloud.com/cloudseer

 

2019 and I still love to add `fortune` to my shell profile.

 

If you or your company have a contact form on a website, please send a test email today to confirm that someone reads them! Many times I hear nothing back, particular from small business.

 

"remote working is..."

 

It's all gone pythong.

 

Working with Two SSH keys

If you're working with two SSH keys (work / personal) then the following setup is quite elegant. It assumes all repositories are work related, unless they're hosted under your own user:

Host *
 AddKeysToAgent yes
 UseKeychain yes
 StrictHostKeyChecking no
 User git
 IdentityFile ~/.ssh/id_rsa_corporate

# personal account
Host github.com-MYUSERNAME
  HostName github.com
  User git
  IdentityFile ~/.ssh/id_rsa

 

Howto setup Python in Pop!_OS 19.10 or Ubuntu

A new OS, another two hours wasted. Pop!_OS 19.10 comes with Python3.7rc5, which is nice but my project requires 3.6 just now. As you know we've gone through this before, but this time we can setup multiple python version support.

Let's setup pyenv, pip, pipenv and then install another python version.

# Setup pip.
curl
https://bootstrap.pypa.io/get-pip.py | python

# Pip can setup pipenv.
pip install pipenv --user

# Manage multiple python versions through pyenv.
# @see https://github.com/pyenv/pyenv/wiki/Common-build-problems

sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \ libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \ xz-utils tk-dev libffi-dev liblzma-dev python-openssl git
curl https://pyenv.run | bash

Follow the instructions to add pyenv to the path. Now we can do stuff like:

# install another python version.
pyenv install 3.6.9

# OR let pipenv do it.
cd ~/dev/myproject
pipenv install --dev

Leave a comment if you have any issues, as this was written retrospectively.

 

Web developers, consider how visitors may want to share your page with others, so don’t cover up items on your handy shopping list page with a Consent Prompt when saved as a PDF.

 

Does universal clipboard for work anyone? https://www.macworld.co.uk/how-to/apple/how-copy-paste-between-mac-iphone-3659951/ Copy a URL in Firefox on mac, doesn't paste in IOS. I guess the app must support it?

Update: it turns out that Handoff on my MacBook wasn't working until I signed out and in to iCloud. (Full diagnostic instructions can be found at https://www.idownloadblog.com/2016/03/15/troubleshooting-continuity-ios-mac/.) This then broke my Calendar until I forced quit it, and deleted the iCal preference as per https://discussions.apple.com/thread/8559377.

 

Informed reasoning

I'm starting to realise how often I say good / great / well without being explicit about what I think is positive about something. Trying to replace ‘that is a good idea’ which only communicates my positive assessment with the explicit thing I appreciate so people can make their own assessment based on their values. Maybe this thought helps someone else!

 

What do the macOS menu bar, a clever css filter I came across today, and a great iOS accessibility feature have in common? Grayscale makes for a quiet user experience.