Image for post
Image for post

This is part of a series discussing everything required to get an all-encompassing grasp of the Python programming language in as short a time as possible. Whether you are a beginner or an expert, I intend for you to learn something new.

When writing python code, you may want to make your code shorter. This could be due to character restraints or to make the code look cleaner. These tricks will be specifically useful for coding challenges like Clash of Code where you win by having fewer characters.

Swapping Variables

A line that will get a lot of mileage is one…


Image for post
Image for post

This will be a simple guide on installing Marlin on almost any 3D printer in about 3 steps.

Downloading Marlin

The first step is to get the Marlin firmware files downloaded from GitHub. There are two options for this. The first and more commonly used is the firmware releases. The second is the bugfix branch. The difference is that the latter contains fixes to bugs that may exist in the current release of Marlin. It is up to you to choose as you wish, however if one does not work, it is highly likely that the other will do the trick.

You…


Image for post
Image for post

This is the first part in a series that will be going over all types of programmatical algorithms. These articles will be going in-depth about various common algorithms while keeping everything simple and logical enough to understand.

Bubble sort is one of the first and easiest sorting algorithms anyone should learn. It has a worst case time complexity of O(n 2), which occurs if the dataset is reverse sorted, and a best case complexity of O(n) when the array is already sorted. This makes it a relatively slow algorithm, however for smaller datasets on modern computers, it is perfectly adequate.

Example + Explanation


Image for post
Image for post

IP stands for Internet Protocol, which is a set of rules for the format of data that devices transfer over the internet. An IP address, which is a unique address assigned to every device, that uses this protocol on a network and helps to identify those devices from one another. This address, much like a house address, tells other devices where to send data or where is received from.

There are currently two standards for an IP address. The older version was IPv4 which allowed for 4 billion unique addresses and used numerical values in the address. As the internet…


Image for post
Image for post

This is part of a series discussing everything required to get an all-encompassing grasp of the Python programming language in as short a time as possible. Whether you are a beginner or an expert, I intend for you to learn something new.

PIP is a powerful tool that everyone should know how to use. But everyone has also at some point been in the position where Python’s PIP has given them trouble and they have been lost as to how to proceed. I have picked up a number of methods of troubleshooting PIP that have been very successful for me.

How to use PIP


Image for post
Image for post

This article will be going over how to automate WhatsApp Web or any other webpage programmatically using a Python module named selenium. This may be limited by some pages that use Captchas specifically to prevent the use of bots, however selenium is perfectly fine for experiments.

This article is heavily inspired by a recent project I completed: WhatsappPlusPlus, wherein I automated WhatsApp Web to create a floating window to text my friends, much like the Facebook chat heads, but far more primitive. …


Image for post
Image for post

This is the first part in a series that will be covering in-depth descriptions of various electronic components that are commonly used by hobbyists. These articles should help you use these components in any circuit and result in a high level of confidence when experimenting with electronics. Everything will be kept simple and definitions will be provided where it is deemed necessary.

Relays are, as simply as possible, a form of electronic switch. This means that you can have one circuit control whether or not another circuit is on. On Amazon you can currently get about 5 relays for £6.99


Image for post
Image for post

Almost any technological problem nowadays can be solved via creative programming, however it is sometimes difficult to see how this is the case. Some problems are inherently simple, such as getting user input and outputting information, however larger applications (e.g. social media apps) require a bit more thought. In this article, I will be outlining the common methods used to convert a complex idea into a working application. These methods are also often taught as part of the school curriculum, and you may be familiar with them if you have ever taken Computer Science or a similar subject.

Abstraction

Abstraction is…


Image for post
Image for post

This is part four in a series discussing everything required to get an all-encompassing grasp of the Python programming language in as short a time as possible. Whether you are a beginner or an expert, I intend for you to learn something new. I will not be going into details on packages that need to be downloaded and so everything will be vanilla Python.

Numbers in python are written mostly as expected. Integers, or whole numbers, are written exactly as normal and floating point, or decimal numbers, are written with a normal period as the decimal point. …


Image for post
Image for post

This is a short log of my recent diy electric bike build. I used mostly prebuilt parts from Ebay and Amazon to try and keep costs down, while adding some of my own electrics, making use of a Raspberry Pi, to add extra functionality that I wanted.

First Iteration

For this project I challenged myself to convert a pedal mountain bike into an electric one. To begin, I needed to find a suitable bike that I could use to convert. Initially I decided to use one of my old mountains and began the repair works. …

KDavidson

A developer and electronics enthusiast wanting to share his experiences

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store