One thing that's quite convenient is to be able to throw an exception with a valid HTTP code set and have that code sent to the client. For example, you may have: [crayon-61095e23cb2fc617910768/] With the standard Slim 4 error handler, this response is sent to the client: [crayon-61095e23cb300084285156/] Ideally we want the status code to be 404. Option 1: Use an HttpException The simplest solution
Continue reading 'Setting HTTP status code based on Exception in Slim 4'
Apologies for not publishing this sooner. Back in April I ran my 3rd Sketchnote workshop. I will be running this workshop for the final time on Monday 14th June 12pm (UK time). Click here for more details. I want to thank the following participants who were brave enough to share their creations on twitter: Violetta […]
Continue reading 'Visual Facilitation and Sketchnote Workshop (7th April 2021)'
Welcome to the final instalment in this series of blogs focusing on sustainability by student Debbie Andrews. In this blog Debbie focuses on sustainable toiletries a how small changes can create a big impact.
Continue reading 'Sustainable Health And Beauty'
I don't do that much that's clever with git, but I've found the following helpful. Automatically prune When you do a git fetch or git pull, you can ask it to remove remote tracking branches for a branch that has been removed on the remote by using the --prune flag. This can be automated globally with: [crayon-61095e23cb671169863658/] and if you only want it for a specific repository, you can use: [
Continue reading 'A few Git tips'
One of my clients has recently moved to AnyConnect VPN and I've been having routing problems with the official Mac client. As my colleagues on Linux on the project have not had these issues, I investigated and installed the OpenConnect client. These are my notes after scouring the Internet to set it up how I want it. Installation I used Homebrew: [crayon-61095e23cbb1b520511121/]OpenConnect is a CLI
Continue reading 'OpenConnect on Mac'
When writing PHP for AWS Lambda, Bref is the way to do it. One thing I like about Bref is that you can use PSR-15 Request Handlers to respond to API Gateway HTTP events as documented in the API Gateway HTTP events section of the Bref docs. The request handler is the same as used in PSR-7 micro-frameworks like Slim or Mezzio and can be thought of as a controller action. As such, it's really… continu
Continue reading 'Dependency injection in Serverless PHP with Bref'
One thing that has annoyed me about receiving email is so-called tracker pixels. These usually 1x1px transparent images that are remotely loaded into HTML email enable the sender to track information about be. A good resource about them is No To Spy Pixels. As such I've tended to run my email clients with remote resource loading disabled, which isn't the best experience as a surprising number of le
Continue reading 'MailTrackerBlocker'
With the release of Big Sur, my scripts for keyboard control of macOS notification alerts stopped working. With a bit of experimentation and help from Google, I have written new ones. Closing an alert To close a notification alert on Big Sur, conceptually we want to press the X button that appears when you hover over it. The AppleScript to do this is: [crayon-61095e23cc104676536478/] This is much m
Continue reading 'Keyboard control of Big Sur notification alerts'
I'm very happy to be speaking at The Online PHP Conference this year. As you can guess from the title, this is an online event so is easily accessible right from your desk. thePHP.cc have very kindly made available a couple of tickets to me, so you could attend for free.
Continue reading 'Free ticket to The Online PHP Conference!'
As we reach the end of 2020, I continue my tradition of looking back at my year through the photos that I took as I have done every year since 2009. I have been doing a Project 365 for a good few years which acts as a diary too, so I have the opportunity to appreciate what happened this year in my life. This has been quite a year with the pandemic hitting the UK… continue reading.
Continue reading '2020 in Pictures'
Since 1Password added Apple Watch unlock I've wondered if there are other situations when I need to enter my password where it instead require a click of my Watch instead. I recently came across an article about how to make sudo work with Touch ID, which is nice, but my iMac Pro doesn't have Touch ID. I went searching though and found pam-watchid! This is a PAM module for using the Watch – ex
Continue reading 'Add Apple Watch authentication to sudo'
“The creative adult is the child who survived.” Ursula Le Guin Introducing the new format, skinny Creative Spark e-news…I’m sorry it’s been such a long time since my last e-news. I’ve been busy, which is great, however, it feels a bit hectic. I’ve heard a lot of friends who work in the creative sector saying […]
Continue reading '5 Things You Can Do If You’ve Got a Lot On'
When working on OpenWhisk, I discovered that it needed a different Java to the one I had installed. Looking around the Internet, I discovered jenv which shouldn't have surprised me as I use pyenv and I'm aware of rbenv too. As I use Homebrew, these are the commands I used. Firstly install jenv, the latest Java (15 at this time) and any other versions you need. Java 8 and 12 in this example: [crayon
Continue reading 'Using jenv to select Java version on macOS'
This was the second 99 minute workshop on visual facilitation and sketchnoting. I incorporating some activities from the first workshop, but also introduced some new ones as well. I designed this workshop to be fun and interactive and also the sort of workshop that you could attend multiple times. Last time, I found hosting a […]
Continue reading 'Visual Facilitation and Sketchnote Workshop (4th November 2020)'
On Wednesday 4th November, I will be running my 99 minute workshop on sketchnoting and visual facilitation. How did I prepare for this talk? I decided to complete my 99 second sketchnotes from TestBash Manchester. The 99 second talks are a popular feature of the Ministry of Testing conferences. They are a great way to […]
Continue reading '99 Second Talk #Sketchnotes (TestBash Manchester 2020)'
On Thursday 29th October 2020 was the next test bash conference – test.bash(); Due to the changing circumstances caused by the COVID-19 pandemic, the way conferences are run has had to change a little – well, a lot! As a reult, this conference has had its name changed to test.bash(‘online’); But its not just the […]
Continue reading 'Test.Bash(“#Sketchnotes”);'
This will take place on Friday 2nd October 2020. I will be sketchnoting all the talks including the 99 second talks. These will be added to this post as each sketchnote is completes (hopefully soon after each talk). TestBash Manchester also included a series of pre-TestBash talks which took throughout the week. All the sketchnotes […]
Continue reading 'Test-Bash Manchester 2020 – Fridays talks'
TestBash Manchester has moved online, so instead of taking a trip to the same city that contains the set of Coronation Street, Blue Peter gardens and the Lowry Theatre, we watched the event from the comfort of our own homes (or offices, if you’d returned to them yet). The main event took place on the […]
Continue reading 'TestBash Manchester 2020 – Pre-Bash #Sketchnotes'