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.


Read full article »

Recent articles

Traversing trees in pre-order recursively in PHP

03 Jul 2017 13:58:12

Traversing trees in pre-order recursively in PHP

Like in the real world, trees are ubiquitous in computer programming today. Frequently tree data structure turns out to be a perfect choice for modelling a naturally occurring phenomena and not only them these days. The bad news is, unlike one-dimensional arrays or other data ...

Read more »

 Manipulating HTML based on viewport position with jQuery

29 Jun 2017 15:16:14

Manipulating HTML based on viewport position with jQuery

At times, it is desirable to be able to manipulate a HTML element styling and/or behavior on the basis of its current proximity, presence or absence in the viewport . The viewport is user's visible area of a web page on the screen. However, that is just the tip of the ...

Read more »

Extending WordPress custom menus

29 May 2017 13:23:02

Extending WordPress custom menus

Suppose you have built a custom menu using WordPress GUI for your website. The menu contains a subset of links to posts and pages that your website has to offer. For example, it might not, and in fact it shouldn't, contain a link to a confirmation page, user gets redirected ...

Read more »

Non-destructive array extending in PHP

25 May 2017 13:30:48

Non-destructive array extending in PHP

Non-destructive extending of array in PHP Suppose you have to extend a PHP array by inserting some value at a particular index of it without destroying other pieces of data stored in the array. In PHP Extending array non-desctructively by prepending an item can be achieved with ...

Read more »