• Updated default python to 3.7 (was 2.7) – `ln -sf /usr/bin/python3.7 /usr/bin/python`
    • Reconfigured the weekly backups to basically include my home dir but skip all subdirs. Ran my first backup.
    • More on the black hole image from yesterday; they stitched together a virtual aperture much larger than the individual imagers in order to achieve higher resolution, exactly like our work at Stanford with atmospheric lensing! The lead spoke about the process in a Ted Talk 2 years ago: https://www.youtube.com/watch?v=BIvezCVcsYs. It’s the same. We did some lunar photography by stitching together images (pixels) that refracted through various eddies in the atmosphere, creating a virtual aperture of a few kilometers. Their black hole target was much farther away. The simple diffraction limit required an aperture of about the size of the Earth (thousands of kilometers) in order to get the resolution to see the black hole so far away. So, the algorithm stitched together a TON of data from telescopes around the globe, over time, so the rotation of the Earth itself caused the observatories to cover more of the surface area of this virtual aperture. Same exact process. Reached out to Ved to revel.
    • Alt Shift X honestly has 50+ GoT videos, each 10-15m. I watched most on 2x speed.
      • The old Grandmaester Pycelle had a weird close relationship with Tywin.
      • Qyburn reanimated The Mountain. Cleganebowl would be soooo sick.
      • Lady Stoneheart is the reanimated Catelyn Stark.
      • The Valyrian empire held most of Essos until the Doom. All secrets about how to make Valyrian steel were lost, most of the dragons died, and the city of Valyria is basically nuclear fallout. The Targaryens were the only survivors because they left before. The Doom is the antithesis to the Long Night, the fire and ice contrast of the series.
      • The Arm of Dorne was a land bridge that the First Men used to cross from Essos to Westeros. It was destroyed by the Children of the Forest’s gods so no more colonizers would come.
      • The Horn of Winter brings down the wall and raises giants. It might be in the possession of Sam Tarly.
    • Placed Amazon Fresh order.
    • Removed two .desktop files in ~/.local/share/applications that were lingering but not installed. This was creating false icons in the applications menu (one for google play music and one for google remote desktop).
    • Added all common apps to dock (favorites) and cleaned the desktop background a bit.
    • Created symlink from ipython to ipython3.
    • Messed with my tmux conf a little.
    • Finally set up ctags (and uninstalled pycharm, the only real thing I used it for).
      • sudo apt install exuberant-ctags
      • Added tag location to vimrc `
      • Indexed the tags: `ctags -R -o ~/.tags $(~/code/supercontest/.venv/bin/python -c “import os, sys; print(‘ ‘.join(‘{}’.format(d) for d in sys.path if os.path.isdir(d)))”)`
        • Takes about 4s and generates a tag file of about 20MB for supercontest.
        • Added a bash script to wrap this with a venv, then an alias to wrap that so you can run it whenever.
      • ctrl-] to jump to, ctrl-o to jump back
      • Here is a neat way to reindex automatically with git: https://tbaggery.com/2011/08/08/effortless-ctags-with-git.html. The most common way is probably to reindex on a schedule with a cron job.
    • Added dockerignore (for the .venv right now)
    • Had to reinstall python3.7-dev to build the C extensions for psycopg and uwsgi.
    • To reload a config file, run `source .config_file`
    • Remember, the most portable shebang is `#!/usr/bin/env bash`
    • PW/MD
    • TDD = test driven development.
    • Thrust profiles usually decrease through a trajectory. This is seen commonly if you blow up a balloon and let it go. See that little kick at the end when it seems to go faster? F=ma. As mass decreases, and force stays constant, acceleration must increase. In order to keep the vehicle from speeding up, subjecting it to higher load stress, thrust can be decreased.
    • Vim
      • :Explore to open netrw (directory browser)
      • Added Vundle to my vimrc. Remember to call :PluginInstall after any changes.
      • Fugitive has a ton of super useful git integrations. You can blame, search history, checkout a file in mem, etc. I chose NOT to install this. I like keeping my text editing separate from my version control interface.
      • Use vim for multiple windows (instead of tmux). Use tmux for multiple processes. For multiple files being edited at once, use vim. This is a bit of shift from what I’m used to, even years into my career.
        • :sp file/path/blah to open a new file in a horizontal split. :vsp for vertical.
        • ctrl-w then an arrow to move between windows, just like ctrl-a for tmux.
        • Maximize is ctrl-w then _, go back with ctrl-w then =
        • :h or :h <plugin> for any help
      • Added the syntastic plugin for pylint/flake8 as well, but then removed it. Needs an active flake8/pylint on PATH, which I don’t wanna mess with since I develop in docker. Just ended up using the built-in python syntax highlighting. I’ve got enough experience with Python to not need realtime lint notification.
      • Added the Jedi plugin for autocompletion. ctrl-space to open autocompletion.
    • Summary:
      • You have ctags now: ctrl-] and ctrl-o
      • Split windows in vim instead of tmux: :sp file/path and ctrl-w arrow
      • Autocompletion: ctrl-space
      • Syntax highlighting.
      • The vimrc improved a ton of things for tabs, wrapping, color, etc.