<?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>Flabby Rabbit</title>
	<atom:link href="http://blog.flabbyrabbit.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flabbyrabbit.com</link>
	<description>The offical home of The Rabbit</description>
	<lastBuildDate>Fri, 20 Apr 2012 10:53:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Firebug Lite in IE</title>
		<link>http://blog.flabbyrabbit.com/2012/04/20/firebug-lite-in-ie/</link>
		<comments>http://blog.flabbyrabbit.com/2012/04/20/firebug-lite-in-ie/#comments</comments>
		<pubDate>Fri, 20 Apr 2012 10:52:43 +0000</pubDate>
		<dc:creator>flabbyrabbit</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[firebug]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://blog.flabbyrabbit.com/?p=336</guid>
		<description><![CDATA[Anyone who has tried to make their projects work on ALL browsers (including IE6 and 7) will know the headache that it can become. With no real developer tools available it can be incredibly difficult to trace and debug problems. When you start using Firebug in Firefox or Inspect Element in Chrome you quickly forgot [...]]]></description>
			<content:encoded><![CDATA[<p>Anyone who has tried to make their projects work on ALL browsers (including IE6 and 7) will know the headache that it can become. With no real developer tools available it can be incredibly difficult to trace and debug problems. When you start using Firebug in Firefox or Inspect Element in Chrome you quickly forgot how you ever survived before.</p>
<p>Here is a quick snippet that will add some firebug functionality to IE, just add this code to the page:</p>
<div class="codecolorer-container javascript dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #339933;">&lt;!--</span><span style="color: #009900;">&#91;</span><span style="color: #000066; font-weight: bold;">if</span> IE<span style="color: #009900;">&#93;</span><span style="color: #339933;">&gt;</span><br />
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span> src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;https://getfirebug.com/firebug-lite.js&quot;</span><span style="color: #339933;">&gt;</span><br />
<span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; overrideConsole<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; startInNewWindow<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; startOpened<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; enableTrace<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span><br />
<span style="color: #339933;">&lt;!</span><span style="color: #009900;">&#91;</span>endif<span style="color: #009900;">&#93;</span><span style="color: #339933;">--&gt;</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.flabbyrabbit.com/2012/04/20/firebug-lite-in-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>External MySQL database with Node.js</title>
		<link>http://blog.flabbyrabbit.com/2012/02/21/external-mysql-database-with-node-js/</link>
		<comments>http://blog.flabbyrabbit.com/2012/02/21/external-mysql-database-with-node-js/#comments</comments>
		<pubDate>Tue, 21 Feb 2012 20:28:39 +0000</pubDate>
		<dc:creator>flabbyrabbit</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[node]]></category>
		<category><![CDATA[node.js]]></category>

		<guid isPermaLink="false">http://blog.flabbyrabbit.com/?p=303</guid>
		<description><![CDATA[Getting node to connect to a local database is a piece of cake, but when trying to connect externally I found very little on the internet &#8230; and ended up just guessing until it worked. First you need to get nodes mysql plugin installed: npm install mysql &#8220;The mysql module is entirely written in Node.js, [...]]]></description>
			<content:encoded><![CDATA[<p>Getting node to connect to a local database is a piece of cake, but when trying to connect externally I found very little on the internet &#8230; and ended up just guessing until it worked.<br/><br />
First you need to get nodes mysql plugin installed:</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">npm install mysql</div></div>
<p>&#8220;The mysql module is entirely written in Node.js, and implements an async MySQL client.&#8221; &#8211; <a href="http://www.hacksparrow.com/using-mysql-with-node-js.html">nice introduction</a> and the projects <a href="https://github.com/felixge/node-mysql" title="github">github</a>. Here is my implementation, be warned it is horrible. Use the previous link to see how this should have been done:</p>
<div class="codecolorer-container javascript dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #003366; font-weight: bold;">var</span> _mysql <span style="color: #339933;">=</span> require<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'mysql'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #003366; font-weight: bold;">var</span> MYSQL_HOST <span style="color: #339933;">=</span> <span style="color: #3366CC;">'127.0.0.1'</span><span style="color: #339933;">;</span><br />
<span style="color: #003366; font-weight: bold;">var</span> MYSQL_PORT <span style="color: #339933;">=</span> <span style="color: #3366CC;">'3306'</span><span style="color: #339933;">;</span><br />
<span style="color: #003366; font-weight: bold;">var</span> MYSQL_USER <span style="color: #339933;">=</span> <span style="color: #3366CC;">'user'</span><span style="color: #339933;">;</span><br />
<span style="color: #003366; font-weight: bold;">var</span> MYSQL_PASS <span style="color: #339933;">=</span> <span style="color: #3366CC;">'pass'</span><span style="color: #339933;">;</span><br />
<span style="color: #003366; font-weight: bold;">var</span> DATABASE <span style="color: #339933;">=</span> <span style="color: #3366CC;">'db_name'</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #003366; font-weight: bold;">var</span> mysql <span style="color: #339933;">=</span> _mysql.<span style="color: #660066;">createClient</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; user<span style="color: #339933;">:</span> MYSQL_USER<span style="color: #339933;">,</span><br />
&nbsp; &nbsp; password<span style="color: #339933;">:</span> MYSQL_PASS<span style="color: #339933;">,</span><br />
&nbsp; &nbsp; host<span style="color: #339933;">:</span> MYSQL_HOST<span style="color: #339933;">,</span><br />
&nbsp; &nbsp; port<span style="color: #339933;">:</span> MYSQL_PORT<span style="color: #339933;">,</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
mysql.<span style="color: #660066;">query</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'use '</span> <span style="color: #339933;">+</span> DATABASE<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
mysql.<span style="color: #660066;">query</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'SELECT value FROM settings WHERE setting = &quot;chan&quot;'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span> selectCb<span style="color: #009900;">&#40;</span>error<span style="color: #339933;">,</span> results<span style="color: #339933;">,</span> fields<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>error<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; console.<span style="color: #660066;">log</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Error getting settings: '</span> <span style="color: #339933;">+</span> error.<span style="color: #660066;">message</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">return</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #009900;">&#125;</span><br />
<br />
&nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>results.<span style="color: #660066;">length</span> <span style="color: #339933;">&gt;</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; results.<span style="color: #660066;">forEach</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>row<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; console.<span style="color: #660066;">log</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Connecting to: '</span> <span style="color: #339933;">+</span> row<span style="color: #009900;">&#91;</span><span style="color: #3366CC;">'value'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.flabbyrabbit.com/2012/02/21/external-mysql-database-with-node-js/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drag and drop targets with jQuery</title>
		<link>http://blog.flabbyrabbit.com/2012/02/07/drag-and-drop-targets-with-jquery/</link>
		<comments>http://blog.flabbyrabbit.com/2012/02/07/drag-and-drop-targets-with-jquery/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 16:57:54 +0000</pubDate>
		<dc:creator>flabbyrabbit</dc:creator>
				<category><![CDATA[Industrial Year]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[drag]]></category>
		<category><![CDATA[drop]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[jquery ui]]></category>

		<guid isPermaLink="false">http://blog.flabbyrabbit.com/?p=305</guid>
		<description><![CDATA[Final result: http://www.bbc.co.uk/news/health-17235058]]></description>
			<content:encoded><![CDATA[<p><iframe style="width: 100%; height: 300px" src="http://jsfiddle.net/flabbyrabbit/DLSrm/embedded/result,js,html" allowfullscreen="allowfullscreen" frameborder="0"></iframe><br/><br />
Final result:<br />
<a href='http://www.bbc.co.uk/news/health-17235058'>http://www.bbc.co.uk/news/health-17235058</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.flabbyrabbit.com/2012/02/07/drag-and-drop-targets-with-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multi line strings in Javascript</title>
		<link>http://blog.flabbyrabbit.com/2012/02/03/multi-line-strings-in-javascript/</link>
		<comments>http://blog.flabbyrabbit.com/2012/02/03/multi-line-strings-in-javascript/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 16:13:09 +0000</pubDate>
		<dc:creator>flabbyrabbit</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[escape]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[multi-line]]></category>

		<guid isPermaLink="false">http://blog.flabbyrabbit.com/?p=294</guid>
		<description><![CDATA[String concatenation is the most common method of formatting long strings in Javascript, but it isn&#8217;t the only or best way. For better performance try using backslashes to split up your lines. Backslashes var text = &#34;I am a long string that I would\ like to split up on to multiple lines to keep my [...]]]></description>
			<content:encoded><![CDATA[<p>String concatenation is the most common method of formatting long strings in Javascript, but it isn&#8217;t the only or best way. For better performance try using backslashes to split up your lines.<br />
<br/></p>
<h2>Backslashes</h2>
<div class="codecolorer-container javascript dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #003366; font-weight: bold;">var</span> text <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;I am a long string that I would<span style="color: #000099; font-weight: bold;">\</span><br />
like to split up on to multiple lines to keep my code<span style="color: #000099; font-weight: bold;">\</span><br />
nice and neat, which (should be) every developers aim.&quot;</span><span style="color: #339933;">;</span></div></div>
<h2>String Concatenation</h2>
<div class="codecolorer-container javascript dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #003366; font-weight: bold;">var</span> text <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;I am a long string that I would like to split &quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;up on to multiple lines to keep my code nice and &quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;neat, which (should be) every developers aim.&quot;</span><span style="color: #339933;">;</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.flabbyrabbit.com/2012/02/03/multi-line-strings-in-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running a function after page execution</title>
		<link>http://blog.flabbyrabbit.com/2011/12/18/running-function-after-page-execution/</link>
		<comments>http://blog.flabbyrabbit.com/2011/12/18/running-function-after-page-execution/#comments</comments>
		<pubDate>Sun, 18 Dec 2011 16:09:02 +0000</pubDate>
		<dc:creator>flabbyrabbit</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.flabbyrabbit.com/?p=217</guid>
		<description><![CDATA[&#8220;Registers a callback to be executed after script execution finishes or exit() is called.&#8221; &#8211; php.net Here is a simple class to show the execution time of a page: &#60;?php &#160; &#160; class logger { &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; private $exec_start, $exec_time; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; function [...]]]></description>
			<content:encoded><![CDATA[<p>&#8220;Registers a callback to be executed after script execution finishes or exit() is called.&#8221; &#8211; <a href="http://pl.php.net/manual/en/function.register-shutdown-function.php">php.net</a><br/><br />
Here is a simple class to show the execution time of a page:</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;?php<br />
&nbsp; &nbsp; class logger {<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; private $exec_start, $exec_time;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; function __construct() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;exec_start = microtime(true);<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; register_shutdown_function(array($this, 'basic_log'));<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; public function basic_log() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $exec_time = microtime(true) - $this-&gt;exec_start;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo $exec_time;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }<br />
?&gt;</div></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.flabbyrabbit.com/2011/12/18/running-function-after-page-execution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Irc</title>
		<link>http://blog.flabbyrabbit.com/2011/12/05/irc/</link>
		<comments>http://blog.flabbyrabbit.com/2011/12/05/irc/#comments</comments>
		<pubDate>Mon, 05 Dec 2011 20:29:24 +0000</pubDate>
		<dc:creator>flabbyrabbit</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.flabbyrabbit.com/?p=238</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><img style="display:block;margin-right:auto;margin-left:auto;" alt="image" src="http://blog.flabbyrabbit.com/wp-content/uploads/2011/12/wpid-IMAG0146.jpg" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.flabbyrabbit.com/2011/12/05/irc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick and easy way to avoid CSS hacks</title>
		<link>http://blog.flabbyrabbit.com/2011/11/20/quick-and-easy-way-to-avoid-css-hacks/</link>
		<comments>http://blog.flabbyrabbit.com/2011/11/20/quick-and-easy-way-to-avoid-css-hacks/#comments</comments>
		<pubDate>Sun, 20 Nov 2011 12:09:45 +0000</pubDate>
		<dc:creator>flabbyrabbit</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Industrial Year]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[css hacks]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[no-js]]></category>

		<guid isPermaLink="false">http://blog.flabbyrabbit.com/?p=206</guid>
		<description><![CDATA[Probably the most incredibly useful snippet I have learnt recently. It&#8217;s beautifully simple and unbelievably essential. Creating websites for such a wide variety of platforms is hard enough but then when you throw IE6 and no script into the mix things can become very messy. Replace the tag with the following code and most of [...]]]></description>
			<content:encoded><![CDATA[<p>Probably the most incredibly useful snippet I have learnt recently. It&#8217;s beautifully simple and unbelievably essential. Creating websites for such a wide variety of platforms is hard enough but then when you throw IE6 and no script into the mix things can become very messy.</p>
<p>Replace the <body> tag with the following code and most of the hard work will be taken care of:</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;!--[if lt IE 7]&gt;&lt;body class=&quot;no-js ie6&quot;&gt;&lt;![endif]--&gt;<br />
&lt;!--[if IE 7]&gt;&lt;body class=&quot;no-js ie7&quot;&gt;&lt;![endif]--&gt;<br />
&lt;!--[if IE 8]&gt;&lt;body class=&quot;no-js ie8&quot;&gt;&lt;![endif]--&gt;<br />
&lt;!--[if gt IE 8]&gt;&lt;!--&gt;&lt;!--&lt;![endif]--&gt;<br />
&lt;script type=&quot;text/javascript&quot;&gt;document.body.className = document.body.className.replace(&quot;no-js&quot;,&quot;js&quot;);&lt;/script&gt;</div></div>
<p>Now you can easily target and correct any of the unique &#8220;features&#8221; of IE and also gracefully degrade when no javascript is detected.</p>
<p>A much better version of this post: <a href="http://nicolasgallagher.com/better-conditional-classnames-for-hack-free-css/">Better conditional classnames for hack-free CSS</a></p>
<p><b>Final note:</b> It might be a better idea to have no-js on the html tag instead of the body. The main reason for this is that if you wanted to test for no-js and ie6 you wouldn&#8217;t be able to with the above method. This is because IE does not support chained class selectors so you can&#8217;t do:</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">.no-js.ie6 div</div></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.flabbyrabbit.com/2011/11/20/quick-and-easy-way-to-avoid-css-hacks/feed/</wfw:commentRss>
		<slash:comments>613</slash:comments>
		</item>
		<item>
		<title>Changing inc style permanently in Notepad++</title>
		<link>http://blog.flabbyrabbit.com/2011/11/18/changing-inc-style-permanently-in-notepad/</link>
		<comments>http://blog.flabbyrabbit.com/2011/11/18/changing-inc-style-permanently-in-notepad/#comments</comments>
		<pubDate>Fri, 18 Nov 2011 19:12:36 +0000</pubDate>
		<dc:creator>flabbyrabbit</dc:creator>
				<category><![CDATA[Industrial Year]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.flabbyrabbit.com/?p=230</guid>
		<description><![CDATA[Notepad++ by default interprets .inc files as being pascal source files. This by no means incorrect, it is just not very helpful when the .inc files I mainly work with are related to SSI and therefore are mostly HTML. Text file containing declarations, headers, functions, or other data referenced by a program&#8217;s source code; can [...]]]></description>
			<content:encoded><![CDATA[<p>Notepad++ by default interprets .inc files as being pascal source files. This by no means incorrect, it is just not very helpful when the .inc files I mainly work with are related to SSI and therefore are mostly HTML.</p>
<blockquote><p>Text file containing declarations, headers, functions, or other data referenced by a program&#8217;s source code; can be used with C/C++, Pascal, Java, PHP (Web pages), and other languages.</p></blockquote>
<p>The file you need to be interested in is located at %APPDATA%\Notepad++\langs.xml (e.g. C:\Documents and Settings\&lt;username&gt;\Application Data\Notepad++). In this file you need to remove inc from the ext of the Pascal node and add it to that of the html node.</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;Language name=&quot;html&quot; ext=&quot;html htm shtml shtm xhtml inc&quot; commentLine=&quot;&quot; commentStart=&quot;&amp;lt;!--&quot; commentEnd=&quot;--&amp;gt;&quot;&gt;;</div></div>
<p>Save this file, close Notepad++ and when you open a .inc file it should now be highlighted as if it was a HTML file.</p>
<p>Side note:<br />
The langs.model.xml file in C:\Programs\Notepad++ is the factory default settings, and changing the declaration here will have no effect.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.flabbyrabbit.com/2011/11/18/changing-inc-style-permanently-in-notepad/feed/</wfw:commentRss>
		<slash:comments>96</slash:comments>
		</item>
		<item>
		<title>Deleting entire row based on column value</title>
		<link>http://blog.flabbyrabbit.com/2011/10/19/deleting-entire-row-based-on-column-value/</link>
		<comments>http://blog.flabbyrabbit.com/2011/10/19/deleting-entire-row-based-on-column-value/#comments</comments>
		<pubDate>Wed, 19 Oct 2011 16:50:59 +0000</pubDate>
		<dc:creator>flabbyrabbit</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Industrial Year]]></category>
		<category><![CDATA[excel]]></category>
		<category><![CDATA[macro]]></category>
		<category><![CDATA[VB]]></category>

		<guid isPermaLink="false">http://blog.flabbyrabbit.com/?p=208</guid>
		<description><![CDATA[I needed to remove all rows in an excel sheet where column A was blank. With 4000 rows to sort through I thought I would attempt to write my first macro to do the job for me. I have no prior knowledge of VB so didn&#8217;t expect to get very far. Boom, done &#8211; all [...]]]></description>
			<content:encoded><![CDATA[<p>I needed to remove all rows in an excel sheet where column A was blank. With 4000 rows to sort through I thought I would attempt to write my first macro to do the job for me. I have no prior knowledge of VB so didn&#8217;t expect to get very far. Boom, done &#8211; all I can say is VB is horrible.<br />
<br/></p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Sub deleteRows()<br />
&nbsp; &nbsp; Dim n As Long, rowCount As Long<br />
&nbsp; &nbsp; rowCount = Application.WorksheetFunction.CountA(Range(&quot;B:B&quot;))<br />
&nbsp; &nbsp; For n = 1 To rowCount Step 1<br />
&nbsp; &nbsp; &nbsp; &nbsp; If Range(&quot;A&quot; &amp; n).Value = &quot;&quot; Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Rows(n).Delete<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If Range(&quot;B&quot; &amp; n).Value &lt;&gt; &quot;&quot; Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; n = n - 1<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; Next<br />
End Sub</div></div>
<p>This solution works perfectly but I have just had an idea that might work. If you used a reverse loop from rowCount to 1 then there would be no need for the if statement; as the index of the rows to be processed will not be changed. I may update this post when/if I get a chance to have another look.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.flabbyrabbit.com/2011/10/19/deleting-entire-row-based-on-column-value/feed/</wfw:commentRss>
		<slash:comments>642</slash:comments>
		</item>
		<item>
		<title>AOP/Mozilla Hack Day</title>
		<link>http://blog.flabbyrabbit.com/2011/10/15/aopmozilla-hack-day/</link>
		<comments>http://blog.flabbyrabbit.com/2011/10/15/aopmozilla-hack-day/#comments</comments>
		<pubDate>Sat, 15 Oct 2011 15:12:59 +0000</pubDate>
		<dc:creator>flabbyrabbit</dc:creator>
				<category><![CDATA[Industrial Year]]></category>

		<guid isPermaLink="false">http://blog.flabbyrabbit.com/?p=200</guid>
		<description><![CDATA[HTML5 &#8211; News publishing stuff Thursday 13 Oct: Soho Met up with people from a wide range of media houses. News Int, TIme Out, Nuts etc.. formed teams and got started making Will I Make It (on time). Friday 14 Oct: Westminster/London Eye]]></description>
			<content:encoded><![CDATA[<p>HTML5 &#8211; News publishing stuff</p>
<p>Thursday 13 Oct:<br />
Soho<br />
Met up with people from a wide range of media houses. News Int, TIme Out, Nuts etc.. formed teams and got started making Will I Make It (on time).</p>
<p>Friday 14 Oct:<br />
Westminster/London Eye<br />
<img src="https://fbcdn-sphotos-a.akamaihd.net/hphotos-ak-ash4/303893_10150863334965274_861615273_21199249_45439388_n.jpg" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.flabbyrabbit.com/2011/10/15/aopmozilla-hack-day/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

