Skip to main content
 

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.

 

Coffee Is Hard | Hacker News

Sometimes the comments are as meaningful as the article that inspired them. 

 

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.

 

macOS Catalina

macOS Catalina

Terminal hasn't changed much!

 

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.

 

 

Just got an upgrade prompt for Reeder 4. What an app, it’s my favourite RSS reader. Much improved and I love how I can unsubscribe now and reorganise my feeds. Everyone make sure your feeds aren’t breaking! https://apps.apple.com/gb/app/reeder-4/id1449412357

 

When business talks about accessibility, they talk about a legal issue. Developers talk about accessibility as a usability issue. This hurts users! Please raise it as universal usability.

 

Can’t believe the firewall is still off by default in 2019!

 

Outlanders is a fun game but it reminds me that I like the free form mode of settlers best.

 

NPM global installation permission issues on macOS

I had trouble installing global npm packages, which failed due to permission errors. I don't want to use sudo as this will lead to problems later, and I don't want to set the global installation directory to a local directory, as that means other users don't have access to the packages.

As recommended by the NodeJS documentation this is best fixed by installing node via a version manager.

First, remove node which I incorrectly installed with homebrew:

brew uninstall node

Then install nvm as per the official instructions. In my case this also failed as this is a new system that doesn't have a .bash_profile yet. Hower as I wanted to install the zsh shell, I installed oh-my-zsh as per the instructions on their site.

Once zsh was installed (or you've created a .bash_profile using touch ~/.bash_profile, you can install node in a correct manner as follows:

nvm install node

Happy yak-shaving!

 

 

 

Keeping the task summary updated and clear when the acceptance criteria evolve and comments are added helps everyone work efficiently.

 

Is tool-layering the main threat to approachable web development?

 

 

I understand why macOS Safari wants to sandbox browser extensions but please add a search option for safari extension instead of a 30 page list… @instapaper do you have a safari extension?

 

Everyone has JavaScript, right?

This is helpful every two months or so.

 

The magic of the web is that it’s a multiverse. When build progressively, information and services are usable even though certain technologies, such as autoplay and JavaScript, are disabled. My phone battery thanks all considerate developers!

 

The replacement battery for my iPhone 6s lasts around 33% as long as the original before it also now shuts down due to peak capacity problems.