<?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:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-6561158321848231022</atom:id><lastBuildDate>Thu, 22 Dec 2011 21:30:04 +0000</lastBuildDate><category>Adobe</category><category>Flash</category><category>Rants</category><category>SQL</category><category>Javascript</category><category>Macbook Pro</category><category>Music</category><category>AIR</category><category>Mac</category><category>Cross-Browser Differences</category><category>Flex</category><category>Misc.</category><category>Apple</category><category>ColdFusion</category><category>Snow Leopard</category><title>KraFusion</title><description>Covering different topics mostly involving the web and web development.</description><link>http://joeykrabacher.blogspot.com/</link><managingEditor>noreply@blogger.com (Joey Krabacher)</managingEditor><generator>Blogger</generator><openSearch:totalResults>16</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/WebInjectedSoul" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="webinjectedsoul" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6561158321848231022.post-3067777733429904028</guid><pubDate>Wed, 11 May 2011 14:51:00 +0000</pubDate><atom:updated>2011-05-13T18:16:25.829-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Snow Leopard</category><category domain="http://www.blogger.com/atom/ns#">Mac</category><category domain="http://www.blogger.com/atom/ns#">Apple</category><category domain="http://www.blogger.com/atom/ns#">Macbook Pro</category><title>Fixing DNS issue on MacBook Pro</title><description>This may be an issue with 10.6(Snow Leopard) altogether or just with the MacBook Pros, but every once in a while the internal DNS settings get hung up or crap out or just stop working!&lt;br /&gt;&lt;br /&gt;You're connected to the internet, you've checked the connections, you've got on other devices , you've asked co-workers if they are having issues with the internet, you've pulled your hair out, banged your head against the wall, you get my drift.&lt;br /&gt;&lt;br /&gt;Whatever you do or try your $2000 MacBook Pro will not do one simple thing CONNECT TO THE INTERNET!!&lt;br /&gt;&lt;br /&gt;Hopefully this solution will work for some of you and save the hair on your head.&lt;br /&gt;Run these commands from terminal(copy command from sudo to plist):&lt;br /&gt;&lt;code&gt;&lt;span style="font-size:10px"&gt;&lt;br /&gt;sudo launchctl unload /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;THEN&lt;br /&gt;&lt;code&gt;&lt;span style="font-size:10px"&gt;&lt;br /&gt;sudo launchctl load /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;and bingo bango everything is just peachy again!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6561158321848231022-3067777733429904028?l=joeykrabacher.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/WebInjectedSoul/~4/jOQQ4EsB62U" height="1" width="1"/&gt;</description><link>http://joeykrabacher.blogspot.com/2011/05/fixing-dns-issue-on-macbook-pro.html</link><author>noreply@blogger.com (Joey Krabacher)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6561158321848231022.post-6578432636199718813</guid><pubDate>Wed, 20 Apr 2011 20:16:00 +0000</pubDate><atom:updated>2011-05-13T18:17:06.719-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">AIR</category><category domain="http://www.blogger.com/atom/ns#">Adobe</category><category domain="http://www.blogger.com/atom/ns#">Flex</category><category domain="http://www.blogger.com/atom/ns#">ColdFusion</category><title>CFBuilder 2 Tour comes to Nashville this week!</title><description>WHEN: Thursday, April 21st, 2011 at 6:00pm CDT&lt;br /&gt;&lt;br /&gt;WHERE: Russ Carroll Financial Peace Conference Center,1749 Mallory      Lane, Brentwood, Tennessee 37027&lt;br /&gt;     &lt;a href="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=1749+Mallory+Lane+Brentwood,+TN+37027&amp;sll=35.960032,-86.816175&amp;sspn=0.011428,0.021608&amp;ie=UTF8&amp;ll=35.959823,-86.816862&amp;spn=0.011428,0.021608&amp;z=16&amp;iwloc=A"&gt;Map of Location&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;SPEAKER: Greg Wilson - Adobe evangelist for AIR, ColdFusion, Flex and LiveCycle ES&lt;br /&gt;&lt;br /&gt;WHAT: Greg Wilson from Adobe will be here to talk about CFBuilder 2, ColdFusion, and even some Flex on mobile stuff, including Flex on iPad/iPhone! We are SUPER excited to have the opportunity to get the surrounding ColdFusion and Flex communities together for this event. Greg Wilson is an AIR, ColdFusion, Flex, and LiveCycle ES evangelist at Adobe, and many of you may remember him from the ColdFusion 9 tour a couple of years ago.&lt;br /&gt;&lt;br /&gt;HOW: Register at the &lt;a href="http://www.ncfug.com/"&gt;Nashville ColdFusion User Group&lt;/a&gt; site.&lt;br /&gt;&lt;a href="http://www.ncfug.com/go/rsvpform/meetingID/27FAE9A0-BBAF-B9BC-7157910DC9BB2369/"&gt; RSVP for this meeting ... &lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6561158321848231022-6578432636199718813?l=joeykrabacher.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/WebInjectedSoul/~4/21YRUKqpUAM" height="1" width="1"/&gt;</description><link>http://joeykrabacher.blogspot.com/2011/04/cfbuilder-2-tour-comes-to-nashville.html</link><author>noreply@blogger.com (Joey Krabacher)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6561158321848231022.post-4288245081014092046</guid><pubDate>Wed, 19 Aug 2009 02:09:00 +0000</pubDate><atom:updated>2009-08-19T22:30:20.307-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Flex</category><title>Flex getItemAt() function vs Array Notation</title><description>Just a quick tip I found while doing some debugging on a Flex project I am working on.&lt;br /&gt;&lt;br /&gt;While &lt;br /&gt;&lt;span style="font-style:italic;"&gt;myArray.getItemAt(0).firstname&lt;/span&gt; and &lt;br /&gt;&lt;span style="font-style:italic;"&gt;myArray[0].firstname&lt;/span&gt; &lt;br /&gt;return the same value, the getItemAt() function will save you ten steps.  By ten steps I mean that 10 steps after the compiler hits the line that says myArray[0].firstname, it will run the getItemAt() function anyway. It is doubtful that you will see any significant performance gains out of this.&lt;br /&gt;&lt;br /&gt;So, it may take more time to type out the getItemAt() function over array notation, but it processes quicker.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6561158321848231022-4288245081014092046?l=joeykrabacher.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/WebInjectedSoul/~4/B3OB_onBC3Y" height="1" width="1"/&gt;</description><link>http://joeykrabacher.blogspot.com/2009/08/flex-getitemat-function-vs-array.html</link><author>noreply@blogger.com (Joey Krabacher)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6561158321848231022.post-7989495288846291771</guid><pubDate>Tue, 09 Jun 2009 14:53:00 +0000</pubDate><atom:updated>2009-06-09T11:08:02.811-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">AIR</category><category domain="http://www.blogger.com/atom/ns#">Adobe</category><category domain="http://www.blogger.com/atom/ns#">Flex</category><category domain="http://www.blogger.com/atom/ns#">ColdFusion</category><title>Adobe ColdFusion tour coming to Nashville!</title><description>WHO:&lt;a href="http://gregsramblings.com/"&gt;Greg Wilson&lt;/a&gt; (an AIR, ColdFusion, Flex, LiveCycle ES evangelist &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at Adobe)&lt;br /&gt;&lt;br /&gt;WHAT: Greg will be discussing new features in ColdFusion, how &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ColdFusion integrates with other Adobe technologies like AIR, Flex &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;and LCDS.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Also, Greg will be showing some demo's of the new features that &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;are going to be in the next ColdFusion release.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;There will be food, drinks and of course prizes/giveaways that you &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;don't want to miss.(&amp;lt;cfhint = you have to be registered to be &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;eligible for giveaways!&amp;gt;)&lt;br /&gt;&lt;br /&gt;WHERE: Russ Carroll Financial Peace Conference Center,1749 Mallory &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Lane, Brentwood, Tennessee 37027&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=1749+Mallory+Lane+Brentwood,+TN+37027&amp;sll=35.960032,-86.816175&amp;sspn=0.011428,0.021608&amp;ie=UTF8&amp;ll=35.959823,-86.816862&amp;spn=0.011428,0.021608&amp;z=16&amp;iwloc=A"&gt;Map of Location&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;WHEN:Thursday, June 18, 2009 at 7:00pm CDT&lt;br /&gt;&lt;br /&gt;HOW: Register at the &lt;a href="http://www.ncfug.com/go/meeting/meetingID/3FB5BE35%2D0C49%2DCC97%2D8839C3E73088FBAC/"&gt;Nashville ColdFusion User Group&lt;/a&gt; site.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_wh8yinim8-E/Si6GLQc3TPI/AAAAAAAAACM/T0jJY9lgoDM/s1600-h/cftour2009.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 41px;" src="http://1.bp.blogspot.com/_wh8yinim8-E/Si6GLQc3TPI/AAAAAAAAACM/T0jJY9lgoDM/s320/cftour2009.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5345357335688072434" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6561158321848231022-7989495288846291771?l=joeykrabacher.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/WebInjectedSoul/~4/OnsitbUQvOU" height="1" width="1"/&gt;</description><link>http://joeykrabacher.blogspot.com/2009/06/adobe-coldfusion-tour-coming-to.html</link><author>noreply@blogger.com (Joey Krabacher)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_wh8yinim8-E/Si6GLQc3TPI/AAAAAAAAACM/T0jJY9lgoDM/s72-c/cftour2009.jpg" height="72" width="72" /><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6561158321848231022.post-8243006178508409763</guid><pubDate>Wed, 25 Mar 2009 22:19:00 +0000</pubDate><atom:updated>2009-03-25T17:35:04.792-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ColdFusion</category><title>Try/Catch in OnError function of Application.cfc</title><description>So you're stoked that you switched to application.cfc and you wont have to see those hard ColdFusion errors since app cfc has the OnError function? Sorry to bust your bubble, but what if your OnError function throws an error(referencing a variable that isn't present for example)? Then what? That's right, a hard ColdFusion error will be shown and hopefully you were smart and turned off the Robust Exception option in the ColdFusion Administrator! :)&lt;br /&gt;&lt;br /&gt;To remedy this situation you could add in a try/catch block right there in the OnError function.  A more generic process could be put in the catch block that perhaps should never throw an error, something very simple that doesn't reference any variables that may not be present.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6561158321848231022-8243006178508409763?l=joeykrabacher.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/WebInjectedSoul/~4/wFuZoP5OSiA" height="1" width="1"/&gt;</description><link>http://joeykrabacher.blogspot.com/2009/03/trycatch-in-onerror-function-of.html</link><author>noreply@blogger.com (Joey Krabacher)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6561158321848231022.post-8092560959376827741</guid><pubDate>Sat, 21 Mar 2009 15:34:00 +0000</pubDate><atom:updated>2009-03-21T10:43:28.114-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Rants</category><title>State of Tennessee Pays $135M for Edison Program</title><description>This is one of the top stories in Nashville right now, because the program is so horrible and so much money was spent on it.  135 million dollars!!!  I would have happily done it for $1 Million and I would have made sure it was done right! Also, this could be one of the main contributors to State employees not getting a raise this year. They are not even getting a cost of living raise this year! Think about how far $135M can go. Even if you divide $135M 40,000 ways, that is still $3,375 that could be going towards someones raise and potentially back into the economy.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6561158321848231022-8092560959376827741?l=joeykrabacher.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/WebInjectedSoul/~4/uZ9ViIT-VJ0" height="1" width="1"/&gt;</description><link>http://joeykrabacher.blogspot.com/2009/03/state-of-tennessee-pays-135m-for-edison.html</link><author>noreply@blogger.com (Joey Krabacher)</author><thr:total>4</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6561158321848231022.post-349237220656338766</guid><pubDate>Fri, 20 Mar 2009 17:41:00 +0000</pubDate><atom:updated>2009-03-20T12:53:50.238-05:00</atom:updated><title>ColdFusion Val() function Gotcha.</title><description>Try this and you will see what i am talking about&lt;br /&gt;&lt;br /&gt;&lt;div style="font-size: 12px; background-color: rgb(168, 168, 168); color: rgb(0, 0, 0);"&gt;&lt;code&gt;&amp;lt;cfdump var="#Val(08234)#"&amp;gt;&lt;br /&gt;&amp;lt;cfdump var="#Val(80234)#"&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;You will see that in the first dump strips the 0 off of the number leaving you with 8234...not good for people that believe in wrapping Val() around everything that should be numeric. NOTE: It doesn't matter if there is one 0 or 20 at the beginning of the number, they will all be stripped off.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6561158321848231022-349237220656338766?l=joeykrabacher.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/WebInjectedSoul/~4/ZP_pWsFxqQQ" height="1" width="1"/&gt;</description><link>http://joeykrabacher.blogspot.com/2009/03/coldfusion-val-function-gotcha.html</link><author>noreply@blogger.com (Joey Krabacher)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6561158321848231022.post-4380822537040428146</guid><pubDate>Fri, 20 Mar 2009 16:46:00 +0000</pubDate><atom:updated>2009-03-20T15:20:30.613-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Misc.</category><title>You might be a geek if...</title><description>you have said the following in the past or something similar:&lt;br /&gt;&lt;br /&gt;1. 'Did you cfflush after you cfdump'd?'&lt;br /&gt;2. 'That cfm is bombing out on me!'&lt;br /&gt;3. 'The Reggie's funky' (translation: The RegEx is funky.)&lt;br /&gt;&lt;br /&gt;this post will be ongoing as i think of more...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6561158321848231022-4380822537040428146?l=joeykrabacher.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/WebInjectedSoul/~4/ZzGeITvGRkE" height="1" width="1"/&gt;</description><link>http://joeykrabacher.blogspot.com/2009/03/you-might-be-geek-if.html</link><author>noreply@blogger.com (Joey Krabacher)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6561158321848231022.post-9000276378646608005</guid><pubDate>Tue, 17 Mar 2009 22:05:00 +0000</pubDate><atom:updated>2009-06-11T17:00:08.593-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ColdFusion</category><title>Want to view a summary of your ColdFusion Components</title><description>If you need a quick overview of one of your ColdFusion components for documentation purposes for example, here is how you do it.&lt;br /&gt;&lt;br /&gt;Go to your browser of choice and type in the URL you use to get to your CF Administrator.  &lt;br /&gt;&lt;br /&gt;For example, I access my CF Administrator with: http://127.0.0.1:8302/CFIDE/administrator/index.cfm&lt;br /&gt;&lt;br /&gt;Next delete everything after the CFIDE/ and copy and paste: &lt;br /&gt;&lt;br /&gt;componentutils/cfcexplorer.cfc?NAME=CFIDE.adminapi.datasource&amp;&lt;br /&gt;METHOD=getcfcinhtml&lt;br /&gt;&lt;br /&gt;This will show you all the details about the datasource.cfc that is used in the coldfusion administrator.&lt;br /&gt;&lt;br /&gt;you can replace the 'CFIDE.adminapi.datasource' with any cfc you want to view.&lt;br /&gt;just replace that string with the component_name of your choice.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6561158321848231022-9000276378646608005?l=joeykrabacher.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/WebInjectedSoul/~4/cZZW5ssXi4E" height="1" width="1"/&gt;</description><link>http://joeykrabacher.blogspot.com/2009/03/want-to-view-summary-of-your-coldfusion.html</link><author>noreply@blogger.com (Joey Krabacher)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6561158321848231022.post-5561835522280461919</guid><pubDate>Wed, 12 Nov 2008 22:07:00 +0000</pubDate><atom:updated>2009-03-18T09:26:03.276-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ColdFusion</category><title>CFUNITED 09 Announced</title><description>CFUNITED 09 was just announced with dates, venue and early bird date.  Info is as follows:&lt;br /&gt;&lt;br /&gt;Dates: August 11th, 2009 Pre-Conference Classes&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;August 12th-15th, 2009 Main event (repeat sessions on Saturday)&lt;br /&gt;&lt;br /&gt;Venue: Lansdowne Resort&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;44050 Woodridge Parkway&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Lansdowne, VA 20176&lt;br /&gt;&lt;br /&gt;Early Bird Date: December 31st, 2009&lt;br /&gt;&lt;br /&gt;For more information visit CFUnited's &lt;a href="http://cfunited.com/go/travel"&gt;travel&lt;/a&gt; page.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6561158321848231022-5561835522280461919?l=joeykrabacher.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/WebInjectedSoul/~4/3PrZVLDSQDE" height="1" width="1"/&gt;</description><link>http://joeykrabacher.blogspot.com/2008/11/cfunited-09-announced.html</link><author>noreply@blogger.com (Joey Krabacher)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6561158321848231022.post-8023114260587861416</guid><pubDate>Mon, 18 Aug 2008 16:55:00 +0000</pubDate><atom:updated>2009-03-18T09:54:05.062-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">SQL</category><category domain="http://www.blogger.com/atom/ns#">ColdFusion</category><title>Using CFQueryParam in Order By Clause</title><description>With all of the SQL Injection attacks going on in the ColdFusion world I thought that it may be beneficial to show everyone a way that I know of to have cfqueryparam'd 'Order By' clauses. If anyone knows of other ways to accomplish this, please feel free to post a comment on how to do so.&lt;br/&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="font-size: 12px; background-color: rgb(168, 168, 168); color: rgb(0, 0, 0);"&gt;&lt;code&gt;&lt;br /&gt;&amp;lt;cfquery name="GetData" datasource="#APPLICATION.DataSource#"&amp;gt;&lt;br /&gt;DECLARE @param varchar(25),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;@dataID varchar(25),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;@sql nvarchar(700);&lt;br /&gt;    &lt;br /&gt;SELECT @param=&amp;lt;cfqueryparam cfsqltype="cf_sql_varchar" value="#VARIABLES.orderby#"&amp;gt;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;@dataID=&amp;lt;cfqueryparam cfsqltype="cf_sql_varchar" value="#VARIABLES.DataID#"&amp;gt;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;@sql = 'SELECT ID,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Phone_Number,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;First_Name,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Last_Name,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Address&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;FROM Table WITH (NOLOCK)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;WHERE DataID = ' + @dataID +  'Order by ' + @param + ' asc';&lt;br /&gt;    &lt;br /&gt;EXEC sp_executesql @sql&lt;br /&gt;&lt;br /&gt;&amp;lt;/cfquery&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6561158321848231022-8023114260587861416?l=joeykrabacher.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/WebInjectedSoul/~4/zMUkgxttJno" height="1" width="1"/&gt;</description><link>http://joeykrabacher.blogspot.com/2008/08/using-cfqueryparam-in-order-by-clause.html</link><author>noreply@blogger.com (Joey Krabacher)</author><thr:total>7</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6561158321848231022.post-3348276970692277648</guid><pubDate>Thu, 24 Jan 2008 18:33:00 +0000</pubDate><atom:updated>2008-01-24T12:41:39.644-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">AIR</category><category domain="http://www.blogger.com/atom/ns#">Adobe</category><category domain="http://www.blogger.com/atom/ns#">Flex</category><category domain="http://www.blogger.com/atom/ns#">Flash</category><title>Flex 3/AIR Event Today</title><description>If you live in/around Nashville and you like to learn about Flex,Flash or AIR you should check out this event.&lt;br /&gt;&lt;a href="http://www.trajiklyhip.com/blog/index.cfm/2008/1/22/Flex-3AIR-Event-This-Week"&gt;Flex 3/AIR Event&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6561158321848231022-3348276970692277648?l=joeykrabacher.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/WebInjectedSoul/~4/5bvmv6K2oXI" height="1" width="1"/&gt;</description><link>http://joeykrabacher.blogspot.com/2008/01/flex-3air-event-today.html</link><author>noreply@blogger.com (Joey Krabacher)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6561158321848231022.post-7861583842870572707</guid><pubDate>Sat, 05 Jan 2008 01:46:00 +0000</pubDate><atom:updated>2008-01-04T20:00:11.093-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Music</category><category domain="http://www.blogger.com/atom/ns#">Rants</category><title>Musicians and their Ego's</title><description>Just got done reading the December '07 issue of the Rolling Stones and I am disappointed to hear that the Red Hot Chili Peppers are filing a lawsuit against Showtime because one of their shows, Californication, just so happens to be the name of one of the Chili Pepper's albums.  The lead singer is quoted as saying "For some TV show to come along and steal our identity is not right."  What? Stealing your identity?  I think what he meant to say is that "we are now greedy and our egos have overcome us so we will do anything we can to get more money/publicity."  This is almost as bad as Metallica filing a lawsuit against a company that made a nail polish named "metallica". What does this mean to me? It means that I no longer respect the Chili Pepper's and they will no longer be getting any of my hard earned money.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6561158321848231022-7861583842870572707?l=joeykrabacher.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/WebInjectedSoul/~4/VU-WDyGaTag" height="1" width="1"/&gt;</description><link>http://joeykrabacher.blogspot.com/2008/01/musicians-and-their-egos.html</link><author>noreply@blogger.com (Joey Krabacher)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6561158321848231022.post-9094772168947357258</guid><pubDate>Thu, 06 Dec 2007 17:59:00 +0000</pubDate><atom:updated>2007-12-27T14:21:24.616-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Javascript</category><category domain="http://www.blogger.com/atom/ns#">Cross-Browser Differences</category><title>Javascript Substring() Function Cross-Browser Differences</title><description>I found something interesting while working on some Javascript form submission code. The problem was that the form was only submitting in IE and not in FireFox. After some troubleshooting I was able to determine that the Substring function is different between the two browsers. Here is an example if you want to give it a try.&lt;br /&gt;&lt;br /&gt;&lt;div style="FONT-SIZE: 12px; COLOR: #000000; BACKGROUND-COLOR: #a8a8a8"&gt;&lt;code&gt;&lt;br /&gt;&amp;lt;script language='javascript' type='text/javascript'&amp;gt;&lt;br /&gt;&lt;br /&gt;function controlSubmit(obj,act) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;obj.action = act;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;alert(obj.action.substring(0,13));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (obj.action.substring(0,13) == 'action.cfm') obj.submit();&lt;br /&gt;}&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;form&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;input type="button" value="one" onclick="controlSubmit(this.form,'admin.cfm');"&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;input type="button" value="two" onclick="controlSubmit(this.form,'action.cfm');"&amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;You will notice that the first button will only display an alert on both browsers and the second button will display an alert on both browsers, but it will also do a form submit only on IE.  Moral of the story, be careful when using the Substring() javascript function when aiming for multiple browser support.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6561158321848231022-9094772168947357258?l=joeykrabacher.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/WebInjectedSoul/~4/4PVeLCBxP2E" height="1" width="1"/&gt;</description><link>http://joeykrabacher.blogspot.com/2007/12/javascript-substring-function-cross.html</link><author>noreply@blogger.com (Joey Krabacher)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6561158321848231022.post-8478245171415911399</guid><pubDate>Fri, 09 Nov 2007 19:21:00 +0000</pubDate><atom:updated>2007-12-07T23:14:48.796-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">SQL</category><category domain="http://www.blogger.com/atom/ns#">ColdFusion</category><title>Combining Select and Insert into the same CFQuery tag</title><description>So you want to grab some values and insert them into a table.&lt;br /&gt;Here is the hard way.&lt;br /&gt;&lt;div style="font-size:12px;background-color:#a8a8a8;color:#000000;"&gt;&lt;code&gt;&lt;br /&gt;&amp;lt;cfquery name="selectQuery" datasource="#application.dsn.db2#"&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SELECT Setting1,Setting2,Setting3&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FROM defaultSettings&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;WHERE ID = 101&lt;br /&gt;&amp;lt;/cfquery&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;cfquery name="insertQuery" datasource="#application.dsn.db#"&amp;gt;&lt;br /&gt;INSERT INTO Settings&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;(TS,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Name,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Setting1,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Setting2,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Setting3)&lt;br /&gt;VALUES(GetDate(),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Test',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;cfqueryparam cfsqltype="cf_sql_varchar" value="#selectQuery.Setting1#"&amp;gt;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;cfqueryparam cfsqltype="cf_sql_varchar" value="#selectQuery.Setting2#"&amp;gt;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;cfqueryparam cfsqltype="cf_sql_varchar" value="#selectQuery.Setting3#"&amp;gt;)&lt;br /&gt;&amp;lt;/cfquery&amp;gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Here is the easier way, combining both Select and Insert in the same CFQuery block.&lt;br /&gt;&lt;div style="font-size:12px;background-color:#a8a8a8;color:#000000;"&gt;&lt;code&gt;&lt;br /&gt;&amp;lt;cfquery name="insertQuery" datasource="#application.dsn.db#"&amp;gt;&lt;br /&gt;INSERT INTO Settings&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;(TS,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Name,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Setting1,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Setting2,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Setting3)&lt;br /&gt;SELECT GetDate(),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Test',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DS.Setting1,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DS.Setting2,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DS.Setting3&lt;br /&gt;FROM defaultSettings DS&lt;br /&gt;WHERE DS.ID = 101&lt;br /&gt;&amp;lt;/cfquery&amp;gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6561158321848231022-8478245171415911399?l=joeykrabacher.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/WebInjectedSoul/~4/HhvlWr5NYZg" height="1" width="1"/&gt;</description><link>http://joeykrabacher.blogspot.com/2007/11/combining-select-and-insert-into-same.html</link><author>noreply@blogger.com (Joey Krabacher)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6561158321848231022.post-1285249493125979099</guid><pubDate>Fri, 26 Oct 2007 03:27:00 +0000</pubDate><atom:updated>2010-08-24T12:10:22.818-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">SQL</category><category domain="http://www.blogger.com/atom/ns#">ColdFusion</category><title>Using SQL's Scope_Identity</title><description>So you want to get the ID(PrimaryKey) of the last record inserted into the database without having to do a second cfquery block. Here is an example of doing it the hard way.&lt;br /&gt;&lt;div style="font-size:12px;background-color:#a8a8a8;color:#000000;"&gt;&lt;code&gt;&lt;br /&gt;&amp;lt;cfset value1 = 2007&amp;gt;&lt;br /&gt;&amp;lt;cfset myuuid = CreateUUID()&amp;gt;&lt;br /&gt;&amp;lt;cfquery name="insert" datasource="#APPLICATION.DSN.DB#"&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;INSERT INTO table(column1,column2)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;VALUES(#VARIABLES.value1#, '#VARIABLES.myUUID#')&lt;br /&gt;&amp;lt;/cfquery&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;cfquery name="select" datasource="#APPLICATION.DSN.DB#"&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SELECT ID&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FROM table&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;WHERE column2=&amp;lt;cfqueryparam cfsqltype="cf_sql_varchar" value="#VARIABLES.myUUID#"/&amp;gt;&lt;br /&gt;&amp;lt;/cfquery&amp;gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;You would then reference the ID as select.ID.&lt;br /&gt;&lt;br /&gt;The easier way.&lt;br /&gt;&lt;br /&gt;&lt;div style="font-size:12px;background-color:#a8a8a8;color:#000000;"&gt;&lt;code&gt;&lt;br /&gt;&amp;lt;cfquery name="insert" datasource="#APPLICATION.DSN.DB#"&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;INSERT INTO table(column1,column2)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;VALUES(#VARIABLES.value1#, '#VARIABLES.myUUID#')&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SELECT Scope_Identity() AS ID&lt;br /&gt;&amp;lt;/cfquery&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;The ID returned would be referenced as insert.ID ...less code, less work for coldfusion, less work for you.&lt;br /&gt;&lt;br /&gt;After reading the comment from Ray Camden, I found out that a variable was added to the result attribute of the cfquery tag in ColdFusion 7.  This would be the "IDENTITYCOL" variable and here is how you would use it.&lt;br /&gt;&lt;br /&gt;&lt;div style="font-size:12px;background-color:#a8a8a8;color:#000000;"&gt;&lt;code&gt;&lt;br /&gt;&amp;lt;cfquery name="insert" datasource="#APPLICATION.DSN.DB#" result="myResult"&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;INSERT INTO table(column1,column2)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;VALUES(#VARIABLES.value1#, '#VARIABLES.myUUID#')&lt;br /&gt;&amp;lt;/cfquery&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;You would then reference the ID(PrimaryKey) as myResult.IDENTITYCOL(SQL Server Only)&lt;br /&gt;  -myResult.GENERATED_KEY for MySQL&lt;br /&gt;  -myResult.ROWID for Oracle&lt;br /&gt;  -myResult.SYB_IDENTITY for Sybase and&lt;br /&gt;  -myResult.SERIAL_COL for Informix&lt;br /&gt;&lt;br /&gt;This approach is even faster,but you have to at least be on CFMX 7 to utilize it. Thanks for the reminder Ray!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6561158321848231022-1285249493125979099?l=joeykrabacher.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/WebInjectedSoul/~4/1TBA5ACPpa4" height="1" width="1"/&gt;</description><link>http://joeykrabacher.blogspot.com/2007/10/using-sqls-scopeidentity.html</link><author>noreply@blogger.com (Joey Krabacher)</author><thr:total>1</thr:total></item></channel></rss>

