PHPnews.io

Overview for 'lornajane'

HTTPMock for Testing a Golang API Client

Written by Lorna Jane / Original link on Mar. 30, 2020

I'm working on an API client for some Nexmo APIs and having tests to work through the various responses that the API can return and check that it does what I expect has been very handy so I thought I'd share my thoughts. I've got a bit of a head start here too since the OpenAPI specs have example …


Remove Accidental Content from Git Commit

Written by Lorna Jane / Original link on Mar. 15, 2020

When I teach git I try to show loads of good practice about how to inspect what's staged before commit, etc etc. Good practice is good of course, but knowing how to undo a mess you created is better - and mistakes will happen. For example, accidentally including a node_modules directory in your oth…



Make Thumbnails of PDF Pages with ImageMagick

Written by Lorna Jane / Original link on Feb. 16, 2020

All my talk slides are PDF - I use rst2pdf to transform text-based ReStructuredText content into presentation slides. With all these PDFs hanging around, it can be very handy to have them as thumbnails. I use the images both in the printable speaker notes that I produce (and I should blog that too …


Instant Test API Platforms with Prism

Written by Lorna Jane / Original link on Jan. 23, 2020

I've been writing a bit about OpenAPI lately and I realised that I didn't share how I'm creating local, test versions of production APIs to work with while I develop new client code or test SDK features. The recipe is simple: you will need an API spec, the excellent open source tool Prism and an HT…


Grab Annotations from a PDF with pypdf2

Written by Lorna Jane / Original link on Jan. 15, 2020

If you've noticed a lot of PDF content around here lately, that's because I work with PDF a lot! Most of all, all my slide decks are in PDF and in the last year or so I've started using speaker notes in my presentations. Yes, this means that if you saw me speak in the first ten years of my speaking …