Chunking Files with 7-Zip on Windows From windows you can do the whole shebang directions here ==> http://www.techulator.com/resources/6601-How-split-join-files-using-7-zip-free-tool.aspx This is my directions for chunking something on windows and then...
James McDonald
Windows 10 Pro Remote Desktop Client Login Fails
Problem: When attempting to login to a remote RDS Server you see an error message". "Your computer can’t connect to the remote computer because a security package error occurred in the transport layer" Systems Affected: Currently this has only been observed on Windows...
Notes from PHP 5.x to PHP 7.1 Upgrade
PHP Install on Mac I use CakePHP 2 and 3 so they need intl and mcrypt brew install php71 --with-httpd24 brew install php71-imagick brew install php71-intl brew install php71-mcrypt Also I found that calling a function as follows fails # this PHP 5.x code calls a...
LetEncrypt query timed out looking up CAA. Work-a-round
Annoying problem with LetsEncrypt when running ./certbot-auto renew IMPORTANT NOTES: - The following errors were reported by the server: Domain: test.example.com.au Type: connection Detail: DNS problem: query timed out looking up CAA for test.example.com.au To fix...
Installing Mod Perl on the macOS Sierra Homebrew Version of Apache 2.4.xx
Do this svn checkout https://svn.apache.org/repos/asf/perl/modperl/trunk/ mod_perl-2.0 cd mod_perl-2.0 perl Makefile.PL MP_APXS=/usr/local/Cellar/httpd24/2.4.25/bin/apxs # this doesn't do anything but it tells you where # apxs will put mod_perl.so...
Flight Delayed by 37 minutes. When is that?
Question: How do you calculate the time in the future when you know the time you start from but want to know the time in a few minutes but can't do math in your head? Answer: Use GNU Date # if you know the time you want to go from put that in gdate --date="16:47 37...
A man walks into a sound bar and wonders why the subwoofer isn’t working
Constantly searching for the instructions on how to reset my sound bar. So here is the manual for my sound bar
React-Bootstrap Oh Cool
The create-react-app npm module that lets you get started quickly with React is getting better and better. Here is a list of all sorts of things you can then add on top of the create-react-app to make it betterer...
Get a Date X Days in the Past or Future using GNU Date
Recently was running a Pentaho Data Integration that had an input parameter of yesterdays date. I was getting the date inside mysql or inside a javascript step but wanted to be able to pass in an arbitrary date so I could run the report for any day. So on Linux with...
Using ImageMagick’s Convert to create a thumbnail of a PDF
Sometimes you need to create a thumbnail of a PDF file for display on the web or elsewhere. Here is the ImageMagick convert command to do it. convert \ -density 600 \ # make it high density so the resized image looks OK example_051.pdf[2] \ # use [X] to specify the...
The target origin provided () does not match the recipient window’s origin ()
This error running cakephp 3 behind a nginx proxy on port 80 and proxying back to a docker container published on port 8080. Got this error message when clicking on the DebugKit toolbar toolbar-app.js:31 Failed to execute 'postMessage' on 'DOMWindow': The target...
Ungrabbing Mouse Cursor from Guest Console Session of VMWare vSphere Client inside Citrix Receiver inside Mac OS Sierra
With Virtualisation and Remote Desktop Technologies accessing remote environments has become like Inception. The further and deeper you go sometimes it can be a challenge to break out so I'm posting the key combination to escape from vSphere Client Console session...
MacOS doesn’t need Cups-PDF because of this
I recently tried to install Cups-PDF on macOS Sierra but it failed. However because macOS pretty much prints PDF native you just have to go fishing in /private/var/spool/cups and fish out the PDF data files and rename them and you have a copy of the file you want....
CakePHP 2 – Dynamically Globally Changing the Database Connection
Dynamically Globally Changing the Database Connection in CakePHP 2.x I use this code in app/Model/AppModel.php to dynamically change my database environment in CakePHP 2.x depending where it is running <?php //app/Model/AppModel.php App::uses('Model', 'Model');...
If you, like me, haven't had formal programming training and would like to see how to properly code in PHP. Have a look at the source code to the Pheanstalk project. IANAP but to me it looks very clean and logical and very DRY (don't repeat yourself)...
CakePHP+Pheanstalk+Beanstalk+Supervisord
UI Lockups due to long running tasks Recently coded a CakePHP 3 application that would send about 30-60 emails when a user triggered the 'notify' action. When they did this it took probably 30 - 40 seconds for control to return to user. So I was looking at how to fix...
Setting the Apache 2.4 PATH environment variable in a brew services started httpd process
Note the following perl script #!/usr/bin/env perl -wT print "Content-type: text/html\n\n"; # foreach $key (sort keys(%ENV)) { print "$key = $ENV{$key}<p>"; } As you can see the hash bang is #!/usr/bin/env perl this is supposed to be more portable because it...
An end to the never ending story of ReactJS development environment setup
So I just learn't that there is a command that can create a react environment quickly and easily. And it includes the cool web server that reloads every time you edit your component code and also it has a build command to compile it to production.... A lot easier...