When Did I Last? (WDiL) – Version 4

It’s been a while since I last pushed a new version of WDiL but finally I got round to adding the few things left that I wanted in the app – most notably notifications. Read on for details of that and everything else that’s included.

New Functionality

Let’s take a look at what has been included in this latest release:

  • the interval between triggers is now shown on the trigger stats page
  • added a user account page to allow setting of Pushover details
  • send reminders notifications via email and Pushover
  • fixed some bugs.

Notifications

One of the things I felt … Read the rest

When Did I Last? (WDiL) – Version 3

I’ve pushed another update to WDiL adding lots of new functionality and bug fixes. The most impactful of these is the forgotten password routine as this now requires the addition of the ever reliable PHPMailer. However, the most useful and visible are the changes on the activity stats page which now includes more statistics and a graph showing trends.

New Functionality

Let’s take a look at what has been included in this latest release:

  • graph of triggers and intervals on stats page
  • details of the general interval trend on stats page
  • you can add a comment to a trigger
Read the rest

When Did I Last? (WDiL) – Version 2

When I launched WDiL earlier this week I knew that it was what might be politely described as a MVP. And while I like SimpleCSS it doesn’t make for the most attractive sites. Therefore, I set about making it more appealing while also adding more functionality.

Moving from Simple CSS

I spent quite a bit of time looking for a pre-built theme that I could use as the basis of WDiL but none seemed to be where I wanted to go. In the end, I plumped for vanilla Bootstrap which with its pre-built components allowed me to get a … Read the rest

When Did I Last? (WDiL)

My electric toothbrush seems to be running out of charge quicker and quicker but is it or am I just misremembering when I last charged it? This is the first world challenge that I set about to change with WDiL!

Introducing When Did I Last? (WDiL)

WDiL aims to help solve those sorts of problems by allowing you to record every time you do something and then see stats on things such as frequency and average interval.

While I have tried to make it very simple it still requires a bit of setup and hosting by you. As part of … Read the rest

Computer Education in Schools Instruction Language (CESIL)

When I first learned programming in about 1978 the school I attended was lucky to have a Research Machines 380Z on which there was the BASIC language. Using this one of the pupils then wrote a CESIL interpreter for their (I guess) O Level project. Other pupils then used this to learn the fundamentals of programming.

Skip forward a few years and I now owned a Sinclair ZX Spectrum having also previously had a ZX81 too. I decided that I would also write a CESIL interpreter this time using Sinclair’s variant of BASIC. Remarkably I still own the sheets of … Read the rest

Overcast Statistics

Podcasts are huge at the moment and they are pretty much all I listen to these days when I am out walking or in the car. I do this by the (mainly) excellent Overcast app. I say mainly because it has a UI that I struggle to find things in. Anywho, the one thing that it lacks (other than an intuitive UI) are decent stats and I really wanted that for my annual Review of the Year posts over on my personal blog.

After a quick DuckDuckGo I found the following post from James Hodgkinson with a Python … Read the rest

Posting to Bluesky via the API from PHP – Part Five – Putting it all Together

In this series of posts we have looked at:

In this final post we are looking at putting it all together. This includes a worked example plus a complete library of functions that will allow you to easily interact with the Bluesky API.

The Prerequisites

What this project has predominately been about is the correct formatting of the parameters that need to be passed to the Bluesky API. This code does not directly call the API but uses BlueskyApi by Clark Rasmussen to do that.

Here’s … Read the rest

Posting to Bluesky via the API from PHP – Part Four – Link Cards

In this we post we are continuing to look at accessing Bluesky from the API via PHP. Previously we looked at making a connection to Bluesky, posting text, images and handling links and in this post we take a look at Link Cards.

What Even IS a Link Card?

Link Cards are the snippets of a website that is linked to a post that you will no doubt be familiar with seeing elsewhere. Typically, elsewhere these are handled for you but not in Bluesky – here you do all the heavy lifting.

Example of a Link Card

Fetching Details

Read the rest

Posting to Bluesky via the API from PHP – Part Three – Links

So far we have looked at making a connection to Bluesky, posting text and images. In this post I want to look at how links are handled. Unlike X and Mastodon on Bluesky when you post text that includes one or more links these are not parsed and activated. You have to tell Bluesky that you have links in your text and where they are.

Parsing for Links

In order for links to be handled correctly by Bluesky in addition to the text itself you also need to pass an array as part of the parameters giving the start … Read the rest

Posting to Bluesky via the API from PHP – Part Two – Images

In the first of these posts we looked at creating the connection to the Bluesky API and posting a text post. In this second post we are going to extend that out to post images as well as text.

The code posted here are snippets from a larger library of functions that you can drop in and use to post to Bluesky. If some parts look more complex than they need to all will be revealed in the final version.

Uploading Images

In order to post an image to Bluesky you have to take a few steps:

  1. open and ingest
Read the rest