<?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>My Quick Fix &#187; Computers</title>
	<atom:link href="http://myquickfix.co.uk/index.php/category/computers/feed/" rel="self" type="application/rss+xml" />
	<link>http://myquickfix.co.uk</link>
	<description>Quick fixes for niggly problems...</description>
	<lastBuildDate>Thu, 24 Sep 2009 15:10:50 +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>Swap days and months in PHP &#8211; quick and dirty MM/DD/YY to DD/MM/YY.</title>
		<link>http://myquickfix.co.uk/index.php/2009/09/swap-days-and-months-in-php-quick-and-dirty-mmddyy-to-ddmmyy/</link>
		<comments>http://myquickfix.co.uk/index.php/2009/09/swap-days-and-months-in-php-quick-and-dirty-mmddyy-to-ddmmyy/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 15:10:50 +0000</pubDate>
		<dc:creator>hutch</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[regular expressions]]></category>

		<guid isPermaLink="false">http://www.myquickfix.co.uk/?p=580</guid>
		<description><![CDATA[Problem
I have a ton of date strings in the stupid US style dd/mm/yy format. i.e. 12/24/09 being 24th September 2009. I need to convert them to the UK style dd/mm/yy.
Solution 1
As a string in PHP is really just an array of characters, the simplest fix was to address the individual number characters by their positions within the sting, and rearrange them into the format I wanted:

$d = "12/24/09";
$d = $d[3].$d[4]."/".$d[0].$d[1]."/".$d[6].$d[7];
echo $d; // displays "24/12/19".

Solution 2
I posted my solution on twitter (@hutchings) and asked for comments and @londonhackspace organiser Jonty came ...]]></description>
			<content:encoded><![CDATA[<h2>Problem</h2>
<p>I have a ton of date strings in the stupid US style dd/mm/yy format. i.e. 12/24/09 being 24th September 2009. I need to convert them to the UK style dd/mm/yy.</p>
<h2>Solution 1</h2>
<p>As a string in PHP is really just an array of characters, the simplest fix was to address the individual number characters by their positions within the sting, and rearrange them into the format I wanted:</p>
<pre name="code" class="php">
$d = "12/24/09";
$d = $d[3].$d[4]."/".$d[0].$d[1]."/".$d[6].$d[7];
echo $d; // displays "24/12/19".
</pre>
<h2>Solution 2</h2>
<p>I posted my solution on twitter (@hutchings) and asked for comments and @londonhackspace organiser Jonty came back with the following elegant (and much cleverer) suggestion:</p>
<pre name="code" class="php">
$d = "12/24/09";
$d = preg_replace('|(\d+)/(\d+)/(\d+)|', '$2/$1/$3', $d);
echo $d; // displays "24/12/19".
</pre>
<p>So provided you know that your original string is in US format, both these solutions can be used. In my testing I found solution 1 executed more quickly, but isn&#8217;t as pleasing to look at <img src='http://myquickfix.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Cheers Jonty.</p>
]]></content:encoded>
			<wfw:commentRss>http://myquickfix.co.uk/index.php/2009/09/swap-days-and-months-in-php-quick-and-dirty-mmddyy-to-ddmmyy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cannot set alpha on dynamic text in Flash / ActionScript 2</title>
		<link>http://myquickfix.co.uk/index.php/2009/08/cannot-set-alpha-on-dynamic-text-in-flash-actionscript-2/</link>
		<comments>http://myquickfix.co.uk/index.php/2009/08/cannot-set-alpha-on-dynamic-text-in-flash-actionscript-2/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 22:16:21 +0000</pubDate>
		<dc:creator>hutch</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[alpha]]></category>
		<category><![CDATA[as2]]></category>
		<category><![CDATA[dynamic]]></category>

		<guid isPermaLink="false">http://www.myquickfix.co.uk/?p=578</guid>
		<description><![CDATA[Problem
I&#8217;m doing some freelance Flash development, and it&#8217;s been a while. I have just created a dynamic text field that I wanted to fill via actionscript, then fade in via an alpha tween. This wasn&#8217;t working, even if I set _alpha = 0 on the movieclip containing the text field.
Solution
You can only set _alpha on a Dynamic Text field if the font has been embeded (with the embed button).
Works now! wohoo! Simple stuff that I&#8217;ve known in the past, but forgot.
]]></description>
			<content:encoded><![CDATA[<h2>Problem</h2>
<p>I&#8217;m doing some freelance Flash development, and it&#8217;s been a while. I have just created a dynamic text field that I wanted to fill via actionscript, then fade in via an alpha tween. This wasn&#8217;t working, even if I set _alpha = 0 on the movieclip containing the text field.</p>
<h2>Solution</h2>
<p>You can only set _alpha on a Dynamic Text field if the font has been embeded (with the embed button).</p>
<p>Works now! wohoo! Simple stuff that I&#8217;ve known in the past, but forgot.</p>
]]></content:encoded>
			<wfw:commentRss>http://myquickfix.co.uk/index.php/2009/08/cannot-set-alpha-on-dynamic-text-in-flash-actionscript-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Delegating a sub domain to other nameservers with ZoneEdit</title>
		<link>http://myquickfix.co.uk/index.php/2009/07/delegating-a-sub-domain-to-other-nameservers-with-zoneedit/</link>
		<comments>http://myquickfix.co.uk/index.php/2009/07/delegating-a-sub-domain-to-other-nameservers-with-zoneedit/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 15:33:11 +0000</pubDate>
		<dc:creator>hutch</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[delegate]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[domains]]></category>
		<category><![CDATA[zoneedit]]></category>

		<guid isPermaLink="false">http://www.myquickfix.co.uk/?p=573</guid>
		<description><![CDATA[Problem
We&#8217;re building a website in Business Catalyst and need to provide the client with a test site during the design, build and testing phases. This test site needs to be accessible on a sub-domain of the client&#8217;s main domain. At the same time we want to retain DNS control of the parent domain, and stick a small holding site there.
For example:
&#8216;mydomain.com&#8217; has a small holding site on it, and mail services etc work as usual for that domain.
&#8216;test.mydomain.com&#8217; needs to be delegated to the Business Catalyst nameservers.
Solution
Turns out this is ...]]></description>
			<content:encoded><![CDATA[<h2>Problem</h2>
<p>We&#8217;re building a website in Business Catalyst and need to provide the client with a test site during the design, build and testing phases. This test site needs to be accessible on a sub-domain of the client&#8217;s main domain. At the same time we want to retain DNS control of the parent domain, and stick a small holding site there.</p>
<p><strong>For example:<br />
</strong>&#8216;mydomain.com&#8217; has a small holding site on it, and mail services etc work as usual for that domain.<br />
&#8216;test.mydomain.com&#8217; needs to be delegated to the Business Catalyst nameservers.</p>
<h2>Solution</h2>
<p>Turns out this is easy (peasy) if you&#8217;re using ZoneEdit, but probably equally as simple with any domain registrar service that lets you make changes to a domain&#8217;s zone file.</p>
<p><strong>1)</strong> Login and &#8216;View&#8217; the domain you need to work on.</p>
<p><strong>2)</strong> Click on the  &#8217;Nameservers&#8217; links, Shown below:</p>
<p><img class="alignnone size-full wp-image-572" title="Selecting nameservers link" src="http://www.myquickfix.co.uk/wp-content/uploaded/2009/07/delegate-sub-1.png" alt="Selecting nameservers link" width="560" height="678" /></p>
<p><strong>3)</strong> Add the domain and subdomain in full in the &#8216;Domain Name&#8217; field, and the new nameserver in the next field. The IP isn&#8217;t necessary. In the image below, you can see that one nameserver for the subdomain has already been added, and the second one is being entered. There ARE usually at least 2 nameservers for a zone.</p>
<p><img class="alignnone size-full wp-image-571" title="Adding nameservers for delegated sub domain" src="http://www.myquickfix.co.uk/wp-content/uploaded/2009/07/delegate-sub-2.png" alt="Adding nameservers for delegated sub domain" width="560" height="377" /></p>
<p>That&#8217;s it, done. Now when a lookup is done on test.mydomain.com, the query is forwarded to the nameservers ns1 and ns2 at anotherserver.com, and any records they have for the subdomain are returned.</p>
<p>Please leave a comment if you have any questions, thoughts or corrections.</p>
]]></content:encoded>
			<wfw:commentRss>http://myquickfix.co.uk/index.php/2009/07/delegating-a-sub-domain-to-other-nameservers-with-zoneedit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&quot;JFolder::create: Could not create directory&quot; error in Joomla 1.5.* on IIS.</title>
		<link>http://myquickfix.co.uk/index.php/2009/07/jfolder-create-could-not-create-directory/</link>
		<comments>http://myquickfix.co.uk/index.php/2009/07/jfolder-create-could-not-create-directory/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 09:46:14 +0000</pubDate>
		<dc:creator>hutch</dc:creator>
				<category><![CDATA[Joomla!]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[permissions]]></category>
		<category><![CDATA[temporary]]></category>
		<category><![CDATA[tmp]]></category>

		<guid isPermaLink="false">http://www.myquickfix.co.uk/?p=552</guid>
		<description><![CDATA[Problem
When trying to add a Plugin, Component or Module in Joomla&#8217;s Extension Manager, you might get the following error:
JFolder::create: Could not create directory
Warning! Failed to move file.
Shown here:

This is likely &#8211; but not definitely &#8211; to be after the site has been moved from location to another, a change of directory, or server.
Solution
When a Component, Plugin or Module is added, the Joomla system attempts to copy the installable zip to a temporary directory, called &#8216;tmp&#8216;. From there, PHP extracts the files and installs them. The error above usually occurs for ...]]></description>
			<content:encoded><![CDATA[<h2>Problem</h2>
<p>When trying to add a Plugin, Component or Module in Joomla&#8217;s Extension Manager, you might get the following error:</p>
<p><span style="color: #ff0000;">JFolder::create: Could not create directory<br />
Warning! Failed to move file.</span></p>
<p>Shown here:</p>
<p><img class="size-full wp-image-551 alignnone" title="Error showing in extension manager" src="http://www.myquickfix.co.uk/wp-content/uploaded/2009/07/joomla-Jfolder1.png" alt="Error showing in extension manager" width="300" height="300" /></p>
<p>This is likely &#8211; but not definitely &#8211; to be after the site has been moved from location to another, a change of directory, or server.</p>
<h2>Solution</h2>
<p>When a Component, Plugin or Module is added, the Joomla system attempts to copy the installable zip to a temporary directory, called &#8216;<strong>tmp</strong>&#8216;. From there, PHP extracts the files and installs them. The error above usually occurs for one or more of the following reasons (in order of likelihood):</p>
<p><strong>The path to the &#8216;tmp&#8217; directory is wrong in the Joomla configuration file</strong></p>
<p>In the Joomla installation root, find the file called &#8216;configuration.php&#8217;. In this file there should be a line with that says something like:</p>
<p><em>var $tmp_path = &#8216;C:\\path\\to\\your\\cms\\tmp&#8217;;</em></p>
<p>A masked live example is shown here:</p>
<p><img class="alignnone size-full wp-image-550" title="Correct path to tmp directory" src="http://www.myquickfix.co.uk/wp-content/uploaded/2009/07/joomla-Jfolder2.png" alt="Correct path to tmp directory" width="450" height="200" /></p>
<p>Check that this path is correct, and that the &#8216;tmp&#8217; directory truly does sit in that location. In this example, the directory would need to be here: d<em>:\clients\sites\[my client]\tmp.</em></p>
<p><strong>The temporary exists, but is not &#8216;writable&#8217;</strong></p>
<p>If the &#8216;tmp&#8217; directory has the wrong permissions, the web service won&#8217;t be able to copy the installer files to it. To check/correct this you will need  access to the server physically, or via a remote admin method like <a href="http://en.wikipedia.org/wiki/Remote_Desktop_Protocol">RDP</a> (terminal services), <a href="http://en.wikipedia.org/wiki/Vnc">VNC</a> or similar.</p>
<p>Find the &#8216;tmp&#8217; directory in the web root, and view the permissions. The IIS Guest account, called &#8216;IUSR_[machinename]&#8216;, needs to be given &#8216;modify&#8217; privileges. Example shown below:</p>
<p><img class="alignnone size-full wp-image-566" title="giving IUSR account modify permissions" src="http://www.myquickfix.co.uk/wp-content/uploaded/2009/07/joomla-Jfolder3.png" alt="giving IUSR account modify permissions" width="368" height="474" /></p>
<p><strong>The temporary directory doesn&#8217;t exist</strong></p>
<p>To check this, navigate to your web root (often wwwroot) and check that a directory called &#8216;<strong>tmp</strong>&#8216; exists. This directory should have been created when the Joomla was installed, but it&#8217;s conceivable that it might have been deleted&#8230; maybe? If it doesn&#8217;t exist, create it, and make sure its &#8216;writable&#8217; (see previous step).</p>
<p>If none of this works, or you spot a mistake,  post a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://myquickfix.co.uk/index.php/2009/07/jfolder-create-could-not-create-directory/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Shorter links to eBay items</title>
		<link>http://myquickfix.co.uk/index.php/2009/07/shorter-links-to-ebay-items/</link>
		<comments>http://myquickfix.co.uk/index.php/2009/07/shorter-links-to-ebay-items/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 09:27:45 +0000</pubDate>
		<dc:creator>hutch</dc:creator>
				<category><![CDATA[Day to Day]]></category>
		<category><![CDATA[Google Chrome]]></category>
		<category><![CDATA[Mozilla FireFox]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[custom search]]></category>
		<category><![CDATA[ebay]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[friendly url]]></category>
		<category><![CDATA[links]]></category>

		<guid isPermaLink="false">http://www.myquickfix.co.uk/?p=442</guid>
		<description><![CDATA[Problem
I need to send a mate a link to an item on eBay after breaking his strimmer. The nice people at eBay have reworked their URL structure recently to improve SEO, so a link to a single item now looks something like this:
http://cgi.ebay.co.uk/Medium-duty-bump-head-for-Kawasaki-brushcutter-strimmer_W0QQitemZ190302614007QQcmdZViewItemQQptZUK_Home_Garden_GardenPowerTools_CA?hash=item2c4eeb71f7&#38;_trksid=p3286.c0.m14&#38;_trkparms=65:12&#124;66:2&#124;39:1&#124;72:1686&#124;293:1&#124;294:50
..which is not exactly Twitter, Live Messenger or email friendly. Long URLs break often in email and instant messengers when they &#8216;wrap&#8217; at the end of a line (like the above is doing).
Solution
Here&#8217;s the old style linking system that still works: http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&#38;item=190302614007
So you can use that structure for a ...]]></description>
			<content:encoded><![CDATA[<h2>Problem</h2>
<p>I need to send a mate a link to an item on eBay after breaking his strimmer. The nice people at eBay have reworked their URL structure recently to improve SEO, so a link to a single item now looks something like this:</p>
<p><strong><em>http://cgi.ebay.co.uk/Medium-duty-bump-head-for-Kawasaki-brushcutter-strimmer_W0QQitemZ190302614007QQcmdZViewItemQQptZUK_Home_Garden_GardenPowerTools_CA?hash=item2c4eeb71f7&amp;_trksid=p3286.c0.m14&amp;_trkparms=65:12|66:2|39:1|72:1686|293:1|294:50</em></strong></p>
<p>..which is not exactly Twitter, Live Messenger or email friendly. Long URLs break often in email and instant messengers when they &#8216;wrap&#8217; at the end of a line (like the above is doing).</p>
<h2>Solution</h2>
<p>Here&#8217;s the old style linking system that still works: <strong><em>http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&amp;item=190302614007</em></strong></p>
<p>So you can use that structure for a link to any item. Just paste&#8230;</p>
<p><strong>http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&amp;item=</strong></p>
<p>&#8230;into your browser, email or anything followed by the item number, as above, and it&#8217;ll work.</p>
<p>If you can&#8217;t find the item number in the complicated URL, remember its on each item listing page here:</p>
<p><img class="size-full wp-image-447 alignnone" title="eBay item number" src="http://www.myquickfix.co.uk/wp-content/uploaded/2009/07/ebay-item-number.png" alt="eBay item number" width="433" height="299" /></p>
<h2>Bonus trick for Chrome or Firefox users:</h2>
<p>Chrome and Firefox both allow custom searches to be added easily via bookmarks. These allow you to type a &#8216;keyword&#8217; into the address bar, then a &#8216;search phrase&#8217;, and automatically search a specific site for it. This useful functionality is perfect for getting a link to an eBay item. What you do is create a custom search with the keyword &#8216;el&#8217; (for &#8216;eBay Link&#8217;, but use whatever you&#8217;ll remember, keep it short!) and point it to &#8216;http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&amp;item=%s&#8217;. <strong>Note:</strong> the &#8216;%s&#8217; is substituted for the search phrase &#8211; in this case an item number &#8211; when the search is done.</p>
<p><strong>Chrome Instructions</strong></p>
<p>Open the Chrome options:</p>
<p><img class="alignnone size-full wp-image-459" title="Chrome options" src="http://www.myquickfix.co.uk/wp-content/uploaded/2009/07/chrome-custom-search1.png" alt="Chrome options" width="281" height="287" /></p>
<p>Then follow this process:</p>
<ol>
<li>Click the  &#8217;Manage&#8217; button in the &#8216;Default Search&#8217; area.</li>
<li>In the &#8216;Search Engines&#8217; window, click &#8216;Add&#8217;.</li>
<li>Name the new custom search.</li>
<li>Give it an easy to remember keyword.</li>
<li>In URL enter: &#8220;http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&amp;item=%s&#8221;.</li>
<li>&#8216;Ok&#8217; the window, and &#8216;close&#8217; out of the others.</li>
</ol>
<p>Here&#8217;s the visual process:</p>
<p><img class="alignnone size-full wp-image-463" title="Adding custom eBay item number search" src="http://www.myquickfix.co.uk/wp-content/uploaded/2009/07/chrome-custom-search2.png" alt="Adding custom eBay item number search" width="581" height="539" /></p>
<p>Now to use your new custom eBay item linker, type &#8220;el [item number]&#8221; into the Chrome address bar, and hit &#8216;enter/return&#8217;. You&#8217;ll notice that as soon as you&#8217;ve typed &#8220;el&#8221; and a space and start to enter the item number, Chrome shows that you&#8217;re about to do a custom search:</p>
<p><img class="alignnone size-full wp-image-465" title="custom search in address bar" src="http://www.myquickfix.co.uk/wp-content/uploaded/2009/07/chrome-custom-search3.png" alt="custom search in address bar" width="581" height="114" /></p>
<p>great right? Yea I love it too.</p>
<p><strong>FireFox instructions</strong></p>
<p>In firefox it&#8217;s a very similar process:</p>
<ol>
<li>Open the &#8216;Organise Bookmarks&#8217; pane with <strong>Ctrl + Shift + B</strong> (on a dirty mac it&#8217;s <strong>Shift + Command + B</strong>).</li>
<li>Under &#8216;Unsorted Bookmarks&#8217; add a new Bookmark and name it &#8216;eBay Item Link&#8217; or whatever.</li>
<li>In Location enter &#8220;http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&amp;item=%s&#8221;.</li>
<li> Add an easy to remember keyword like &#8216;el&#8217;.</li>
<li>Click &#8216;Add&#8217; button then close out of the bookmarks pane.</li>
</ol>
<p>Here&#8217;s a visual prompt for the process:</p>
<p><img class="alignnone size-full wp-image-467" title="Firefox bookmark adding eBay item number search" src="http://www.myquickfix.co.uk/wp-content/uploaded/2009/07/firefox-custom-search1.png" alt="Firefox bookmark adding eBay item number search" width="540" height="372" /></p>
<p>And here&#8217;s what it looks like when you use it:</p>
<p><img class="alignnone size-full wp-image-468" title="Searching for item number in FireFox" src="http://www.myquickfix.co.uk/wp-content/uploaded/2009/07/firefox-custom-search2.png" alt="Searching for item number in FireFox" width="540" height="133" /></p>
<p>There, If you know a better or quicker way, or have an issues, please leave a comment below.</p>
]]></content:encoded>
			<wfw:commentRss>http://myquickfix.co.uk/index.php/2009/07/shorter-links-to-ebay-items/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add domain (DNS) Wildcard/catchall (*) entries with Zoneedit</title>
		<link>http://myquickfix.co.uk/index.php/2009/07/domain-dns-wildcard-catchall-zoneedit/</link>
		<comments>http://myquickfix.co.uk/index.php/2009/07/domain-dns-wildcard-catchall-zoneedit/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 11:41:13 +0000</pubDate>
		<dc:creator>hutch</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[catchall]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[wildcard]]></category>
		<category><![CDATA[zoneedit]]></category>

		<guid isPermaLink="false">http://www.myquickfix.co.uk/?p=431</guid>
		<description><![CDATA[Problem
I&#8217;m now using ZoneEdit to handle the zone record for new domains. It gives far more control over the zone, and is very quick with updates etc.  I needed to setup one particular domain so that all traffic to that it &#8211; and any subdomains &#8211; went to one IP address. A &#8216;catchall&#8217; if you like.
For example: &#8216;myquickfix.co.uk&#8217; and &#8216;www.myquickfix.co.uk&#8217;  have A records pointing to 82.109.178.44. If I needed the subdomain &#8216;pants.myquickfix.co.uk&#8217; to point to that IP also, I could add a CNAME record, or another A record. But if ...]]></description>
			<content:encoded><![CDATA[<h2>Problem</h2>
<p>I&#8217;m now using <a title="Link to ZoneEdit " href="http://www.zoneedit.com/">ZoneEdit</a> to handle the zone record for new domains. It gives far more control over the zone, and is very quick with updates etc.  I needed to setup one particular domain so that all traffic to that it &#8211; and any subdomains &#8211; went to one IP address. A &#8216;catchall&#8217; if you like.</p>
<p><strong>For example:</strong> &#8216;myquickfix.co.uk&#8217; and &#8216;www.myquickfix.co.uk&#8217;  have A records pointing to 82.109.178.44. If I needed the subdomain &#8216;pants.myquickfix.co.uk&#8217; to point to that IP also, I could add a CNAME record, or another A record. But if I need lots of subdomains all pointing to the same IP, it&#8217;s far easier to add a wildcard A record.</p>
<h2>Solution</h2>
<p>Wildcard entries are represented by an asterisk (*) and will send all requests that aren&#8217;t covered by other entries, to the specified IP. Shown below are the relevant ZoneEdit screens where this can be setup:</p>
<div id="attachment_430" class="wp-caption alignnone" style="width: 448px"><img class="size-full wp-image-430" title="zoneedit-wildcard-1" src="http://www.myquickfix.co.uk/wp-content/uploaded/2009/07/zoneedit-wildcard-1.gif" alt="An asterisk is entered for Name, and the destination in Numperic IP" width="438" height="277" /><p class="wp-caption-text">An asterisk is entered for Name, and the destination in Numperic IP</p></div>
<p><strong>Note:</strong> There are already entries for the domain, &#8216;www&#8217; and &#8216;mail&#8217;. But we want to add the wildcard / catchall record in the fields above &#8216;Add New IP Address&#8217;. By the way, this is done in the &#8216;IP Addresses (A)&#8217;  screen.</p>
<div id="attachment_429" class="wp-caption alignnone" style="width: 448px"><img class="size-full wp-image-429" title="zoneedit-wildcard-2" src="http://www.myquickfix.co.uk/wp-content/uploaded/2009/07/zoneedit-wildcard-2.gif" alt="After the wildcard entry is added, it appears in the list" width="438" height="277" /><p class="wp-caption-text">After the wildcard entry is added, it appears in the list</p></div>
<p>The entry now appears in the list. If you wait for a few minutes and try to browse to a random subdomain of your domain, it should work. Woo!</p>
<p><strong>A few notes:</strong></p>
<p><strong> </strong>If you&#8217;ve tried the subdomain in your browser before adding the wildcard, you might get a 404 error or just a blank page because the browser has cached the result from lastime. To get around this, clear your browsers cache, and flush your DNS cache. In Windows this is done by opening a command prompt and typing: &#8220;ipconfig /flushdns&#8221;.</p>
<p>If you try and click on the link that appears with the asterisk in ZoneEdit, it is very unlikely to work. The browser will try and URL encode the address turning &#8216;*.domain.co.uk&#8217; into &#8216;%2A.domain.co.uk&#8217; and you&#8217;ll get an Invalid Hostname error (400).</p>
<p>Any thoughts? please comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://myquickfix.co.uk/index.php/2009/07/domain-dns-wildcard-catchall-zoneedit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Keyboard switching languages &#8211; Double quotes (&quot;) and &#039;at&#039; sign (@) reversed.</title>
		<link>http://myquickfix.co.uk/index.php/2009/06/keyboard-switching-languages-double-quotes-and-at-sign-reversed/</link>
		<comments>http://myquickfix.co.uk/index.php/2009/06/keyboard-switching-languages-double-quotes-and-at-sign-reversed/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 15:14:24 +0000</pubDate>
		<dc:creator>hutch</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[input language]]></category>
		<category><![CDATA[keyboard]]></category>

		<guid isPermaLink="false">http://www.myquickfix.co.uk/?p=413</guid>
		<description><![CDATA[Problem
Every so often when I&#8217;m typing, usually when I&#8217;m coding because I use so many shortcuts, the at sign &#8216;@&#8217; and double quotes (&#8220;) get swapped. Annoying!
Solution
When this happens it&#8217;s because I&#8217;ve accidentally pressed &#8216;Shift + Alt&#8217;. THis key combo causes Windows to switch my keyboard (input) language to US. The easiest way to stop this happening, is disable the &#8216;Shift+Alt&#8217; shortcut:
1) From &#8216;Control Panel&#8217;, open the &#8216;Regional and Language Options&#8217;.
2) In &#8216;Regional and Language Options&#8217; window, select the &#8216;Languages&#8217; tab, and click the &#8216;Details&#8217; button inside the &#8216;Text services and ...]]></description>
			<content:encoded><![CDATA[<h2>Problem</h2>
<p>Every so often when I&#8217;m typing, usually when I&#8217;m coding because I use so many shortcuts, the at sign &#8216;@&#8217; and double quotes (&#8220;) get swapped. Annoying!</p>
<h2>Solution</h2>
<p>When this happens it&#8217;s because I&#8217;ve accidentally pressed &#8216;Shift + Alt&#8217;. THis key combo causes Windows to switch my keyboard (input) language to US. The easiest way to stop this happening, is disable the &#8216;Shift+Alt&#8217; shortcut:</p>
<p>1) From &#8216;Control Panel&#8217;, open the &#8216;Regional and Language Options&#8217;.</p>
<p>2) In &#8216;Regional and Language Options&#8217; window, select the &#8216;Languages&#8217; tab, and click the &#8216;Details&#8217; button inside the &#8216;Text services and input languages&#8217; section.</p>
<p><img class="size-full wp-image-418  alignnone" title="Regional and language options" src="http://www.myquickfix.co.uk/wp-content/uploaded/2009/06/key-lang-1.png" alt="Select the Details button under the Languages tab" width="404" height="326" /></p>
<p>3) In the &#8216;Settings&#8217; tab, click the &#8216;Key Settings&#8217; button.</p>
<p><img class="size-full wp-image-419   alignnone" title="Regional and language options" src="http://www.myquickfix.co.uk/wp-content/uploaded/2009/06/key-lang-2.png" alt="Selecting Key Settings" width="404" height="485" /></p>
<p>4) In the &#8216;Hot keys..&#8217; section, highlight the action &#8216;Switch between input languages&#8217; and then click the &#8216;Change Key Sequence&#8217; button.</p>
<p><img class="alignnone size-full wp-image-420" title="Selecting key settings" src="http://www.myquickfix.co.uk/wp-content/uploaded/2009/06/key-lang-3.png" alt="Selecting key settings" width="414" height="297" /></p>
<p>5) Un-tick BOTH tickboxes.</p>
<p><img class="alignnone size-full wp-image-417" title="Switch off shortcuts" src="http://www.myquickfix.co.uk/wp-content/uploaded/2009/06/key-lang-4.png" alt="Switch off shortcuts" width="434" height="152" /></p>
<p>6) Now just &#8216;OK&#8217; and &#8216;Apply&#8217; your way back out of the open windows and <strong><span style="color: #ff0000;">IMPORTANT</span></strong> you need to reboot for the changes to make effect.</p>
<p>Know of a quicker way? please post a comment&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://myquickfix.co.uk/index.php/2009/06/keyboard-switching-languages-double-quotes-and-at-sign-reversed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Set space between list item and bullet (HTML, CSS)&#8230;</title>
		<link>http://myquickfix.co.uk/index.php/2009/06/set-space-between-list-item-and-bullet-html-css/</link>
		<comments>http://myquickfix.co.uk/index.php/2009/06/set-space-between-list-item-and-bullet-html-css/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 10:07:03 +0000</pubDate>
		<dc:creator>hutch</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.myquickfix.co.uk/?p=372</guid>
		<description><![CDATA[Problem
I&#8217;ve just had to convert a photoshop visual to a wordpress template. The designer wanted a bulleted list where the bullets themselves were very close to the list items, and were small dashes. Cross browser support for list item and bullet styling is ropey at best, and to make things perfect I&#8217;d have to resort to browser specific styles.
Solution
The solution I think I&#8217;ll be using for the rest of my &#8216;web&#8217; career will be this. JUST FORGET THE BULLET ITEM, and use positioned background images instead.
In the stylesheet, add styles ...]]></description>
			<content:encoded><![CDATA[<h2>Problem</h2>
<p>I&#8217;ve just had to convert a photoshop visual to a wordpress template. The designer wanted a bulleted list where the bullets themselves were very close to the list items, and were small dashes. Cross browser support for list item and bullet styling is ropey at best, and to make things perfect I&#8217;d have to resort to browser specific styles.</p>
<h2>Solution</h2>
<p>The solution I think I&#8217;ll be using for the rest of my &#8216;web&#8217; career will be this. JUST FORGET THE BULLET ITEM, and use positioned background images instead.</p>
<p>In the stylesheet, add styles for both the &#8216;ul&#8217; tag, and the &#8216;li&#8217; tag like so (explanations inline):</p>
<pre class="css">ul {
margin-left:0px; /* Set the indenting back to far left. */
padding-left:0px; /* Set the indenting back to far left. */
}

ul li {
list-style-type:none; /* Switch the list bullet off altogether. */
background-image:url(dashbullet.gif); /* The replacement bullet image */
background-position:0px 4px; /* Place bullet 0px from left and 4px from top */
background-repeat:no-repeat; /* Stops bullet tiling, important */
padding-left:7px; /* separation from li txt and bullet */
}</pre>
<p>Then just create the list as you usually would, with &#8216;ul&#8217; and &#8216;li&#8217; tags. Here&#8217;s what it looks like in use:</p>
<div id="attachment_400" class="wp-caption aligncenter" style="width: 210px"><img class="size-full wp-image-400" title="Fixed css image bullets" src="http://www.myquickfix.co.uk/wp-content/uploaded/2009/06/list-fix.gif" alt="Example of image bullet in use" width="200" height="150" /><p class="wp-caption-text">Example of image bullet in use</p></div>
<p>Here&#8217;s a bit more detail so you can get your head around the spacing. It&#8217;s incredibly simple, but still, nice to have a diagram or two sometimes.</p>
<div id="attachment_401" class="wp-caption aligncenter" style="width: 410px"><img class="size-full wp-image-401" title="Fixed css image bullets - detail" src="http://www.myquickfix.co.uk/wp-content/uploaded/2009/06/list-fix-detail.gif" alt="Detail showing some dimensions and spacing" width="400" height="174" /><p class="wp-caption-text">Detail showing some dimensions and spacing</p></div>
<p>This style works perfectly (by my testing, but I&#8217;m not perfect) on:</p>
<ul>
<li>Internet Explorer 6, 7 &amp; 8+</li>
<li>Firefox 2.*+</li>
<li>Opera 9+ (not tested 8, but bet it works!</li>
<li>Google Chrome (all versions)</li>
<li>Safari (Mac and PC versions)</li>
</ul>
<div>Any problems, please post a question or comment below.</div>
]]></content:encoded>
			<wfw:commentRss>http://myquickfix.co.uk/index.php/2009/06/set-space-between-list-item-and-bullet-html-css/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Convert a VOB (DVD) movie, and import into Adobe Premiere</title>
		<link>http://myquickfix.co.uk/index.php/2009/06/convert-a-vob-dvd-movie-and-import-into-adobe-premiere/</link>
		<comments>http://myquickfix.co.uk/index.php/2009/06/convert-a-vob-dvd-movie-and-import-into-adobe-premiere/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 09:27:00 +0000</pubDate>
		<dc:creator>hutch</dc:creator>
				<category><![CDATA[Adobe Premiere]]></category>
		<category><![CDATA[adobe premier]]></category>
		<category><![CDATA[dvd]]></category>
		<category><![CDATA[importing]]></category>
		<category><![CDATA[vob]]></category>

		<guid isPermaLink="false">http://www.myquickfix.co.uk/?p=385</guid>
		<description><![CDATA[Problem
A colleague was having trouble getting a DVD imported to Adobe Premier for some overlay edits etc and asked me to take a look.
Solution
VOB files are MPEG-2 files with a different coat on. Rename the .vob file to .mpg and it should work. This also works in Sony Vegas and probably other software. No idea how copy-protection on some disks might effect this?
That really WAS a quickfix and probably not worth posting. If you have any questions, thoughts or corrections please post a comment below.
]]></description>
			<content:encoded><![CDATA[<h2>Problem</h2>
<p>A colleague was having trouble getting a DVD imported to Adobe Premier for some overlay edits etc and asked me to take a look.</p>
<h2>Solution</h2>
<p>VOB files are MPEG-2 files with a different coat on. Rename the .vob file to .mpg and it should work. This also works in Sony Vegas and probably other software. No idea how copy-protection on some disks might effect this?</p>
<p>That really WAS a quickfix and probably not worth posting. If you have any questions, thoughts or corrections please post a comment below.</p>
]]></content:encoded>
			<wfw:commentRss>http://myquickfix.co.uk/index.php/2009/06/convert-a-vob-dvd-movie-and-import-into-adobe-premiere/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick &#039;Lorem Ipsum&#039; plugin / extension for IE</title>
		<link>http://myquickfix.co.uk/index.php/2009/04/lorem-ipsum-ie/</link>
		<comments>http://myquickfix.co.uk/index.php/2009/04/lorem-ipsum-ie/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 12:09:16 +0000</pubDate>
		<dc:creator>hutch</dc:creator>
				<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Registry]]></category>

		<guid isPermaLink="false">http://www.myquickfix.co.uk/?p=334</guid>
		<description><![CDATA[Problem
While doing web development, I frequently need to insert lorem ipsum into a text field or textarea. To do this &#8211; bearing in mind that I don&#8217;t really like or use bookmarks, too messy &#8211; I tend to google &#8220;lorem ipsum&#8221;, hit lipsum.com, select/copy the block of text, and then return to my form field and paste it.
I wanted a quicker solution, and as I find myself using IE more and more to develop in now (thanks to the excellent &#8216;Developer Tools&#8217; extension &#8211; never thought I&#8217;d say that!) my lorem ...]]></description>
			<content:encoded><![CDATA[<h2>Problem</h2>
<p>While doing web development, I frequently need to insert <a title="Lorem Ipsum explanation" href="http://en.wikipedia.org/wiki/Lorem_ipsum" target="_blank">lorem ipsum</a> into a text field or textarea. To do this &#8211; bearing in mind that I don&#8217;t really like or use bookmarks, too messy &#8211; I tend to google &#8220;lorem ipsum&#8221;, hit <a href="http://www.lipsum.com/">lipsum.com</a>, select/copy the block of text, and then return to my form field and paste it.</p>
<p>I wanted a quicker solution, and as I find myself using IE more and more to develop in now (thanks to the excellent &#8216;Developer Tools&#8217; extension &#8211; never thought I&#8217;d say that!) my lorem ipsum fix would have to be in the form of an IE toolbar button or menu item.</p>
<h2>Solution</h2>
<p>It turns out that adding a simple javascript based text field filler option to a context menu is really easy, so that&#8217;s what I did. Here are the steps:</p>
<p><strong>Firstly:</strong> Create the javascript to access the currently focused field, and insert the lorem ipsum text. Create a new html file in a location of your choice &#8211;  I used C:\Program Files\Internet Explorer\Plugins &#8211; and copy the following code into it:</p>
<pre name="code" class="js">&lt;script language="JavaScript"&gt;
var parentwin = external.menuArguments;
var doc = parentwin.document;
var rng = doc.selection.createRange();
rng.text = "Lorem ipsum dolor sit amet, consectetur adipisicing elit, \
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. \
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi \
ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit \
in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur \
sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt \
mollit anim id est laborum.";
&lt;/script&gt;</pre>
<p>Save the file as loremipsum.htm.</p>
<p><strong>Secondly:</strong> Create the registry entry for the menu item:</p>
<ol>
<li>Open/run &#8216;regedit&#8217; (Start &gt; run&#8230; &gt; &#8220;regedit&#8221; &gt; &#8216;Ok&#8217;)</li>
<li>Use the tree to navigate to:<br />
<em>HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt</em><br />
using the tree view on the left of the Registry Editor.</li>
<li>Create a new key (Right click, &#8220;New&#8221; &gt; &#8220;Key&#8221;) and call it &#8220;Lorem Ipsum&#8221; or anything you like.</li>
<li>Inside the new key, open the &#8216;default&#8217; string value that&#8217;s already there (double click on it), and enter the path to the script you created just now. i.e. <em>C:\Program Files\Internet Explorer\Plugins\loremipsum.htm </em></li>
<li>Now create a new DWORD value (Right click, &#8220;New&#8221; &gt; &#8220;DWORD Value&#8221;) and rename it &#8220;Contexts&#8221;. Set the value to 0&#215;04 (hex) or 4 (decimal). <a title="Microsofts info on Contexts values" href="http://msdn.microsoft.com/en-us/library/aa753589.aspx" target="_blank">Here&#8217;s</a> an explanation of the different values.</li>
</ol>
<div id="attachment_365" class="wp-caption aligncenter" style="width: 510px"><img class="size-full wp-image-365" title="lorem-reg" src="http://www.myquickfix.co.uk/wp-content/uploaded/2009/04/lorem-reg.png" alt="The new Key and values in RegEdit" width="500" height="250" /><p class="wp-caption-text">The new Key and values in RegEdit</p></div>
<p>That&#8217;s it! Now open IE, find a textarea or text field, right click, and you should see something like this:</p>
<div id="attachment_368" class="wp-caption aligncenter" style="width: 510px"><img class="size-full wp-image-368" title="lorem-action" src="http://www.myquickfix.co.uk/wp-content/uploaded/2009/04/lorem-action.png" alt="Note the new highlighted option in the context menu" width="500" height="246" /><p class="wp-caption-text">Note the new highlighted option in the context menu</p></div>
]]></content:encoded>
			<wfw:commentRss>http://myquickfix.co.uk/index.php/2009/04/lorem-ipsum-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
