Pneumomediastinum and pulmonary interstitial emphysema

I think this is the first time I’ve ever seen PIE in without trauma.  The patient has bad colitis and I caught the pneumomediastinum on the inferior slices of the chest.  Went back and scanned the chest and no visible esophageal perf, but lots of air.

Image45

 

I was not familiar with the term:

The Macklin effect: pulmonary interstitial emphysema and pneumomediastinum

I’m only used to seeing PIE in infants, but this is a rock solid demonstration of it.

Belly GIF: rocker_loop.gif

 

Advertisements

DietPi HomeAssistant Aliases

THIS DEV UNIT IS RUNNING AS ROOT.  DON’T DO THIS FOR YOUR REAL DEPLOYMENT.  IT’S BAD SECURITY PRACTICE.

(I’m just too lazy to type sudo every time).

This is an update to the list of aliases included in the main post. I have set up a dev server on RPi and my instructions did were not previously complete.

alias config='nano ~/.homeassistant/configuration.yaml'
alias checkconfig='venv && hass --script check_config && cd ~'
alias venv='cd ~/homeassistant && source bin/activate'
alias hasslog='nano ~/.homeassistant/home-assistant.log'
alias customize='nano ~/.homeassistant/customize.yaml'
alias restart='sudo systemctl restart home-assistant@root'
alias status='sudo systemctl status home-assistant@root'
alias stop='sudo systemctl stop home-assistant@root'
alias start='sudo systemctl start home-assistant@root'
alias secrets='nano ~/.homeassistant/secrets.yaml'
alias ms='mosquitto_sub -h "127.0.0.1" -t "#" -v'

The most used are:

  • restart
  • config
  • checkconfig
  • status

The Darkest Hour

Then out spake brave Horatius,

The Captain of the gate:

“To every man upon this earth

Death cometh soon or late.

And how can man die better

Than facing fearful odds

For the ashes of his fathers

And the temples of his gods,

Originally by Thomas Babington, Lord Macaulay (1800–1859)

Quoted by Winston Churchill.

Using Python GSpread to Fill Spreadsheet Values

import gspread
from oauth2client.service_account import ServiceAccountCredentials

 

#Gspread authorization
scope = ['https://spreadsheets.google.com/feeds']
credentials = ServiceAccountCredentials.from_json_keyfile_name('creds.json', scope)

gc = gspread.authorize(credentials)

 

## Critical to share spreadsheet with service account
## 
## If you don't you'll just end up with a not found error.

 

# Open a worksheet from spreadsheet with one shot
wks = gc.open_by_key("<<>>").sheet1

# Generate list with alphabet
alphabet = map(chr, range(65, 91)) ## Gives capital letters A-Z
print(alphabet)  ## Just printing to make sure it's okay 
for letter in alphabet:
    for x in range(1,10):
        wks.update_acell((letter + str(x)), ("Cell ") + letter +str(x))

 

Excellent help from here: https://terrameijar.wordpress.com/2017/02/03/python-how-to-generate-a-list-of-letters-in-the-alphabet/