Article of the week

Symmetric and asymmetric - key encryption with gpg and gpg-zip

Symmetric and asymmetric - key encryption with gpg and gpg-zip

29 Jun 2018 19:38:09


Encrypting files and directories of files with public key and ciphers using GnuPG and gpg-zip.


Read full article »

Recent articles

Checking trees for sameness with recursion and spaceship operator in PHP

16 Jul 2020 14:51:53

Checking trees for sameness with recursion and spaceship operator in PHP

At some point in your adventure with programming you are likely to find yourself in need of determining whether two trees are the same or not. This article describes two methods to do it. First on them relies on a recursive algorithm, the other, shorter, simpler and more ...

Read more »

Two indispensable formulas for percentages

15 Jul 2020 11:21:05

Two indispensable formulas for percentages

In this article I look at two very useful mathematical formulas related to dealing with percentages efficiently. You might know them, but it is likely, you haven't not been shown at least one of them while studying the subject during your school years. I remember my own ...

Read more »

Recursively updating deeply nested arrays in PHP

14 Jul 2020 11:08:06

Recursively updating deeply nested arrays in PHP

Suppose you have a deeply nested array of items, with its members being numbers and arrays. You want to update all the numbers, like 3 and 5 for example, in all of the arrays, no matter how deep nested the numbers are in the structure. In this article I look at two methods of ...

Read more »

Finding Minimum Spanning Tree with Prim's Algorithm and PHP

02 Mar 2020 02:10:42

Finding Minimum Spanning Tree with Prim's Algorithm and PHP

Minimum spanning tree (MST) is an edge subset of edge-weighed undirected graph, that connect all the vertices together with the minimum possible total edge weight. There are a few methods of finding minimum spanning tree of a graph. One such efficient method is called ...

Read more »