Article of the week

Converting tree to correct HTML list in PHP

Converting tree to correct HTML list in PHP

07 Jul 2017 22:48:43


Converting trees into correct HTML lists using tree traversal in pre-order algorithm.


Read full article »

Recent articles

Developing for browser with mocha, chai and window node modules

04 Aug 2020 23:21:09

Developing for browser with mocha, chai and window node modules

Recently, when trying to write a bookmarklet for Firefox in JavaScript I faced a problem with testing DOM reliant operations in it. The bookmarklet was being written in Node environment and tested with Mocha and Chai. Since, node does not provide jsdom, I had to look for an ...

Read more »

Piping JSON object to PHP script

03 Aug 2020 00:39:31

Piping JSON object to PHP script

In this article I look at how to pass a string from a shell script to a PHP program. This problem shows up regularly to me when I make a HTTP request with curl on the command line and have to process response data returned by the utility, often JSON encoded data, using ...

Read more »

cURL over HTTPS - web mailbox authentication and data access

01 Aug 2020 16:35:27

cURL over HTTPS - web mailbox authentication and data access

CURL is one of these killer command line tools, which are as good today, in the age of ever more ubiquitous JavaScript and APIs as they were years ago, in gone-by times when a simple GET or POST HTTP request would have done what it takes. It is a transport tool, which ...

Read more »

Turning OOP class to graph for better code composition and understanding

28 Jul 2020 00:28:15

Turning OOP class to graph for better code composition and understanding

Comprehending code is often a hard and time-consuming task. It becomes even harder when a piece of code your are dealing with is a large class with a sizeable number of properties and methods. Level complexity grows even further when object based on a class starts calling ...

Read more »