Monday, May 25, 2020 at 10:19:27
The benefit of FlatPress is that it doesn’t use a database… this approach pivots to the axiom of “keep it simple” which should make the rendered site fast, secure, and portable (for example, when I ported from Blosxom to FlatPress). One area where this is particularly evident is backup as all you have to do is copy the content files off the server. You can run this either sever side (putting the files somewhere) or client side (pulling them to a local machine). I’ve opted for the latter approach and my tool of choice is WinSCP (and the portable version), an open source FTP client that includes a n extensive number of reliable and extensible tools. I’ve found WinSCP better than FileZilla, not least because it has reliably handled large file transfers and maintains the create dates of any files you transfer.
Of particular importance for automating FlatPress backup are directory synchronisation and scripting. In fact, the WinSCP GUI can generate the script for you based upon existing profile settings. For completeness this is the very simple script that runs:
synchronize local -mirror
This opens a connection to the server, changes the local and remote directories before mirroring from the remote to the local. On Windows I can then schedule this to run as a daily task.
A good tool for the arsenal!
Saturday, May 23, 2020 at 14:52:33
Journal of Maps
We live in tumultuous times - it is a common refrain for each new generation as the challenges of contemporary society impinge upon their worldview. There is always change and there is no change quite like how we experience it in the here and now and the way in which it disrupts our status quo. Malthus was disturbed by population change and how it would implode the society he inhabited. His thesis - the Principle of Population (1798) - espoused what became known as the Malthusian trap whereby growth in the supply of resources led to an increase in population so negating any boost to living standards. The so-called ‘limits to growth’ remain topical both for proponents and opponents. So is the world we inhabit today any different?
Thursday, May 21, 2020 at 17:18:47
The arrival of a new Windows PC precipitated an upgrade from Visual Studio 2015 to Visual Studio 2019. All of my development is for SQL-based reports which are then deployed to SSRS. As Visual Studio is Microsoft’s “one-size-fits-all” approach to programming, you need to make sure you pick the right “flavour”. In this instance that means SQL Server Data Tools. For VS2015 and VS2017 that is a standalone installer and you need to make sure you select the “Data storage and processing” option which then installs SQL Server Data Tools. For VS2019 some of the functionality has been moved out in to Extensions: for me that mean installing the MS Reporting Services Projects extension.
With that rigmarole out of the way I pointed VS2019 at my Solution file and… I got an error message saying that it couldn’t be upgraded! WTF?! I mean, seriously? Microsoft can’t upgrade from two versions ago? Whilst the RDL report file format hasn’t changed, setting up new Solution files would be a time vampire for no valid reason.
It then struck me that it was worth a punt installing VS2017 to see if the intermediary version could upgrade the VS2015 files, and then move on to VS2019 after that. A 1Gb download and 30 minute install later (seriously!) and VS2017 successfully upgraded the Solution files. I then copied these over to my new machine and VS2019 successfully upgraded those too. It’s one extra step but is then seamless!