Author: Abdulrasaq
-
Simple Unit Testing for Types in C11
Sometimes I find myself doing coding tests to keep my problem-solving skills sharp. One of the platforms I use is CodeWars, a platform owned by Andela. My current stack is JavaScript (including NodeJS), PHP, and C/C++. I noticed the tests for the C and C++ exercises were written using a library called Criterion, which brings…
-
How to save your software project from the costs of abstraction
All software tools mainly do one form of abstraction or the other to save you time or money, this abstraction comes at a cost. I have been working in software for years now and every time I am tasked with creating a new project from scratch, the question of which programming language, framework, libraries, platform,…
-
strlen vs mb_strlen in PHP
As a PHP developer, I am sure you use strlen often to check for the length of strings. strlen does not return the length of a string but the number of bytes in a string. In PHP, one character is one byte therefore for characters that fall within the 0 – 255 range in ASCII/UTF-8…
-
Software development process for the Solo developer
Completing and shipping personal projects as a solo developer can be tasking when you have other responsibilities. Over the years I have gathered a simple framework to ship good software quickly. The steps can be divided into: You may ask, what about other methods agile, waterfall etc. I have found those techniques to be too…
-
If you forget your Windows Subsystem for Linux (WSL) password, try this.
I have been using Windows Subsystem for Linux (WSL) for a while now and sometimes I create a distribution and forget the password. If you find your self in the same situation, just follow these steps: Hope this was helpful to you. Thanks for reading.
-
System statistics reporting using Laravel
The Laravel web framework comes with a lot of powerful tools and one of them it the Task Scheduler. This allows you to create and manage all your automated – Cron Jobs – tasks within the framework. If you do not write Cron jobs often, going through documentation or memorizing the Crontab syntax and expression…
-
Improving systems performance with checksums: Part 1
Checksums are blocks of data generated from another block of data you want to store or transfer to ensure that correct data is transmitted during the process of moving data around. This is useful for data correction and security purposes. For example you could use a checksum algorithm to check if the data you download…
-
Formula for converting IP address to long
After looking at PHP’s ip2long function I was curious about how this conversion is done. It is quiet simple and to achieve this conversion you have to take the IP address to be in base 256. Then add the product of the base raised to the power of the number position (0, 1, 2 &…