<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Praj&#039;s Site &#187; General</title>
	<atom:link href="http://www.praj.com.au/category/general/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.praj.com.au</link>
	<description></description>
	<lastBuildDate>Sat, 24 Jul 2010 23:22:52 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Regex to insert text before and after a line</title>
		<link>http://www.praj.com.au/regex-to-insert-text-before-and-after-a-line/</link>
		<comments>http://www.praj.com.au/regex-to-insert-text-before-and-after-a-line/#comments</comments>
		<pubDate>Sat, 24 Jul 2010 23:22:52 +0000</pubDate>
		<dc:creator>praj</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.praj.com.au/?p=474</guid>
		<description><![CDATA[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&#8217;ve added the text before_ at the start of each line and the text _after at the end [...]]]></description>
			<content:encoded><![CDATA[<p>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:</p>
<pre>test1
test2
test3
test4
test5
</pre>
<p>Which I want to change to something like this:</p>
<pre>before_test1_after
before_test2_after
before_test3_after
before_test4_after
before_test5_after
</pre>
<p>So I&#8217;ve added the text <code>before_</code> at the start of each line and the text <code>_after</code> at the end of the each line. To do this with Regex and Notepad++</p>
<ul>
<li>Open a new document, with the starting text.</li>
<li>Choose Search &gt; Replace (CTRL + H).</li>
<li>Switch the search mode to Regular expression</li>
</ul>
<p>To add text at the start of each line, search for <code>^(.)</code> and replace with <code>before_\1</code>. This matches the start of the line and any character (.) after it. It replaces with the text before_ and the first match result \1.</p>
<p>Similarly to add text at the end of each line, search for <code>(.)$</code> and replace with <code>\1_after</code>. This matches any character up to the end of the line. It replaces it with the search result followed by the text after_.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.praj.com.au/regex-to-insert-text-before-and-after-a-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Better Joomla Administration Template</title>
		<link>http://www.praj.com.au/a-better-joomla-administration-template/</link>
		<comments>http://www.praj.com.au/a-better-joomla-administration-template/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 04:39:07 +0000</pubDate>
		<dc:creator>praj</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.praj.com.au/?p=471</guid>
		<description><![CDATA[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&#8217;t just make your administration pages look better, it actually makes them easier to work with by organising things better. Definitely worth trying [...]]]></description>
			<content:encoded><![CDATA[<p>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 <a href="http://www.adminpraise.com/joomla/admin-templates/free/adminpraise-lite.php" target="_blank">AdminPraise Lite</a> template available from <a href="http://www.joomlapraise.com/" target="_blank">JoomlaPraise</a>. This doesn&#8217;t just make your administration pages look better, it actually makes them easier to work with by organising things better. Definitely worth trying out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.praj.com.au/a-better-joomla-administration-template/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Allow PHP code to execute in a HTML file</title>
		<link>http://www.praj.com.au/allow-php-code-to-execute-in-a-html-file/</link>
		<comments>http://www.praj.com.au/allow-php-code-to-execute-in-a-html-file/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 01:44:41 +0000</pubDate>
		<dc:creator>praj</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.praj.com.au/?p=468</guid>
		<description><![CDATA[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&#8217;t execute when the file extension is .html, .htm etc.
To change this, you can add a .htaccess file. Here&#8217;s some [...]]]></description>
			<content:encoded><![CDATA[<p>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&#8217;t execute when the file extension is .html, .htm etc.</p>
<p>To change this, you can add a <a href="http://en.wikipedia.org/wiki/Htaccess" target="_blank">.htaccess file</a>. Here&#8217;s some example code to add depending on your system:</p>
<p>For XAMPP:</p>
<pre>AddType application/x-httpd-php .html .htm</pre>
<p>For Hosting (obviously depends on your hosting provider):</p>
<pre>Addhandler application/x-httpd-php5 .html .php</pre>
<p>Put this in a file called .htaccess in the same folder as your HTML files.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.praj.com.au/allow-php-code-to-execute-in-a-html-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;Stuck&#8221; Windows Key in Remote Desktop</title>
		<link>http://www.praj.com.au/stuck-windows-key-in-remote-desktop/</link>
		<comments>http://www.praj.com.au/stuck-windows-key-in-remote-desktop/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 02:53:10 +0000</pubDate>
		<dc:creator>praj</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.praj.com.au/?p=453</guid>
		<description><![CDATA[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&#8217;ll know it is happening when typing certain letters that lead to a windows shortcut key combination effect, e.g:

Typing B -&#62; Winkey [...]]]></description>
			<content:encoded><![CDATA[<p>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.</p>
<p>You&#8217;ll know it is happening when typing certain letters that lead to a windows shortcut key combination effect, e.g:</p>
<ul>
<li>Typing B -&gt; Winkey + B =status bar</li>
<li>Typing D -&gt; Winkey + D = show desktop</li>
<li>Typing E -&gt; Winkey + E = show explorer</li>
<li>Typing F -&gt; Winkey + F = launches find</li>
<li>Typing G -&gt; Winkey + G = gadgets (Windows 7)</li>
<li>Typing L -&gt; Winkey + L = lock computer</li>
<li>Typing M -&gt; Winkey + M = minimize all windows</li>
<li>Typing P -&gt; Winkey + P = display output settings (Windows 7)</li>
<li>Typing R -&gt; Winkey + R = run window</li>
<li>Typing T -&gt; Winkey + T = task bar (Windows 7)</li>
<li>Typing U -&gt; Winkey + U = utility manager</li>
</ul>
<p>Now that you know the list of shortcuts, the fix is simply to tap your windows key a few times until it goes away.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.praj.com.au/stuck-windows-key-in-remote-desktop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web Site Redesign</title>
		<link>http://www.praj.com.au/web-site-redesign/</link>
		<comments>http://www.praj.com.au/web-site-redesign/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 08:38:04 +0000</pubDate>
		<dc:creator>praj</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://site.praj.com.au/?p=427</guid>
		<description><![CDATA[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 [...]]]></description>
			<content:encoded><![CDATA[<p>Welcome to the redesigned site!</p>
<p>I created this new layout from scratch, starting with a photoshop mock up and turning it into a Wordpress theme. Hope you like it.</p>
<p>In addition to the layout changes, there have also been some minor changes made to the site including:</p>
<ul>
<li>Change of base URL from blog.praj.com.au to www.praj.com.au</li>
<li>All permalinks are now directly off the base URL (no more /posts/&lt;article_name&gt;).</li>
<li>I&#8217;ve set up redirection to point old posts to their correct new links.</li>
<li>Change of name from praj&#8217;s blog to praj&#8217;s site.</li>
</ul>
<p>Let me know what you think of the new site.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.praj.com.au/web-site-redesign/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>a:focus anchor pseudo class</title>
		<link>http://www.praj.com.au/afocus-anchor-pseudo-class/</link>
		<comments>http://www.praj.com.au/afocus-anchor-pseudo-class/#comments</comments>
		<pubDate>Sun, 13 Jun 2010 07:31:21 +0000</pubDate>
		<dc:creator>praj</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.praj.com.au/?p=398</guid>
		<description><![CDATA[You probably know about the a:hover pseudo class in CSS which is used for changing a anchor tag style when a user hovers over a link.
Today, I discovered the a:focus pseudo class which does a similar job, but for when a user highlights a link using keyboard navigation (i.e., tabbing to the link). In most [...]]]></description>
			<content:encoded><![CDATA[<p>You probably know about the <a href="http://www.w3schools.com/CSS/css_pseudo_classes.asp" target="_blank">a:hover pseudo class</a> in CSS which is used for changing a anchor tag style when a user hovers over a link.</p>
<p>Today, I discovered the a:focus pseudo class which does a similar job, but for when a user highlights a link using keyboard navigation (i.e., tabbing to the link). In most cases, I use the basic effect of underlining text when a user hovers over the link. I also now do that when they focus on the link using the following code:</p>
<pre class="brush: css">
a:hover, a:focus, a:active {
text-decoration: underline;
}
</pre>
<p>Note, a:active is for when the user clicks on the link. Also, a:active has to be <strong>after</strong> a:hover in order for it to work.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.praj.com.au/afocus-anchor-pseudo-class/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Holiday Photos</title>
		<link>http://www.praj.com.au/holiday-photos/</link>
		<comments>http://www.praj.com.au/holiday-photos/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 23:34:32 +0000</pubDate>
		<dc:creator>praj</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://blog.praj.com.au/?p=112</guid>
		<description><![CDATA[Photos from my trip to Italy and Egypt are up on Picasa Web:
http://picasaweb.google.com/praj.basnet/
]]></description>
			<content:encoded><![CDATA[<p>Photos from my trip to Italy and Egypt are up on Picasa Web:</p>
<p><a href="http://picasaweb.google.com/praj.basnet/">http://picasaweb.google.com/praj.basnet/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.praj.com.au/holiday-photos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comments are back</title>
		<link>http://www.praj.com.au/comments-are-back/</link>
		<comments>http://www.praj.com.au/comments-are-back/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 09:36:06 +0000</pubDate>
		<dc:creator>praj</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://blog.praj.com.au/?p=35</guid>
		<description><![CDATA[I was getting a bit of comment spam, but now I have introduced a captcha to the comments so hopefully that keeps down the number of spam comments  
Thanks to everyone who has provided comments in the past, hopefully this won&#8217;t be too much of an inconvenience.
]]></description>
			<content:encoded><![CDATA[<p>I was getting a bit of comment spam, but now I have introduced a captcha to the comments so hopefully that keeps down the number of spam comments <img src='http://www.praj.com.au/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks to everyone who has provided comments in the past, hopefully this won&#8217;t be too much of an inconvenience.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.praj.com.au/comments-are-back/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
