<?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</title>
	<atom:link href="http://www.praj.com.au/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.praj.com.au</link>
	<description></description>
	<lastBuildDate>Fri, 13 Aug 2010 08:12:26 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>IE8 Slowness with HTTPS</title>
		<link>http://www.praj.com.au/ie8-slowness-with-https/</link>
		<comments>http://www.praj.com.au/ie8-slowness-with-https/#comments</comments>
		<pubDate>Fri, 13 Aug 2010 08:12:26 +0000</pubDate>
		<dc:creator>praj</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.praj.com.au/?p=477</guid>
		<description><![CDATA[Recently, I had a secure (https) site which was particularly slow with IE8 on Windows 2008 Server. The same site worked fine with IE8 on Windows XP and Windows 7. It was also fine with Firefox.
My solution involved turning of the Check for Server certificate revocation options in the Advanced HTTPS Security in IE under:
Tools [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, I had a secure (https) site which was particularly slow with IE8 on Windows 2008 Server. The same site worked fine with IE8 on Windows XP and Windows 7. It was also fine with Firefox.</p>
<p>My solution involved turning of the <em>Check for Server certificate revocation</em> options in the Advanced HTTPS Security in IE under:</p>
<p>Tools &gt; Internet Options &gt; Advanced &gt; Security: Check for Server certificate revocation*.</p>
<p>This might also work for you but it is definitely a workaround as the same option was enabled in IE8 in Windows XP/7 and I didn&#8217;t have any problems. I think it might have something to do with the combination of IE8 and Windows 2008 Server which has the enhanced security configuration enabled. However, simply turning off ESC in Windows 2008 Server didn&#8217;t resolve the issue by itself.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.praj.com.au/ie8-slowness-with-https/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>Cloning a Wordpress Site</title>
		<link>http://www.praj.com.au/cloning-a-wordpress-site/</link>
		<comments>http://www.praj.com.au/cloning-a-wordpress-site/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 10:55:26 +0000</pubDate>
		<dc:creator>praj</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.praj.com.au/?p=463</guid>
		<description><![CDATA[These are the basic steps for cloning a WordPress site. In this example, I assume your source web server is your live site on your web hosting and your target web server is your local development web server. Try to keep the same directory name and database name to keep things simple.

Backup all of the [...]]]></description>
			<content:encoded><![CDATA[<p>These are the basic steps for cloning a WordPress site. In this example, I assume your source web server is your live site on your web hosting and your target web server is your <a href="http://www.praj.com.au/local-development-servers/" title="Local Web Development Servers">local development web server</a>. Try to keep the same directory name and database name to keep things simple.</p>
<ol>
<li>Backup all of the files from your site on your web hosting and download (e.g. via FTP).</li>
<li>Export your database to a SQL script (e.g. through phpMyAdmin for MySQL)</li>
<li>Extract your files to your local development server directory</li>
<li>(Create) and import your database using the exported SQL script (e.g. through phpMyAdmin for MySQL)</li>
<li>If your database name or database user/password has changed, update <strong>wp-config.php</strong> in the main directory accordingly.</li>
<li>Start your SQL tool (e.g. phpMyAdmin for MySQL). You will need to update the table <strong>wp-options</strong>. The two options you will be updating (option_name) are siteurl and home. Change these from the URL of your source site (live site) to your local development web server URL (option_value fields).</li>
</ol>
<p>Hopefully your local development site is now working.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.praj.com.au/cloning-a-wordpress-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pages not printing in Firefox</title>
		<link>http://www.praj.com.au/pages-not-printing-in-firefox/</link>
		<comments>http://www.praj.com.au/pages-not-printing-in-firefox/#comments</comments>
		<pubDate>Sat, 19 Jun 2010 03:29:50 +0000</pubDate>
		<dc:creator>praj</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.praj.com.au/?p=461</guid>
		<description><![CDATA[While redesigning this site, I incorporated a new print style sheet. During the process I discovered a feature in Firefox when printing a web site. Basically, if you have the overflow: hidden CSS attribute set, then it could prevent Firefox from printing all pages from the web site.
So, if you notice that you are only [...]]]></description>
			<content:encoded><![CDATA[<p>While redesigning this site, I incorporated a new print style sheet. During the process I discovered a <em>feature</em> in Firefox when printing a web site. Basically, if you have the overflow: hidden CSS attribute set, then it could prevent Firefox from printing all pages from the web site.</p>
<p>So, if you notice that you are only seeing a portion of your web site in your print preview, check your CSS code, and look for any cases where overflow: hidden has been set. For example, I had it set in my container div to allow the footer to always be placed right at the bottom of the page regardless of the content size above it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.praj.com.au/pages-not-printing-in-firefox/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>Equally aligning images in CSS</title>
		<link>http://www.praj.com.au/equally-aligning-images-in-css/</link>
		<comments>http://www.praj.com.au/equally-aligning-images-in-css/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 09:16:26 +0000</pubDate>
		<dc:creator>praj</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[web-design]]></category>

		<guid isPermaLink="false">http://www.praj.com.au/?p=448</guid>
		<description><![CDATA[Equally aligning a row of images so they are equal distances apart with the first image being flush left and the last image being flush right, is actually a lot harder than you would think! Eventually, I turned to Google and came across the solution at CSS tricks.
I&#8217;d actually tried the first two approaches described [...]]]></description>
			<content:encoded><![CDATA[<p>Equally aligning a row of images so they are equal distances apart with the first image being flush left and the last image being flush right, is actually a lot harder than you would think! Eventually, I turned to Google and came across<a href="http://css-tricks.com/equidistant-objects-with-css/" target="_blank"> the solution at CSS tricks</a>.</p>
<p>I&#8217;d actually tried the first two approaches described in the article, but didn&#8217;t go down the table road. Instead, I stopped and thought, someone somewhere must have solved this. What did they do?</p>
<p>It works really well, but it is not intuitive at all. By the way, you can use exactly 33.3% (instead of 33%) for your width if you really need to be spot on. It works in IE6 too which is always a bonus.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.praj.com.au/equally-aligning-images-in-css/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>
	</channel>
</rss>
