Posted: September 29, 2006 at 3:04 PM by Ben Nadel
I have recently started to use non-greedy regular expressions. Case in point, I am using non-greedy regular expression searches to match link HREFs. Something is going wrong though. It is matching very large strings... I must be misunderstanding how non-greedy searches run. Uggg. Gotta go back to the RegEx drawing board. For instance, I had the n... read more »
Comments (11) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: September 29, 2006 at 12:59 PM by Ben Nadel
As you all know, in ColdFusion, when you want to do a find or replace with no case sensitivity, you just append "NoCase" to the method call. We have all used: FindNoCase() REFindNoCase() ReplaceNoCase() REReplaceNoCase() As you well know (if you follow my blog), I am a huge fan of using the Java String methods for regular expression find an... read more »
Comments (7) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: September 29, 2006 at 8:46 AM by Ben Nadel
Try out the latest version of Skin Spider Live! So far, Project Skin Spider is very exciting. I have been working off of a home-grown XML database and it is, not to boast, going awesome. I have created the get gallery links page. This page spiders over a thumbnail site and finds all links to galleries and adds them to the queue. At first ru... read more »
Comments (0) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: September 28, 2006 at 9:29 AM by Ben Nadel
I was looking at Dan G. Switzer, II 's post about parsing a URI when it got me thinking: Java has so much awesome stuff, what do they have for URLs. It turns out, there is a java.net.URL class that is all about parsing out URL information. I took it for a spin. First, I created a URL: <!--- Set the URL. ---> <cfset strUrl = ( "ht... read more »
Comments (0) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: September 28, 2006 at 9:00 AM by Ben Nadel
I just added the CFSetting custom tag as a snippet in the ColdFusion snippets section. ... read more »
Comments (0) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: September 28, 2006 at 8:42 AM by Ben Nadel
In ColdFusion, the CFSetting tag is not designed to have an open and a close tag. It is merely used to define page processing rules for the rest of the page, NOT just for a portion of the rest of the page. I just jumped on a project where someone was trying to this: <!--- Enable output only for this block. ---> <cfsetting enablecfoutp... read more »
Comments (0) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: September 27, 2006 at 3:07 PM by Ben Nadel
The other day, someone named Ben my post about converting DATETIME values in SQL to FLOATS and flooring them to get the date-only part of the date time. He then suggested that I just CAST directly to INT instead of FLOAT and then FLOOR. I was a little taken back by that - had I missed such an obvious method? After double checking the way casting... read more »
Comments (9) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: September 27, 2006 at 2:09 PM by Ben Nadel
I have posted the second bout of coding for Skin Spider . I have also posted the application . This application will be publicly available and will always contain the latest code posting. I have taken the Skin Spider site template and broken it out into a basic ColdFusion site structure for header and footer reuse. I have also created th... read more »
Comments (0) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: September 26, 2006 at 7:33 PM by Ben Nadel
Just an FYI, I have just added my small nested tags demo to my ColdFusion snippets directory. One other note. I built it in, but didn't demo it. The Item.cfm custom tag can tag data either in the value attribute or as generated content. Therefore, the following tags would all produce the same content: <!--- Add item. ---> <cf_ite... read more »
Comments (0) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: September 26, 2006 at 7:07 PM by Ben Nadel
I am posting this here to help someone on the House of Fusion CF-Talk mailing list . This demonstrates a really simple nesting custom tag example. In this demo, there are two custom tags: list.cfm and item.cfm. The item.cfm tags go in the list.cfm to create either a horizontal or vertical layout: <!--- Our parent list tag. ---> <cf_l... read more »
Comments (4) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: September 26, 2006 at 6:05 PM by Ben Nadel
As I start my first phase of Skin Spider , the iterative demo for ColdFusion application development, I am going to be using what I think Hal Helms refers to as the "No Framework" framework. I will be hacking together parts of strategies that I have used before with no real amount of super planning. Hopefully, this should lead to issues, poor cod... read more »
Comments (2) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: September 26, 2006 at 8:13 AM by Ben Nadel
The ColdFusion query object is such a cool part of ColdFusion. And, I'm not just talking about getting data from a database. I'm talking about building queries from scratch and maintaining them programmaticly. The only small rub I can see in the situation is the fact that the data types used when creating a query are different from the ones used t... read more »
Comments (0) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: September 25, 2006 at 11:04 PM by Ben Nadel
I trying to access something in Windows Explorer today when it froze up. The computer didn't freeze, just Windows Explorer. So, naturally, I force quit it. Unfortunately, when you force quit Windows Explorer, it basically kills the entire windows interface. No task bar. No quick launch. No Start button. The Windows key becomes useless. It's like y... read more »
Comments (7) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: September 25, 2006 at 4:01 PM by Ben Nadel
I have been working fairly hard over the years to learn ColdFusion programming as best I can. I have made tremendous strides that I am happy with. I have not, however, been able to tackle the world of frameworks and object oriented programming. This is frustrating to me. I am not saying that I want to program that way. I am saying that I want to h... read more »
Comments (0) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink
Posted: September 25, 2006 at 12:04 PM by Ben Nadel
I was working on an XML database this weekend and was stuck for a bit on an error getting thrown during an XmlParse() call. The error was: Content is not allowed in prolog. The original code was trying to take an XML document object, convert it into a string and then parse it into a ColdFusion query object (for testing). That's where the XmlPars... read more »
Comments (9) | Post Comment | Ask Ben | Live Chat (Beta) | Permalink