In Windows (not sure of *nix OS) the GPG command-line has an obscure switch necessary in order to use the ‐‐passphrase argument: ‐‐pinentry-mode (https://gnupg.org/documentation/manuals/gpgme/Pinentry-Mode.html) Example: gpg ‐‐pinentry‐mode loopback ‐‐batch ‐‐yes ‐‐passphrase "<PassPhrase>" "<File>"
read moreReferencing a PSObject property with special characters is pretty easy: $var = $psobject.”Property With Space” In order to reference properties that include special characters dynamically: $propertyname = “Property With Space” $var = $psobject.($propertyname)
read moreThis post is really more about the potential problems one might encounter using Send-MailMessage cmdlet in PowerShell to connect and send email via Office 365. First a quick example: [SecureString]$o365Password = ConvertTo-SecureString “Your Office 365 Account Password” -AsPlainText -Force [PSCredential]$o365Credentials = New-Object System.Management.Automation.PSCredential(“Your Office 365 Account Username”,$o365Password) Send-MailMessage ` -Subject “Your Subject” ` -Body “Your […]
read moreWindows Authentication SELECT * FROM sys.sysusers WHERE isntuser = 1 SQL Authentication SELECT * FROM sys.sysusers WHERE issqluser = 1
read moreWhile doing routine WordPress updates I came across this error: cURL error 18: transfer closed with X bytes remaining to read After some investigation I found that my hosting server was unable to download files. Much of the advice I found suggests issues with cURL, PHP, or WordPress. If possible I advise checking the host […]
read moreI ran into an interesting change in ColdFusion 2018 with regard to <cfdump> The output produced by <cfdump> suddenly lacked formatting and any ability to collapse the tree nodes. This sample code: <cfcomponent> <cffunction name="test" access="public" returntype="any" output="false"> <cfset var test = structNew()> <cfset test.var1 = "Var1Value"> <cfset test.var2 = "Var2Value"> <cfset test.var3 = "Var3Value"> […]
read moreToday I began migrating some of our applications to ColdFusion 2018 (from ColdFusion 2016). Things went pretty smoothly until I ran into this error: Could not find the ColdFusion component or interface XXX.XXX.mycfc” Where “XXX.XXX.mycfc” is a ColdFusion component. In my case the component definitely exists and was in the path where it was being […]
read moreRecently I had a recurring issue where a user was being inexplicably dropped from the a SQL Server database. I used this query to quickly identify the user/application that was removing the user accounts: DECLARE @traceLog VARCHAR(256) SELECT @traceLog = CAST(value AS VARCHAR(256)) FROM ::fn_trace_getinfo(DEFAULT) WHERE traceid = 1 AND property = 2 SELECT TextData, […]
read moreWhile updating a WordPress site hosted on a Windows platform (Internet Information Server); I came across this error: 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 I confirmed the Application pool identity for the site had the appropriate permissions. After […]
read moreIn the course of uploading large files to a ColdFusion server you may encounter this error: coldfusion.util.MemorySemaphore$MemoryUnavailableException:Memory required (XXXXXXXXX bytes) exceeds the maximum allowed memory. The solutions I was able to find; suggest only increasing the “Maximum Size of Post Data” setting within the ColdFusion Administrator. However, you also need to increase the “Request Throttle […]
read more