<?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>FlexOOP &#187; Eclipse</title>
	<atom:link href="http://flexoop.com/category/eclipse/feed/" rel="self" type="application/rss+xml" />
	<link>http://flexoop.com</link>
	<description>Flex, AIR, ColdFusion, and everything in between</description>
	<lastBuildDate>Tue, 13 Jul 2010 03:56:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Subclipse 1.6 changes highlight and comment colors in CFEclipse</title>
		<link>http://flexoop.com/2009/04/subclipse-16-changes-highlight-and-comment-colors-in-cfeclipse/</link>
		<comments>http://flexoop.com/2009/04/subclipse-16-changes-highlight-and-comment-colors-in-cfeclipse/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 14:06:41 +0000</pubDate>
		<dc:creator>Gareth</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Flex Builder]]></category>
		<category><![CDATA[CFEclipse]]></category>
		<category><![CDATA[Subclipse]]></category>

		<guid isPermaLink="false">http://flexoop.com/?p=164</guid>
		<description><![CDATA[I just installed Subclipse 1.6 in my Flex Builder as there was some conflict between it and my TortoiseSVN install. I like to do my commits and updates via Eclipse so I&#8217;m not switching out to my Explorer window for quick commits. If there is any conflict resolution needed, or I need a little more [...]]]></description>
			<content:encoded><![CDATA[<p>I just installed Subclipse 1.6 in my Flex Builder as there was some conflict between it and my TortoiseSVN install.  I like to do my commits and updates via Eclipse so I&#8217;m not switching out to my Explorer window for quick commits.  If there is any conflict resolution needed, or I need a little more fine grained control, I switch out to Tortoise (as Subclipse doesn&#8217;t do as good a job currently).</p>
<p>After I upgraded from Subclipse 1.4 to 1.6, for some reason (I pretty sure it was Subclipse as I didn&#8217;t upgrade anything else), it decided that it didn&#8217;t like my comment color in CFEclipse or my highlight color and decided to randomly alter those colors to something else&#8230;a really weird, dark green for the comment background color and a much darker shade of blue for the text highlight color.  To my mild case of OCD, that is just unacceptable <img src='http://flexoop.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   Plus it&#8217;s just really difficult to read *any* text with a dark green background</p>
<p>If you want to switch these options back to their original colors, do the following:<br />
Window -> Preferences -> CFEclipse -> Editor -> CFML Colours -> CFML Comment Background<br />
I switched this one back to white from dark green.<br />
and<br />
Window -> Preferences -> CFEclipse -> Editor -> Appearance color options -> Selection background color<br />
This one I had to create a new custom color and set it to Red 49, Green 106, and Blue 197 (this, I think, is the windows highlight color).</p>
<p>So far these are the only things I&#8217;ve found that it changes.  I&#8217;ll post new updates if I find anything else.</p>
]]></content:encoded>
			<wfw:commentRss>http://flexoop.com/2009/04/subclipse-16-changes-highlight-and-comment-colors-in-cfeclipse/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Success! Fixing the ja_JP locale from being set in compiler arguments</title>
		<link>http://flexoop.com/2009/01/success-fixing-the-ja_jp-locale-from-being-set-in-compiler-arguments/</link>
		<comments>http://flexoop.com/2009/01/success-fixing-the-ja_jp-locale-from-being-set-in-compiler-arguments/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 03:41:37 +0000</pubDate>
		<dc:creator>Gareth</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Flex Builder]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[locale]]></category>

		<guid isPermaLink="false">http://flexoop.com/?p=145</guid>
		<description><![CDATA[Ha ha! I figured out (after just blogging my frustration in my previous post) how to change the Additional compiler arguments that automatically are added when creating a new project from ja_JP to en_US. There is a file called config.xml (on my PC it is located in C:\Program Files\Adobe\Flex Builder 3 Plug-in\eclipse\plugins\com.adobe.flexbuilder.flex_3.0.214193) that gets installed [...]]]></description>
			<content:encoded><![CDATA[<p>Ha ha!  I figured out (after just blogging my frustration in <a href="/2009/01/why-is-locale-set-to-ja_jp/">my previous post</a>) how to change the Additional compiler arguments that automatically are added when creating a new project from ja_JP to en_US.</p>
<p>There is a file called config.xml (on my PC it is located in C:\Program Files\Adobe\Flex Builder 3 Plug-in\eclipse\plugins\com.adobe.flexbuilder.flex_3.0.214193) that gets installed when updating via the Adobe updater.  I&#8217;m not quite sure what happened, but it decided that my compiler arguments should be set to ja_JP.  In order to fix this problem, just change this line from</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;locale<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>ja_JP<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/locale<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>to</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;locale<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>en_US<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/locale<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>This will now add en_US as an additional compiler argument instead of ja_JP.  Now I can get back to coding again <img src='http://flexoop.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://flexoop.com/2009/01/success-fixing-the-ja_jp-locale-from-being-set-in-compiler-arguments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why is locale set to ja_JP?</title>
		<link>http://flexoop.com/2009/01/why-is-locale-set-to-ja_jp/</link>
		<comments>http://flexoop.com/2009/01/why-is-locale-set-to-ja_jp/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 03:18:41 +0000</pubDate>
		<dc:creator>Gareth</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Errors]]></category>
		<category><![CDATA[Flex Builder]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[compiler]]></category>
		<category><![CDATA[locale]]></category>

		<guid isPermaLink="false">http://flexoop.com/?p=141</guid>
		<description><![CDATA[This is annoying the heck out of me. For some reason, I&#8217;m not sure when, my locale got set to ja_JP instead of en_US I did the update in eclipse and I&#8217;m wondering if it somehow got the japanese version of the SDK instead of the US version. Each time I create a new project [...]]]></description>
			<content:encoded><![CDATA[<p>This is annoying the heck out of me.  For some reason, I&#8217;m not sure when, my locale got set to ja_JP instead of en_US  I did the update in eclipse and I&#8217;m wondering if it somehow got the japanese version of the SDK instead of the US version.</p>
<p>Each time I create a new project I get -locale ja_JP added to the compiler arguments.  It&#8217;s an easy fix, just remove that or change it to en_US, but I have to do that each time I create a new project.  If I could even find the file that&#8217;s making that setting, I would be happy to manually alter it, but I haven&#8217;t even been able to find that.  My flex-config.xml file appears to be set to en_US also, so I have no clue how ja_JP is getting in there.</p>
<p>If anyone has any ideas, I&#8217;d be extremely grateful.</p>
]]></content:encoded>
			<wfw:commentRss>http://flexoop.com/2009/01/why-is-locale-set-to-ja_jp/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Remove View Source From Context Menu</title>
		<link>http://flexoop.com/2008/12/remove-view-source-from-context-menu/</link>
		<comments>http://flexoop.com/2008/12/remove-view-source-from-context-menu/#comments</comments>
		<pubDate>Sun, 14 Dec 2008 04:29:44 +0000</pubDate>
		<dc:creator>Gareth</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Flex Builder]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Demo]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[View Source]]></category>

		<guid isPermaLink="false">http://flexoop.com/?p=103</guid>
		<description><![CDATA[I had decided to create a demo application for my Flex Date Utils library. I thought it might be nice for people to just be able to see exactly what the library can do without having to download it and compile it. Right now it is just for the DateUtils portion of the library, but [...]]]></description>
			<content:encoded><![CDATA[<p>I had decided to create a demo application for my Flex Date Utils library.  I thought it might be nice for people to just be able to see exactly what the library can do without having to download it and compile it.  Right now it is just for the DateUtils portion of the library, but I&#8217;ll be adding Holiday and BusinessDay to the mix soon.</p>
<p>In order to make what I did more visible, I decided to enable the source code view when exporting the release build of the project.  After exporting the file and FTP&#8217;ing it to the server, I started to have some difficulties getting the source code view working properly.  Rather than wasting more time trying to get it working, I decided to just uncheck the Enable View Source check box, and re-export the project.  However, when I went to my swf and right clicked on it, &#8220;View Source&#8221; was still an option in the Context Menu.  I went back and tried cleaning my project, re-exporting it, deleting the swf and recreating the project.  Nothing seemed to be working.</p>
<p>I then figured I would try creating a new project and placing it under there.  As I was pasting the new application file, I noticed one new line had been added to my file<br />
viewSourceURL=&#8221;srcview/index.html&#8221;</p>
<p>Apparently when the compiler enabled &#8220;View Source&#8221;, it adds this line of code.  However, when it re-compiles the code with &#8220;View Source&#8221; disabled, it does not remove that attribute from the application tag.  30 minutes and lots of yelling later, this has now fixed the problem.  It would be nice if Adobe included this little tidbit in their livedocs as &#8220;make sure to check this&#8221;.</p>
<p>The demo app can be viewed <a href="http://flexoop.com/wp-content/uploads/FlexDateUtilsDemo/FlexDateUtilsDemo.html" target="_blank">here</a> for anyone interested.</p>
]]></content:encoded>
			<wfw:commentRss>http://flexoop.com/2008/12/remove-view-source-from-context-menu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Debug vs. Release Build</title>
		<link>http://flexoop.com/2008/12/debug-vs-release-build/</link>
		<comments>http://flexoop.com/2008/12/debug-vs-release-build/#comments</comments>
		<pubDate>Sat, 06 Dec 2008 17:25:30 +0000</pubDate>
		<dc:creator>Gareth</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Flex Builder]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[release build]]></category>

		<guid isPermaLink="false">http://flexoop.com/?p=67</guid>
		<description><![CDATA[Last week I ran into an issue (or so I thought) with my debugger. I was trying to debug some code on my local machine, but for some reason, the debugger in Flex Builder could not seem to find the SWF that was being built. I would click debug, a new window would open, but [...]]]></description>
			<content:encoded><![CDATA[<p>Last week I ran into an issue (or so I thought) with my debugger.  I was trying to debug some code on my local machine, but for some reason, the debugger in Flex Builder could not seem to find the SWF that was being built.  I would click debug, a new window would open, but nothing happened in my Flex Builder to indicate that it had reached a breakpoint.  After playing around with it for a little while, I decided to close out of Flex Builder and reopen it, in hopes that *something* would happen that would indicate why nothing was happening.  After restart, and trying to run the debug again, Flex Builder decided to actually let me know what was happening.</p>
<p>In my work environment, my exported release builds and my debug builds are both built to the same spot, which is due to our upgrade process to Flex being an incremental process (from our current HTML + CFM app).  In order to add some values to the Flex app, I write them to the HTML page, thus I decided to build them to the same spot.  I had not realized at the time that I had exported a release build right before lunch, then when I returned, I was trying to debug the release build.  Due to the very nature of the release build, the debug is removed, thus Flex Builder was not able to stop at the breakpoints.  For some reason, Flex Builder wasn&#8217;t telling me this initially though (even after I had cleaned the project).</p>
<p>My steps to fixing most Flex weirdness (i.e. something isn&#8217;t happening that I feel should be happening), is to clean a project first, then restart Flex Builder, if neither of those work, restarting my PC is next.  One of those will usually fix the problem <img src='http://flexoop.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
]]></content:encoded>
			<wfw:commentRss>http://flexoop.com/2008/12/debug-vs-release-build/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable line numbers in CFEclipse</title>
		<link>http://flexoop.com/2008/12/enable-line-numbers-in-cfeclipse/</link>
		<comments>http://flexoop.com/2008/12/enable-line-numbers-in-cfeclipse/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 18:02:47 +0000</pubDate>
		<dc:creator>Gareth</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Flex Builder]]></category>
		<category><![CDATA[CFEclipse]]></category>

		<guid isPermaLink="false">http://flexoop.com/?p=63</guid>
		<description><![CDATA[Don&#8217;t know how many people this affects, but it&#8217;s been annoying me for a while. When using CFEclipse in Flex Builder/viewing ColdFusion files, line numbers do not show up in the gutter, no matter how many times (or places) that you select &#8220;Show Line Numbers&#8221;. In order to fix this, close out of Flex Builder [...]]]></description>
			<content:encoded><![CDATA[<p>Don&#8217;t know how many people this affects, but it&#8217;s been annoying me for a while.<br />
When using CFEclipse in Flex Builder/viewing ColdFusion files, line numbers do not show up in the gutter, no matter how many times (or places) that you select &#8220;Show Line Numbers&#8221;.</p>
<p>In order to fix this, close out of Flex Builder or Eclipse and go to wherever you have Flex Builder preferences installed (which for me was in my &#8220;My Documents&#8221; on my C: drive), not the main Program Files directory.</p>
<p>This was where mine was located C:\Documents and Settings\(my logged in account)\My Documents\Flex Builder 3\.metadata\.plugins\org.eclipse.core.runtime\.settings</p>
<p>Once you are in this directory, back up then open up<br />
org.cfeclipse.cfml.prefs</p>
<p>Once inside this, add the line<br />
<strong>lineNumberRuler=true</strong><br />
and save the file</p>
<p>Now you can open Flex Builder/Eclipse again, and line numbers should be showing up for you when view ColdFusion files.</p>
<p>Just want to thank Francois Levesque over at <a href="http://blog.critical-web.com/blog" target="_blank">http://blog.critical-web.com/blog</a> for this.  This has saved me many headaches.</p>
]]></content:encoded>
			<wfw:commentRss>http://flexoop.com/2008/12/enable-line-numbers-in-cfeclipse/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Using Regular Expressions to build ColdFusion getters and setters</title>
		<link>http://flexoop.com/2008/11/using-regular-expressions-to-build-coldfusion-getters-and-setters/</link>
		<comments>http://flexoop.com/2008/11/using-regular-expressions-to-build-coldfusion-getters-and-setters/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 03:30:30 +0000</pubDate>
		<dc:creator>Gareth</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Regular Expressions]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[RegEx]]></category>
		<category><![CDATA[Regular Expression]]></category>

		<guid isPermaLink="false">http://flexfusion.archfamily.com/?p=39</guid>
		<description><![CDATA[I&#8217;m always looking for ways to make my life a little easier when writing code, and to take the monotony out of the equation wherever I can.  I know there is lots of back-and-forth about whether this method should or should not be used in ColdFusion, but I feel that for the minor incovenience of [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m always looking for ways to make my life a little easier when writing code, and to take the monotony out of the equation wherever I can.  I know there is lots of back-and-forth about whether this method should or should not be used in ColdFusion, but I feel that for the minor incovenience of running a reg ex, creating getters and setters in my CFCs/Objects just make sense if just for the very fact of encapsulation.  Plus if you need to alter anything that occurs during a &#8220;set&#8221; operation, nothing outside of the object is broken when you make the change within your object.  Anyway, back to business:</p>
<p>This regular expression can be used in Eclipse (my current IDE) and will convert something that looks like:</p>

<div class="wp_syntax"><div class="code"><pre class="cfm" style="font-family:monospace;"><span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfset</span> variables.firstName <span style="color: #0000FF;">=</span> <span style="color: #009900;">&quot;&quot;</span> <span style="color: #0000FF;">/&gt;</span></span>
<span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfset</span> variables.lastName <span style="color: #0000FF;">=</span> <span style="color: #009900;">&quot;&quot;</span> <span style="color: #0000FF;">/&gt;</span></span></pre></div></div>

<p>into</p>

<div class="wp_syntax"><div class="code"><pre class="cfm" style="font-family:monospace;"><span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cffunction</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;getfirstName&quot;</span> output<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;false&quot;</span> <span style="color: #0000FF;">access</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;public&quot;</span> returntype<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;any&quot;</span><span style="color: #0000FF;">&gt;</span></span>
<span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfreturn</span> variables.firstName <span style="color: #0000FF;">/&gt;</span></span>
<span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cffunction</span><span style="color: #0000FF;">&gt;</span></span>
&nbsp;
<span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cffunction</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;setfirstName&quot;</span> output<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;false&quot;</span> <span style="color: #0000FF;">access</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;public&quot;</span> returntype<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;void&quot;</span><span style="color: #0000FF;">&gt;</span></span>
<span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfargument</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;val&quot;</span> <span style="color: #0000FF;">required</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;true&quot;</span> <span style="color: #0000FF;">/&gt;</span></span>
<span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfset</span> variables.firstName <span style="color: #0000FF;">=</span> arguments.<span style="color: #0000FF;">val</span> <span style="color: #0000FF;">/&gt;</span></span>
<span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cffunction</span><span style="color: #0000FF;">&gt;</span></span></pre></div></div>

<p>The search string is:</p>

<div class="wp_syntax"><div class="code"><pre class="cfm" style="font-family:monospace;"><span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfset</span> variables.<span style="color: #0000FF;">&#40;</span>\w+<span style="color: #0000FF;">&#41;</span> <span style="color: #0000FF;">=</span>  <span style="color: #0000FF;">&#91;</span>^<span style="color: #0000FF;">&gt;</span></span>]+&gt;(\r\n)(\t)</pre></div></div>

<p>and the replace string is:</p>

<div class="wp_syntax"><div class="code"><pre class="cfm" style="font-family:monospace;"><span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cffunction</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;get$1&quot;</span> output<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;false&quot;</span>  <span style="color: #0000FF;">access</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;public&quot;</span> returntype<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;any&quot;</span><span style="color: #0000FF;">&gt;</span></span>$2$3$3<span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfreturn</span> variables.$<span style="color: #FF0000;">1</span>  <span style="color: #0000FF;">/&gt;</span></span>$2$3<span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cffunction</span><span style="color: #0000FF;">&gt;</span></span>$2$2$3<span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cffunction</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;set$1&quot;</span> output<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;false&quot;</span>  <span style="color: #0000FF;">access</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;public&quot;</span> returntype<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;void&quot;</span><span style="color: #0000FF;">&gt;</span></span>$2$3$3<span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfargument</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;val&quot;</span>  <span style="color: #0000FF;">required</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;true&quot;</span> <span style="color: #0000FF;">/&gt;</span></span>$2$3$3<span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfset</span> variables.$<span style="color: #FF0000;">1</span> <span style="color: #0000FF;">=</span> arguments.<span style="color: #0000FF;">val</span>  <span style="color: #0000FF;">/&gt;</span></span>$2$3<span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cffunction</span><span style="color: #0000FF;">&gt;</span></span>$2$2$</pre></div></div>

<p>The search string contains a &#8220;tab&#8221; character at the end.  This is really just so I can format the output of the getters and setters, but feel free to modify them however you wish.</p>
]]></content:encoded>
			<wfw:commentRss>http://flexoop.com/2008/11/using-regular-expressions-to-build-coldfusion-getters-and-setters/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Android Tutorial Update Part I</title>
		<link>http://flexoop.com/2008/11/android-tutorial-update-part-i/</link>
		<comments>http://flexoop.com/2008/11/android-tutorial-update-part-i/#comments</comments>
		<pubDate>Mon, 10 Nov 2008 03:03:47 +0000</pubDate>
		<dc:creator>Gareth</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://flexfusion.archfamily.com/?p=37</guid>
		<description><![CDATA[I know I may not be the best with Eclipse, but some of the notes that Google is giving for using Eclipse and their tutorials need to be updated.  As I progress through the tutorials, I&#8217;ll probably be adding new updates to assist others with problems I come across (not that there are many, but [...]]]></description>
			<content:encoded><![CDATA[<p>I know I may not be the <em>best</em> with Eclipse, but some of the notes that Google is giving for using Eclipse and their tutorials need to be updated.  As I progress through the tutorials, I&#8217;ll probably be adding new updates to assist others with problems I come across (not that there are many, but could cause other beginners to Android give up before even getting a good start).</p>
<p>The first thing I came across that was mildly annoying, but needs to be noted as it may cause some issues for others trying to follow along with the tutorials.  In <a href="http://code.google.com/android/intro/tutorial-ex1.html" target="_blank">Tutorial: Notepad Exercise 1</a>, Step 1, it mentions that to create the new project to download the source and select &#8220;Create project from an existing source&#8221;.  When I tried to do this, Eclipse balked and stated that there already existed.  I then moved my files from my workspace to my desktop then tried again.  However, using this method, the project was now using the files from my desktop.</p>
<p>I think the better way to get the project up and running is to import the files (as Eclipse actually states when you try to create the project in the same space as your workspace).  To do this go to</p>
<p>File -&gt; Import -&gt; General -&gt; Existing Projects Into Workspace<br />
Then select &#8220;Browse&#8221; next to &#8220;Select root directory&#8221; and find your Notepad files (mine were on my desktop).<br />
Make sure to also check &#8220;Copy projects into workspace&#8221; so the files are copied to your android workspace.<br />
Click Finish.</p>
<p>Now you should have the Notepadv1 project imported into your android workspace in Eclipse and all files should be located with the rest of your android files.  This to me seems like a better way of accessing the files than having them all over your computer.</p>
]]></content:encoded>
			<wfw:commentRss>http://flexoop.com/2008/11/android-tutorial-update-part-i/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Adding space before and after parentheses</title>
		<link>http://flexoop.com/2008/05/adding-space-before-and-after-parentheses/</link>
		<comments>http://flexoop.com/2008/05/adding-space-before-and-after-parentheses/#comments</comments>
		<pubDate>Thu, 22 May 2008 18:22:53 +0000</pubDate>
		<dc:creator>Gareth</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Errors]]></category>
		<category><![CDATA[Regular Expressions]]></category>

		<guid isPermaLink="false">http://flexfusion.archfamily.com/?p=16</guid>
		<description><![CDATA[I had previously written a regular expression that adds extra space within parentheses, so (test) would become ( test ). However, this gets more complex the more parentheses that are added to the mix. ((test)) and (((test))) require a much more complex regex statement to work correctly (and find the correct ending parenthesis to match [...]]]></description>
			<content:encoded><![CDATA[<p>I had previously written a regular expression that adds extra space within parentheses, so (test) would become ( test ).  However, this gets more complex the more parentheses that are added to the mix.  ((test)) and (((test))) require a much more complex regex statement to work correctly (and find the correct ending parenthesis to match up with the correct starting parenthesis).</p>
<p>I was rethinking how I did this and came up with a new method.  The only difference is that this test will need to be run twice, once for the opening parenthesis and once for the closing parenthesis.  As I usually just do a &#8220;Replace All&#8221;, I figured it wasn&#8217;t that much more difficult than doing it the old way (plus this will work for a much parenthesis nesting as a user puts in).</p>
<p>The Regular Expression is:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">Find: \<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>?<span style="color: #66cc66;">!</span> <span style="color: #66cc66;">|</span>\<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
Replace: <span style="color: #ff0000;">&quot;( &quot;</span></pre></div></div>

<p>remove the double quotes first&#8230;I just wanted to make the space visible.</p>
<p>This regular expression means:<br />
Find an opening parenthesis</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">\<span style="color: #66cc66;">&#40;</span></pre></div></div>

<p>Then check the next character (but do not include/consume it in the &#8220;find&#8221;).  If it is not a space or a closing parenthesis, match the statement</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #66cc66;">&#40;</span>?<span style="color: #66cc66;">!</span> <span style="color: #66cc66;">|</span>\<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></pre></div></div>

<p>This will work on something like:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>test<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></pre></div></div>

<p>which, after the first run, becomes</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #66cc66;">&#40;</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #66cc66;">&#40;</span> test<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></pre></div></div>

<p>Then the second Regular Expression would be:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">Find: <span style="color: #66cc66;">&#40;</span>?<span style="color: #66cc66;">&lt;!</span> <span style="color: #66cc66;">|</span>\<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>\<span style="color: #66cc66;">&#41;</span>
Replace: <span style="color: #ff0000;">&quot; )&quot;</span></pre></div></div>

<p>remove the double quotes first&#8230;I just wanted to make the space visible.</p>
<p>This regular expression means (starting from the right this time):<br />
Find a closing parenthesis</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">\<span style="color: #66cc66;">&#41;</span></pre></div></div>

<p>Then check the <em>previous</em> character (but don&#8217;t include/consume it in the &#8220;find&#8221;).  If it is not a space or opening parenthesis, match the statement.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #66cc66;">&#40;</span>?<span style="color: #66cc66;">&lt;!</span> <span style="color: #66cc66;">|</span>\<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></pre></div></div>

<p>This will take the previous finished example of:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #66cc66;">&#40;</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #66cc66;">&#40;</span> test<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></pre></div></div>

<p>and change it to:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #66cc66;">&#40;</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #66cc66;">&#40;</span> test<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span></pre></div></div>

<p>By adding the extra space to my code, I think it makes everything a little bit easier to read.  This will work for any type of brackets (or any character for that matter).  In the first find statement, you can replace the parenthesis in \) and \( with \[ or \] or whatever you want.  The same goes for the second find statement.  I don&#8217;t know why I didn&#8217;t think of doing it this way before instead of trying to figure out how to code a really long match for the opening and closing parentheses.  It will definitely make my life easier.</p>
]]></content:encoded>
			<wfw:commentRss>http://flexoop.com/2008/05/adding-space-before-and-after-parentheses/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Regular Expressions are fun!</title>
		<link>http://flexoop.com/2008/04/regular-expressions-are-fun/</link>
		<comments>http://flexoop.com/2008/04/regular-expressions-are-fun/#comments</comments>
		<pubDate>Thu, 17 Apr 2008 18:10:41 +0000</pubDate>
		<dc:creator>Gareth</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Regular Expressions]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[RegEx]]></category>

		<guid isPermaLink="false">http://flexfusion.archfamily.com/?p=13</guid>
		<description><![CDATA[Whenever I&#8217;m coding I like things just so I&#8217;m pretty sure it&#8217;s a very mild case of OCD as it really does bug me when things are different. Not so much that I get any kind of other disorders from this, but enough that I want to go in and make my changes/fixes to put [...]]]></description>
			<content:encoded><![CDATA[<p>Whenever I&#8217;m coding I like things <em>just</em> so <img src='http://flexoop.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   I&#8217;m pretty sure it&#8217;s a very mild case of <a href="http://en.wikipedia.org/wiki/Obsessive-compulsive_disorder" target="_blank">OCD</a> as it really does bug me when things are different.  Not so much that I get any kind of <em>other</em> disorders from this, but enough that I want to go in and make my changes/fixes to put in the way I like it.  In order to help me through this, I have started writing many regular expressions that will fix the code, and hopefully be quicker than manually editing the pages.</p>
<p>My company has come up with a set of standards that we&#8217;re trying to follow when writing our code, so, if anyone else joins the company and edits/creates new code they can just follow the guidelines we already have set up.  In order to keep track of all of the regular expressions I&#8217;m writing (and so others can use them if they wish), I&#8217;ve created a <a href="http://flexfusion.archfamily.com/regular-expressions/">Regular Expressions page</a> that I&#8217;ll periodically be updating with new regular expressions each time I use them.  I know they&#8217;re useful to me, so I&#8217;m sure that at least one other person will have a use for them too <img src='http://flexoop.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://flexoop.com/2008/04/regular-expressions-are-fun/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
