Using php2Bluesky without Composer

I have been asked how to use my php2Bluesky library without having to install it using Composer. Given that this is a common request I thought that I would document it here.

Pros and Cons of Composer

Before we get into the specifics of using php2Bluesky without Composer let’s take a quick look at the pros and cons of using Composer. Feel free to skip this bit and go straight to how to use php2Bluesky without Composer!

Using Composer to install a package has several advantages over manually downloading the code and requiring it. Composer automates dependency management, … Read the rest

COLMi Smart Ring

I have been looking for a way to track my sleep habits, and given that I love a good gadget, I thought that this might be the way to go. Initially, I tried wearing my Apple Watch in bed, but I found it uncomfortable and the results didn’t seem very accurate, so I gave that up. Then, I was listening to The Rest is Politics podcast, and Rory Stewart was waxing lyrical about his Oura smart ring, and I thought now that might just be the answer.

If you’re Rory Stewart being paid £1 million a year for your … Read the rest

Preparing and Adding a new Project to git

I always struggle when I am ready to push my first commit to a new repository and always end up with errors, so I thought I would document the process here as an aide memoir for me and, hopefully, others will find it useful too.

Prerequisites

These instructions are for when you have already got a folder of code that you want to commit for the first time to git. The first thing to do is to create and setup your .gitignore file. This tells git which files to exclude when uploading. Things to include here are config files with … Read the rest

Discogs Wrapped

If you’re not a Spotify user, as I’m not, then all the self-congratulatory Spotify Wrapped posts at the end of each year can become quite wearing. It’s not that I don’t listen to music; it’s just that I don’t consume it through streaming. I’m an old-fashioned, physical music kind of guy, and I have lots of vinyl records.

What I thought if I could have my own version of Spotify Wrapped? Enter…

Discogs Wrapped

My music media collection is all catalogued in the online service Discogs which also has an api. In fact, it was this that I used this … Read the rest

Introducing v2 of php2Bluesky

There was an issue raised recently on my php2Bluesky library pointing out that the dimensions of images weren’t being passed and so they weren’t being displayed on Bluesky correctly. On investigation, I found this to be correct, but because of the way the code was currently implemented, I couldn’t fix it. The library needed to have control of the upload of images in order to get the dimensions and currently that wasn’t the case.

Breaking Changes Incoming

The history of php2Bluesky is that it started as a series of functions in a larger side project I was working on. I … Read the rest

jolpica2ergast F1 Database Updater

In addition to this blog and my personal blog I also maintain a Williams Racing fan site at https://williamsdb.com. In fact, this is my longest running site having first gone live on 6th May 1996. As you can imagine this has gone through a number of itterations over the years and the latest makes extensive use of a results database called Ergast.

And then it was gone

About a year ago the maintainer of Ergast announced that he was going to discontinue updating it at the end of 2024. To be honest, I don’t blame him as it … Read the rest

Remote Connections to a Raspberry Pi

In my last post I wrote about the Raspberry Pi Monitor and how it is a great solution for working with your Raspberry Pi. However, as great as the Pi Monitor is sometimes it is a bit of overkill or too big to carry around which got me to thinking about other ways to access you Pi.

Why would you want to choose one of the following? Well, they require little or no extra hardware, are cheap to implement and run, and have the added benefit of the possibility of remote access.

Here are three other methods which you might … Read the rest

Raspberry Pi Monitor

I’ve long been an admirer of the Raspberry Pi, but until very recently, my usage has been limited to mostly Pi Zeros, which I control from the command line. As part of my teaching Scratch I found that it could control hardware which paired with a Pi so I thought I’d give that a go and it all snowballed a bit from there!

Firstly, I couldn’t do what I wanted with a Zero, so I bought a second-hand 4B 4GB (which turned out to be only 2GB, but that’s another story) and installed a desktop. I found it painfully slow … Read the rest

My Christmas card to you (in Scratch)

I wrote in an earlier post about how children, when taught programming at primary school, may be using the language Scratch. Now I am back with another example of what it can be used for with an animated Christmas greeting to you. Enjoy!

Click on the green flag to start the animation and turn the volume up!

Read the rest

What Should I Play next?

I’ve got a lot of records (At the time of writing 1,076 Discogs tells me) and I always seem to gravitate to the same ones. I decided I needed help to selecting something to play so I wrote Now Playing to help guide me.

The Discogs API

Like many, I record details of my collection on the online service Discogs, which contains a user-generated database of audio releases in whatever format they are or were available. It also has an API that allows you to access certain information that is held within its database. If you are authenticated that … Read the rest