<?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>Strong as an Ox &#187; devtools</title>
	<atom:link href="http://www.strongasanox.co.uk/category/devtools/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.strongasanox.co.uk</link>
	<description>Ian Oxley - ASP.NET, PHP, JavaScript and Web Applications</description>
	<lastBuildDate>Tue, 24 Aug 2010 22:54:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Xdebug Tailored Installation Instructions with PHP 5.2 and Ubuntu 10.04</title>
		<link>http://www.strongasanox.co.uk/2010/05/18/xdebug-tailored-installation-instructions-with-php-5-2-and-ubuntu-10-04/</link>
		<comments>http://www.strongasanox.co.uk/2010/05/18/xdebug-tailored-installation-instructions-with-php-5-2-and-ubuntu-10-04/#comments</comments>
		<pubDate>Tue, 18 May 2010 21:27:14 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[devtools]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[xdebug]]></category>

		<guid isPermaLink="false">http://www.strongasanox.co.uk/?p=356</guid>
		<description><![CDATA[I was really impressed with the Xdebug Tailored Installation Instructions earlier today. Setting up a dev machine at my new job wasn&#8217;t going quite according to plan because, as nice as Ubuntu 10.04 Lucid Lynx is: Installing PHP via sudo apt-get install php5 installs the latest version from the repositories (version 5.3 at the time [...]]]></description>
			<content:encoded><![CDATA[<p>I was really impressed with the <a href="http://xdebug.org/find-binary.php">Xdebug Tailored Installation Instructions</a> earlier today. Setting up a dev machine at <a href="http://www.orangebus.co.uk/">my new job</a> wasn&#8217;t going quite according to plan because, as nice as Ubuntu 10.04 Lucid Lynx is:</p>
<ol>
<li>Installing PHP via <code>sudo apt-get install php5</code> installs the latest version from the repositories (version 5.3 at the time of writing)</li>
<li>We do a lot of work in Drupal, mostly version 6 which isn&#8217;t compatible with PHP 5.3 (and quite a few modules that work with Drupal 6 don&#8217;t work with Drupal 7 apparently &#8211; Drupal 7 plays a lot nicer with PHP 5.3 by all accounts).</li>
<li>So it was necessary to uninstall all the PHP 5.3 packages, <a href="http://ohioloco.ubuntuforums.org/showpost.php?p=9080474&amp;postcount=7">add the karmic repositories to the sources.list</a> then reinstall PHP &#8211; this time PHP 5.2</li>
</ol>
<p>Once all this was done, it was time to install Xdebug. The tailored installation instructions seemed the best option as I&#8217;d just had to revert to a previous version of PHP. And, it couldn&#8217;t have been simpler or more straight-forward to do:</p>
<ol>
<li>Go to <a href="http://xdebug.org/find-binary.php">http://xdebug.org/find-binary.php</a>, paste in the HTML from your <code>phpinfo()</code> output and submit the form</li>
<li>You&#8217;ll get a nice summary and some instructions to follow <img src='http://www.strongasanox.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
<div id="attachment_358" class="wp-caption aligncenter" style="width: 160px"><a href="http://www.strongasanox.co.uk/wp-content/uploads/2010/05/xdebug_summary.jpg"><img class="size-thumbnail wp-image-358 " title="Summary" src="http://www.strongasanox.co.uk/wp-content/uploads/2010/05/xdebug_summary-150x150.jpg" alt="Summary" width="150" height="150" /></a><p class="wp-caption-text">Summary</p></div>
<p><div id="attachment_359" class="wp-caption aligncenter" style="width: 160px"><a href="http://www.strongasanox.co.uk/wp-content/uploads/2010/05/xdebug_instructions.jpg"><img class="size-thumbnail wp-image-359 " title="Instructions" src="http://www.strongasanox.co.uk/wp-content/uploads/2010/05/xdebug_instructions-150x150.jpg" alt="Instructions" width="150" height="150" /></a><p class="wp-caption-text">Instructions</p></div></li>
</ol>
<p>After following the instructions, restart apache and reload your <code>phpinfo()</code> page: if your experience is anything as good as mine you should see all the xdebug configuration options set up nicely and ready to go.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.strongasanox.co.uk/2010/05/18/xdebug-tailored-installation-instructions-with-php-5-2-and-ubuntu-10-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Git</title>
		<link>http://www.strongasanox.co.uk/2010/04/27/using-git/</link>
		<comments>http://www.strongasanox.co.uk/2010/04/27/using-git/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 21:18:29 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[devtools]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://www.strongasanox.co.uk/?p=349</guid>
		<description><![CDATA[Since going freelance at the end of last month I made the conscious decision to use Git for my source control on freelance projects. I&#8217;d kind of used it a bit when adding stuff to GitHub but hadn&#8217;t really used it in anger on anything. Until now. And so far so good. Quite a nifty [...]]]></description>
			<content:encoded><![CDATA[<p>Since going freelance at the end of last month I made the conscious decision to use <a href="http://git-scm.com/">Git</a> for my source control on freelance projects. I&#8217;d kind of used it a bit when adding stuff to <a href="http://github.com/">GitHub</a> but hadn&#8217;t really used it in anger on anything. Until now. And so far so good.</p>
<p>Quite a nifty little cheatsheet I found was this: <a href="http://cheat.errtheblog.com/s/git">http://cheat.errtheblog.com/s/git</a></p>
<p>I really like the aliases and colour-coding &#8211; simple stuff but these save you a lot of typing / keystrokes and make it easier to see at a glance what&#8217;s what respectively <img src='http://www.strongasanox.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.strongasanox.co.uk/2010/04/27/using-git/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>That Yellow Highlight Colour in RGB and Hex</title>
		<link>http://www.strongasanox.co.uk/2010/03/15/that-yellow-highlight-colour-in-rgb-and-hex/</link>
		<comments>http://www.strongasanox.co.uk/2010/03/15/that-yellow-highlight-colour-in-rgb-and-hex/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 20:30:37 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[devtools]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[reminder]]></category>

		<guid isPermaLink="false">http://www.strongasanox.co.uk/?p=311</guid>
		<description><![CDATA[This is just meant as a reminder for me, as I can never remember the colour values to use when trying to add that yellow highlight colour to some CSS (in fact, even as I&#8217;m writing this the WordPress permalink editor is taunting me with that very same colour). So, without further ado: Hex: background:#FFFBCC; [...]]]></description>
			<content:encoded><![CDATA[<p>This is just meant as a reminder for me, as I can never remember the colour values to use when trying to add that yellow highlight colour to some <abbr title="Cascading Style Sheet">CSS</abbr> (in fact, even as I&#8217;m writing this the WordPress permalink editor is taunting me with that very same colour).</p>
<p>So, without further ado:</p>
<ul>
<li>Hex: <strong>background:#FFFBCC;</strong></li>
<li>RGB: <strong>background:rgb(255, 251, 204);</strong></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.strongasanox.co.uk/2010/03/15/that-yellow-highlight-colour-in-rgb-and-hex/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to check if an assembly was compiled in debug or release mode</title>
		<link>http://www.strongasanox.co.uk/2010/01/08/how-to-check-if-an-assembly-was-compiled-in-debug-or-release-mode/</link>
		<comments>http://www.strongasanox.co.uk/2010/01/08/how-to-check-if-an-assembly-was-compiled-in-debug-or-release-mode/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 17:18:44 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[devtools]]></category>
		<category><![CDATA[ironpython]]></category>

		<guid isPermaLink="false">http://www.strongasanox.co.uk/?p=276</guid>
		<description><![CDATA[I came across this nifty bit of code the other day when looking for a way to do this and, just for fun, thought I&#8217;d convert it to IronPython. So I did. And here it is: import System def is_assembly_debug_build(filename): """Returns true if filename appears to have been built in debug mode""" result = False [...]]]></description>
			<content:encoded><![CDATA[<p>I came across this <a href="http://chillijam.co.uk/2006/05/04/determine-if-an-assembly-is-a-debug-or-release-build/">nifty bit of code</a> the other day when looking for a way to do this and, just for fun, thought I&#8217;d convert it to <a href="http://ironpython.net/">IronPython</a>. So I did. And here it is:</p>
<pre>import System

def is_assembly_debug_build(filename):
	"""Returns true if filename appears to have been built in debug mode"""
	result = False
	dll = System.Reflection.Assembly.LoadFile(filename)
	customAttribs = dll.GetCustomAttributes(False)
	for att in customAttribs:
		if att.GetType() == System.Type.GetType("System.Diagnostics.DebuggableAttribute"):
			result = att.IsJITTrackingEnabled
	return result</pre>
<p>I saved this in a file called diagnostics.py. So using it (you&#8217;ll need to be in the same directory as diagnostics.py or have added diagnostics.py to your path &#8211; more info can be found here: <a href="http://docs.python.org/tutorial/modules.html#the-module-search-path">http://docs.python.org/tutorial/modules.html#the-module-search-path</a>) is simply a matter of doing something like this:</p>
<pre>from diagnostics import is_assembly_debug_build
is_assembly_debug_build([absolute_path_to_your_dll])</pre>
<p>If you&#8217;re interested you can grab a copy of diagnostics.py from <a href="http://gist.github.com/206177">http://gist.github.com/206177</a></p>
<p>Have fun <img src='http://www.strongasanox.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.strongasanox.co.uk/2010/01/08/how-to-check-if-an-assembly-was-compiled-in-debug-or-release-mode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lorem Ipsum Bookmarklet</title>
		<link>http://www.strongasanox.co.uk/2009/10/16/lorem-ipsum-bookmarklet/</link>
		<comments>http://www.strongasanox.co.uk/2009/10/16/lorem-ipsum-bookmarklet/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 19:57:18 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[devtools]]></category>
		<category><![CDATA[bookmarklet]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.strongasanox.co.uk/?p=225</guid>
		<description><![CDATA[I often use a couple of paragraphs of Lipsum when testing forms containing &#60;textarea&#62; tags and have had this bookmarklet I cobbled together sitting on my Bookmarks Toolbar for a while now. Anyway, I thought it might be fun to hook it up to a HTML 5 form to let you customise how many paragraphs [...]]]></description>
			<content:encoded><![CDATA[<p>I often use a couple of paragraphs of Lipsum when testing forms containing <code>&lt;textarea&gt;</code> tags and have had this bookmarklet I cobbled together sitting on my Bookmarks Toolbar for a while now.</p>
<p>Anyway, I thought it might be fun to hook it up to a HTML 5 form to let you customise how many paragraphs of Lipsum you want each time you click it. So that&#8217;s what I went and did:</p>
<p><a href="http://www.strongasanox.co.uk/lorem-ipsum-bookmarklet-generator/">Lorem Ipsum Bookmarklet Generator</a></p>
<p>Hopefully it&#8217;ll save you a few mouse clicks next time you&#8217;re testing some forms.</p>
<p>(Please note that the form used in the generator uses the <code>&lt;input type="range" /&gt;</code> HTML 5 tag which currently works best in the <a href="http://www.opera.com/browser/">latest version of Opera</a>. <abbr title="Your mileage may vary"> YMMV</abbr> when using other browsers).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.strongasanox.co.uk/2009/10/16/lorem-ipsum-bookmarklet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>E Text Editor and the ruby: no such file to load rubygems error</title>
		<link>http://www.strongasanox.co.uk/2009/07/06/e-text-editor-and-the-ruby-no-such-file-to-load-rubygems-error/</link>
		<comments>http://www.strongasanox.co.uk/2009/07/06/e-text-editor-and-the-ruby-no-such-file-to-load-rubygems-error/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 14:15:54 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[devtools]]></category>
		<category><![CDATA[cygwin]]></category>
		<category><![CDATA[e text editor]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.strongasanox.co.uk/?p=101</guid>
		<description><![CDATA[So, you are using the e text editor and try to run a bundle only to be confronted with the following: ruby: no such file to load &#8212; ubygems (LoadError) ruby: no such file to load &#8212; ubygems (LoadError) After doing some digging it turns out the cause is the RUBYOPT=-rubygems environment variable that is [...]]]></description>
			<content:encoded><![CDATA[<p>So, you are using the <a href="http://www.e-texteditor.com/">e text editor</a> and try to run a bundle only to be confronted with the following:</p>
<blockquote><p>ruby: no such file to load &#8212; ubygems (LoadError) ruby: no such file to load &#8212; ubygems (LoadError)</p></blockquote>
<p>After doing some <a href="http://www.google.co.uk/search?q=ruby%3A+no+such+file+to+load+--+ubygems+%28LoadError%29+ruby%3A+no+such+file+to+load+--+ubygems+%28LoadError%29+&amp;ie=utf-8&amp;oe=utf-8&amp;aq=t&amp;rls=org.mozilla:en-US:official&amp;client=firefox-a">digging</a> it turns out the cause is the <strong>RUBYOPT=-rubygems</strong> environment variable that is set by the <a href="http://rubyinstaller.rubyforge.org/wiki/wiki.pl?RubyInstaller">Windows one-click Ruby installer</a>. Now, if you have not got rubygems installed you might be able to get away with simply <a href="http://www.xerxesb.com/2009/e-text-editor-ruby-no-such-file-to-load-ubygems-loaderror/">unsetting the RUBYOPT environment variable</a> (although YMMV).</p>
<p>However, as e text editor makes use of Ruby via <a href="http://www.cygwin.com/">Cygwin</a>, another solution is to <a href="http://www.e-texteditor.com/forum/viewtopic.php?t=1091">modify your <strong>.bashrc</strong> file</a>:</p>
<blockquote>
<pre>Try this:</pre>
<pre>Go to the cygwin bash prompt.  If you don't know how to get there, use Start -&gt; Run -&gt; c:\cygwin\cygwin.bat.</pre>
<pre>Type:
echo unset RUBYOPT &gt;&gt; .bashrc</pre>
<pre>Type:
. .bashrc</pre>
<pre>Type:
irb</pre>
<pre>If you see:
irb(main):001:0&gt;</pre>
<pre>You should be good to go.</pre>
</blockquote>
<p>But what worked for me &#8211; and I don&#8217;t know whether this has anything to do with me having Ruby installed under Windows and under Cygwin &#8211; was making the same changes to .bashrc outlined above to my <strong>.profile</strong> script (so simply replace <em>.bashrc</em> with <em>.profile</em> in the quoted text above).</p>
<p>Hopefully at least one of these methods should work for you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.strongasanox.co.uk/2009/07/06/e-text-editor-and-the-ruby-no-such-file-to-load-rubygems-error/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
