I’ve just updated my dynamic proxy server in node.js to support file injection, and the stripping of headers that prevent loading targeted pages in iframes. This may all sound very nefarious, but I actually require this functionality in a (super secret) project I’m working on….
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 any further details contact me at email@example.com for a copy of my resume.
In my previous post, I explored the idea of introducing software development principles to the world of infrastructure, specifically the translation of the ‘MVC’ design pattern to logically divide infrastructure into 3 distinct layers. Today I’m going to take a look at each of these layers in more depth, and examine how they fit together and what benefits this logical division offers.
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 effective in increasing ‘throughput’ of code as well as offering opportunities for team empowerment and increased stability of the final product. Unfortunately, that ‘when implemented well’ is sometimes a sticking point. The idea behind devops is too integrate development and operations, to make operations (ie: deployments, infrastructure) more code driven and automated. What happens when it’s implemented badly though is that a separate ‘devops’ team is setup within an organisation, the majority of the members being sysadmins with maybe one guy who knows how to write bash scripts. I’ll cover devops in more depth in another post, but what I want to focus on in this post is the move towards software defined architectures, and how that movement can be harnessed effectively.
Recently I’ve been tinkering with an idea I call nodeploy, for which I needed a dynamic proxy server…. ie, one I could change the configuration of on the fly. I looked at HaProxy and nginx, both of which offer very limited or overly complex functionality that kind of did what I needed, but not really… so I decided to write something myself.
Finally got round to releasing my (very rough / early) raspberry pi interface for minecraft on gitbhub.
It’s still in a pre-pre-pre-alpha state, it’s just the sourcecode (although it runs in the development environment fine) so feel free to do what you want with it.
You can see what picraft is / what you can do with it here:
As per this thread on reddit, here’s my script for importing products into magento via an excel file. Some of it, specifically the attributes and attribute sets are hardcoded in places, but other than that it should be generally applicable to most stores. It makes use of the PHPExcel library for loading the data from an xls or xlsx file.
For a while now I’ve been working on a mod for minecraft that allows the GPIO pins on a raspberry pi to be accessed from within minecraft. There’s a demo video below (you may be able to tell this is the first video I’ve ever made, be gentle!) but first some features….
Uses the rather excellent WebIOPi library on the raspberry pi
Allows any number of inputs and outputs to be controlled (limited only by the number of raspberry pis you have!)
Hey all, been a long time since I posted anything since my job is keeping me pretty busy…. here’s something I implemented for prettylittlething.com that might come in useful for you.
It’s a little script that basically scans a directory for images and, if it finds any, adds them to the relevant products.
Images have to be named as follows:
I recently (well, a few months ago) started working for online retail company prettylittlething.com. Since then I’ve been getting back into the Magento way of doing things (along with managing their IT infrastructure… but that’s a whole other set of posts) and decided I might as well publish some of the minor tips and bits of code I’ve worked on.
Today I have a module that ‘fixes’ the default search order in magento.
By default, when you do a search in magento the results are shown in ascending order of creation. IE: older products are shown first. Now, I’m sure there’s some obscure reason why this is so (although it could just be that with no search order defined they’re pulled out in the order they went into the database) but anyway, after some googling and a bit of tinkering I have a fix for it.