From 172303e0a05dc65b52f33b33645c04d93d78e0ef Mon Sep 17 00:00:00 2001
From: cewing <cris@crisewing.com>
Date: Mon, 24 Feb 2014 21:18:32 -0800
Subject: [PATCH 1/3] update session 08

---
 source/presentations/session08.rst | 120 +++++++++++++++++++++++++++++
 1 file changed, 120 insertions(+)

diff --git a/source/presentations/session08.rst b/source/presentations/session08.rst
index da9e0ad3..ca6cea03 100644
--- a/source/presentations/session08.rst
+++ b/source/presentations/session08.rst
@@ -16,3 +16,123 @@ Wherein we extend our Django blog app.
 image: http://djangopony.com/
 
 
+Last Week
+---------
+
+Last week, we created a nice, simple Django microblog application.
+
+.. class:: incremental
+
+Over the week, as your homework, you made some modifications to improve how it
+works.
+
+.. class:: incremental
+
+There's still quite a bit more we can do to improve this application.
+
+.. class:: incremental
+
+And today, that's what we are going to do.
+
+
+Preparation
+-----------
+
+In order for this to work properly, we'll need to have a few things in place.
+
+.. container:: incremental small
+
+    First, we'll start from a canonical copy of the microblog.  Make a fork of
+    the following repository to your github account:
+
+    .. code-block::
+        :class: small
+
+        https://github.com/cewing/django-microblog
+
+.. container:: incremental small
+
+    Then, clone that repository to your local machine:
+
+    .. code-block:: bash
+        :class: small
+
+        $ git clone https://github.com/<your_name>/django-microblog.git
+        or
+        $ git clone git@github.com:<your_name>/django-microblog.git
+
+Connect to Your Partner
+-----------------------
+
+Finally, you'll want to connect to your partner's repository, so that you can
+each work on your own laptop and still share the changes you make.
+
+.. container:: incremental small
+
+    First, add your partner's repository as ``upstream`` to yours:
+
+    .. code-block:: bash
+        :class: small
+
+        $ git remote add upstream https://github.com/<partner>/django-microblog.git
+        or
+        $ git remote add upstream git@github.com:<partner>/django-microblog.git
+
+.. container:: incremental small
+
+    Then, fetch their copy so that you can easily merge their changes later:
+
+    .. code-block:: bash
+        :class: small
+
+        $ git fetch upstream
+
+
+While You Work
+--------------
+
+.. class:: small
+
+Now, when you switch roles during your work, here's the workflow you can use:
+
+.. class:: small
+
+1. The current driver commits all changes and pushes to their repository:
+
+.. code-block:: bash
+    :class: small
+
+    $ git commit -a -m "Time to switch roles"
+    $ git push origin master
+
+.. class:: small
+
+2. The new driver fetches and merges changes made upstream:
+
+.. code-block:: bash
+    :class: small
+
+    $ git fetch --all
+    $ git branch -a
+    * master
+      remotes/origin/master
+      remotes/upstream/master
+    $ git merge upstream/master
+
+.. class:: small
+
+3. The new driver continues working from where their partner left off.
+
+
+Homework
+--------
+
+For this week's homework, you will need to install the Zope Object Database
+(ZODB)
+
+Instructions for this `may be found here`_.
+
+.. _may be found here: https://github.com/UWPCE-PythonCert/training.python_web/blob/master/resources/common/zodb-install-instructions.rst
+
+This is not trivial work.  Please be sure to start early in the week so if
+there is trouble, you'll be able to recover.

From 08863ac057e90c858ef1a4378a9e8497c312a6f6 Mon Sep 17 00:00:00 2001
From: cewing <cris@crisewing.com>
Date: Mon, 24 Feb 2014 21:20:18 -0800
Subject: [PATCH 2/3] updated and merged

---
 source/presentations/session08.rst | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/source/presentations/session08.rst b/source/presentations/session08.rst
index ca6cea03..2fdfc768 100644
--- a/source/presentations/session08.rst
+++ b/source/presentations/session08.rst
@@ -61,6 +61,7 @@ In order for this to work properly, we'll need to have a few things in place.
         or
         $ git clone git@github.com:<your_name>/django-microblog.git
 
+
 Connect to Your Partner
 -----------------------
 
@@ -136,3 +137,4 @@ Instructions for this `may be found here`_.
 
 This is not trivial work.  Please be sure to start early in the week so if
 there is trouble, you'll be able to recover.
+

From ddb211dabbabcd86d3e01848f7058b98ecdad01e Mon Sep 17 00:00:00 2001
From: cewing <cris@crisewing.com>
Date: Sun, 2 Mar 2014 17:02:02 -0800
Subject: [PATCH 3/3] update cgi_1.py to have a more "correct" shebang

---
 resources/session04/cgi/cgi-bin/cgi_1.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/resources/session04/cgi/cgi-bin/cgi_1.py b/resources/session04/cgi/cgi-bin/cgi_1.py
index b969de64..7dfafcd2 100755
--- a/resources/session04/cgi/cgi-bin/cgi_1.py
+++ b/resources/session04/cgi/cgi-bin/cgi_1.py
@@ -1,5 +1,5 @@
-#!/usr/bin/python
-import cgi
+#!/usr/bin/env python
 
+import cgi
 
 cgi.test()