Using Cursor to Generate Code

I have written about the use of AI in programming previously but I recently came across Cursor which is Visual Studio Code with AI built in so I thought I would give it a go but what to do?

Road Trip

I have recently returned from a driving holiday around the East Coast of the US and was, as ever, amazed at the price of petrol (“gas”) compared to the UK but how much cheaper was it? I decided that this would make a simple test for Cursor.

As always, what is important is the prompt you give the AI … 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

Using a Raspberry Pi Camera to create a time-lapsed video (Revisited)

Last January I wrote about the Raspberry Pi Camera that I had set-up to take hourly pictures of my garden which I then turned in to a time lapse video. You can read about that and see the resulting videos and code here:

One of the things that I said at the time I wanted to do was to do a video that cover the whole year. Now that 12 months have passed since the first snaps taken I am in a position to do so.

Getting the Pictures

Like … Read the rest

Forwarding SMS from US to UK via Twilio

I’m going to the States soon and have been looking at booking up some restaurants while I’m away. In particular, I wanted to book for Cheesecake Factory, but when I went to do so, I found I could only do that if I registered. Fair enough, so I went to the registration page. I discovered that you needed a US mobile number that they could text a code to. 🙁

I suspect that at this point most would have given up and joined the wait line at the restaurant but not me. I needed a solution to this pressing problem … 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

Object Identification on iOS

I belong to a walking group called “Walking with Cameras” which is pretty good in not being too sniffy about what camera you bring. This means there are quite a few iPhones, a smattering of Android devices along with some compacts and DSLRs.

We reached an open area where several varieties of wildflowers were growing and the discussion turned first to what they were and then to how there were dedicated apps that would identify them (which nobody had installed!).

I whipped out my iPhone snapped a few pictures of the flowers and then opened the Photos app. If you … Read the rest

Computer Education in Schools in the 1980s

Not long after I’d published my previous post on the Computer Education in Schools Instruction Language I found a wad of paper that turned out to be my notes from the first year of my O-Level Computer Science course. I thought it might be interesting to see what was there and how computing was taught in the UK in the 80s.

Starting with CESIL

The earliest page is dated 12th September 1979 when I would have just turned 14. At this point our introduction to programming was via the CESIL language. I said in the previous post that this interpreter … 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

Update to WordPress Posts to PDF – Final Version

I have just pushed what will be the last version of my script to export your WordPress posts to a nicely formatted PDF file to my GitHub page.

Firstly, the good news. This version now supports BLOCKQUOTEs which means that the WordPress quote block is rendered in a way that it is more obviously a quote. There has also been an improvement in the output of code blocks but support for this is still pretty basic but does now work.

Now the bad news. While looking at the output from my own sites I found that some posts weren’t … Read the rest