Article of the week

Builidng and compressing archives with tar and process substitution

Builidng and compressing archives with tar and process substitution

21 Jun 2018 18:53:34


Safe way of building and compressing archives on the command line based upon process substitution, tar and find commands with examples and comments.


Read full article »

Recent articles

Mapping numeric score to feedback message in PHP

06 Sep 2017 23:04:22

Mapping numeric score to feedback message in PHP

The other day I coded a sort of game in PHP programming language. One of it's features is a final score pop-up message, which consists of three parts. They are a number, a percent and a few words of a humoristic player performance feeback. The feedback is based upon the ...

Read more »

Traversing array from the middle in PHP

30 Aug 2017 15:51:20

Traversing array from the middle in PHP

Traversing an array starting from the middle item in it is in many ways similar to traversing it from the beginning or the end. One small catch is such that, the middle item, or to be more accurate, the middle index of the array, has to be found before the rest of job can be ...

Read more »

Square pyramidal numbers and implementing them in PHP

19 Aug 2017 14:24:59

Square pyramidal numbers and implementing them in PHP

Square pyramidal numbers and implementing them in PHP Imagine a couple of boxes standing on a table. In each of these boxes there is one or more balls. Boxes are sorted according to the number of balls they contain. When you look into these boxes, you notice, that in the first ...

Read more »

Comparing two arrays or objects with a function in PHP

17 Aug 2017 16:07:40

Comparing two arrays or objects with a function in PHP

In this article I look how to compare two ordinary arrays (or objects based on array). The problem can be solved fairly easily using a comparison function. It accepts two items, one from each of two arrays you need to compare and returns a result of the comparison. You gather ...

Read more »