I have been working on a Laravel project and I deployed it to a web hosting account. The application allows users to upload profile pictures and update (replace) them whenever they want to. After uploading…
Sometimes people write code with if/else statements, but the else statements never execute, regardless of what they type in to be checked in their conditions. Let us consider two examples of such cases. I will…
The Story So Far In our first article in this series, we looked at what APIs are and what they are used for. In the second article, we wrote a simple Python program that fetches…
In our previous article, we looked at what APIs are and what they are used for. In this article, we will create a simple Python program that fetches some data from an API and displays…
A lot of modern programming requires the use of an API of some sort. What is an API? API stands for Application Programming Interface. This is basically an interface (a portion of software that is…
USD to KES Exchange Rates. Years 2000 to 2023. Historical data retrieved via API from ExchangeratesAPI.io using Python. Plotted using Matplotlib.
One somewhat common question from beginner programmers goes something like: “I have learnt the basics of [programming language]. What should I do next?” To be honest, I find this question rather surprising. I would imagine…
I was getting an error in Laravel when trying to access a value from a related table, after defining relationships in the relevant models. Attempt to read property “nationality” on int I had defined the…