Category: AWS
AWS Button Page
This page demonstrates a simple button that triggers an AWS CLI command and displays the result.
S3 Bucket Viewer
Category: Food
Pumpkin Squares
Ingredients
1 cup mazola oil 3 eggs 1 tsp soda 2 tsps cinnamon 2 cups flour 2 cups pumpkin 2 cups sugar 1/2 tsp salt 2 tsps powdered sugar
Cream Cheese Frosting:
8 oz. softened cream cheese 1/2 stick margarine 1/2 tsp vanilla 1 1/4 Cup powdered Sugar (sifted)
Instructions
- pre-heat oven to 350 F.
- Grease 10x15 pan.
- Mix all ingredients together.
- pour into pan.
- Bake 20-25 min.
- Frost with creamcheese frosting
5-SPICE FRIED RICE WITH SWEET POTATOES
5-SPICE FRIED RICE WITH SWEET POTATOES
yields 4 AS A SIDE
ingredients
- 1 medium sweet potato (¾ to 1 LB)
- 2 tsp neutral-tasting oil (Grapeseed/peanut/sesame)
- 2 TBL water
- 1/2 small yellow onion
- 1 carrot carrot
- 1/4 tsp Chinese 5-spice powder
- 1 to 2 clove garlic to 2 clove garlic
- 1 1/2 TBL soy sauce or tamari
- 1 TBL rice vinegar
- 1 tsp chili paste or an Asian-style hot sauce like Sriracha
- 4 cup cooked short-grain brown rice that’s been chilled for a couple hours
- 1 cup bitter greens (watercress/mustard/arugula)
- 1/2 cup sliced green onions
- 1 cup frozen green peas, thawed
instructions
0 chop onion, carrot, and greens no bigger than a quarter
Meatballs Marsala with Egg Noodles and Chives
Meatballs Marsala with Egg Noodles and Chives
ingredients
- TBL olive oil
- 2 TBL butter
- 1 small yellow onion
- 1 tsp salt
- 1/2 cup panko
- 1 large egg
- 1/4 cup milk
- 1/4 cup dry Marsala
- 3 TBL butter
- 3 TBL flour
- 1 3/4 cup chicken stock
- 1/4 cup heavy cream
- 12 oz egg noodles
- 1 TBL butter
- 4 tsp chives
Category: Vizualization
Plotly Example
Plots
should see a plot here
Second Plot
and another here
Category: Coffee
Coffee Recipe
Motivation
I enjoy coffee, but I find most coffee to be too bitter. This is a symptom of over-extraction. Here is my recipe for minimally bitter coffee.
Category: Stats
Tufte in Python
Motivation
I greatly admire Edward Tufte.
After running across Tufte in R. I thought it would be a fun challenge to port the plots to python.
100 Year Flood
Definition
100-year flood, means that the Annual Exceedance Probability is 1/100.
It is a strange term. I cannot think of any other probability that is expressed in this way. In any case, I want to calculate the 100-year flood plain for my area.
Category: Projects
Movie Narrative Chart
Comic
There is a great xkcd about plotting the relationships of characters in a movie. I find it a very elegant way to present information that is otherwise a complicated network of changing relationships.
Primer
Of course, the punchline is the movie Primer which involves a substantial amount of time travel. It’s just a bunch of scribbles. Ha Ha.
Back when I first watched the movie (2011?), I stumbled upon this chart explaining the timelines. There are at least 9, by the way. While better than the xkcd gag at explaining the movie, I wanted to make an honest attempt at displaying the information more concisely.
TravelMap
travels
I wanted to make a digital version of one of large maps where you put actual pins to show where you’ve been.
Basemap makes that pretty easy.
My code is on GitHub: travelmap.py
Here is what the Raw data looks like:
Year | State/Country | Trip/Path | Latitude | Longitude |
---|---|---|---|---|
1987 | Illinois | Home | 41.439691 | -88.949886 |
1990 | Wisconsin | Dells | 43.627705 | -89.773422 |
1997 | Wisconsin | I90 | 43.51265 | -89.530689 |
2014 | Montana | Bozeman | 45.713946 | -111.068216 |
2015 | Brazil | Rio De Jenaro | -22.985197 | -43.207486 |
2015 | California | Los Angeles | 34.044468 | -118.460819 |
2016 | Virginia | Arlington | 38.880196 | -77.119795 |
2016 | California | Los Angeles | 34.044468 | -118.460819 |
2016 | Tennessee | Nashville | 36.134572 | -86.805819 |
2017 | Texas | Houston | 29.704918 | -95.393291 |
Temperature Control
Problem: stove-top temperature is poorly controlled resulting in inconsistent cooking times and results.
Solution: Use an Arduino to control the temperature of pan.
Category: MachineLearning
Recurrent Neural Network
After watching this presentation, where Martin Görner shows the use of recurrent neural networks to create a new Shakespeare play, I was feeling inspired. So, I pointed his code a bunch of song lyrics.
Background
I’ve been interested in Neural Networks for a long time because, fundamentally, they are similar to a process controller.
$$ Output = Input \times Weight + Bias $$
It’s just a line. For multiple inputs/outputs, the equation is the same, but they are matrices (or tensors). Why stop there, send the output of one “neuron” to the input of another, and you’ve got a “deep” network.
Category: Howitworks
Toilets
I thought it would be fun to talk about toilets since we interact with them daily, yet, mostly ignore them and their operation.
Components:
- water inlet
- diaphragm valve
- Tank open to atmosphere (usually covered)
- Level Indicator with mechanical linkage to diaphragm valve(2)
- Chain operated stop-check valve
- Bowl also open to atmosphere
- S-bend outlet pipe to sewer/septic system
Operation
During normal operation, the water level in the tank is controlled by feedback from the level indicator to the inlet valve. When the level is low, the valve is open filling the tank. When the level is high, the valve is closed. The water level in the bowl is determined by hydrostatic pressure in the s-bend of the outlet pipe. The toilet is flushed by manipulating the check valve releasing water from the tank to the bowl. When the bowl water level exceeds the height of the s-bend, a syphon effect empties both the bowl and the tank. once the check valve is closed, the tank refills to the appropriate level, so the process can be repeated as needed.