Thrive Theme's tools are great but sometimes things don't work: either because the code is bad or a third-party changed their integration requirements (API). For a while if you tried to connect Facebook's API to Thrive Theme's API Manager you'd get: Can’t Load URL: The domain of this URL isn’t...
Fixed: (vscode) Git pull permission denied (Public key) on Mac OS
If you're using Mac OS (High Sierra or otherwise) you might have seen this error when you tried to push git code (to GitHub), especially if you tried doing so from something such as Visual Studio Code (vscode): > git push git@github.com: Permission denied (publickey). fatal: Could not read from...
Set Unique Slug In Laravel With Unique Counter
In a recent Laravel project I needed a way to get pretty URLs BUT to ensure that they are unique. You might think, why not just set the column to UNIQUE in SQL? Simple, with a multi-tenant setup we needed it unique but only unique to the tenant but we...
Simple Magento (jQuery) Quantity Increment Script
Magento's themes and extensions aren't always of the highest quality, and when I ran into an issue on one of my client's Magento sites that the quantity increment and decrement arrows didn't work on the single product page (product/view.phtml) I tossed in the following quick jQuery code to make it...
How to prevent hidden mac files (__MACOSX, .DS_Store) from being added to zip
If you're trying to zip files on Mac OS but keep getting stuck with the hidden files like .DS_Store and __MACOSX then there's a simple command line solution for you. And yes, that means you can't use the built-in Mac graphical tools, you have to use the command line. Thankfully, it's...
[SOLVED] events.js:160 throw er; // Unhandled ‘error’ event
In a recent Laravel project I came across this rather annoying error: events.js:160 throw er; // Unhandled 'error' event Though I didn't save the text of the whole error, here's a screenshot of the ending part of the error log: The solution: It's really easy. All this really means...
Include jQuery in the JavaScript Console
To include jQuery in the JavaScript Console in Google Chrome all you have to do is run the following 'single' (not really single but it's put made into a single line) easy to copy and paste line. The line below will include the latest (as of this writing) 3.1.0 jQuery...