Does Strava Encourage Illegal Trail Riding?

🖊️ 🔖 cycling 💬 0

I recently received the following email in my Trail Care inbox (names and locations removed):

Hi, I am a long time mtb rider. I am also on the Board of Directors for the local open space advocacy/trails stewardship group. The actual owner of the surrounding open space is the county. Like other areas, we have a ton illegal trails. Many of the authorities see Strava as a negative in that riders publicly post their illegal trail rides which leads others to follow. There is also the perception that Strava motivates riders to break speed limits to get KOMs. Have you run into this anywhere else and how do you get around this?

This is a controversial subject within the mountain biking community, especially within the advocacy circles. Pretty much everyone has an opinion about Strava. Some people love it, some hate it, any everyone has their theories.

Dec 4th Goleta City Council on Scooter Share

🖊️ 🔖 other 💬 0

I attended and spoke at the December 4th Goleta city council meeting at which they brought forward an urgency ordinance to ban the operation of on demand scooter sharing services (Lime, Bird) in the city of Goleta.

Reliable California Wildfire Information

🖊️ 🔖 other 💬 0

November is wildfire season in California, and this year has been no exception. Just when we thought it couldn’t get worse than 2017 / 2018, it did.

Unfortunately it can be super hard to get good information about wildfires while they are happening. This is mainly due to every local news station eagerly exploiting tragedy for readership. Googling a fire returns pages of poorly and hastily written articles that contain, at best, out of date information (but plenty of shocking cell phone video) and at worst no information at all.

Simple Virtualenv Auto Activation With ZSH.

🖊️ 🔖 linux 💬 1

Since I moved from fish to zsh, one of the main things I missed was virtualfish. I’m not sure how any serious python developer lives without auto activation, as in automatically activating the virtualenv for your project when you open a terminal or cd to it.

Here is a script you can use to achieve auto activation. It doesn’t require virtualenvwrapper, pyenv, or anything like that. Just use python3’s built in python -m venv to create a virtualenv in ~/.virtualenvs/, use the provived venvconnect function to connect the activated env with the current directory, and you’re done.

#!/bin/zsh
#
# Auto activate a python virtualenv when entering the project directory.
# Installation:
#   source virtualenv-auto-activate.sh
#
# Usage:
#   Function `venvconnect`:
#       Connect the currently activated virtualenv to the current directory.
#
VENV_HOME=$HOME/.virtualenvs

function _virtualenv_auto_activate() {
    if [[ -f ".venv" ]]; then
        _VENV_PATH=$VENV_HOME/$(cat .venv)

        # Check to see if already activated to avoid redundant activating
        if [[ "$VIRTUAL_ENV" != $_VENV_PATH ]]; then
            source $_VENV_PATH/bin/activate
        fi
    fi
}

function venvconnect (){
    if [[ -n $VIRTUAL_ENV ]]; then
        echo $(basename $VIRTUAL_ENV) > .venv
    else
        echo "Activate a virtualenv first"
    fi
}

chpwd_functions+=(_virtualenv_auto_activate)
precmd_functions=(_virtualenv_auto_activate $precmd_functions)

Source the above script in your ~/.zshrc and you should get auto activation of python virtualenvs.

A Piece of Trash a Day

🖊️ 🔖 earth other 💬 0

The lines we make in our day to day lives. Placed on a heatmap of all our motion, our daily routines show up in blazing hot purple. We ride down the same streets on our way to work, walk the same sidewalks to get the groceries, wander familiar shorelines on sunset strolls.

Tuimoji: A terminal based emoji picker

🖊️ 🔖 linux 💬 0

Tuimoji is a terminal (text) based emoji chooser, similar to gnome-characters, but with less suck. 🔥🔥💻🔥🔥

Customizing grml-zsh-config

🖊️ 🔖 linux 💬 0

Ever heard of grml-zsh-config? Maybe not, but it’s possible you may have used it. It’s the zsh config for the Arch linux installer, as well as some Debian systems.

Grml is a nice alternative to heavy and bloated config frameworks like oh-my-zsh and pretzo (even on a modern machine I’ve seen zsh take over a second to load using oh-my-zsh with just a few plugins enabled).

Unfortunately, grml is not that easy to configure, and the available documentation is a little lacking. With a few tweaks though, I managed to get a proper shell out of grml.

ArchLabs Linux Review (and tips)

🖊️ 🔖 linux 💬 0

Today I’m writing a review of the ArchLabs linux distro. Have you ever wanted a badass Arch linux install, complete with an openbox window manager, conky, and dark gtk themes, worthy of the top spot on /r/unixporn? Of course you do, but if you’re anything like me, you’re a busier person than you were when you were 15, and you no longer have the time, or the inclination.

Enter ArchLabs, elite Arch Linux for the lazy:

Desktop

Dynamic Module Loading in Python

🖊️ 🔖 code python 💬 0

There are some cases where dynamically loading code that your application

A Not so Dramatiq Change: A Celery Alternative

🖊️ 🔖 code astronomy 💬 3

Both Celery and Dramatiq are asynchronous task