How To Select All Files in A Midnight Commander Panel

Today my post will be quite short: a simple yet useful keyboard shortcut for mc. Often you need to select all files in a Midnight Commander panel, just like using Ctrl+A in Windows. Mignight commander has another shortcut, that uses mask and allows you to select all the files in a mc panel. Here is your initial view:… Read More »

Regular Expression to Parse Text Between Simple Tags (XML)

It is often necessary to extract text from a variable that contains HTML or XML code. I’ve created a simple regular expression that will help you to extract all text between certain tags into an array. It is a PHP solution, though regular expression is compatible with other programming languages. preg_match_all(“/<tag>(.*?)</tag>/”, $source, $results); This construsion will create an… Read More »

htaccess Site Redirection Without Parameters

Sometimes you need to redirect all traffic from one site to another. Very often site structure is different and the need is to send visitors to the main page of the site. This makes Site Redirection tabs of all known panels unusable, as the parameters are being sent to the new site. For example, if you had www.oldsite.com/index.php?f=9… Read More »