Should You Pay for Github Copilot? Jun 23, 2022 Unless you’ve been hidden under a rock, you’re likely aware of Copilot - Github’s (or Microsofts) AI pair programmer. It allows you to get help on the code you’re writing by bringing up suggestions through an autocomplete snippets when you begin typing code in your editor. Since it started its free beta back in the summer of last year, it’s been the subject of many developers videos and it’s even played a part in a few of mine. ...
How to Pass Vue Route Params as Component Props Jun 09, 2022 If you’re using vues router to link to dynamic URLs you may get stuck wondering why your props on router-links aren’t being sent to your components. Vue’s router doesn’t support sending props directly. So you can’t do something like this: <router-link class="..." :to="{ path: `/user/edit/`, id=id }" >Edit </router-link> Here the id prop will never get passed in routers default configuration. Instead you need to configure each of your routes to pass the route params as props like so: ...
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. ...