Category: techy stuff
Docker – add host.docker.internal on linux
Just a quick note (for my own memory more than anything)… If you need to connect from a docker container to something running on your local host, it can be a bit of a pain on Linux. On windows & Mac, there’s a special DNS entry ‘host.docker.internal’ which always points to the host machine. However […]
e-Commerce building blocks
I’ve been working in e-commerce for a good few years now, for very similar companies (early stage, fast fashion focussed) and there’s always the same sorts of problems to solve. Here’s a very basic, very generic guide to the things you need to get up and running. Each bit has a ‘too long / didn’t […]
Merchandise magento category by product age / availability
Just a quick snippet of code today, it grabs all the products in a certain category (given in category_id), sorts them by age and stock availability (you can adjust the relative weighting of these using $stock_weight) and then updates the category. The end result is a nice mix of newer products, and products with loads […]
Access magento database outside magento
Just a quick note, sometimes you need to access the magento database from a script, but don’t want the overhead of loading the whole magento framework….. Here’s a little snippet of code that grabs the database details from the magento xml config, so you don’t have to store them in your script: <?php class db […]
Dev tooling with docker
This is the first in what will become a series of articles on development processes and techniques in use at my current place of work, Public Desire. To start off with I’m going to take a run through our docker based development environment, then in future articles I might dip into our deployment processes and […]
Chuwi Hi10 Pro keyboard / trackpad fix
Bannr.io
For the last couple of months I’ve been working on a platform to solve one of the problems I’ve seen repeated across numerous businesses in the ‘fast fashion’ ecommerce space. The problem is how to update your homepage and site with the numerous promotions you’re running in a timely fashion without impacting site performance. For […]
Seeking new opportunities….
So, the time has come once again when I’m looking for new job opportunities. As of the 1st of June I’ll be available for any fantastically interesting permanent opportunities in and around Manchester (Uk) or remote working. you can view my linkedin profile here for a quick history of my experience, and if you want […]
MVC Architecture
This will be a slight departure from my usual posts about random bits of code and have more a focus on architecture. In the last few years the world of development has seen quite a bit of upheaval as it adapts to new ways of working, the devops movement has, when implemented well, proven incredibly […]