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

Dissecting Mister Spy Bot website hack

27 Apr 2018 14:14:09

Dissecting Mister Spy Bot website hack

If you are a website admin or owner you probably scan your HTTP server's logs in search of interesting, or perhaps dangerous, entries from time to time. When doing so, you might have come across a GET or POST HTTP request (or some its variation) which looks like the one ...

Read more »

Using WordPress on the command line

20 Apr 2018 15:12:07

Using WordPress on the command line

There are situations where it is handy to speak to WordPress directly from the the command line. For example, imagine that you must regain access to your website's admin panel after you have your website's admin area access locked out because you have forgotten your ...

Read more »

POST request and Transients API in WordPress

16 Apr 2018 22:25:52

POST request and Transients API in WordPress

It is striking how often basic scripting of POST request can cause a real headache to a person who is not somewhat familiar with certain assumptions WordPress makes on how these requests should be handled. Even more confusion can ensue in cases when a feedback has to be given ...

Read more »

Watermarking images with ImageMagick and BASH

30 Oct 2017 21:11:08

Watermarking images with ImageMagick and BASH

In this article I give a command line script for watermarking JPEG and PNG files with ImageMagick. Primary reason for me to write the script was the need of watermarking a large number of my own graphics files before posting them online as well as watermarking JPEGs and PNGs for ...

Read more »