Saturday 24 April 2021

[SOLVED] Wordpress update failed

 I recently tried to update the wordpress installation on useful.website and got the following message.


The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions.: wp-admin/includes/update-core.php Installation failed.


So here's how I resolved it. My installation is behind the useful.website VPN which protects the login from other countries (esp. China and Russia ) so once I was connected to vpn.useful.website I issued the following command.

sudo chown -R www-data:www-data /path/to/wordpress


Breakdown of the command.

sudo         - switch to superuser for this command
chown     - give ownership to a folder
-R            recurse - so give permission to all files ans folders inside
www-data:www-data  - the user and group that apache web server is using when running wordpress
/path/to/wordpress  - sometimes its /var/www/html or /var/www/my.website.name but its where all the word press files are 

Hopefully this is useful for you. If you want to setup a VPN for protecting your wordpress site, please contact. VPN.team@projektor.co.uk
























Thursday 8 April 2021

How to download a windows 10 iso that fits onto a single layer DVD-R /RW

 I use a dvd-rw to store the latest image of windows 10.

In the recent update the size of the iso file was too big to fit on a single layer disk and the recommendation was to write to dual layer.


However dual layer dvd-rw doesn't exist and I don't want to create more waste.


So here's the method I used ...





Rufus download method...
https://pureinfotech.com/download-older-iso-windows-10/

I used the option to download via browser.

Direct download link analysis:



July 2020 build (4.9GB - may just fit!)

https://software-download.microsoft.com/db/Win10_2004_EnglishInternational_x64.iso?t=aae57666-d259-403a-aa29-75cc3a78936b&e=1617975838&h=6466e7113d27bab35de9221b6cec2313



October 2020 build windows 10 International English
Verdict: too large for DVD-R/W

https://software-download.microsoft.com/db/Win10_20H2_EnglishInternational_x64.iso?t=79540047-6d75-461e-a7f5-a3f5bf358129&e=1617972815&h=8f5914aaff3c79046b62333bee14a461


Friday 12 February 2021

How can I protect my family against COVID19

 It would be great to say "one simple pill" would be a cure. It is not. However there is a significant factor. Here I present recent information I received that is backed up by observation of data and a way to eliminate one factor.



Here's the TLDR ( too long didn't read ) summary.

All detail is provided below.

1. The information

Firstly the information relating specifically to this disease was published in nature website recently. It relates to the Autumn 2020 surge and a main contributing factor.

2. The observation

There is a direct correlation between a drop in  amount of UVB exposure and this happens when the sun is low in the sky.

3. The conclusion

When the UVB exposure drops below a certain level, we are at a significant increased risk of getting Covid. Why? Because UVB exposure allows our bodies to create vitamin D but only at certain times of the year. Unless you live around the equator.

Here's the info you need..


Nature article

https://www.nature.com/articles/s41598-021-81419-w

Where to buy vitamin D3

https://amzn.to/3qiNkoO

Images from the nature article




Where to buy vitamin D3

https://amzn.to/3qiNkoO







Monday 5 October 2020

Windows 10: Is it safe to remove $Windows.~WS folder in C:\ drive [answered]

I recently saved over 3GB of disk space by safely removing the $Windows folder 
Details below.

Here's a lovely windows 10 image from panos@unsplash. Thank you





$Windows.~WS folder in C:\ drive after Windows 10 Installation, Upgrade or Media Creation?


To delete, create the following batch file on your desktop and right click run as administrator.

@delete_WS.bat
@echo off
@echo "This will delete the folder C:\$Windows.~WS and C:\$Windows.~BT after an update to reclaim space. Windows 10 only."
@echo --------------------------------
@echo If you get message "The system cannot find the file specified" it means the folder is already deleted.
@echo --------------------------------
PAUSE
RD /S /Q "C:\$Windows.~WS"
RD /S /Q "C:\$Windows.~BT"
@echo --------------------------------
@echo All done
@echo --------------------------------
PAUSE NULL 


Original source: 


Friday 31 July 2020

PHP: How to get todays date in ISO format compatible with MySQL [answered]

PHP: How to get todays date in ISO format compatible with MySQL [answered]


I often write reports that use date format for selection and need to query a database. I use PHP, so here's the way I get dates.

$dateToday date("Y-m-d");   // 2020-07-31 (iso format can be used in MySQL)

$dateTimeNow date("Y-m-d H:i:s"); // 2020-07-31 08:35:18 (the MySQL DATETIME format)  

I hope this is useful to you.
If you found it useful, perhaps have a listen to my music at Projektor Digital https://app.projektordigital.com/player/index.php?playlist=39&uid=7

Wednesday 8 July 2020

How much is 1 billion pounds [answered]

In a recent broadcast, by chancellor Rishi Sunak, a sum of 3 billion pounds for a green jobs plan was mentioned.

How much is a billion pounds? Google doesn't help by mentioning million pounds in search results.

So in 2020, how much is 1 billion pounds?

1 Billion is now accepted as 1,000 million pounds. As a number 1 billion is 1,000,000,000.
So 1 billion pounds is £1,000,000,000.

In context this is the cost of 40 streets in the UK.

There are 66.65 million people in the UK

Search Results

United Kingdom/Population
66.65
So that means that £1bn is £15 per person in the UK

One billion pounds is approximately £15 per person in UK