[] operator not supported for strings – PHP

I had a problem with Revolution Slider on a WordPress installation when upgrading to PHP 7.2+. It would generate the error – PHP Fatal error: [] operator not supported for strings in C:[path]\wp-content\plugins\revslider\includes\framework\base-admin.class.php:71 The problem was from the plugin attempting to use the short array push syntax on a string: The solution was to modify […]

Display Tiff files on the web

Do you want to display a TIFF image on a webpage? You can learn how here. TIFF files are not made for the web and are not well suited for the web. They used to work in many browsers but as of this writing, support is waning: http://en.wikipedia.org/wiki/Comparison_of_web_browsers#Image_format_support. TIFF files are very large and contain layer […]

Thai Green Curry Paste

1 stalk lemongrass, minced OR 3 Tbsp. prepared frozen or bottled lemongrass (available at Asian stores) 1-3 green chilies, sliced (Thai green chilies OR jalapeno) 1 shallot, sliced, OR 4 Tbsp. minced purple onion 4-5 cloves garlic 1 thumb-size piece of galangal OR ginger, thinly sliced 1/2 cup chopped fresh coriander/cilantro leaves & stems 1/2 […]

Enabling SSL Over TLS For Filezilla Server

In order to encrypt communications via FTP, which is obviously more secure,  you should connect to a server using FTP over TLS. When you are using Filezilla Server this process is quite easy and can be completed in under 5 minutes. The certificate in the following steps will generate warnings as it isn’t issued by […]

Leverage Browser Caching in IIS Web.config

Google’s Page Speed test recommends the we leverage browser caching. To do this in Windows using IIS, open the site’s web.config and add a client caching directive:   <system.webServer> <staticContent> <clientCache cacheControlMode=”UseMaxAge” cacheControlMaxAge=”365.00:00:00″/> </staticContent> </system.webServer>   **There are “per file” rules that can be applied but this seems to be sufficient for Google

Invalid Request OpenSSL Error: Adding a new site to MainWP on Windows

I have been setting up MainWP on Windows and I ran into an issue when trying to add my first site. MainWP’s dashboard gave me an error, “Invalid Request” – not very descriptive. When I looked in my PHP error log I found: “[10-Dec-2016 14:20:34 UTC] PHP Warning: openssl_pkey_get_details() expects parameter 1 to be resource, […]

Optimizing a Website – Speed and Mobile

Documenting my attempts to optimize my site. Going to use Page Speed,  , as well as tips from: //conceptclarity.ca/speed-optimization-tips-from-wpmu-dev/ — Second set of tests will be: http://speedtest.serverresources.info/ Step 1: Starting stats Using Google Page Speed Insights 3 times (I have found it can vary wildly) https://developers.google.com/speed/pagespeed/insights/?url=conceptclarity.ca&tab=desktop Results: mobile/Desktop Run 1: 59/79 Run 2: 63/79 Run 3: […]

Configure Filezilla for Passive FTP on WIndows

http://www.johandorper.nl/log/filezilla-server-passive-ports Sopme older versions of Windows Server don’t accept port ranges in Windows Firewall. They also don’t seem to accept comma separated port of 1000 total ports. I am not sure what the max is, but 100 work. Here is a sample: 50100,50101,50102,50103,50104,50105,50106,50107,50108,50109,50110,50111,50112,50113,50114,50115,50116,50117,50118,50119,50120,50121,50122,50123,50124,50125,50126,50127,50128,50129,50130,50131,50132,50133,50134,50135,50136,50137,50138,50139,50140,50141,50142,50143,50144,50145,50146,50147,50148,50149,50150,50151,50152,50153,50154,50155,50156,50157,50158,50159,50160,50161,50162,50163,50164,50165,50166,50167,50168,50169,50170,50171,50172,50173,50174,50175,50176,50177,50178,50179,50180,50181,50182,50183,50184,50185,50186,50187,50188,50189,50190,50191,50192,50193,50194,50195,50196,50197,50198,50199,50200