Duane Blake

Front end developer

Using the Chat GPT API to create a Tweet from content on a URL

With all the talk going around with Chat GPT and the latest development with AI. I decided to spend some time looking at using the API to create a very small MVP. The aim was to spend a couple of hours building a app. Where a user provides a URL and then selects from a list of predefined tones from the site, the site would then generates the tweet on that link with the chosen tone.

Using the Chat GPT API to create a Tweet from content on a URL

Changing the default validation message on an HTML input tag

Using HTML validation is a good extra protection for using server-side validation. However, I found the validation message used doesn’t always provide the user with enough context about what is wrong with the issue. I’m going to describe how to change this message.

Preventing Search engines indexing pages on your site

They may be situations when you may not want Search engines such as Google and Bing to index pages on your website. For example login pages, testing sites or basket pages. I’m going to list how to do this using the Robot.txt file and add a meta tag to the page.

Preventing Search engines indexing pages on your site

Adding tasks to Todoist from the command line

I’ve been using Todoist for close to ten years. I find it a great tool to track my task and get ideas out of my head. There is a browser implementation and apps which works on pretty much works on every OS. Since I spend a lot of time in my code editors such as Vim and VSCode. Both which have community plugins for Todoist. However I wanted something which will work the same in all my editors which I use. The following code goes through how I wrote a simple bash script to add items to my Todoist account.

Adding tasks to todoist from the command line