Ricky Moorhouse

Blog

Hatching chicks at school

At Jessica's school, where I am a governor and Laura works, they've got an incubator of eggs from Living Eggs, so that the school can watch as they hatch into chicks.

On Monday I got a text from Laura wondering if it would be possible to set up a webcam to watch them hatch.  We happened to have a wireless webcam that wasn't being used so that evening I got it out to make sure it was working and configured it with an FTP server to upload photos every minute and if there was motion detected.

The next day I took the webcam into school and got it set up with the help of James who looks after the school computers and network. You can see the latest pictures from the webcam on the school website.

In the early hours of this morning the first egg hatched:

2016 Reading Log

  • The Watchmaker of Filigree Street - Natasha Pulley
  • Divergent (Divergent Trilogy, #1) - Veronica Roth
  • Insurgent (Divergent Trilogy, #2) - Veronica Roth
  • Last Shot (Dev Haskell #6) - Mike Faricy
  • The Chase (Isaac Bell #1) - Clive Cussler
  • JET - Ops Files: Prequel - Russell Blake
  • Mr Swirlee (Dev Haskell -#2) - Mike Faricy
  • The Eagle Tree - Ned Hayes
  • Torch Scene (Reed Ferguson #6) - Renee Pawlish
  • The Geronimo Breach - Russell Blake
  • Career of Evil (Cormoran Strike #3) - Robert Galbraith
  • Bite Me (Dev Haskell #3) - Mike Faricy
  • Soldier (Talon Saga, Book 3) - Julie Kagawa
  • Bulldog (Dev Haskell #9) - Mike Faricy
  • Insatiable (Sydney Rye #3) - Emily Kimelman
  • The Sam Reilly Collection - Christopher Cartwright
    • The Last Airship (Sam Reilly #1)
    • The Mahogany Ship (Sam Reilly #2)
    • Atlantis Stolen (Sam Reilly #3)
  • Dying Declaration - Randy Singer
  • The Enigma Strain (Harvey Bennett #1) - Nick Thacker
  • A Blind Eye (Adam Kaminski #1) - Jane Gorman
  • The Solomon Curse (Fargo Adventures #7) - Clive Cussler, Russell Blake
  • The Cosega Sequence - Brandt Legg
    • Cosega Search (Cosega Sequence #1)
    • Cosega Storm (Cosega Sequence #2)
    • Cosega Shift (Cosega Sequence #3)
  • Death By A HoneyBee (Josiah Reynolds #1) - Abigail Keam
  • The Last Airship (Sam Reilly #1) - Christopher Cartwright
  • Thunder Point (Sean Dillon Series, #2) - Jack Higgins
  • Dog Gone (Dev Haskell #12) - Mike Faricy
  • The Lady Who Sang High (Reed Ferguson #7) - Renee Pawlish
  • Island of Fog (Island of Fog #1) - Keith Robinson
  • Labyrinth of Fire (Island of Fog #2) - Keith Robinson
  • Mountain of Whispers (Island of Fog #3) - Keith Robinson
  • Murder In Paradise - Greg Wilson
  • Lake of Spirits (Island of Fog #4) - Keith Robinson
  • The Burning Page (Invisible Library #3) - Genevieve Cogman
  • Fly by Night (Jammer Davis #2) - Ward Larsen
  • The Amazon Code (Harvey Bennett #2) - Nick Thacker

Automatically publish your API when you push to github

Updated 11th October 2016 for API Connect

In less than half an hour I could update my project to automatically publish my API in IBM API Connect - Here's the steps...

Sign up for API Connect through Bluemix by creating an API Connect service instance - if you don't already have a Bluemix account you can sign up for a free trial account.

Install and configure the new toolkit CLI - replacing eu with au or us if you chose a different bluemix region:

npm install -g apiconnect 
apic config:set server=eu.apiconnect.ibmcloud.com
apic login

Create a product definition for your API:

apic create --type product --title "Travel Information" --apis product.yaml

Adjust the product definition as needed in your favourite editor

Add the x-ibm-configuration extensions to your swagger document to configure what happens when someone calls the API - in my case invoke the backend API

x-ibm-configuration:
  enforced: true
  phase: realized
  testable: true
  cors:
    enabled: true
  assembly:
    execute:
      - invoke:
          title: invoke
          target-url: '<backend url>'

Now switch over to your CodeShip account, load your project and go to the Deployment section of your project.

Add a custom script option and confiigure the following script (adding your details as needed):

npm install -g apiconnect
apic config:set server=eu.apiconnect.ibmcloud.com
apic login -u <username> -p <password>
apic config:set organization=<org>
apic push docs/swagger.yaml
apic stage --catalog=sb docs/travel-information.yaml
apic publish --catalog=sb docs/travel-information.yaml</code>

Commit and push to your repository and your updated API will be pushed to API Management! - Here is my example API

If you don't already have a CodeShip account you can sign up to CodeShip with your github account and create link in your github repository. You can then set up the tests and deployment steps in the project settings.