Retrospective 2019-50

This is a retrospective of my reading and programming last week.

I started reading From Certainty to Uncertainty by F. David Peat this week. Peat is one of my favorite authors. He writes very well about interesting topics.

Previously I’ve read the following books by Peat:

  • A Question of Physics: Conversations in Physics and Biology by Paul Buckley, F. David Peat.
  • Blackfoot Physics: A Journey into the Native American Worldview by F. David Peat.
  • Gentle Action: Bringing Creative Change to a Turbulent World by F. David Peat.
  • Infinite Potential: The Life and Times of David Bohm by F. David Peat.
  • Pathways of Chance by F. David Peat.
  • Quantum Implications: Essays in Honour of David Bohm by Basil Hiley, F. David Peat.
  • Science, Order, and Creativity by David Bohm, F. Peat.
  • Seven Life Lessons of Chaos: Spiritual Wisdom from the Science of Change by John P. Briggs, F. David Peat.
  • Synchronicity: The Marriage of Matter and Psyche by F. David Peat.
  • The Philosopher’s Stone: Chaos, Synchronicity and the Hidden Order of the World by F. David Peat.
  • Turbulent Mirror: An Illustrated Guide to Chaos Theory and the Science of Wholeness by John P. Briggs, F. David Peat.

I’ve also done some programming this week. The reason is that I want to copy my reading history from Twitter to my new microblog.

The first step was to convert my Twitter archive into a file containing the date and text of each tweet. The second step was to write a Python program which reads this file and post it to my blog. See below.

    from wordpress_xmlrpc.methods.posts import GetPosts, NewPost
    from wordpress_xmlrpc.methods.users import GetUserInfo
    from datetime import datetime
    wp = Client('URL', 'USER', 'PSWD')
    wp.call(GetPosts())
    wp.call(GetUserInfo())
    post = WordPressPost()
    post.title = 'TITLE'
    post.terms_names = {
      'post_tag': ['TAG'],
      'category': ['CATEGORY']
    }
    post.post_status = 'publish'
    file = open('FILE', 'r')
    line = file.readline()
    while len(line) > 1:
        post.date = datetime.strptime(line[0:19], '%Y-%m-%d %H:%M:%S')
        post.content = line[20:-1]
        wp.call(NewPost(post))
        line = file.readline()
    file.close()

The third and final step is to let the program do its job. I will have access to seven years reading history at my fingertips when it’s done.


Posted

in

by

Tags:

Comments

Leave a Reply