<?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>phdesign &#187; general</title>
	<atom:link href="http://www.phdesign.com.au/category/general/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phdesign.com.au</link>
	<description>phdesign web and application development by Paul Heasley</description>
	<lastBuildDate>Thu, 08 Jul 2010 00:08:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>phreplace Goes Open Source</title>
		<link>http://www.phdesign.com.au/general/phreplace-goes-open-source/</link>
		<comments>http://www.phdesign.com.au/general/phreplace-goes-open-source/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 08:09:48 +0000</pubDate>
		<dc:creator>paul</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[phreplace]]></category>

		<guid isPermaLink="false">http://www.phdesign.com.au/?p=193</guid>
		<description><![CDATA[I&#8217;ve decided to release phreplace as open source software in order to continue it&#8217;s development, I no longer have the time to give it the attention it deserves. The VB6 source code will be released under the GNU Lesser General Public License (LGPL), in my understanding this means that anyone can use phreplace and even [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve decided to release phreplace as open source software in order to continue it&#8217;s development, I no longer have the time to give it the attention it deserves.</p>
<p>The VB6 source code will be released under the GNU Lesser General Public License (LGPL), in my understanding this means that anyone can use phreplace and even include the library in a greater works (e.g. PSPad), however if they modify the code it must be released under a similar open source library, in order that everyone will benefit from the changes.</p>
<p>The source code is available at <a title="phreplace source code available at Assembla" href="https://www.assembla.com/spaces/phreplace/documents">Assembla</a>, feel free to send any code changes to me to be included in the project.<span id="more-193"></span></p>
<h3>Architecture</h3>
<p>I rewrote phreplace in early 2009 when I was studying design patterns and as such the VB6 source code is heavily object-oriented and pattern focused. VB6 is not strictly an oo language but it does support inheritance through the &#8216;Implements&#8217; keyword.</p>
<p>phreplace uses the iterator, observer and factory methods. I found some of the sample chapters of <em>Visual Basic design patterns: VB 6.0 and VB.NET</em> By James William Cooper on <a title="Visual Basic design patterns: VB 6.0 and VB.NET By James William Cooper" href="http://books.google.com.au/books?id=TLhvRJTKDssC&amp;lpg=PP1&amp;pg=PP1#v=onepage&amp;q&amp;f=false">Google Books</a> a very useful resource.</p>
<p>This early <a href="http://www.phdesign.com.au/wp-content/uploads/2010/06/phreplace-architecture.pdf">class architecture diagram (PDF)</a> may help decipher some of the code design.</p>
<h3>Future Direction</h3>
<p>phreplace was designed to be application agnostic, it currently works only with PSPad but I hoped that by implementing only a few interfaces (IHostAdapter, IDocument and IDocumentCollection) it could work with any other editor that supported the basic operations required. My next intended editor to support was SciTE.</p>
<p>The first major change that I would like to see is support for Vista / Windows 7. At present the phreplace.vbs script intialises the application by checking to see if the phreplace.dll library is registered, if it isn&#8217;t it tries to register it with regsvr32. This works for Windows XP but standard users aren&#8217;t able to register libraries in Vista / Windows 7. So far I have come up with 3 solutions.</p>
<ol>
<li>Override DllRegisterServer using <a title="Classic VB Tools: vbAdvance" href="http://vb.mvps.org/tools/vbAdvance/">vbAdvance</a>. I can&#8217;t get this library to work. See <a href="http://www.phdesign.com.au/programming/registering-phreplace-dll-in-windows-vista/" title="Registering phreplace DLL in Windows Vista">Registering phreplace DLL in Windows Vista</a>.</li>
<li>Create a separate utility similar to regsvr32 and include this with phreplace. I think this is messy. Again see <a href="http://www.phdesign.com.au/programming/registering-phreplace-dll-in-windows-vista/" title="Registering phreplace DLL in Windows Vista">Registering phreplace DLL in Windows Vista</a>.</li>
<li>Use the <a title="Registration-Free COM" href="http://msdn.microsoft.com/en-us/library/ms973913.aspx">Registration-Free COM</a> solution of adding a manifest file for PSPad which references the phreplace.dll library so that we don&#8217;t have to register it in the registry at all. This solution works for XP, see the <a title="reg-free-com branch of phreplace source code." href="https://www.assembla.com/code/phreplace/subversion/nodes/branches/reg-free-com?rev=5">reg-free-com branch of the source code</a>, but doesn&#8217;t seem to work for Vista. My theory is that perhaps Vista handles vbscript differently, so it doesn&#8217;t inherit the PSPad manifest. If someone could get this working I think this is the most elegant solution.</li>
</ol>
<p>I look forward to seeing user contributions to this project.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phdesign.com.au/general/phreplace-goes-open-source/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Converting Topfield PVR Recordings</title>
		<link>http://www.phdesign.com.au/general/converting-topfield-pvr-recordings/</link>
		<comments>http://www.phdesign.com.au/general/converting-topfield-pvr-recordings/#comments</comments>
		<pubDate>Sun, 14 Feb 2010 06:21:33 +0000</pubDate>
		<dc:creator>paul</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[ipod]]></category>
		<category><![CDATA[topfield]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.phdesign.com.au/?p=148</guid>
		<description><![CDATA[This weekend I&#8217;ve been having fun moving some recording off the full hard drive of my Topfield Masterpiece and trying to convert them into the formats I want. Below is what I&#8217;ve learnt in the process, this is only going to be useful to those using Windows. Moving data off the PVR If you want [...]]]></description>
			<content:encoded><![CDATA[<p>This weekend I&#8217;ve been having fun moving some recording off the full hard drive of my Topfield Masterpiece and trying to convert them into the formats I want. Below is what I&#8217;ve learnt in the process, this is only going to be useful to those using Windows.<span id="more-148"></span></p>
<h2>Moving data off the PVR</h2>
<p>If you want to use your recordings on devices other than your Toppy, you&#8217;re going to need to get the recordings off it. Fortunately this is the simplest step. For me there were really two options:</p>
<ol>
<li>Use the provided USB link from the Toppy and the official <a title="Topfield tools, Altair USB transfer software." href="http://www.itopfield.com.au/download-utilities.asp?idx=15&amp;tb=">ALTAIR software</a> to download the recordings. For one or two recording this will be fine, although for me it took around 4 hours for a normal sized movie.</li>
<li>Attach the hard drive to your computer use <a title="TopfHD Read-Write to copy data from a Topfield hard drive" href="http://www.tapworld.net/content/view/75/47/">TopfHD Read-Write</a> to copy the recordings over to your PC hard drive.<br />
WARNING! To do this you will need to open your Topfield up to remove the hard drive, in doing so you will void your warrenty. I wouldn&#8217;t recommend doing this unless your Toppy is out of warrenty anyway.<br />
You need to use the TopfHD application to transfer files because Windows won&#8217;t recognise the file format of the Toppy hard drive. Be very careful not let Windows modify the disk in any way.<br />
Transferring about 8 recorded shows and 4 movies took under 30 mins, this takes longer to set up but is well worth it if you&#8217;re trying to move a bit of data.</li>
</ol>
<h2>Watching / Converting the Recordings</h2>
<p>Once you&#8217;ve got the recordings on your PC they will be in Topfield&#8217;s .rec format, which Windows Media nor Quicktime can recognise. My traditional way of converting these files for buring to a DVD went;</p>
<ol>
<li>Use <a title="Project X - DVB demux Tool" href="http://sourceforge.net/projects/project-x/">ProjectX</a> to convert to m2v file</li>
<li>Use TMPGEnc DVD Author to convert to DVD format</li>
<li>Use Nero to burn to DVD.</li>
</ol>
<p>If you just want to watch them on your computer I&#8217;ve got some great news which took me a while to realise: the .rec files can be played directly by the ever useful <a title="VLC Media Player" href="http://www.videolan.org/">VLC Media Player</a>.</p>
<p>If you want to convert them to another format, VLC can help you there too. Use the Media &gt; Convert / Save option to convert it into many different formats. Supposedly it can convert to H264 / mp4 format  compatible with iPods, however I had real problems with this, the video would be distorted or the audio would be way out of sync. So, after playing around for a while, I thought I give it a go converting directly form <a title="Handbrake iPod video conversion" href="http://handbrake.fr/">Handbrake</a> which I do most of my iPod video conversions with&#8230; and this works great!</p>
<p>In summary,</p>
<p><strong>To convert to DVD</strong>: Probably still use ProjectX &gt; TMPGEnc DVD Author &gt; DVD.</p>
<p><strong>To convert to iPod:</strong> Use Handbrake.</p>
<p><strong>To watch or convert to other media formats:</strong> Use VLC Media Player.</p>
<p>Hope this is useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phdesign.com.au/general/converting-topfield-pvr-recordings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>phreplace version 2.0.24 released</title>
		<link>http://www.phdesign.com.au/general/phreplace-version-2-0-24-released/</link>
		<comments>http://www.phdesign.com.au/general/phreplace-version-2-0-24-released/#comments</comments>
		<pubDate>Sat, 19 Dec 2009 04:21:52 +0000</pubDate>
		<dc:creator>paul</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[phreplace]]></category>

		<guid isPermaLink="false">http://www.phdesign.com.au/?p=137</guid>
		<description><![CDATA[I&#8217;ve made a couple of updates to phreplace and created a new . The changes include: Handling an exception that occurs in the vbscript Regex object when using a badly formed regular expression (e.g. reader.(\w)+\(reader.GetOrdinal\(&#8220;(\w)+&#8221;)); &#8211; note I forgot to escape the last parenthesis). Added Write to Log option (which defaults to off) to write some debugging [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve made a couple of updates to phreplace and created a new <a href="http://www.phdesign.com.au/phreplace/" title="phreplace">version 2.0.24 which is available here</a>. The changes include:<span id="more-137"></span></p>
<ul>
<li>Handling an exception that occurs in the vbscript Regex object when using a badly formed regular expression (e.g. reader.(\w)+\(reader.GetOrdinal\(&#8220;(\w)+&#8221;)); &#8211; note I forgot to escape the last parenthesis).</li>
<li>Added Write to Log option (which defaults to off) to write some debugging log events to a &#8216;phreplace.log&#8217; file in the same folder as the &#8216;phreplace.dll&#8217; library. This should help identify the issue for a user where the latest version of phreplace just doesn&#8217;t open (no error &#8211; no nothing).</li>
<li>Not a change but rather a note: Tried to understand the vbscript Regex object&#8217;s handling of &#8216;.&#8217;. Apparently it matches a new line (\n) but not a carriage return (\r) which is why doing a replace all with ^(.+)$  was acting  strange, try this instead ^([^\r\n]+)$.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.phdesign.com.au/general/phreplace-version-2-0-24-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>phdesign website 2.2 live</title>
		<link>http://www.phdesign.com.au/general/phdesign-website-2-2-live/</link>
		<comments>http://www.phdesign.com.au/general/phdesign-website-2-2-live/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 06:25:04 +0000</pubDate>
		<dc:creator>paul</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[webdesign]]></category>

		<guid isPermaLink="false">http://www.phdesign.com.au/general/phdesign-website-2-2-live/</guid>
		<description><![CDATA[Finally the new version of phdesign.com.au is live. Based on wordpress this site will hopefully be more active than it has been in the past. There are still areas to complete such as the portfolio section, but that shouldn&#8217;t be too far away. Now that I won&#8217;t be spending as much time on this site&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>Finally the new version of <a title="phdesign web design and development by paul heasley" href="http://www.phdesign.com.au">phdesign.com.au</a> is live. Based on <a title="Powered by WordPress, state-of-the-art semantic personal publishing platform." href="http://wordpress.org">wordpress</a> this site will hopefully be more active than it has been in the past. There are still areas to complete such as the portfolio section, but that shouldn&#8217;t be too far away. Now that I won&#8217;t be spending as much time on this site&#8217;s development perhaps I can focus more on <a href="http://www.phdesign.com.au/phreplace/" title="phreplace Mutliline search and replace add-on for PSPad">phreplace</a>, although I should spend some more time studying for my MCPD exams.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phdesign.com.au/general/phdesign-website-2-2-live/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>phreplace Documentation Online</title>
		<link>http://www.phdesign.com.au/general/phreplace-documentation-online/</link>
		<comments>http://www.phdesign.com.au/general/phreplace-documentation-online/#comments</comments>
		<pubDate>Sat, 28 Nov 2009 11:08:24 +0000</pubDate>
		<dc:creator>paul</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[phreplace]]></category>

		<guid isPermaLink="false">http://www.phdesign.com.au/apps/staging/?p=115</guid>
		<description><![CDATA[The documentation for phreplace which was included as a .chm file in version 2.0 is now available online.]]></description>
			<content:encoded><![CDATA[<p>The documentation for <a href="http://www.phdesign.com.au/phreplace/" title="phreplace">phreplace</a> which was included as a .chm file in version 2.0 is now <a href="http://www.phdesign.com.au/docs/introduction/" title="Introduction">available online</a>. While viewing the documentation use the menu on the right hand side to navigate.</p>
<p>The docs include <a href="http://www.phdesign.com.au/docs/support-and-development/" title="Support and Development">information on getting support</a>, <a href="http://www.phdesign.com.au/docs/troubleshooting/" title="Troubleshooting">troubleshooting</a> and <a href="http://www.phdesign.com.au/docs/version-history/" title="Version History">version history</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phdesign.com.au/general/phreplace-documentation-online/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>About phdesign</title>
		<link>http://www.phdesign.com.au/general/about-phdesign/</link>
		<comments>http://www.phdesign.com.au/general/about-phdesign/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 04:51:04 +0000</pubDate>
		<dc:creator>paul</dc:creator>
				<category><![CDATA[general]]></category>

		<guid isPermaLink="false">http://www.phdesign.com.au/apps/staging/?p=3</guid>
		<description><![CDATA[I hope this site will provide value to developers like myself while giving me an outlet for my design and development as the mood takes me.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve finally decided to redevelop the phdesign website, and the first question that hits me is what is phdesign?</p>
<p>When I was younger and more ambitious I thought phdesign would quickly become a global web design company and by now I&#8217;d be reclining in a large leather chair, behind a strong hardwood desk in a high rise building with floor to ceiling windows, organising the next board meeting, just as soon as I could dedicate some time to doing more projects. 5 years have passed since I started phdesign and my portfolio has only seen a few websites built, mainly for family and friends, and an add-on to a freeware text editor.</p>
<p>My expectations have changed a lot and I hope to reflect that in the new website design. I am well suited to a steady income, working a normal week and being able to enjoy my spare time, not on the computer. I want phdesign to be my sandbox for working on projects for fun, not for money, and I want it to provide an opportunity to share what I learn.</p>
<p>I hope this site will provide value to developers like myself while giving me an outlet for my design and development as the mood takes me.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phdesign.com.au/general/about-phdesign/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
