In the Oxford Dictionary, the term “outsourcing” is simply defined as obtaining goods or services by contract from an outside supplier (OxfordDictionaries.com, n.d.). When it… Read More »Mitigating Risks with Software Development Outsourcing
Let’s say that you have a Python list with the following 5 foods: How do we go about getting the last item? Option 1 It’s… Read More »How to get the last element of a list in Python
This is not the first time that I created a Python3 application that spat out some output and required access to it via an HTTP… Read More »How to embed a web server in your Python3 app
Given the root node of a binary search tree, return the sum of values of all nodes with value between L and R (inclusive). The binary search tree is guaranteed to… Read More »How to get the Range Sum of Binary Search Tree using Java
Given a fixed length array arr of integers, duplicate each occurrence of zero, shifting the remaining elements to the right. Note that elements beyond the length of the… Read More »How to duplicate zeros in place using Python
Python has never been the best at doing multiple things at the same time. While there are ways to mostly resolve this, such as using… Read More »A Quick Introduction to Asyncio in Python3
If you need to replace all newline characters with a comma, or perhaps some other delimiter, then using the build-in tr utility will work very… Read More »How to replace newlines with commas in CLI
You have a directory with a lot of files, and you want to delete only the files that don’t match a specific extension. This is… Read More »How to remove files without a certain extension?
Let’s say that you have an array or a list, or logs. Each of these logs is a space-delimited string of words. For example: logs… Read More »How to Reorder Data in Log Files using Python
A common programming interview question, and for a change, one that you will actually be able to use in the job, is that of implementing… Read More »How to implement a Queue using Stacks in Python
The question Take a string S of lowercase letters. These letters form consecutive groupings of like characters. Find groups with 3 or more like characters… Read More »Find positions of largest groups of characters in a String with Python
You can ignore certain files and folders from being committed to Git by means of including a .gitignore file. Unfortunately, you may have forgotten to… Read More »How to make Git “forget” about a file that was tracked but is now in .gitignore?
If you see lots of disk space quickly disappearing on your MySQL or MariaDB server, then you may want to look into the BinLog directory,… Read More »How to Purge the BinLog for MySQL and MariaDB
Google Colab is a fantastic environment to write Python code using Jupyter Notebooks, hosted for free by Google. If you’ve ever used Jupyter Notebooks before,… Read More »How to Measure Execution Time in Google Colab
So you have a table where you want to delete a bunch of rows, based on a particular column being matched in another table. This… Read More »How to Delete from a Table where rows match in Another Table – MySQL
There are many occasions where you need to INSERT a record into a MySQL database table, but the record already exists. INSERT INTO queue_domains (domain)… Read More »REPLACE INTO instead of INSERT INTO – MySQL