http://localhost/James Nock's BlogRamblings of Software Engineering Lead, James Nock2024-07-28T17:58:15+00:001Feedamic: the Atom and RSS Feed generator for StatamicAn improved GitHub deployment workflowhttp://localhost/an-improved-github-deployment-workflow2024-03-07T00:00:00+00:002024-07-28T07:15:07+00:00<p><img src="http://localhost/img/containers/assets/github_deploy.webp/f446f38283d81ff2740a66dbf771c4b3/github_deploy.webp" alt="An improved GitHub deployment workflow" width="1280" height="720" style="display:block; width:100%; max-width:100%; height:auto;" /></p><p>A couple of days ago I blogged about <a href="/how-to-deploy-sveltekit-sites-to-a-digitalocean-droplet">how to deploy SvelteKit websites to a digital ocean droplet</a>. Near the end of that post I offered a github workflow file but noted that it was basic and could be improved. Well here it is...</p>JamesHow to deploy SvelteKit Sites to a DigitalOcean droplethttp://localhost/how-to-deploy-sveltekit-sites-to-a-digitalocean-droplet2024-03-05T00:00:00+00:002024-07-14T12:03:55+00:00<p><img src="http://localhost/img/containers/assets/digital_ocean_deploy.webp/6d862e59f0505d554fbd377087368195/digital_ocean_deploy.webp" alt="How to deploy SvelteKit Sites to a DigitalOcean droplet" width="1280" height="720" style="display:block; width:100%; max-width:100%; height:auto;" /></p><p>With all the recent fuss about a certain cloud provider billing someone a huge amount of money for a simple website that experienced a DDoS attack, it got me wondering "how hard would it be to just deploy this stuff myself". The TL;DR is that it's not really <em>that</em> hard if you're patient.</p>JamesBatch Processing with ImageMagickhttp://localhost/batch-processing-with-imagemagick2023-08-29T00:00:00+00:002024-03-03T15:18:16+00:00<p><img src="http://localhost/img/containers/assets/magic.webp/162a49510975d57d85984a6f3a55e59a/magic.webp" alt="Batch Processing with ImageMagick" width="1280" height="720" style="display:block; width:100%; max-width:100%; height:auto;" /></p><p>I recently had to process a large number of images in a couple of ways so I thought I’d log them down here.</p>JamesFix Microsoft Teams Login on Mac OSXhttp://localhost/fix-microsoft-teams-login-on-mac-osx2021-10-22T00:00:00+00:002024-03-03T15:14:08+00:00<p><img src="http://localhost/img/containers/assets/frustrated.webp/c396272e7f9add4bab54a8e503062c0d/frustrated.webp" alt="Fix Microsoft Teams Login on Mac OSX" width="1280" height="720" style="display:block; width:100%; max-width:100%; height:auto;" /></p><p>A few of us at work have had huge issues with Microsoft Teams on our Macs with not being able to login for seemingly no reason at all. After a lot of messing around with uninstalling, reinstalling, restarting my machine etc. I finally dug in and got my hands dirty.</p>JamesConvert PNG to ICO on Machttp://localhost/mac-convert-png-to-ico2021-03-20T00:00:00+00:002024-07-28T17:54:04+00:00<p><img src="http://localhost/img/containers/assets/machine.webp/00ce5ba43ebc973eb66f8241ce00ef89/machine.webp" alt="Convert PNG to ICO on Mac" width="1280" height="720" style="display:block; width:100%; max-width:100%; height:auto;" /></p><p></p>JamesNew websitehttp://localhost/new-website2020-08-11T00:00:00+00:002024-07-28T17:53:42+00:00<p><img src="http://localhost/img/containers/assets/jnweb.webp/5cd84a92ae777ebdb6201092f2d436c7/jnweb.webp" alt="New website" width="1280" height="720" style="display:block; width:100%; max-width:100%; height:auto;" /></p><p>For quite some time now I’ve shuddered at the state of my own website, it’s been looking very tired for a long time now and it’s not really been fit for purpose either. I launched it on 31st August 2015 back when I was looking for clients for some freelance work and it did well for the few years I needed it. However, I’ve not wanted to take on any new clients for quite some time now as I’m just too busy. It was time to get something put together that serves as less of an advertisement and more of an ‘about me’. So I did.</p>JamesCraftCMS Flipbuilder Pluginhttp://localhost/craftcms-flipbuilder-plugin2018-06-30T00:00:00+00:002024-07-28T17:53:22+00:00<p><img src="http://localhost/img/containers/assets/flipbook.webp/f382e0607931ac5db717fdbf4ab249c0/flipbook.webp" alt="CraftCMS Flipbuilder Plugin" width="1280" height="720" style="display:block; width:100%; max-width:100%; height:auto;" /></p><p>Recently, I ran into a problem whereby I needed to incorporate a magazine into a CraftCMS website that had been generated using a neat bit of software by the name of <a href="http://www.flipbuilder.com/">‘FlipBuilder’</a>. This would be a regular thing, so I was hoping I’d simply be able to drag and drop the outputted files into the <em>templates</em> folder and that it would magically work.</p><p>It didn’t.</p>JamesHomebrew mcrypt mismatch PHP Startup: mcrypt: Unable to initialize modulehttp://localhost/homebrew-mcrypt-mismatch-nts-vs-nts-debug2018-06-23T00:00:00+00:002024-03-03T14:49:21+00:00<p><img src="http://localhost/img/containers/assets/mcrypt.webp/021275005bc5bc5bdeba4706cf411ee4/mcrypt.webp" alt="Homebrew mcrypt mismatch PHP Startup: mcrypt: Unable to initialize module" width="1280" height="720" style="display:block; width:100%; max-width:100%; height:auto;" /></p><p>This has happened to me a few times over the years and I always forget how to fix it. I’m scribbling it down here as much for myself as I am for you.</p>JamesMySQL 5.7.12 / CraftCMS install fixhttp://localhost/mysql-5-7-12-craft-cms-install-fix2016-05-04T00:00:00+00:002024-07-28T17:52:27+00:00<p><img src="http://localhost/img/containers/assets/mysql_craft.webp/d8f34469cb621d35ca38e4062234d2a9/mysql_craft.webp" alt="MySQL 5.7.12 / CraftCMS install fix" width="1280" height="720" style="display:block; width:100%; max-width:100%; height:auto;" /></p><p>I recently upgraded to MySQL 5.7.12 before embarking on a new website build using CraftCMS (which, by the way, is a great bit of kit). I’ve never had a problem installing CraftCMS before, but the install kept failing afer installing version 5.7.12 of MySQL.</p>JamesWhy Gulp is Awesomehttp://localhost/why-gulp-is-awesome2016-01-19T00:00:00+00:002024-07-28T17:58:15+00:00<p><img src="http://localhost/img/containers/assets/gulp.webp/8719606ef25fa145f06599a0cb176536/gulp.webp" alt="Why Gulp is Awesome" width="1280" height="720" style="display:block; width:100%; max-width:100%; height:auto;" /></p><p>I realised the other day that I had a project that contained 100’s of unminified JS files and decided to look for the most efficient way of automagically minifying them so that a) they are harder to read/unpick and b) the site will run faster; well web-application in this case.</p><p>I consulted the forums and got a tip to use ‘Gulp’.</p>JamesMy Setuphttp://localhost/my-setup2015-09-13T00:00:00+00:002024-07-28T17:56:21+00:00<p><img src="http://localhost/img/containers/assets/my-setup.webp/e80da3489bb6fc7800af666cc9452ad5/my-setup.webp" alt="My Setup" width="1280" height="720" style="display:block; width:100%; max-width:100%; height:auto;" /></p><p>So I thought I’d kick-off my blog with info about my setup; hardware and software. I think it’s safe to say that every developer has their preferences in regards to just about everything when it comes to development; there is an infinite number of ways to get to an end product. My setup comes from my own preferences and is neither better or worse than the next developer’s; it really does come down to personal preference.</p>James