Article of the week

Bash recursion examples - part 1

Bash recursion examples - part 1

15 Jan 2017 16:58:45


Some recursive Maths functions written in BASH.


Recursion in computer science is a technique based on two cases. One is non-recursive terminating case, the other, recursive. The former finds you the final solution, the latter reduces problem to the termination case. This is I guess the most important bit, one should ...

Read full article »

Recent articles

Insertion Sort algorithm and sorting dates in PHP

03 May 2017 14:04:47

Insertion Sort algorithm and sorting dates in PHP

When it comes to dealing with dates and times in PHP, one look at the language related manual pages is enough to concolude, there is a daunting number of various functions for all sorts of purposes, from stuff for managing timestamp and timzones to routines for formatting and ...

Read more »

Sorting UTF-8 strings in PHP

29 Apr 2017 16:41:28

Sorting UTF-8 strings in PHP

When trying to sort a list of strings in PHP, one needs a reliable way of comparing the strings first. PHP has some proven comparison functions, notably strcmp. Strcmp works fine for ASCII character set, in which the same number of bits, namely seven, is used to encode a symbol. ...

Read more »

Secondary database query and shortcodes in Wordpress

20 Apr 2017 11:14:15

Secondary database query and shortcodes in Wordpress

Secondary database queries are queries that you do in Wordpress once the main, URL-based query has been performed. Typically, these extra queries are used to fetch data like featured or category post and embed it on in a section of a template file. Alternatively, the data goes ...

Read more »

Quicksort algorithm implementation in PHP

13 Apr 2017 09:56:52

Quicksort algorithm implementation in PHP

Quicksort algorithm, as the name of it suggests, is yet another piece of code for sorting ( lists of ) items. The algorithm has been in use for nearly 60 years ( Anthony Hoare - its inventor - published it in 1961 ), and is still one of the fastest ways of sorting large lists ...

Read more »