<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">

<channel>
	<title>Mike Hodgson</title>
	
	<link>https://mikehodgson.com</link>
	<description>My thoughts on Coldfusion, JQuery, HTML 5, CSS3 &amp; the mobile web</description>
	<lastBuildDate>Sun, 29 Apr 2012 11:49:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/MikeHodgson" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="mikehodgson" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><itunes:explicit>no</itunes:explicit><itunes:subtitle>My thoughts on Coldfusion, JQuery, HTML 5, CSS3 &amp; the mobile web</itunes:subtitle><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">MikeHodgson</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Coldfusion OrmExecuteQuery “elements” Bug Work-Around</title>
		<link>https://mikehodgson.com/2012/03/16/coldfusion-ormexecutequery-elements-bug-work-around/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=coldfusion-ormexecutequery-elements-bug-work-around</link>
		<comments>https://mikehodgson.com/2012/03/16/coldfusion-ormexecutequery-elements-bug-work-around/#comments</comments>
		<pubDate>Fri, 16 Mar 2012 19:00:48 +0000</pubDate>
		<dc:creator>Mike Hodgson</dc:creator>
				<category><![CDATA[Coldfusion]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">https://mikehodgson.com/?p=228</guid>
		<description><![CDATA[TweetIf you&#8217;ve been working with Coldfusion ORM, you&#8217;ve probably run into this annoying bug when working with collections, or any of the relationship types. Whether you&#8217;re using positional or named parameters, code like the example below will result in a Java NullPointerException. See previous blogs by Dan Watt and David Mineer about this. category = [...]]]></description>
			<content:encoded><![CDATA[<div id="tweetbutton228" class="tw_button" style="float:right;margin-left:10px;"><a href="http://twitter.com/share?url=https%3A%2F%2Fmikehodgson.com%2F2012%2F03%2F16%2Fcoldfusion-ormexecutequery-elements-bug-work-around%2F&amp;via=mhodgson&amp;text=Coldfusion%20OrmExecuteQuery%20%26%238220%3Belements%26%238221%3B%20Bug%20Work-Around&amp;related=mhodgson&amp;lang=en&amp;count=vertical&amp;counturl=https%3A%2F%2Fmikehodgson.com%2F2012%2F03%2F16%2Fcoldfusion-ormexecutequery-elements-bug-work-around%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('https://mikehodgson.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div><p>If you&#8217;ve been working with Coldfusion ORM, you&#8217;ve probably run into this annoying bug when working with collections, or any of the relationship types. Whether you&#8217;re using positional or named parameters, code like the example below will result in a Java NullPointerException. See previous blogs by <a href="http://danwatt.org/2011/02/coldfusion-hql-and-named-parameters-with-collections/" title="Dan Watt" target="_blank">Dan Watt</a> and <a href="http://www.davemineer.com/index.cfm/2011/7/21/Coldfusion-ORM-join-across-manytomany" title="David Mineer" target="_blank">David Mineer</a> about this.</p>

<p><pre class="prettyprint ">
category = entityLoadByPK(&quot;Category&quot;, 1);
categoryNews = ormExecuteQuery(&quot;FROM News n WHERE ? IN elements(n.categories)&quot;, [category]);
</pre></p>

<p>My solution was to change the code to something like this instead:</p>

<p><pre class="prettyprint ">
category = entityLoadByPK(&quot;Category&quot;, 1);
categoryNews = ormExecuteQuery(&quot;SELECT n FROM News n JOIN n.categories c WHERE c.id = ?&quot;, [category.getId()]);
</pre></p>

<p>Hopefully this will save someone some time! If you have figured out how to get the elements() HQL function to work in ormExecuteQuery(), please post in the comments!</p>
]]></content:encoded>
			<wfw:commentRss>https://mikehodgson.com/2012/03/16/coldfusion-ormexecutequery-elements-bug-work-around/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Node.js Build System for Sublime Text 2</title>
		<link>https://mikehodgson.com/2012/02/24/node-js-build-system-for-sublime-text-2/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=node-js-build-system-for-sublime-text-2</link>
		<comments>https://mikehodgson.com/2012/02/24/node-js-build-system-for-sublime-text-2/#comments</comments>
		<pubDate>Sat, 25 Feb 2012 03:34:36 +0000</pubDate>
		<dc:creator>Mike Hodgson</dc:creator>
				<category><![CDATA[Node.js]]></category>
		<category><![CDATA[Sublime Text 2]]></category>

		<guid isPermaLink="false">http://mikehodgson.com/?p=211</guid>
		<description><![CDATA[TweetHere&#8217;s the build system settings I use to run my Node.js projects from Sublime Text 2: { &#34;cmd&#34;: [&#34;node&#34;, &#34;$file_name&#34;], &#34;selector&#34;: &#34;source.js&#34;, &#34;working_dir&#34; : &#34;$file_path&#34; } To use this in ST2, go to &#8220;Tools&#8221; -> &#8220;Build System&#8221; -> &#8220;New Build System&#8230;&#8221; and paste the above code in to the new window. Save the file as [...]]]></description>
			<content:encoded><![CDATA[<div id="tweetbutton211" class="tw_button" style="float:right;margin-left:10px;"><a href="https://twitter.com/share?url=https%3A%2F%2Fmikehodgson.com%2F2012%2F02%2F24%2Fnode-js-build-system-for-sublime-text-2%2F&amp;via=mhodgson&amp;text=Node.js%20Build%20System%20for%20Sublime%20Text%202&amp;related=mhodgson&amp;lang=en&amp;count=vertical&amp;counturl=https%3A%2F%2Fmikehodgson.com%2F2012%2F02%2F24%2Fnode-js-build-system-for-sublime-text-2%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('https://mikehodgson.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div><p>Here&#8217;s the build system settings I use to run my Node.js projects from Sublime Text 2:</p>

<p><pre class="prettyprint ">
{
    &quot;cmd&quot;: [&quot;node&quot;, &quot;$file_name&quot;],
    &quot;selector&quot;: &quot;source.js&quot;,
    &quot;working_dir&quot; : &quot;$file_path&quot;
}
</pre></p>

<p>To use this in ST2, go to &#8220;Tools&#8221; -> &#8220;Build System&#8221; -> &#8220;New Build System&#8230;&#8221; and paste the above code in to the new window. Save the file as Nodejs.sublime-build. Now hitting CTRL-B when editing a javascript file will automatically launch the file in Node!</p>

<p>OR you can just download the file from the Gist I created <a href="https://gist.github.com/1924144">here</a></p>

<p><em>NOTE</em> Don&#8217;t forget to press CTRL-Break or go to &#8220;Tools&#8221; -> &#8220;Cancel Build&#8221; to kill the node process when you&#8217;re finished testing!</p>
]]></content:encoded>
			<wfw:commentRss>https://mikehodgson.com/2012/02/24/node-js-build-system-for-sublime-text-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How I Got Started With Coldfusion</title>
		<link>https://mikehodgson.com/2011/08/01/how-i-got-started-with-coldfusion/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-i-got-started-with-coldfusion</link>
		<comments>https://mikehodgson.com/2011/08/01/how-i-got-started-with-coldfusion/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 05:00:34 +0000</pubDate>
		<dc:creator>Mike Hodgson</dc:creator>
				<category><![CDATA[Coldfusion]]></category>

		<guid isPermaLink="false">http://mikehodgson.com/?p=178</guid>
		<description><![CDATA[TweetSteve Bryant has declared August 1st &#8220;How I Got Started in Coldfusion Day&#8220;, which I thought was an awesome idea, so here is my short little story! year Back in &#8217;06 I was working as a PHP developer in a (very) small online marketing company. We ran things like link exchanges, multi level marketing websites, [...]]]></description>
			<content:encoded><![CDATA[<div id="tweetbutton178" class="tw_button" style="float:right;margin-left:10px;"><a href="http://twitter.com/share?url=https%3A%2F%2Fmikehodgson.com%2F2011%2F08%2F01%2Fhow-i-got-started-with-coldfusion%2F&amp;via=mhodgson&amp;text=How%20I%20Got%20Started%20With%20Coldfusion&amp;related=mhodgson&amp;lang=en&amp;count=vertical&amp;counturl=https%3A%2F%2Fmikehodgson.com%2F2011%2F08%2F01%2Fhow-i-got-started-with-coldfusion%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('https://mikehodgson.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div><p><a href="http://www.bryantwebconsulting.com/">Steve Bryant</a> has declared August 1st &#8220;<a href="http://www.bryantwebconsulting.com/blog/index.cfm/2011/7/20/August-1-2011-is-How-I-Started-ColdFusion-Day">How I Got Started in Coldfusion Day</a>&#8220;, which I thought was an awesome idea, so here is my short little story!
year
Back in &#8217;06 I was working as a PHP developer in a (very) small online marketing company. We ran things like link exchanges, multi level marketing websites, etc. At the time I was actually trying to move away from PHP and get into the new hotness which was Ruby on Rails.</p>

<p>That May my employer, who was an awesome guy, died suddenly from a heart attack. In one morning I lost a friend and also found myself unemployed. I took a few weeks to process things and then sent my resume to every web and software development business in the area. As luck would have it, the current developer at Snap Design was leaving in a month to work as a missionary in Africa. I had read through the company&#8217;s website, and already knew they exclusively worked with Macromedia Cold Fusion. I&#8217;d never touched Coldfusion, I&#8217;d heard it was a &#8220;dead&#8221; language. I also knew I didn&#8217;t want to end up working in a call centre.</p>

<p>I spent my evenings reading and trying the code in the Coldfusion (MX 7 at the time) documentation and the CFWACK books. I practiced by translating code I had written in PHP to CF. While disappointed at the lack of proper scripting support (remedied in Coldfusion 9), I was impressed at how easy it was to learn, and how little code I had to write to accomplish the same things I would do in PHP. I also found a very active and passionate developer community, not something you think you would find with a &#8220;dead&#8221; language!</p>

<p>To cut a long story short, I managed to secure the job, and 5 years on I still love what I do. Proof that good things can come out of an unfortunate situation!</p>
]]></content:encoded>
			<wfw:commentRss>https://mikehodgson.com/2011/08/01/how-i-got-started-with-coldfusion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Word Limit Plugin</title>
		<link>https://mikehodgson.com/2010/10/19/jquery-word-limit-plugin/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=jquery-word-limit-plugin</link>
		<comments>https://mikehodgson.com/2010/10/19/jquery-word-limit-plugin/#comments</comments>
		<pubDate>Tue, 19 Oct 2010 17:29:02 +0000</pubDate>
		<dc:creator>Mike Hodgson</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://mikehodgson.com/?p=133</guid>
		<description><![CDATA[TweetThis is a pretty simple jQuery plugin that will limit the number of words a website user can enter into a form textfield or input. It should work with any version of jQuery, though it&#8217;s only been tested with 1.3 and 1.4. An example is included in the package. Demo Download Plugin]]></description>
			<content:encoded><![CDATA[<div id="tweetbutton133" class="tw_button" style="float:right;margin-left:10px;"><a href="http://twitter.com/share?url=https%3A%2F%2Fmikehodgson.com%2F2010%2F10%2F19%2Fjquery-word-limit-plugin%2F&amp;via=mhodgson&amp;text=jQuery%20Word%20Limit%20Plugin&amp;related=mhodgson&amp;lang=en&amp;count=vertical&amp;counturl=https%3A%2F%2Fmikehodgson.com%2F2010%2F10%2F19%2Fjquery-word-limit-plugin%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('https://mikehodgson.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div><p>This is a pretty simple jQuery plugin that will limit the number of words a website user can enter into a form textfield or input. It should work with any version of jQuery, though it&#8217;s only been tested with 1.3 and 1.4. An example is included in the package.
<span id="more-133"></span></p>

<p><a href="https://mikehodgson.com/demo/wordlimit/example.html">Demo</a></p>

<p><a href='http://mikehodgson.com/wp-content/uploads/2010/10/wordlimit.zip'>Download Plugin</a></p>
]]></content:encoded>
			<wfw:commentRss>https://mikehodgson.com/2010/10/19/jquery-word-limit-plugin/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<enclosure url="http://mikehodgson.com/wp-content/uploads/2010/10/wordlimit.zip" length="27393" type="application/x-zip-compressed" /><media:content url="http://mikehodgson.com/wp-content/uploads/2010/10/wordlimit.zip" fileSize="27393" type="application/x-zip-compressed" /><itunes:explicit>no</itunes:explicit><itunes:subtitle>TweetThis is a pretty simple jQuery plugin that will limit the number of words a website user can enter into a form textfield or input. It should work with any version of jQuery, though it&amp;#8217;s only been tested with 1.3 and 1.4. An example is included </itunes:subtitle><itunes:summary>TweetThis is a pretty simple jQuery plugin that will limit the number of words a website user can enter into a form textfield or input. It should work with any version of jQuery, though it&amp;#8217;s only been tested with 1.3 and 1.4. An example is included in the package. Demo Download Plugin</itunes:summary><itunes:keywords>jQuery</itunes:keywords></item>
		<item>
		<title>Experimenting with JRuby in Coldfusion</title>
		<link>https://mikehodgson.com/2010/04/13/experimenting-with-jruby-in-coldfusion/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=experimenting-with-jruby-in-coldfusion</link>
		<comments>https://mikehodgson.com/2010/04/13/experimenting-with-jruby-in-coldfusion/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 02:03:12 +0000</pubDate>
		<dc:creator>Mike Hodgson</dc:creator>
				<category><![CDATA[Coldfusion]]></category>

		<guid isPermaLink="false">http://cfmonkey.ca/?p=71</guid>
		<description><![CDATA[TweetThis is just a quick post, will post a longer one later when I&#8217;ve had more time to play. Before this will work, you&#8217;ll need to download and install JRuby, and copy jruby.jar from the installation directory to your Coldfusion classpath. For me those directories were c:\program files (x86)\jruby-1.4.0\lib and c:\Coldfusion9\lib respectively. Once that&#8217;s done, [...]]]></description>
			<content:encoded><![CDATA[<div id="tweetbutton71" class="tw_button" style="float:right;margin-left:10px;"><a href="http://twitter.com/share?url=https%3A%2F%2Fmikehodgson.com%2F2010%2F04%2F13%2Fexperimenting-with-jruby-in-coldfusion%2F&amp;via=mhodgson&amp;text=Experimenting%20with%20JRuby%20in%20Coldfusion&amp;related=mhodgson&amp;lang=en&amp;count=vertical&amp;counturl=https%3A%2F%2Fmikehodgson.com%2F2010%2F04%2F13%2Fexperimenting-with-jruby-in-coldfusion%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('https://mikehodgson.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div><p>This is just a quick post, will post a longer one later when I&#8217;ve had more time to play.</p>

<p>Before this will work, you&#8217;ll need to download and install JRuby, and copy jruby.jar from the installation directory to your Coldfusion classpath. For me those directories were c:\program files (x86)\jruby-1.4.0\lib and c:\Coldfusion9\lib respectively.</p>

<p>Once that&#8217;s done, on to the fun!</p>

<p><span id="more-71"></span></p>

<p>First, I created a really simple custom tag called <em>ruby.cfm</em> as follows:</p>

<p><pre class="prettify">
<cfscript>
    ruby = createObject("java", "org.jruby.embed.ScriptingContainer");
    if (thisTag.ExecutionMode is "end") {
        thisTag.GeneratedContent = ruby.runScriptlet(toString(thisTag.GeneratedContent));
    }
</cfscript>
</pre></p>

<p>Then, I created my test page, <em>test_ruby.cfm</em>:</p>

<p><pre class="prettify">
<cfset name = "Bob" />
<cfoutput>
    <cf_ruby>
        def myproc(str)
            "Hello ##{str}!"
        end
        myproc("#name#")
    </cf_ruby>
</cfoutput>
</pre></p>

<p>When you load up the test page in your browser, you should see:</p>

<p>Hello Bob!</p>

<p>WARNING: Running this code may cause a rip in the space-time continuum.</p>
]]></content:encoded>
			<wfw:commentRss>https://mikehodgson.com/2010/04/13/experimenting-with-jruby-in-coldfusion/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Fix for Slow Windows 7 Install</title>
		<link>https://mikehodgson.com/2009/10/03/fix-for-slow-windows-7-install/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=fix-for-slow-windows-7-install</link>
		<comments>https://mikehodgson.com/2009/10/03/fix-for-slow-windows-7-install/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 13:57:15 +0000</pubDate>
		<dc:creator>Mike Hodgson</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://cfmonkey.ca/?p=43</guid>
		<description><![CDATA[Installed Windows 7 on my desktop this morning, and ran into a little issue. The installation was taking FOREVER, the install sat at "Setup is Starting..." for at least 10 minutes. A couple of quick tweaks later and I had it fixed. Posting here in case anyone else runs into similar issues.]]></description>
			<content:encoded><![CDATA[<div id="tweetbutton43" class="tw_button" style="float:right;margin-left:10px;"><a href="http://twitter.com/share?url=https%3A%2F%2Fmikehodgson.com%2F2009%2F10%2F03%2Ffix-for-slow-windows-7-install%2F&amp;via=mhodgson&amp;text=Fix%20for%20Slow%20Windows%207%20Install&amp;related=mhodgson&amp;lang=en&amp;count=vertical&amp;counturl=https%3A%2F%2Fmikehodgson.com%2F2009%2F10%2F03%2Ffix-for-slow-windows-7-install%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('https://mikehodgson.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div><p>Installed Windows 7 on my desktop this morning, and ran into a little issue. The installation was taking FOREVER, the install sat at &#8220;Setup is Starting&#8230;&#8221; for at least 10 minutes. A couple of quick tweaks later and I had it fixed. Posting here in case anyone else runs into similar issues.</p>

<ol>
<li>Make sure your SATA drives are plugged into the first available ports. SATA_0 on your motherboard should be your boot drive.</li>
<li>If you have an old-ass 3.5&#8243; floppy drive, like I do, try disabling it in the BIOS (or completely unplug it from the system).</li>
</ol>

<p>Following those two steps fixed the issue for me!</p>
]]></content:encoded>
			<wfw:commentRss>https://mikehodgson.com/2009/10/03/fix-for-slow-windows-7-install/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Friday Challenge Solution – Randomize a Picture</title>
		<link>https://mikehodgson.com/2009/08/07/friday-challenge-solution-randomize-a-picture/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=friday-challenge-solution-randomize-a-picture</link>
		<comments>https://mikehodgson.com/2009/08/07/friday-challenge-solution-randomize-a-picture/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 18:52:34 +0000</pubDate>
		<dc:creator>Mike Hodgson</dc:creator>
				<category><![CDATA[Coldfusion]]></category>

		<guid isPermaLink="false">http://cfmonkey.ca/?p=27</guid>
		<description><![CDATA[TweetRay Camden&#8217;s Friday Challenge for this week was to take a photo and jumble it into 100 random blocks. Like those puzzles from when you were a kid. My solution written in pure CFScript can be found here. Matthew Abbott expanded on my code and made the blocks draggable using jQuery here.]]></description>
			<content:encoded><![CDATA[<div id="tweetbutton27" class="tw_button" style="float:right;margin-left:10px;"><a href="http://twitter.com/share?url=https%3A%2F%2Fmikehodgson.com%2F2009%2F08%2F07%2Ffriday-challenge-solution-randomize-a-picture%2F&amp;via=mhodgson&amp;text=Friday%20Challenge%20Solution%20%26%238211%3B%20Randomize%20a%20Picture&amp;related=mhodgson&amp;lang=en&amp;count=vertical&amp;counturl=https%3A%2F%2Fmikehodgson.com%2F2009%2F08%2F07%2Ffriday-challenge-solution-randomize-a-picture%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('https://mikehodgson.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div><p>Ray Camden&#8217;s <a href="http://www.coldfusionjedi.com/index.cfm/2009/8/7/Friday-Challenge-Cut-and-Randomize-a-Picture">Friday Challenge for this week</a> was to take a photo and jumble it into 100 random blocks. Like those puzzles from when you were a kid. My solution written in pure CFScript can be found <a href="https://mikehodgson.com/examples/image_randomize">here</a>.</p>

<p>Matthew Abbott expanded on my code and made the blocks draggable using jQuery <a href="http://www.coldfusionjedi.com/demos/maimage/">here</a>. </p>
]]></content:encoded>
			<wfw:commentRss>https://mikehodgson.com/2009/08/07/friday-challenge-solution-randomize-a-picture/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CFHTTP in Pure CFScript</title>
		<link>https://mikehodgson.com/2009/07/28/cfhttp-in-pure-cfscript/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=cfhttp-in-pure-cfscript</link>
		<comments>https://mikehodgson.com/2009/07/28/cfhttp-in-pure-cfscript/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 16:11:15 +0000</pubDate>
		<dc:creator>Mike Hodgson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cfmonkey.ca/?p=7</guid>
		<description><![CDATA[TweetFigured this out while I was working on my Coldfusion Twitter API component. I haven&#8217;t been able to find any examples elsewhere, so I thought I would post it here for others. &#60;cfscript&#62; myHttp = new Http(url=&#34;http://www.google.com&#34;, method=&#34;get&#34;); myHttpResult = myHttp.send().getPrefix(); writeDump(myHttpResult); &#60;/cfscript&#62;]]></description>
			<content:encoded><![CDATA[<div id="tweetbutton7" class="tw_button" style="float:right;margin-left:10px;"><a href="http://twitter.com/share?url=https%3A%2F%2Fmikehodgson.com%2F2009%2F07%2F28%2Fcfhttp-in-pure-cfscript%2F&amp;via=mhodgson&amp;text=CFHTTP%20in%20Pure%20CFScript&amp;related=mhodgson&amp;lang=en&amp;count=vertical&amp;counturl=https%3A%2F%2Fmikehodgson.com%2F2009%2F07%2F28%2Fcfhttp-in-pure-cfscript%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('https://mikehodgson.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div><p>Figured this out while I was working on my <a href="http://twittercomponent.riaforge.org" target="_blank">Coldfusion Twitter API component.</a> I haven&#8217;t been able to find any examples elsewhere, so I thought I would post it here for others.
<span id="more-7"></span></p>

<p><pre class="prettyprint ">
&lt;cfscript&gt;
    myHttp = new Http(url=&quot;http://www.google.com&quot;, method=&quot;get&quot;);
    myHttpResult = myHttp.send().getPrefix();
    writeDump(myHttpResult);
&lt;/cfscript&gt;
</pre></p>
]]></content:encoded>
			<wfw:commentRss>https://mikehodgson.com/2009/07/28/cfhttp-in-pure-cfscript/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	<media:rating>nonadult</media:rating></channel>
</rss>

