Buying Refurbished Just isn't the Same for the M1 Pro Apr 10, 2022 Over the last 11 Years, I’ve gone from PC die hard to owning 4 different Macs for development. There’s one place I’ve bought them all over this time and that’s through the Apple Certified Refurbished store (US, UK). If you’re not familiar with it, this is where Apple resells returned hardware which has undergone a thorough certification process at a discount to customers. Best of all, it comes with the same 1 year warranty as if you bought it brand new from Apple. ...
With $15 in Sales, My First Digital Product is My Most Successful Ever Mar 21, 2022 This weekend, I released my first ever digital product. It’s only been available for 2 days and is already my most successful product ever with a grand total of 3 sales, yielding a massive $15! I jest, but this is all totally true. In the past I’ve run a web hosting service, a TShirt company before becoming an employee and then freelance developer 10 years ago. I still have boxes of tshirts that I haven’t sold and none of my previous product ventures have made me a profit. ...
Investment Principles You Can Use for Blogging Feb 23, 2022 Your blog is a financial investment and you should treat it as such. I know, that might be stretch to some - but I have 15 years worth of analytics for this very blog that shows what happens when you don’t. I’ve always found it strange that those who are deeply involved in building the web don’t have any form of online presence. Most of that time I’ve thought of a website as a great advertisement that gives clients and employers a way of finding more out about you. ...
How to use .env files with Poetry Feb 18, 2022 I love Poetry, but one thing I always find frustrating is having to add an additional package to my environments to read from .env files and access them as environment variables. I quite often default to Pipenv for simple projects to get round this. Turns out there’s now another way. Poetry 1.2 will add plugin support to tweak or add to it’s default package management behaviour and @mpeteuil made one for . ...
How to Query the Product Hunt API Responsibly with Python Feb 15, 2022 I recently wrote an article that got to the #1 spot on Hacker News for the folks at ScrapingBee. It focused on retrieving details for the 90,000+ featured products from the Product Hunt API and digging into interesting facets of the data. I was excited to see it sat at the #1 for a few hours and the frontpage for longer whilst I repeatedly took screenshots to regale my children with in later life. ...
How to Create AWS Lambda Layers for Python Dependencies Jan 27, 2022 Using AWS Lambda for your serverless Python app can give significant cost and management benefits. However, unless your needs are simple you will quickly need to bundle your dependencies along with your functions. Doing so with an AWS Lambda Layer works much like installing dependencies within a local environment. You are able to reduce each functions size, maintain your core code separately and simply tell the function to use the layer when setting it up. ...
Rendering a Christmas Tree that Never Comes Down with p5.js Jan 10, 2022 The animation below is a 3D render of the actual positions of the lights from my Christmas tree in 2021 using p5.js. Unlike my actual Christmas tree, this one won’t be taken down and will run all year round (save for the few occasions Github might go down). Calculating the LEDs coordinates is taken from an idea by mathematician Matt Parker where they are lit individually one at a time and the brightest area is logged in each of the x, y and z axes. ...
How to Code Christmas Tree LEDs (and find their 3D Coordinates) Dec 29, 2021 This Christmas, I decided to make our tree lights incredibly complex so that I could marvel at my own animations running on them. That’s tongue and cheek, but also ended up being very true. I’d been inspired by mathematician Matt Parker in 2020 where he did this. In this post I’ll describe all the hardware I used and how it was connected and I’ll share the code I needed to write to capture the LED’s coordinates. ...
How to Setup Raspberry Pi OS: Bullseye like a Python Pro Nov 29, 2021 I setup my Raspberry Pi using Bullseye and installed many of the same developer tools I use on my main dev machine for Python upon it. You can also check out a youtube video I’ve made on setting it up here. I did this from scratch with a brand new install, with all available updates installed at the time. Bullseye is the most recent release of Raspberry Pi OS which came out earlier this month, based on Debian Bullseye. ...
Deleting Disqus Made My Blog Run 3x Faster Sep 17, 2021 I got fed up recently of the insane number of requests that were given over to my use of disqus here on my blog. I’ve had it enabled since moving from Wordpress to various other blogging engines, wanting to take my comments with me to a static blogging engine, but enough is enough. I remember disqus being a darling in the startup scene when it first launched in 2007 but it’s changed hands several times since and the idea that randoms ads may turn up on my blog at some point is a massive turn off. ...