<?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>Web Development London UK &#187; Interesting</title>
	<atom:link href="http://hsmoore.com/blog/category/interesting/feed/" rel="self" type="application/rss+xml" />
	<link>http://hsmoore.com</link>
	<description>Web Development London UK</description>
	<lastBuildDate>Wed, 01 Feb 2012 12:10:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>What is xmlrpc.php?</title>
		<link>http://hsmoore.com/blog/what-is-xmlrpc-php/</link>
		<comments>http://hsmoore.com/blog/what-is-xmlrpc-php/#comments</comments>
		<pubDate>Tue, 22 Feb 2011 11:02:59 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[Article]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Interesting]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://andrewodendaal.com/?p=1197</guid>
		<description><![CDATA[It is a script which allows clients to make procedural calls over the net. As it says in the name, the encoding is XML and because it is used on websites we can make the fair assessment that it uses the HTTP protocol. If we break the name down we get: XML transmition via Remote...]]></description>
			<content:encoded><![CDATA[<p>It is a script which allows clients to make procedural calls over the net.<br />
As it says in the name, the encoding is XML and because it is used on websites we can make the fair assessment that it uses the HTTP protocol.</p>
<p>If we break the name down we get: XML transmition via Remote Procedure Calls.</p>
<p>So you are still not sure what this is all about? Read on..</p>
<p>xmlrpc.com has a very simple yet rather effective diagram which illustrates what&#8217;s going on with it all:</p>
<p><img class="size-full wp-image-1198 alignnone" title=" " src="http://andrewodendaal.com/wp-content/uploads/2011/02/xmlrpc1.jpg" alt="" width="527" height="270" /></p>
<p>As we can see above, xmlrpc is basically a simple way of transporting data using a common protocol used on the web.</p>
<p>This file is usually added to the root of a domain when using packages such as WordPress, Drupal or similar.</p>
<p>XMLRPC.php only accepts POST requests so using the CURL library or similar would be the best option when interacting with it. The PHP source file is quite long so I will not include it here, as it is 3375lines long. But you can easily find it online using your favorite search engine!</p>
]]></content:encoded>
			<wfw:commentRss>http://hsmoore.com/blog/what-is-xmlrpc-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ternary Operation</title>
		<link>http://hsmoore.com/blog/ternary-operation/</link>
		<comments>http://hsmoore.com/blog/ternary-operation/#comments</comments>
		<pubDate>Tue, 12 Oct 2010 10:46:56 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[Article]]></category>
		<category><![CDATA[Content]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Interesting]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Ternary Operation]]></category>

		<guid isPermaLink="false">http://andrewodendaal.com/?p=1150</guid>
		<description><![CDATA[If you do not know what the Ternary operator is, or do not use it while you are coding, let me be the first to tell you how much you are missing out! The Ternary operator looks like this: &#8220;?&#8220;, that&#8217;s right, it&#8217;s a question mark! My favourite way of using it is to shorten...]]></description>
			<content:encoded><![CDATA[<p>If you do not know what the Ternary operator is, or do not use it while you are coding, let me be the first to tell you how much you are missing out!</p>
<p>The Ternary operator looks like this: &#8220;<span style="color: #ff0000;">?</span>&#8220;, that&#8217;s right, it&#8217;s a question mark!</p>
<p>My favourite way of using it is to shorten Conditional If Statements, so let me show you what I&#8217;m on about.</p>
<p><strong><span style="text-decoration: underline;">The long way:</span></strong></p>
<div class="codesnip-container" >if ($someVariable==true) {<br />
   $someOtherVariable=1;<br />
} else {<br />
   $someOtherVariable=2;<br />
}</div>
<p><span style="text-decoration: underline;"><strong>The slightly shorter way:</strong></span></p>
<div class="codesnip-container" >if ($someVariable==true) $someOtherVariable=1;<br />
else $someOtherVariable=2;</div>
<p><span style="text-decoration: underline;"><strong>The Ternary Operation way:</strong></span></p>
<div class="codesnip-container" >$someOtherVariable = ($someVariable) ? 1 : 2;</div>
<p><strong><span style="text-decoration: underline;">So this is how it works:</span></strong></p>
<div class="codesnip-container" >$result = ($condition) ? $ifTrue : $ifFalse;</div>
<p><strong>This can also be used while outputting a string on runtime, I will show this using some javascript:</strong></p>
<div class="codesnip-container" >function aFunction(arg1,arg2) {<br />
   this.arg1 = arg1;<br />
   this.arg2 = arg2;<br />
}<br />
function printIt() { with (this) document.write(arg1+&#8217; &gt; arg2 &#8216;+(arg2?&#8217;isTrue&#8217;:'isFalse&#8217;)+&#8217; arg2&#8242;); }<br />
something=new aFunction(&#8216;FooBar&#8217;,true);<br />
something.printIt();</div>
<p>If you did not know this or were not sure how it worked, then I&#8217;m sure you will now start using it in your code, it really does save time and it looks quite snazzy too!</p>
]]></content:encoded>
			<wfw:commentRss>http://hsmoore.com/blog/ternary-operation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Test Your Password Strength</title>
		<link>http://hsmoore.com/blog/test-your-password-strength/</link>
		<comments>http://hsmoore.com/blog/test-your-password-strength/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 12:46:59 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Interesting]]></category>
		<category><![CDATA[crack]]></category>
		<category><![CDATA[password]]></category>

		<guid isPermaLink="false">http://www.andrewodendaal.com/?p=881</guid>
		<description><![CDATA[I came across this site today and it&#8217;s quite an interesting one as it works out the approximate time it would take a desktop pc to crack the password. Check it out here.]]></description>
			<content:encoded><![CDATA[<p>I came across this site today and it&#8217;s quite an interesting one as it works out the approximate time it would take a desktop pc to crack the password.</p>
<p>Check it out <a title="Opens in new tab/window" href="http://howsecureismypassword.net/" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://hsmoore.com/blog/test-your-password-strength/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Hire a Hacker</title>
		<link>http://hsmoore.com/blog/how-to-hire-a-hacker/</link>
		<comments>http://hsmoore.com/blog/how-to-hire-a-hacker/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 13:00:06 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[Funny]]></category>
		<category><![CDATA[Interesting]]></category>
		<category><![CDATA[hacker]]></category>

		<guid isPermaLink="false">http://www.andrewodendaal.com/?p=873</guid>
		<description><![CDATA[I came across a very interesting and quite funny read, take a look here for How to Hire a Hacker: http://www.setec.org/hirehacker.html]]></description>
			<content:encoded><![CDATA[<p>I came across a very interesting and quite funny read, take a look here for <a title="Opens in new tab/window" href="http://www.setec.org/hirehacker.html" target="_blank">How to Hire a Hacker: http://www.setec.org/hirehacker.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hsmoore.com/blog/how-to-hire-a-hacker/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Weird Pagination on a Google Page</title>
		<link>http://hsmoore.com/blog/weird-pagination-on-a-google-page/</link>
		<comments>http://hsmoore.com/blog/weird-pagination-on-a-google-page/#comments</comments>
		<pubDate>Mon, 17 May 2010 12:32:55 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[Interesting]]></category>
		<category><![CDATA[weird]]></category>
		<category><![CDATA[pagination]]></category>

		<guid isPermaLink="false">http://www.andrewodendaal.com/?p=829</guid>
		<description><![CDATA[Not sure how long this one will last, but for now: Go to: http://www.google.co.za/search?q=MFI/06/ASA-778658&#38;hl=en&#38;start=0&#38;sa=N If you scroll to the bottom, there are 4 pages (pagination), press Next, now there are only 2, WEIRD HUH!]]></description>
			<content:encoded><![CDATA[<p>Not sure how long this one will last, but for now:<br />
Go to: <a href="http://www.google.co.za/search?q=MFI/06/ASA-778658&amp;hl=en&amp;start=0&amp;sa=N">http://www.google.co.za/search?q=MFI/06/ASA-778658&amp;hl=en&amp;start=0&amp;sa=N</a></p>
<p>If you scroll to the bottom, there are 4 pages (pagination), press Next, now there are only 2, WEIRD HUH!</p>
<p><img class="alignnone size-full wp-image-833" title=" " src="http://www.andrewodendaal.com/wp-content/uploads/2010/05/goog1.jpg" alt="" width="266" height="93" /><img class="alignnone size-full wp-image-834" title=" " src="http://www.andrewodendaal.com/wp-content/uploads/2010/05/goog2.jpg" alt="" width="262" height="103" /></p>
]]></content:encoded>
			<wfw:commentRss>http://hsmoore.com/blog/weird-pagination-on-a-google-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Turbo C++ in DosBox for Windows 64bit</title>
		<link>http://hsmoore.com/blog/turbo-c-in-dosbox-for-windows-64bit/</link>
		<comments>http://hsmoore.com/blog/turbo-c-in-dosbox-for-windows-64bit/#comments</comments>
		<pubDate>Fri, 07 May 2010 16:31:35 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[Interesting]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[rant]]></category>
		<category><![CDATA[FAIL]]></category>
		<category><![CDATA[turbo c++]]></category>
		<category><![CDATA[windows 7]]></category>
		<category><![CDATA[x64]]></category>
		<category><![CDATA[x86]]></category>

		<guid isPermaLink="false">http://www.andrewodendaal.com/?p=796</guid>
		<description><![CDATA[I had to compile a C++ application under a DOS environment and was running Windows 7 64bit. Firstly, Turbo C++ is a 32 bit x86 application and therefore will not run when initialised from an x64 environment. This can easily be solved by installing the DOS Emulator called DosBox. One can then mount the Turbo...]]></description>
			<content:encoded><![CDATA[<p>I had to compile a C++ application under a DOS environment and was running Windows 7 64bit.</p>
<p>Firstly, Turbo C++ is a 32 bit x86 application and therefore will not run when initialised from an x64 environment.</p>
<p>This can easily be solved by installing the DOS Emulator called DosBox. One can then mount the Turbo C++ folder as a drive and install it under a subdirectory.</p>
<div class="codesnip-container" >
<div class="c codesnip" style="font-family:monospace;">e.<span class="me1">g</span>. <span class="me1">mount</span> c c<span class="sy0">:</span>\PathToMyTurboCppDirectory\</div>
</div>
<p>Once in there it&#8217;s quite easy to open and compile the source code, but good luck to anyone that tries to write anything from scratch, it&#8217;s really painful and half the keys are not mapped in the DosBox, eventhough you can press Ctrl+F1 to open the Keymapper.</p>
<p>I will never try that one again.</p>
<p>Next time I will just load it all onto an old machine that is still running an x86 32 bit operating system.</p>
]]></content:encoded>
			<wfw:commentRss>http://hsmoore.com/blog/turbo-c-in-dosbox-for-windows-64bit/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Actionscript2: Split string by line length with &amp; without word-wrap</title>
		<link>http://hsmoore.com/blog/split-string-by-line-length-with-and-without-word-wrap-using-actionscript-2/</link>
		<comments>http://hsmoore.com/blog/split-string-by-line-length-with-and-without-word-wrap-using-actionscript-2/#comments</comments>
		<pubDate>Wed, 05 May 2010 10:04:25 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[Article]]></category>
		<category><![CDATA[Interesting]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[split]]></category>
		<category><![CDATA[wordwrap]]></category>

		<guid isPermaLink="false">http://www.andrewodendaal.com/?p=778</guid>
		<description><![CDATA[Split string into sentences by max line length. This uses a character array but doesn&#8217;t use word-wrapping. var personalMessage:String = &#34;You got this far so we reckon that you could be curious enough to learn a little more, we’ll contact you shortly to answer any questions you may have.&#34;; _root.myArray = new Array&#40;&#41;; _root.myArray =...]]></description>
			<content:encoded><![CDATA[<p>Split string into sentences by max line length.<br />
This uses a character array but doesn&#8217;t use word-wrapping.</p>
<div class="codesnip-container" >
<div class="actionscript codesnip" style="font-family:monospace;"><span class="kw2">var</span> personalMessage:<span class="kw3">String</span> = <span class="st0">&quot;You got this far so we reckon that you could be curious enough to learn a little more, we’ll contact you shortly to answer any questions you may have.&quot;</span>;<br />
<span class="kw3">_root</span>.<span class="me1">myArray</span> = <span class="kw2">new</span> <span class="kw3">Array</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
<span class="kw3">_root</span>.<span class="me1">myArray</span> = personalMessage.<span class="kw3">split</span><span class="br0">&#40;</span><span class="st0">&quot;&quot;</span><span class="br0">&#41;</span>;<br />
<span class="kw3">_root</span>.<span class="me1">mySentences</span> = <span class="kw2">new</span> <span class="kw3">Array</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
<span class="kw2">var</span> currentCharCount:<span class="kw3">Number</span> = <span class="nu0">0</span>;<br />
<span class="kw2">var</span> currentCharItem:<span class="kw3">Number</span> = <span class="nu0">0</span>;<br />
<span class="kw2">var</span> currentCharString:<span class="kw3">String</span> = <span class="st0">&quot;&quot;</span>;<br />
<span class="kw2">var</span> maxLength:<span class="kw3">Number</span> = <span class="nu0">65</span>;</p>
<p><span class="kw1">for</span> <span class="br0">&#40;</span><span class="kw2">var</span> i=<span class="nu0">0</span>; i<span class="sy0">&lt;</span>_root.<span class="me1">myArray</span>.<span class="kw3">length</span>; i++ <span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span>currentCharCount<span class="sy0">&lt;</span>maxLength<span class="br0">&#41;</span> currentCharString += <span class="kw3">_root</span>.<span class="me1">myArray</span><span class="br0">&#91;</span>i<span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span>currentCharCount==maxLength <span class="sy0">||</span> currentCharItem==<span class="br0">&#40;</span><span class="kw3">_root</span>.<span class="me1">myArray</span>.<span class="me1">length</span>-1<span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">_root</span>.<span class="me1">mySentences</span>.<span class="kw3">push</span><span class="br0">&#40;</span>currentCharString<span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; currentCharCount = <span class="nu0">0</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; currentCharString = <span class="st0">&quot;&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; currentCharCount++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; currentCharItem++;<br />
<span class="br0">&#125;</span></p>
<p><span class="kw3">trace</span><span class="br0">&#40;</span><span class="kw3">_root</span>.<span class="me1">mySentences</span>.<span class="kw3">length</span><span class="br0">&#41;</span>;<br />
<span class="kw3">trace</span><span class="br0">&#40;</span><span class="kw3">_root</span>.<span class="me1">mySentences</span><span class="br0">&#91;</span>0<span class="br0">&#93;</span><span class="br0">&#41;</span>;<br />
<span class="kw3">trace</span><span class="br0">&#40;</span><span class="kw3">_root</span>.<span class="me1">mySentences</span><span class="br0">&#91;</span>1<span class="br0">&#93;</span><span class="br0">&#41;</span>;<br />
<span class="kw3">trace</span><span class="br0">&#40;</span><span class="kw3">_root</span>.<span class="me1">mySentences</span><span class="br0">&#91;</span>2<span class="br0">&#93;</span><span class="br0">&#41;</span>;</div>
</div>
<p>This outputs the following:</p>
<div class="codesnip-container" >
<div class="c codesnip" style="font-family:monospace;"><span class="nu0">3</span><br />
You got this far so we reckon that you could be curious enough to<br />
learn a little more<span class="sy0">,</span> we’ll contact you shortly to answer any que<br />
tions you may have.</div>
</div>
<p>Split string into sentences by max line length and use word-wrapping.</p>
<div class="codesnip-container" >
<div class="actionscript codesnip" style="font-family:monospace;"><span class="kw2">var</span> personalMessage:<span class="kw3">String</span> = <span class="st0">&quot;You got this far so we reckon that you could be curious enough to learn a little more, we’ll contact you shortly to answer any questions you may have.&quot;</span>;<br />
<span class="kw3">_root</span>.<span class="me1">myArray</span> = <span class="kw2">new</span> <span class="kw3">Array</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
<span class="kw3">_root</span>.<span class="me1">myArray</span> = personalMessage.<span class="kw3">split</span><span class="br0">&#40;</span><span class="st0">&quot; &quot;</span><span class="br0">&#41;</span>;<br />
<span class="kw3">_root</span>.<span class="me1">mySentences</span> = <span class="kw2">new</span> <span class="kw3">Array</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
<span class="kw2">var</span> currentCharString:<span class="kw3">String</span> = <span class="st0">&quot;&quot;</span>;<br />
<span class="kw2">var</span> maxLength:<span class="kw3">Number</span> = <span class="nu0">60</span>;</p>
<p><span class="kw1">for</span> <span class="br0">&#40;</span><span class="kw2">var</span> i=<span class="nu0">0</span>; i<span class="sy0">&lt;</span>_root.<span class="me1">myArray</span>.<span class="kw3">length</span>; i++ <span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span>currentCharString.<span class="me1">length</span><span class="sy0">&lt;</span>maxLength<span class="br0">&#41;</span> currentCharString += <span class="kw3">_root</span>.<span class="me1">myArray</span><span class="br0">&#91;</span>i<span class="br0">&#93;</span> + <span class="st0">&quot; &quot;</span>;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span><span class="br0">&#40;</span>currentCharString.<span class="kw3">length</span> <span class="sy0">&gt;</span>= <span class="br0">&#40;</span>maxLength-1<span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="sy0">||</span> <span class="br0">&#40;</span>i==<span class="br0">&#40;</span><span class="kw3">_root</span>.<span class="me1">myArray</span>.<span class="me1">length</span>-1<span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">_root</span>.<span class="me1">mySentences</span>.<span class="kw3">push</span><span class="br0">&#40;</span>currentCharString<span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; currentCharString = <span class="st0">&quot;&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span> <span class="kw1">else</span> currentCharCount++;<br />
<span class="br0">&#125;</span></p>
<p><span class="kw3">trace</span><span class="br0">&#40;</span><span class="kw3">_root</span>.<span class="me1">mySentences</span>.<span class="kw3">length</span><span class="br0">&#41;</span>;<br />
<span class="kw3">trace</span><span class="br0">&#40;</span><span class="kw3">_root</span>.<span class="me1">mySentences</span><span class="br0">&#91;</span>0<span class="br0">&#93;</span><span class="br0">&#41;</span>;<br />
<span class="kw3">trace</span><span class="br0">&#40;</span><span class="kw3">_root</span>.<span class="me1">mySentences</span><span class="br0">&#91;</span>1<span class="br0">&#93;</span><span class="br0">&#41;</span>;<br />
<span class="kw3">trace</span><span class="br0">&#40;</span><span class="kw3">_root</span>.<span class="me1">mySentences</span><span class="br0">&#91;</span>2<span class="br0">&#93;</span><span class="br0">&#41;</span>;</div>
</div>
<p>This outputs the following:</p>
<div class="codesnip-container" >
<div class="c codesnip" style="font-family:monospace;"><span class="nu0">3</span><br />
You got this far so we reckon that you could be curious enough<br />
to learn a little more<span class="sy0">,</span> we’ll contact you shortly to answer<br />
any questions you may have.</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://hsmoore.com/blog/split-string-by-line-length-with-and-without-word-wrap-using-actionscript-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Search and Replace Anchor Href using Javascript</title>
		<link>http://hsmoore.com/blog/search-and-replace-anchor-href-using-javascript/</link>
		<comments>http://hsmoore.com/blog/search-and-replace-anchor-href-using-javascript/#comments</comments>
		<pubDate>Thu, 29 Apr 2010 09:04:50 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[Interesting]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[absolute]]></category>
		<category><![CDATA[anchor]]></category>
		<category><![CDATA[relative]]></category>
		<category><![CDATA[replace]]></category>
		<category><![CDATA[search]]></category>

		<guid isPermaLink="false">http://www.andrewodendaal.com/?p=756</guid>
		<description><![CDATA[I have a site that is under development and it was made really badly so I needed a quick way to replace all anchors on page to the relevant path. The problem is because it was a testsite that lived away from the public facing domain, the anchors had to be changed because they were...]]></description>
			<content:encoded><![CDATA[<p>I have a site that is under development and it was made really badly so I needed a quick way to replace all anchors on page to the relevant path.</p>
<p>The problem is because it was a testsite that lived away from the public facing domain, the anchors had to be changed because they were all coded in as absolute paths.</p>
<p>I included a JavascriptDebug file and put the following in there:</p>
<div class="codesnip-container" >
<div class="javascript codesnip" style="font-family:monospace;"><span class="kw2">function</span> replaceAnchorsTestSite<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">var</span> allAnchors <span class="sy0">=</span> document.<span class="me1">getElementsByTagName</span><span class="br0">&#40;</span><span class="st0">&quot;a&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">var</span> string1 <span class="sy0">=</span> <span class="st0">&quot;http://***.***.***.***/testsite/&quot;</span><span class="sy0">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">var</span> string2 <span class="sy0">=</span> <span class="st0">&quot;http://***.***.***.***/&quot;</span><span class="sy0">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">for</span> <span class="br0">&#40;</span><span class="kw2">var</span> i<span class="sy0">=</span><span class="nu0">0</span><span class="sy0">;</span> i<span class="sy0">&lt;</span>allAnchors.<span class="me1">length</span><span class="sy0">;</span> i<span class="sy0">++</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">var</span> str <span class="sy0">=</span> allAnchors<span class="br0">&#91;</span>i<span class="br0">&#93;</span>.<span class="me1">href</span><span class="sy0">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; allAnchors<span class="br0">&#91;</span>i<span class="br0">&#93;</span>.<span class="me1">href</span> <span class="sy0">=</span> str.<span class="me1">replace</span><span class="br0">&#40;</span>string2<span class="sy0">,</span> string1<span class="br0">&#41;</span><span class="sy0">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><br />
<span class="br0">&#125;</span><br />
window.<span class="kw3">onload</span> <span class="sy0">=</span> replaceAnchorsTestSite<span class="sy0">;</span></div>
</div>
<p>I then placed the following at the bottom of the index page to start it all up.</p>
<div class="codesnip-container" >
<div class="javascript codesnip" style="font-family:monospace;"><span class="sy0">&lt;</span>script src<span class="sy0">=</span><span class="st0">&quot;http://***.***.***.***/testsite/jsDev.js&quot;</span> type<span class="sy0">=</span><span class="st0">&quot;text/javascript&quot;</span><span class="sy0">&gt;&lt;/</span>script<span class="sy0">&gt;</span></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://hsmoore.com/blog/search-and-replace-anchor-href-using-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iTunes keeps maximizing!</title>
		<link>http://hsmoore.com/blog/itunes-keeps-maximizing/</link>
		<comments>http://hsmoore.com/blog/itunes-keeps-maximizing/#comments</comments>
		<pubDate>Mon, 26 Apr 2010 09:58:48 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[apple]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Interesting]]></category>
		<category><![CDATA[annoying]]></category>
		<category><![CDATA[irritating]]></category>
		<category><![CDATA[itunes]]></category>
		<category><![CDATA[maximise]]></category>

		<guid isPermaLink="false">http://www.andrewodendaal.com/?p=740</guid>
		<description><![CDATA[Oh my goodness, this can be an annoying issue with iTunes. The problem is: iTunes will restore itself or maximize itself all the time every 20 or so seconds without being clicked on, it will also get main focus and whatever you were doing will have to wait! I solved this by right clicking on...]]></description>
			<content:encoded><![CDATA[<p>Oh my goodness, this can be an annoying issue with iTunes.</p>
<p>The problem is: iTunes will restore itself or maximize itself all the time every 20 or so seconds without being clicked on, it will also get main focus and whatever you were doing will have to wait!</p>
<p>I solved this by right clicking on the iTunes program icon where I launch it from and selecting Properties, then selecting &#8220;Compatibility&#8221; then making sure &#8220;Run this program as an administrator&#8221; was checked.</p>
<p>When first starting iTunes I now have to click on &#8220;Yes, I would like to start this program as an administrator&#8230;.blablabla&#8230;&#8221; but it&#8217;s a LOT less irritating than having to constantly minimise iTunes.</p>
]]></content:encoded>
			<wfw:commentRss>http://hsmoore.com/blog/itunes-keeps-maximizing/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Set line leading / line spacing in flash actionscript 2</title>
		<link>http://hsmoore.com/blog/set-line-leading-line-spacing-in-flash-actionscript-2/</link>
		<comments>http://hsmoore.com/blog/set-line-leading-line-spacing-in-flash-actionscript-2/#comments</comments>
		<pubDate>Fri, 16 Apr 2010 15:14:40 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[Interesting]]></category>
		<category><![CDATA[actionscript 2]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[line spacing]]></category>
		<category><![CDATA[text leading]]></category>

		<guid isPermaLink="false">http://www.andrewodendaal.com/?p=629</guid>
		<description><![CDATA[This is how to add text leading using Actionscript 2 for Flash. var txtFormat:TextFormat = new TextFormat&#40;&#41;; txtFormat.leading = 5; // change this to whatever you need it to be ttt.setTextFormat&#40;txtFormat&#41;; ttt2.setTextFormat&#40;txtFormat&#41;;&#60;/span&#62; There is also a GUI way of doing this: Select your textfield and and under the paragraph section, set the top/right hand icon...]]></description>
			<content:encoded><![CDATA[<p><strong>This is how to add text leading using Actionscript 2 for Flash.</strong></p>
<div class="codesnip-container" >
<div class="actionscript codesnip" style="font-family:monospace;"><span class="kw2">var</span> txtFormat:<span class="kw3">TextFormat</span> = <span class="kw2">new</span> <span class="kw3">TextFormat</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
txtFormat.<span class="kw3">leading</span> = <span class="nu0">5</span>; <span class="co1">// change this to whatever you need it to be</span><br />
ttt.<span class="kw3">setTextFormat</span><span class="br0">&#40;</span>txtFormat<span class="br0">&#41;</span>;<br />
ttt2.<span class="kw3">setTextFormat</span><span class="br0">&#40;</span>txtFormat<span class="br0">&#41;</span>;<span class="sy0">&lt;/</span>span<span class="sy0">&gt;</span></div>
</div>
<p><strong>There is also a GUI way of doing this:</strong></p>
<p>Select your textfield and and under the paragraph section, set the top/right hand icon (Line Spacing) to whatever you like.</p>
]]></content:encoded>
			<wfw:commentRss>http://hsmoore.com/blog/set-line-leading-line-spacing-in-flash-actionscript-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

