This post is a gift to my future self for when I no longer writer Python daily and need a refresher.

Chris Yeh has a wonderful post on the correct syntax to write import statements in Python.

The essence is, if you have a directory structure like:

awesome_project/
    run.py
    foo/
        __init__.py
        bar.py
        baz.py

In run.py:

from foo import bar

bar.Bar()

In baz.py:

from .bar import Bar

Bar()

I’m finally free of Photobucket!

Last July they decided to remove free image hosting and I was stuck with the unfortunate task of migrating 5+ years of pictures for this blog.

freedom

Now I’m free! I migrated the last one today.

I’m feelin’ fine.

While there’s a ton of resources on what meals airlines serve, there’s relatively little information on their vegetarian options.

So, when I flew from San Francisco to Copenhagen on SAS, I decided to take photos of the food.

SFO to CPH:

sas_other_lunch

sas_lunch

CPH to SFO:

sas_dinner

sas_breakfast

Everything was delicious except for the cucumber and butter sandwich.