Showing posts with label precautions. Show all posts
Showing posts with label precautions. Show all posts

Wednesday, 11 March 2026

How AI Helped Me Update My Ancient Blog Template

Modernising My Blog Template

This idea had been on my mind for a few days. I was encouraged to go ahead with it after I read that the CTO of Microsoft Azure, Mark Russinovich, had reviewed some assembler code he wrote for the Apple II 6502 processor in 1986 using Anthropic's Claude Opus 4.6 AI model. It had read, analysed, and then found bugs in the code. [ZDNet: AI is getting scary good at finding hidden software bugs - even in decades-old code]

That was enough for me to consider reviewing the Google Blogger template that serves my blog. Though I started my blog in 2003, I started publishing on Google Blogger around 2007 and migrated the content from an old hosting service between 2010 and 2012.

Blog - Brick by heavy brick (August 2010)

The Analysis Process

I grabbed the HTML code with all its CSS yesterday and asked Anthropic's Claude Sonnet 4.6 to examine, analyse, and explain it before recommending how to update and optimise the code.

The codebase was 2,307 lines with 94,125 characters. It identified the time frame in which the template was created, from the code patterns of that era, breaking down the elements into ten sections and identifying what function each performed. It then analysed the different versions of HTML used, and I had code from HTML1 to HTML4 littered throughout the template.

Key Improvements Implemented

About ten minutes later, it addressed thirteen elements as shown below:

Suggested Changes to my Google Blogger Template

Then I asked it to integrate all the suggested changes into a comprehensive new code to use as my updated template:

  1. Remove duplicate legacy _gaq analytics block at the bottom
  2. Remove gtag('config', 'UA-7677511-4') from GA4 block
  3. Remove Alexa verification tag
  4. Remove IE9 compatibility tag
  5. Update Twitter embed format
  6. Fix HTTP email icon to HTTPS
  7. Make description meta tag dynamic
  8. Add Open Graph and Twitter Card meta tags
  9. Update Google Custom Search script
  10. Remove obsolete Google Stars code
  11. Remove obsolete CSS vendor prefixes (the -moz-border-radius, -webkit-, -goog-ms- prefixes)
  12. Remove revisit-after and keywords meta tags
  13. Update language translation widget to Google Translate Widget

The Result

With comments inserted to show where changes were made, I ended up with 2,272 lines and 87,382 characters. I have 1,000,000 points allocated for my monthly subscription to Poe.com, and I was charged extra points to process this activity. The initial analysis cost $0.17 (5,765 points), the integration was $0.65 (21,721 points), and the final user interface and experience element was $0.17 (5,765 points), totalling $0.99 (33,251 points).

Fine-Tuning the Translation Widget

What I was given from the Google Translate Widget was a list of all languages without the possibility of scrolling to the right after languages beginning with the letter M. I asked the AI model to review the code, first explaining the situation and posing the question: "Is there a way to select a language by typing in the first letter and then being given a list to select from?"

This was fixed by adding the option to start typing letters from a language name; the user is then presented with a list of languages to translate to.

Safety and Verification

Obviously, as a precaution (because I have read about AI causing problems like wiping out databases and such like), I made a backup of the template before I started anything, and I have made copies over time to ensure I can revert to status quo ante.

The Google Blogger Theme customisation tool also has a preview function. Critically, I wanted to retain the look and feel of my blog, regardless of the changes made. This meant I could check that everything was in the right place before committing to changing the template.

Conclusion

I suppose the time and cost that using AI has saved in updating the template is the key point here. This was all done within 30 minutes for $0.99 (£0.74), which is remarkable.

There is increasing trust in using AI models and tools, but you must always verify, check, and reverify before using AI-reviewed code in any environment, whether personal, experimental, or production.

A Google NotebookLM AI Audio Overview Discussion of this blog

Tuesday, 5 July 2022

Coronavirus streets between continents - LXVIII

It is still here

One statistic that rarely makes the news these days is the number of COVID-19 infections anywhere, back home in the UK, through countries that one does transit and now in South Africa where I will be for a month. When I left the UK last week, the rate of infections was rising, and the government website provides figures of 116,312 new cases in the 7 days to the 26th of June 2022.

Every indication would suggest this dreadful virus is not beyond us, even for the fully vaccinated and boosted, the risk remains and so precautions are necessary which I barely see anyone adhere to. On my flight from Manchester to Amsterdam, there were a handful of face mask wearers. Apart from when I needed a sip of water, I had my face mask on the whole time.

Carefree and without

On the Amsterdam to Cape Town leg of about 11 hours, whilst it was advised we don face masks, it was neither enforced nor announced. Left to their devices, a majority chose not to wear a face mask for the entire flight, in my case, I was not ready to take the risk except for the times I had drinks and meals.

I was first to disembark the plane in Cape Town and first through health checks and passport control, and until during the Ebola virus times, there was no one standing around with a temperature gun, life has returned to uneasy normalcy that is as daring and it could be foolhardy.

On one Uber ride the driver half remonstrated that face masks were optional, we did not need to wear face masks, I would rather not have the option of getting infected in the remotest way, so I keep my face mask on and more times than not, I am the strange looking one because I have my face covered and everyone else is happily without.

No courting danger

Seeing that I have just come through a bout of flu after my arrival in Cape Town that took me out of effective ability to do much for myself, talk less of anyone else, much that I desired to attend church on Sunday, I was not up to it. The face mask is a temporary inconvenience and I have more than enough in supply to last months.

In my view, we still need to be careful, people who have had COVID-19 though mild in their symptoms have not had the kind of recovery that represents a complete eradication of the effects of the virus, I would rather err on the side of caution than walk bare-chested into the lion’s den of a raging pandemic. We have to learn to live with COVID-19, but smartly too.

Tuesday, 1 February 2022

Face masks should not be political

From a brother to all

After the Sung Eucharist on Sunday, the Dean of the cathedral before dismissing the congregation advised that we should all attend church wearing face masks, despite the relaxation of requirements and guidelines by the government. He said it would be a preference for our safety to wear face masks, and though he would not throw anyone out of the cathedral for not wearing one, we are in a community where we are each other’s brother’s keeper.

Much as there is much science, disputing, disagreement and clamour about the safety or protection a face mask confers, it is not perfect, but the consensus is that sort of face-covering provides some protection.

Mzansi doing better

I have been in South Africa at the height of the pandemic when there was a highly transmissible variant at a time when there was no vaccine and recently in the advent of another variant where there is a vaccine available.

South Africans appear to adhere to a higher standard of consideration and safety than I have ever witnessed in England. Many wear face masks when outdoors, before we access any public premises especially in the hospitality or commercial sector, there is a hand sanitising device at the entrance, probably someone would take your temperature and some places would take your telephone number for test and trace purposes.

All precautions matter

It is sad that the matter of face masks has been politicised, in the quest for individuality and liberty at the expense of community and consideration for others that we do each other more unnecessary harm. In addition, I avoid crowds and enclosed places, social distancing matters and as I am in the cohort of the vulnerable, I do not need to attend office premises, I can continue to work from home.

That I am fully vaccinated with a booster gives me a good fighting chance if I do contract the Coronavirus, but I am not because of those precautions going to throw caution to the wind and face the virus head-on in some fortuitous daring-do, the face mask is a temporary inconvenience as much as it is a practical, though imperfect screen from directly inhaling contaminated particles from the asymptomatic.

They carelessly endanger others

One can only wonder how dreadful it must be that yesterday evening Liz Truss, Secretary of State for Foreign, Commonwealth and Development Affairs of the United Kingdom, was in the House of Commons amongst her colleagues on the front bench without a face mask, only to announce a few hours later that she had tested positive for COVID-19 and she has to self-isolate at home when she was scheduled to be off on a diplomatic mission to Ukraine.

Whilst I am not alluding to anything about the benefit or otherwise of face masks in that particular scenario, the exhalation of viral droplets in her asymptomatic seating could quite well have endangered and subjected some of those sitting nearest to her to contracting the virus. Even if they are fine, they probably need to test themselves just to remove the anxiety of taking ill. The fact that many symptoms are mild does not preclude the life-threatening nature of COVID-19.

Let’s keep safe

It is important that we return to viewing the face mask as a public health issue, a community matter and with the consideration of being our brothers’ keeper, it needs to be depoliticised and removed from the canon of dogmatic libertarian ideals of individualism to the detriment of common purpose and society.

People have needlessly died taking unreasonable positions during this pandemic, there might be no statistics for those who never contracted the Coronavirus at all, nothing wrong in not being counted if with all precautions you have been spared the fate of an unpredictable encounter with the Coronavirus.

Please, stay safe and do everything to help put this pandemic behind us. Thank you.

Wednesday, 15 December 2021

Coronavirus streets on my mind - LII

On the advent of the pandemic

In a way, I want to reflect on my experience of this Coronavirus pandemic; it has been troubling, difficult, and long. If I dwelt on the incompetence of my government that has marshalled and shepherded a death rate still unrivalled amongst its peers in Europe, I would find myself a misfit amongst other things, but I have to think for myself and those in my immediate community.

When the pandemic started, I was first classed in the highly vulnerable cohort and required to shield, but the British HIV Association came out with an update advising that those of us with an undetectable viral load and a CD4 cell count above 250, should not need to shield.

That did not make me any less vulnerable as anyone with HIV is immunosuppressed to a degree, we still need to continue our medication regimes and attend our scheduled check-ups. I had returned from South Africa by mid-January 2020 and within 2 weeks I was down with a water infection that required an albeit short hospital admission and weeks of weakness that took a while to recuperate from.

The choices that chilled

If that illness had happened in April, I would have been asked to stay at home and hope for the best when intravenous antibiotics and two sessions of electrolytes would have been needed to get me back to normal. The thought that doctors had unilaterally placed Do Not Resuscitate on a whole swathe of vulnerable patients on their register to apparently save the NHS sent a chill down my spine.

Blog - Thought Picnic: From chills to thrills in health updates

I for one kept isolated as much as I could, wore a face mask everywhere, avoided crowds and enclosed places. I even took to walking exercises as I longed for the opportunity to return to South Africa to be with Brian and that was not until mid-December. If I had not left in the week that I did, I would have been caught by the lockdown in the UK that fuelled another wave of infections and deaths.

Personal precautions, all the time

In South Africa, we had a lockdown too, with a curfew and an alcohol ban, though we could not visit the beach, we could the parks and botanical gardens which we took advantage of. Everywhere we went, we had to don facemasks, had our temperature taken, sanitise our hands and leave our contact details for track and trace purposes. There was a variant on the loose, but we were not careless about our health and welfare.

The only time we ended up in anything like a crowd was when we had to take fitness to travel PCR tests, for at that time, only one laboratory offered reliable tests accepted for travel purposes. This was before there was a vaccine and when we had not yet been offered the option to take it.

On return to the UK, I had to self-isolate at home for 10 days, but I was invited on the 5th day for a test that proved negative and so earned an early release from my isolation. All the while, I was working from home and doing my best to thrive, despite the circumstances.

Every measure for safe living

Through this year, I had my first Pfizer jab in the last week of February, the Delta variant turned into a community threat from April into May, requiring another lockdown and in the first week of May, I got my second Pfizer jab. Much as we planned for another rendezvous in South Africa, it was beginning to look like we might not meet until the end of the year.

I had my hospital consultations for HIV in April and October, my annual flu jab and then took my third Pfizer jab or the booster shot in the second week of November. From October, we had decided December was the earliest we could meet again, and I put in my plans for holiday for the whole of December and the first two weeks of January. I would suppose I was granted the time compassionately with respect to my circumstances and the agency has provided a stand-in for the time that I am away.

Much as we are vaccinated, we are not throwing caution to the winds, as the same precautions we observed last year when there was no vaccine, we have observed diligently even as many we see on the streets seem to care nothing about the pandemic that has hardly gone away.

Calm in the face of turmoil

Just a week before my departure from England, South Africa and neighbouring southern African countries were placed on the red list that required any returnees to the UK to take up exorbitant hotel quarantine for 11 nights regardless of vaccination status, it could have scuppered our plans, but as my absence would be for 6 weeks and we were still learning about the Omicron variant, I felt that things would change during that period. I had to field many enquiries about my plans, but I remained calm and sanguine.

I changed nothing about my plans and flew out on the 3rd of December, I am glad to note that the red list has been completely depleted from this morning and it is my hope that no radical changes occur for the rest of my sojourn here. Despite what the governments in many countries think they should be doing regarding this pandemic; I think they should be giving us advice and full information about the state of the pandemic.

Not getting too smart about it

However, I think it is now down to personal responsibility to take the utmost and particular attention to one’s health, to get vaccinated, to take precautions, and to navigate out Coronavirus streets with moderation, common sense and every safety measure to avoid contracting this virus.

Much as I cannot understand the inclination for vaccine hesitancy from the unlearned, talk less of those in the health services, I can only wonder how they expect to fight a virus with a naïve immune system, but each to their own, I know, I need vaccines against many things and some I cannot take like the yellow fever vaccine because it has a life though attenuated virus.

We are making the best of the time we have together and that is also for our health, our wellbeing and most importantly, our mental health too.

Blog - Quarantined in my self-isolation

Saturday, 23 October 2021

Coronavirus streets from Manchester to London - XLVII

It is still wild out there

I have tried to ignore the COVID-19 situation in the UK almost to no avail. It probably would not have concerned me that much until I had to travel to London. I booked my audaciously exorbitantly priced travel ticket with a seat reservation and arrived on time at the train station to board my train, whereupon the train on boarding platform was a train delayed, the train scheduled to leave before mine.

As we waited on the concourse with the main indicators showing my train as expected to depart on the same platform, the platform indicator suddenly switched from 18:55 Delayed to 19:15 On Time.

Sardines to the train

Just like that, Avanti West Coast, the train franchise company was going to load two sets of passengers meant for different trains on to one train without announcing the heretofore delayed train had been cancelled and the newly designated scheduled train meant to leave on time, soon was delayed too.

Seat reservations had become a mess as the reserved seats for our train had already been occupied by passengers of the earlier train, who had boarded earlier quite completely unaware of what was going on and no explanation was given.

When I found a seat beside my reserved seat, the train was already overcrowded and fully declassified. There is no point paying the full whack for first class seats on Avanti West Coast because it would be devalued to standard class before the train has departed the station.

No pandemic situation here

There were stickers inside my carriage to ‘Respect Social Distancing’, that was impossible and as a representative of company wrote to me on Twitter, they were following government guidance. From my vantage point in an aisle seat set in the middle of a 63-seat carriage, only two of us were wearing face masks in what was essentially a closed carriage.

Everything that should not be happening during a pandemic found expression here, a complete lack of concern for that fact that times were quite serious, we were in a seated yet crowded space, confined with poor ventilation, that the air-conditioning could not keep the carriage cool, and literally everyone without face masks.

9 carriages hurtling down to London from Manchester for just over 2 hours, full of whoever, strangers all, none checked for vaccination or COVID-19 status, if there was a place for a super-spreader situation, this was it. God forbid the worst.

We are ignoring a problem

It compounds several levels of irresponsibility from a lethargic government unable to proactively act to arrest the growing infection rate in the UK that has for weeks topped or rivalled the stakes globally, to companies like Avanti West Coast operating under the cover and license of government guidelines that if anyone catches anything, there would be no means of tracking and tracing for proximity and contact to get anyone who might have been inadvertently exposed to quarantine.

You then wonder if without any equivalent premises control measures for trains to gain a grip on this Coronavirus pandemic, these modes of transport are not part of the problem with the UK facing the possibility of another long lockdown at home if the lock outs from countries abroad don’t begin to gather pace already. For Morocco has already barred flights from the UK. [BBC News: Morocco bans UK flights due to Covid cases rising]

Our Coronavirus streets are not going away, anytime soon.

Saturday, 16 January 2021

The onerous protocols of CoVID

Everything for the outing

Before you leave your home, you don a mask whilst having at least one to spare, just in case the ear straps break, or you just need to replace it because of some mishap. You will be refused entry to any establishment without a mask; besides, it is now an offence to be without a mask covering both your nose and mouth when in a public space.

As you arrive at a place, you can expect the following activities which begin with sanitising your hands, the many times you do this can present a dermatological crisis. Then a scanning gun is pointed at you to take your body temperature. I have registered as low as 34.30 Celsius, but this might be due to environmental factors than being poikilothermic.

Document your existence

Forms to fill, your name and phone number, where you are staying, your passport number, whether you have had symptoms, who you might have encountered that had symptoms, if you have been at a rave and then you swear by any religious tome of choice to be truthful and only be true.

Leaving the country comes with other requirements, all the places you stayed at, then went to for whatever duration, when you arrived and when you are leaving, your destination address, your next of kin with contact details. Not forgetting, you must have taken a SARS-CoV-2 test which should be negative, or you are going nowhere. The protocols of CoVID are myriads and I look forward to 10 days of quarantine.

Tuesday, 29 December 2020

Coronavirus streets in Cape Town - II

Regulations alert

I have just finished reading the 19 pages of the government gazette regarding the Adjusted Alert Level 3 restrictions instituted by the South African Government, presaged by the national address by President Cyril Ramaphosa last night. [BusinessTech: Here are all the new lockdown level 3 changes – including which businesses have to close] (The gazette is linked below the news story.)

During this pandemic, things have been in flux to such an extent that one cannot act in haste, you look to the long-term and act with discretion and discernment. It is important to be fully informed of what has been promulgated and how it affects one, especially when one is on holiday in a foreign land.

Whilst the restrictions would appear to be quite difficult for those visiting as tourists, I have lived under similar lockdowns in Manchester for most of the year. As long as we can go out for walks to take the breeze and get the essentials for living, we would most likely be fine.

A false sense of security

Cape Town has been determined to be a hotspot, from what I have observed in my just over 2 weeks of being here, I am not entirely surprised as I observed in my previous blogs, there are many who think this pandemic is behind us as the opening of certain establishments to things presented as protocols giving us a false sense of security to let our guard down.

The total prohibition of alcohol sales with the perceived or actual consequences of the consumption of alcohol suggests the government thinks there is an alcohol problem in the country. Besides CoVID-19 related hospital admissions, those that pertain to alcohol consumption follow closely exacerbating unruly behaviours, illegality, recklessness, and violence. The president mentioned amongst other things, bullet wounds in relation to this.

Coping with a pandemic

Being in the Cape, we would miss visiting the Cape Winelands that we have always enjoyed going to. It must be devastating for those businesses, but the fundamental is the preservation of lives first above all else. It is a shame that parks and beaches are closed, the botanical gardens remain open.

The borders have not been closed, international travel can still take place, subject to existing requirements, the presentation of a negative SARS-CoV-2 PCR test at arrival amongst other things. Hotel accommodations can take full capacity, but faith gatherings are prohibited.

The government has made it a criminal offence not to don a face mask covering both the nose and mouth when in a public space. Looking out of my window, most seem to have pulled up the mask to cover their noses, others might need a bit more persuasion.

We made the decision, Brian and I, to meet up again in Cape Town after 11 difficult months apart, for us as a couple, it has been wonderful, some plans might have to postponed for better times ahead, which is a shame. We celebrated our second anniversary yesterday and make the best of it all.

Monday, 28 December 2020

Coronavirus streets in Cape Town - I

Doing everything possible

The incidents of Coronavirus infections in South Africa is quite concerning that there is a constant review of policies and options to gain control of the pandemic and reduce the spread of the virus.

Generally, the standard protocols apply, avoiding crowds, avoiding close contact, and keeping away from closed spaces. We wear masks that cover the mouth and nose fully, sanitise our hands anywhere we go, mostly in the shops. Some restaurants and establishments go further by scanning your temperature and taking down your details before you can access their services.

With all these precautions there still seems to be a lot of clear and present dangers, of much concern is closed spaces. We are masked and socially distanced but the closed spaces without extensive ventilation might well be unwittingly super-spreader locations.

Things of concern

The indoor places are usually not open enough and I doubt where air-conditioning is present, the recirculation of air is as safe as it portends. People are however still going about their business that makes you wonder if there is something amiss.

On the registers that document visits of patrons, there are fields for names, addresses, identification numbers (optional), phone numbers, and recorded body temperature. One would expect there to be a time in and time out column too. It is bureaucratic but necessary, you do not want to pile together all visitors to a location where it is unlikely any two people encountered each other there.

The absence of time recordings mean that if anyone contracts the virus and tests positive, everyone who attended the establishment on that day if records are clean and properly maintained, or who has attended over the last couple of days will get contracted of their possible exposure with no indication or detail as to the way and means by which they have been endangered.

Living on prayer

As much as we should avoid letting paranoia and suspicion become our lodestar, as we cannot tell whether anyone is affected on sight and as people are asymptomatic but infectious long before they present any symptoms, you have to assume everyone is a possible vector until proven otherwise. With strangers, you only have their word in terms of where they have been, who they have been in contact with and whether they will be truthful about their recent exposure and history.

All these factors weigh on one’s mind that you have to be very careful of what you do and where you go, or you complete sequester yourself and shun every circumstance that could put you in a vulnerable situation. There are ramifications in unintended and radically consequential ways, we need to be conscious, conversant, and conscientious. We can gain control of this thing, it will take time and as things are in such flux, we live from day-to-day alert, in hope, and in prayer.