Welcome! I'm Lorna: engineer, author and speaker. I'm a Developer Evangelist and I love technology and sharing technology with others. On this site you'll find my blog and links to all the other things I think you (or I) might need to know about me - my opinions are my own and not those of my employer or any other organisation. If you'd like to get in touch, please do!


From The Blog

Find Mongo Document By ID Using The PHP Library

My new job as a Developer Advocate with IBM means I get to play with databases for a living (this is the most awesome thing ever invented, seriously). On my travels, I spent some time with MongoDB which is a document database - but I ran into an issue with fetching a record by ID so here's the code I eventually arrived at, so I can refer to it later and if anyone else needs it hopefully they will find it too. Continue reading

Heroku "No app specified"

I've been having a maddening problem where one (but only one) of my heroku apps doesn't know which heroku app it is, which means I need to append --app app-name to every single command. It seemed to happen when I moved my app to an organisation rather than having it on my personal account, but in fact the problem was that at the same time I did that, I set up the build server to deploy it - and so I removed the old heroku git remote and then never added the new one because I exactly shouldn't be pushing to heroku from my laptop as we now deploy via Jenkins.

I was looking for some config file or something that heroku would read but what it actually does is look at whether any of your git remotes are heroku and if so, assume by default that you mean that project! The git URL is on the "Settings" screen from the Heroku web interface, and you just need to add it as a remote to your local project:

git remote add heroku [paste git url from settings screen]

Hopefully this helps someone else stop having to type --app app-name every time they need to do something with their app, it was a tiny problem but quite an annoying one!

MySQL 5.7 Introduces a JSON Data Type

There's a new JSON data type available in MySQL 5.7 that I've been playing with. I wanted to share some examples of when it's useful to have JSON data in your MySQL database and how to work with the new data types (not least so I can refer back to them later!)

MySQL isn't the first database to offer JSON storage; the document databases (such as MongoDB, CouchDB) work on a JSON or JSON-ish basis by design, and other platforms including PostgreSQL, Oracle and SQL Server also have varying degress of JSON support. With such wide adoption as MySQL has, the JSON features are now reaching a new tribe of developers. Continue reading


Talks, Articles, Podcasts, and More

Slides

The Wonderful World of Webhooks


Lead Developer , June 2016
Slides

What To Expect From PHP 7


CakeFest, May 2016
Slides

Get The Best From Git


Continuous Lifecycle, May 2016
Slides

What To Expect From PHP 7


DayCamp4Developers, April 2016
Slides

Surviving Code Reviews


Codemotion, March 2016
Slides

What to Expect from PHP 7


CodeMotion, March 2016