"Try not to become a man of success. Rather become a man of value." -Albert Einstein

Sunday, September 25, 2022

Code Writing

I have been involved with computers for almost 40 years now and have progressed from coding simple HTML pages where a blinking text header was the “thing” to do. Back then, any progress made in enhancing your web site was a big deal.

[Read more…]

Monday, September 5, 2022

Raspberry Pi

Just before the pandemic hit in March 2020, I had decided to buy a Raspberry Pi kit including a monitor that I found for under $100. Once the country shut down, I had a project to keep me busy.

[Read more…]

Tuesday, May 10, 2022

Email Notifications

Now that I have returned to FlatPress as my blog software of choice, I have been trying to figure out how to send email notifications when a new blog is posted. There are plenty of examples online on how to do this but in 95% of the instances, the code works with a database driven blog system. FlatPress is a flat file based system meaning that it is somewhat more difficult to pull the blog titles from the text files housing the blog post itself.

I found a script that seems to do just that however…it updates the blog titles and then sends out the email notification using a “newsletter” document to notify all of the subscribers that a new blog has been posted. One small detail is left out however…the email notification has to be triggered by the administrator, it is not automatic as I would like it to be. It works by reading the rss feed that is part of the blog system site and checks to see if the titles match the titles that were there the last time a notification was sent out. If there are no changes, no email is sent. I am in the process of “tweaking” what the email looks like and just as you might expect, different email servers display the email differently. As an example, Outlook (hotmail) does not show the blog title link as clickable and one of the other email servers does not display the image that is part of the newsletter. Practice makes perfect however, and who knows…I may be able to figure out how to have the notification sent out automatically. I can dream, can’t I?

Blogmaster

Friday, May 6, 2022

Blog Subscribers

I have been looking for a script that will allow subscribers to this blog to receive email notifications when a new blog post has been added. I have been told to use the RSS/Atom option that the system provides, but if the user doesn’t have an RSS reader, all he will get is a file that will have to be opened in order to see what the contents are. What is going to make it difficult to implement is that the posts are inserted into files, rather than a database and up to this point, I have not been able to figure out how to set up the email notification. I will keep trying however, if for no other reason than to learn a different aspect of the php language. Wish me luck.