Return of the Friday Puzzler: Build a Regex Tester

Posted At : November 17, 2006 6:24 AM | Posted By : Raymond Camden
Related Categories: ColdFusion
A few days ago I talked about how I normally did quick regex tests: I would write up some code in a CFM page and run it in my browser. Obviously a dedicated tool is better and more efficient. But pretend for a moment that you didn't have such a tool. Or perhaps you are not at your own machine and just want to quickly test something.

Today's challenge is really trivial. Simply build a form that lets you input a string and a regex. Than show the results of ColdFusion using that regex on the string. In theory that should take you about two through three minutes, but consider adding some polish. For example - maybe Spry could be used to generate the results? I can think of a few other ideas as well to make the results pretty.

Enjoy. For those of you new to my little puzzlers (sorry it has been so long), do not remember the rules: Don't take more than five or ten minutes to finish the code. There is no prize - just the fun of coding. That's it!

Comments (3) | Print | Send | del.icio.us | Linking Blogs | Views: 166

spacer

Sitemap Generator

Posted At : November 16, 2006 9:38 PM | Posted By : Raymond Camden
Related Categories: ColdFusion
Earlier today Yahoo and Google announced their collaboration on Sitemaps.org. Sitemaps provide a way to describe to a search engine what pages make up your web site. I've had sitemap support in BlogCFC for a while, but today I wrote a little UDF you can use to generate sitemap xml. It will take either a list of URLs or a query of URLs. Enjoy. I'll post it to CFLib later in the week.

[More]

Comments (0) | Print | Send | del.icio.us | Linking Blogs | Views: 415

Spry Presentation Recording

Posted At : November 16, 2006 7:56 PM | Posted By : Raymond Camden
Related Categories: ColdFusion, AJAX
For those of you who missed my Spry presentation, you can watch the recording here:

admin.adobe.acrobat.com/_a200985228/p30615407/

The files from the presentation are attached to this blog entry.

Comments (1) | Print | Send | Download | del.icio.us | Linking Blogs | Views: 249

Vertigo - Not your average comic

Posted At : November 15, 2006 9:29 PM | Posted By : Raymond Camden
Related Categories: Misc
This was already reported by acidlabs, but it deserves repeating. Vertigo, the "edgy" part side of DC, is releasing PDFs of some of its most classic comics, including Sandman (a work of art), Hellblazer, and Preacher. Unfortunately they aren't in the handy CBR format, but are still quite readable in PDF form.

I read comics off and on growing up - but Sandman really hooked me. I didn't even know comics like that existed at the time and for a while I read quite a bit of the Vertigo line. I stopped buying comics a few years after college, but am now getting back into it, specifically Marvel's Ultimates line.

Comments (3) | Print | Send | del.icio.us | Linking Blogs | Views: 320

Flex Search Engine

Posted At : November 15, 2006 4:39 PM | Posted By : Raymond Camden
Related Categories: Flex, ColdFusion
Ted Patrick, Flex Evangelist, released the first alpha of his Flex Search Engine. What does it search? Flex content of course. Specifically:

The current engine contains the collective history of Flexcoders, FlexComponents, Flex Developer Center articles, Flex documentation, AS3 documentation, and soon blogs from the flex community.

The Flex app was written in about thirty minutes, which seems just about right. The back end is all ColdFusion, using MySQL and it's full text search engine.

Just another darn good example of Flex and ColdFusion!

Comments (0) | Print | Send | del.icio.us | Linking Blogs | Views: 520

Spry Photo Gallery Demo

Posted At : November 15, 2006 11:12 AM | Posted By : Raymond Camden
Related Categories: AJAX
Don Booth of the Spry team created a darn cool Spry demo. It is a simple photo gallery but it really comes off nicely.

www.dbooth.net/photos/index.htm#

I'm not a big fan of effects but they really work well here. Be sure to view source. There isn't a lot of code behind this application. This may get "innovated" into the BlogCFC Slideshow feature.

Comments (1) | Print | Send | del.icio.us | Linking Blogs | Views: 635

Presenting on Spry tomorrow (the world is invited)

Posted At : November 14, 2006 9:10 PM | Posted By : Raymond Camden
Related Categories: ColdFusion, AJAX
So Jeff let me know that the Breeze room for his user group will support the general public, so if you want to see me present on Spry (and ColdFusion), come by tomorrow night at 5PM Central. The URL is:

adobechats.adobe.acrobat.com/ctcfug200611/

And again - it is tomorrow (Wednesday) at 5PM Central. For those who can't make it - it will be recorded and my files will be available.

Comments (4) | Print | Send | del.icio.us | Linking Blogs | Views: 458

SQL Server Profiler

Posted At : November 14, 2006 1:13 PM | Posted By : Raymond Camden
Related Categories: Development
Ok - I'm probably the last one on the planet to know this - but just in case I'm not - I thought I'd share.

I've been trying to debug an issue with a .Net application. I don't have access to the source code, and the application was throwing an error with a SQL statement.

I needed some way to see what SQL was being executed so I could see if there was a way to fix it on the data side. Turns out you can use SQL Server Profiler to monitor SQL calls being run against the database. I ran this - watched as the SQL came in, and was able to find the problem in a few minutes.

Again - I'm probably the last one to discover this. I wonder if MySQL has anything like this?

Comments (16) | Print | Send | del.icio.us | Linking Blogs | Views: 541

Quick and dirty CAPTCHA Guide

Posted At : November 14, 2006 8:39 AM | Posted By : Raymond Camden
Related Categories: ColdFusion
A reader recently sent me a note saying he was trying to add CAPTCHA to his site. He had been trying to see how I used it in BlogCFC, and was just confused by what he saw. I thought I'd write a quick and simple guide for getting CAPTCHA on a form.

[More]

Comments (5) | Print | Send | Download | del.icio.us | Linking Blogs | Views: 478

Adding your own links in the ColdFusion Administrator

Posted At : November 13, 2006 5:31 PM | Posted By : Raymond Camden
Related Categories: ColdFusion
I've mentioned this in a few blog entries before but haven't covered it by itself. Did you know that you add your own links in the ColdFusion Administrator? Create a new file in your CFIDE/Administrator folder with the name extensionscustom.cfm. (Note that it is extensions, not extension.) Inside this file add yours links and follow these rules:

  • Use the CSS class leftMenuLinkText
  • Use the target, _content.

I use this to link to custom tools like SpoolMail. A more simpler example could be for shortcuts. Is there a log file you often check? Copy the link from the Log Files page and then add it to your file, like so:

In this example, I've added a link to my RIAForge Log file. This doesn't really save me a lot of clicks, but you get the idea.

Comments (2) | Print | Send | del.icio.us | Linking Blogs | Views: 435

More Entries

gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.