Article of the week

Substituting file contents in place with BASH and sed

Substituting file contents in place with BASH and sed

05 Mar 2017 16:33:19


Article on substituting pieces of contents of a file in place with BASH and sed.


The problem of substituting file contents in place on the command line is an old one. Often it creeps out when dealing with configuration or other text files. You just need a quick substitution , perhaps with sed, but what you end up with is frequently either none or a wrong ...

Read full article »

Recent articles

 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 »

Installing WordPress language files automatically

20 May 2017 22:03:03

Installing WordPress language files automatically

Installing language file(s) is one of possibly hundreds small tasks one has to plod through while building a multilingual website or blog with WordPress. Mostly due to being documented well, the task is not difficult to carry out. Nonetheless, it diverts attention from other ...

Read more »