Regex to insert text before and after a line
A common thing I need to do is insert text before and after a number of lines in a text editor. For example, I might have the following text:
test1
test2
test3
test4
test5
Which I want to change to something like this:
before_test1_after
before_test2_after
before_test3_after
before_test4_after
before_test5_after
So I’ve added the text before_ at the start of each line and the text _after at the end [...]
A Better Joomla Administration Template
The Joomla Administration pages, have, well, always been a bit poor. Not any more! You can make them look at lot better with the free AdminPraise Lite template available from JoomlaPraise. This doesn’t just make your administration pages look better, it actually makes them easier to work with by organising things better. Definitely worth trying [...]
Allow PHP code to execute in a HTML file
By default on Apache web servers, PHP code will not execute in a file that does not have a .php (or similar) extension. So even though you can embed PHP into a HTML file, it won’t execute when the file extension is .html, .htm etc.
To change this, you can add a .htaccess file. Here’s some [...]
“Stuck” Windows Key in Remote Desktop
Every now and then, the Windows key (one between CTRL + ALT on left side of the keyboard or ALT and CTRL on right side of keyboard) can get stuck in remote desktop sessions.
You’ll know it is happening when typing certain letters that lead to a windows shortcut key combination effect, e.g:
Typing B -> Winkey [...]
Web Site Redesign
Welcome to the redesigned site!
I created this new layout from scratch, starting with a photoshop mock up and turning it into a Wordpress theme. Hope you like it.
In addition to the layout changes, there have also been some minor changes made to the site including:
Change of base URL from blog.praj.com.au to www.praj.com.au
All permalinks are now [...]