Re: OT 404 Redirect

2006-04-08 Thread Rob Wilkerson
This is all true, but it sounds like the real problem is 404 detection. The redirection is required if, and only if, the requested page isn't found. That means detecting the 404 header and specifying a custom error handler page. AFIK, that can only be done via the CF Administrator or IIS. I

Re: How to format the print view like a phone book?

2006-04-07 Thread Rob Wilkerson
Quick pseudo-code that I've used in the past: Find the column split point -- ceiling ( recordcount/2 ) Loop Output item n in col 1 If item n+split point exists Output item n + split point in col 2 End if End loop You may have to tweak slightly, but that should give you 2

Re: Creating Random HEX values

2006-04-06 Thread Rob Wilkerson
Looking at this, though, I don't see any indication that randomness is guaranteed which might become a problem if these values are being used for IDs. Ken, is there any reason you can't just use a UUID? On 4/6/06, Andy Matthews [EMAIL PROTECTED] wrote: I have a function that I wrote for this

Re: How to create a Java Class for CF?

2006-04-06 Thread Rob Wilkerson
Are you literally trying to create a new file named user.class? If so, that's your first problem. You need to create user.jar and compile it to produce user.class. It sounds like you're pretty new to Java development, so it might be worthwhile to spend some time reading and learning first.

Re: How to create a Java Class for CF?

2006-04-06 Thread Rob Wilkerson
LOL. Yes it should. Thanks, James. On 4/6/06, James Holmes [EMAIL PROTECTED] wrote: That should be user.java not user.jar. On 4/6/06, Rob Wilkerson [EMAIL PROTECTED] wrote: Are you literally trying to create a new file named user.class? If so, that's your first problem. You need

Re: Creating Random HEX values

2006-04-06 Thread Rob Wilkerson
What a cool project. On 4/6/06, Ken Fused [EMAIL PROTECTED] wrote: Thank you Andy this works great. Thank you. I removed the 0 and now I get random 6 digit hex values that do not contain Zeros. As the numbers are generated I'll check them against the values that exist in the DB before

Re: Multithreading within a request

2006-04-06 Thread Rob Wilkerson
I've done this using Java. Started doing it in 6.0 and have continued using the same code through 7.0x because gateways require CF Enterprise and not all of my customers run enterprise. I don't have the code handy, but take a look at the java.util.URLConnection class. There are obviously some

Re: Error Translation Request...

2006-04-06 Thread Rob Wilkerson
I get this a lot when I initialize a variables as, say, an empty string, but later intend to populate it with a structure. Bad form, in my opinion, but I'm human and it happens. When I do that and something happens that the structure never gets assigned to the variable then I get the message

Re: How can I tell what version of CF a particular site is running?

2006-04-05 Thread Rob Wilkerson
#server.coldFusion.productVersion# should give you what you're looking for... On 4/5/06, Les Mizzell [EMAIL PROTECTED] wrote: How can I tell what version of CF a particular site is running? I've only ftp access to the site files, but not the server.

Re: cfencode question

2006-04-05 Thread Rob Wilkerson
I'll add this semi-related note: I believe there's a /h switch that says it's supposed to supply a header. I've tried using that to change the value you're trying to remove, but had no luck.I didn't care enough to pursue that option vigorously, though, so maybe that can be of some help if

Re: help with list values in db

2006-04-05 Thread Rob Wilkerson
Yes, there is a reason. Your version would retrieve any value that contained a 5 without respect to the list delimiters. Since, with SQL, there's no good way to parse/evaluate a list this is the only option that will properly limit the results. I don't think anyone would argue that it's

Re: cfheader breaks my xml

2006-04-05 Thread Rob Wilkerson
Hey Andy - I just spent the better part of the day (I'm embarrassed to admit) debugging a problem I was having with one of my XML AJaX requests that used the code I included in this thread. Although I looked at every other piece of code before I got there, it ended up being an omission in this

Re: Sending plain text emails

2006-04-04 Thread Rob Wilkerson
I've had trouble in the past with line breaks not rendering properly - most notably when there was a variable at the end of the line. In those cases I've had to manually insert #chr(13)##chr(10)#. On 4/4/06, Will Tomlinson [EMAIL PROTECTED] wrote: I'm trying to send plain text emails filled

Re: Locked out of admin

2006-04-04 Thread Rob Wilkerson
See if this helps: http://www.coldfusioncookbook.com/entry/68/How-do-I-reset-the-ColdFusion-Administrator-password? On 4/4/06, Bud [EMAIL PROTECTED] wrote: Hi. I disabled cfcontent on my developer copy of MX 6.1. Now I'm locked out of admin. Is there an unsecuredtags directory setting? I've

Re: Creating double confirm

2006-04-03 Thread Rob Wilkerson
I assume this is the RFC to which Jochem was referring. http://www.faqs.org/rfcs/rfc3098.html On 4/3/06, Ken [EMAIL PROTECTED] wrote: Hi Jochem. Can you tell me more about the RFC 3098, and how I will be not meeting the standard? Thanks, Ken On 4/3/06, Jochem van Dieten [EMAIL PROTECTED]

Re: Strange, intermittent, CFMX 7 update problem.

2006-04-03 Thread Rob Wilkerson
I'd see whether you're saving class files and/or your trusted cache is turned on. That would be my first thought. Both are available on the Settings tab of the CF Administrator, I believe. On 4/3/06, Ian Skinner [EMAIL PROTECTED] wrote: Can anybody provide a run down of issues I should look at

Re: Strange, intermittent, CFMX 7 update problem.

2006-04-03 Thread Rob Wilkerson
What isn't changing? Is there any specific content that isn't changing as expected? For example, is it just images, is it simple text updates, etc. On 4/3/06, Ian Skinner [EMAIL PROTECTED] wrote: I'd see whether you're saving class files and/or your trusted cache is turned on. That would be

Re: LAMP package

2006-03-31 Thread Rob Wilkerson
I think the convenience was really the point. Certainly, installing each necessary package would work just fine. I think Andy was just looking for options/opinions/etc. On 3/31/06, Ken Ferguson [EMAIL PROTECTED] wrote: I may be missing something here, but why do you need a package??? What's

Re: LAMP package

2006-03-31 Thread Rob Wilkerson
While I agree that easy is (almost always) better, doing this manually isn't all that difficult. If you're looking for an all-in-one solution, though, the XAMPP package I mentioned in an earlier post is the only one I've ever heard of. On 3/31/06, Andy Matthews [EMAIL PROTECTED] wrote: So

Re: HTML 101-its friday

2006-03-31 Thread Rob Wilkerson
#anchorName Or, in a CF page, ##anchorName should do it. On 3/31/06, Eric J. Hoffman [EMAIL PROTECTED] wrote: Have some dynamic links: a href=index_lab.cfm?ppid=#lpid#id=#url.id#gr=#url.gr#la=#url.la# class=lablinkblue Want it to go to the section of the page by using the old a

Re: HTML 101-its friday

2006-03-31 Thread Rob Wilkerson
Oh, and I believe you need to add the anchor at the end of the path, not the query string. :-) a href=index_lab.cfm##woohoo?ppid=#lpid#id=#url.id#gr=#url.gr#la=#url.la###woohoo class=lablinkblue On 3/31/06, Ray Champagne [EMAIL PROTECTED] wrote: I think you just need to add an anchor to the

Re: Change dynamic dropdown into radio buttons

2006-03-31 Thread Rob Wilkerson
Two questions: 1. How is it not working? Error, unexpected results, etc.? 2. What value is returned by inputChecked()? On 3/31/06, John Oast [EMAIL PROTECTED] wrote: I want to change a dynamically driven dropdown, with a pre-selected choice, to a dynamically driven radio button group, also

XMLTransform() Question

2006-03-30 Thread Rob Wilkerson
? I can't seem to find anything that definitively states the XSLT version(s) supported by XMLTransform(). I have it working the [more] painful way, but curiosity leads me to ask anyway. Thanks for any input. -- Rob Wilkerson

Re: cfheader breaks my xml

2006-03-30 Thread Rob Wilkerson
I'm not sure if this is relevant because I'm not sure how you're using your XML, but I use cfcontent instead of cfheader and it works great: cfcontent type=text/xml reset=Yes / cfoutput ...myXML... /cfoutput On 3/30/06, Andy Jarrett [EMAIL PROTECTED] wrote: Hi, I'm having some trouble

Re: CF REGEX deleting IMG tags from content

2006-03-30 Thread Rob Wilkerson
I wanted to mention another book yesterday, but didn't have it nearby to be sure I got it right. Regular Expression Recipes A Problem-Solution Approach is also a very good book for quickly referencing solutions to very specific problems. It focuses on PCRE regex rather than the POSIX regex that

Re: jvm.config corrupted by CFMX Admin

2006-03-30 Thread Rob Wilkerson
The problem, I've been told, is that some setting are hidden and others shown in the CF Admin and the parser that checks for the args to hide/show is expecting a particular order. What I've been told by Adobe folks is to completely avoid the problem by editing the jvm.config by hand and not

Re: cfheader breaks my xml

2006-03-30 Thread Rob Wilkerson
Cheers back. Judging by the sheer quantity of bangs, I assume that cfcontent worked for you. On 3/30/06, Andy Jarrett [EMAIL PROTECTED] wrote: cheers rob On 30/03/06, Rob Wilkerson [EMAIL PROTECTED] wrote: I'm not sure if this is relevant because I'm not sure how you're using your

Re: jvm.config corrupted by CFMX Admin

2006-03-30 Thread Rob Wilkerson
-Original Message- From: Rob Wilkerson [mailto:[EMAIL PROTECTED] Sent: Thursday, March 30, 2006 8:51 AM To: CF-Talk Subject: Re: jvm.config corrupted by CFMX Admin The problem, I've been told, is that some setting are hidden and others shown in the CF Admin and the parser that checks

Re: application installation thru war file in cf7

2006-03-30 Thread Rob Wilkerson
But, if i'm not mistaken, what's packaged inside that WAR file is compiled java bytecode so, unless someone has a de-compiler handy, the content is effectively unreadable. Only the structure may be visible. Isn't that the way the cfcompile utility was supposed to work? On 3/30/06, Douglas

Re: CF REGEX deleting IMG tags from content

2006-03-30 Thread Rob Wilkerson
Try this: 'img[^]+src=[^]*#URL.img#[^]*' Regex, at least for me, almost always involves a little bit of trial and error. On 3/30/06, Pete Ruckelshaus [EMAIL PROTECTED] wrote: Isaac, that didn't work for me. What I'm doing is if a user deletes an image from the image library, then I want to

Re: CF REGEX deleting IMG tags from content

2006-03-30 Thread Rob Wilkerson
: CF5 was POSIX only. CF6+ is ... not quite PCRE, but pretty close. --Ben Rob Wilkerson wrote: I wanted to mention another book yesterday, but didn't have it nearby to be sure I got it right. Regular Expression Recipes A Problem-Solution Approach is also a very good book for quickly

Re: CF REGEX deleting IMG tags from content

2006-03-30 Thread Rob Wilkerson
is look behinds. However, you can generally accomplish the same thing by reversing your search and doing a look ahead. -Original Message- From: Rob Wilkerson [mailto:[EMAIL PROTECTED] Sent: Thursday, March 30, 2006 11:31 AM Quite right. MX is much closer to PCRE than earlier

Re: CF REGEX deleting IMG tags from content

2006-03-30 Thread Rob Wilkerson
: It's true. With regex in general, you really have to stretch your mind, and I often tie my brain in knots trying to get something working. :) -Original Message- From: Rob Wilkerson [mailto:[EMAIL PROTECTED] Sent: Thursday, March 30, 2006 12:11 PM That's correct. I needed

Re: CF REGEX deleting IMG tags from content

2006-03-30 Thread Rob Wilkerson
Close enough, I think. At least for most needs. I've never felt any real frustration over a lack of support. It's mostly the syntax that I have to keep in mind - even for those few changes (e.g. backreferences - $1 vs. \1). Just have to remember where I'm doing the trial and map it correctly

Re: LAMP package

2006-03-30 Thread Rob Wilkerson
You might want to take a look at http://www.apachefriends.org/en/xampp.html. I haven't tried it (yet), but I've read several positive reviews. I couldn't find them all on short notice, but I did find one... http://www.linuxjournal.com/article/8088 If you do try it, please post your experience.

Re: CFWDDX and Component Objects

2006-03-30 Thread Rob Wilkerson
Nope. THIS refers to the object, but can be used to access public member variables from outside the object itself. Public member variables (i.e. variables initialized as this.variableName) can be modified outside of the object itself. On any CFM template, instantiate the object and then

Re: Pulling a random record from the DB

2006-03-29 Thread Rob Wilkerson
What DB? With SQL Server 2K, I think the following will work (untested - going straight from distant memory): SELECT TOP 1 myfield FROM mytable ORDER BY NEWID() On 3/29/06, Will Tomlinson [EMAIL PROTECTED] wrote: I need to pull a random record from an autonumber field. It's for a prize for

Re: Pulling a random record from the DB

2006-03-29 Thread Rob Wilkerson
Not so easy, then. Try Google-ing ms access random record and you'll get a lot of info about creating seeds, etc. You can go that direction or return all and select a random record using randRange ( 1, queryName.recordcount ). Again, that's from memory, so you might have to play with it a bit.

Re: Pulling a random record from the DB

2006-03-29 Thread Rob Wilkerson
I should mention that the latter option - returning everything just to use one - can have a big performance impact, so be careful with that one. On 3/29/06, Rob Wilkerson [EMAIL PROTECTED] wrote: Not so easy, then. Try Google-ing ms access random record and you'll get a lot of info about

Re: CF REGEX deleting IMG tags from content

2006-03-29 Thread Rob Wilkerson
The docs are actually pretty good. There is an entire section on using regular expressions, the syntax, examples, etc. http://livedocs.macromedia.com/coldfusion/7/htmldocs/0980.htm#1100400 If you're interested in regex beyond CF (PCRE, etc) there are a number of good books: Mastering

Re: CFMX7 Logs Using CFMX6 Logs!

2006-03-28 Thread Rob Wilkerson
In the MX 7 administrator, you can specify your logging directory. Look in the logging settings section, I believe. On 3/28/06, Sung Woo [EMAIL PROTECTED] wrote: After upgrading to CFMX7, I'm seeing something weird. I haven't uninstalled CFMX6.1 yet, but the service is turned off. In any

Re: Problem Installing New MX7 Instance

2006-03-26 Thread Rob Wilkerson
jvm.config file so I have to create the service manually. This shouldn't be a problem no matter which way I create the instance, but it's a little abnormal so I thought I'd put it out there. Thanks. On 3/26/06, Jochem van Dieten [EMAIL PROTECTED] wrote: Rob Wilkerson wrote: Has anyone ever had any

Re: Problem Installing New MX7 Instance

2006-03-26 Thread Rob Wilkerson
now and I just don't remember the details. Seems like I had to do some moving and copying of physical directory structures. I appreciate any additional guidance you can provide. On 3/26/06, Rob Wilkerson [EMAIL PROTECTED] wrote: I get the error on step 3 of the instance creation and, no, I

Re: Problem Installing New MX7 Instance

2006-03-26 Thread Rob Wilkerson
Okay. I figured that would be it, but before I screwed anything up I thought I'd verify. Once clarification, though...you mention without the CFML sources. Can you explain what you mean by that? On 3/26/06, Jochem van Dieten [EMAIL PROTECTED] wrote: Rob Wilkerson wrote: Again, thanks

Re: Problem Installing New MX7 Instance

2006-03-26 Thread Rob Wilkerson
I haven't added any cfm templates to the install directories so I guess I'm okay on that front. I'll copy the cfusion.ear file from one of my other instances and clear the cfclasses directory and see how that goes. Thanks again. On 3/26/06, Jochem van Dieten [EMAIL PROTECTED] wrote: Rob

Re: Problem Installing New MX7 Instance

2006-03-26 Thread Rob Wilkerson
forgot all about the old way. I really appreciate your help. On 3/26/06, Rob Wilkerson [EMAIL PROTECTED] wrote: I haven't added any cfm templates to the install directories so I guess I'm okay on that front. I'll copy the cfusion.ear file from one of my other instances and clear the cfclasses

Re: reg ex for url extraction..

2006-03-25 Thread Rob Wilkerson
'a.*?/a That should get you the outer HTML for the anchor tag. You probably won't run into this condition, but I'll layout this one caveat: This will not handle nested anchor tags. It will find the first /a after the opening tag. It should handle everything else all right. Like I said, you

Re: reg ex for url extraction..

2006-03-25 Thread Rob Wilkerson
Sorry, I provided an opening quote, but no closing quote. To clarify: REFindNoCase ( 'a.*?/a', variables.yourstring ) On 3/25/06, Rob Wilkerson [EMAIL PROTECTED] wrote: 'a.*?/a That should get you the outer HTML for the anchor tag. You probably won't run into this condition, but I'll

Re: CFIF and null values

2006-03-24 Thread Rob Wilkerson
I use len ( trim ( the_null_value ) ) often and it's never failed. Any chance the value returned is actually 'NULL'? Try dumping expr3, but wrap the output with some sort of delimiter so you can tell whether there's any space, maybe... On 3/24/06, Richard Colman [EMAIL PROTECTED] wrote: I have

Re: CFIF and null values

2006-03-24 Thread Rob Wilkerson
I've found that it's a good practice to trim any strings whose length is being tested - especially when testing for zero-length. You never know when a space is going to sneak in there and I find random spaces that I'm not expecting to be a very time consuming thing to debug because it's never the

Problem Installing New MX7 Instance

2006-03-24 Thread Rob Wilkerson
. -- Rob Wilkerson ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:236195 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http

Re: site mapping tool recommendations

2006-03-23 Thread Rob Wilkerson
Well, it's not what I think of as a site mapping tool (and it's certainly not free), but I've used a product called maximine that really does a nice job of spidering your site and reporting orphaned resources, duplicate resources and a LOT of other stuff. Sounds like it might be massive overkill

Re: cflocation and cfcontent

2006-03-23 Thread Rob Wilkerson
I've never tried it, but I would assume it's impossible in the same way it's impossible to display page content if there's a cflocation tag present. The cflocation occurs on the server side. Content delivery - in any form - takes place on the client side. On 3/23/06, Ray Champagne [EMAIL

Re: cflocation and cfcontent

2006-03-23 Thread Rob Wilkerson
come up with a workaround, not necessarily using both in the same template, maybe a popup, I dunno. I've tried to think of elaborate ways to do what I want, and I've come close, but no cigar. Rob Wilkerson wrote: I've never tried it, but I would assume it's impossible in the same way it's

Re: Regex on a big data

2006-03-23 Thread Rob Wilkerson
The problem doesn't appear to be your regex, but the size of your content. Maybe try simplifying your regex? I've used the following regex's to clear whitespace in XML files generated using cfxml: REReplace ( theXML, '[\n\r\t]', '', 'ALL' ) REReplace ( theXML, '\s+', ' ', 'ALL' ) The first

Re: cfhttp and tab-delimited

2006-03-23 Thread Rob Wilkerson
Ray's solution will work. Or, at least, it's worked for me in the past. cfhttp URL=http://...file.txt; name=myquery delimiter=#chr(9)# textqualifier= On 3/23/06, Ray Champagne [EMAIL PROTECTED] wrote: Have you tried using Chr(009) instead of the comma? Christophe Maso wrote: If I have a

Re: Regex on a big data

2006-03-23 Thread Rob Wilkerson
As much as I hate to condone the use of Perl :-), Jacob's right. If your regex works fine for smaller files, you're probably going to have to do some sort of pre-processing. You may not be able to do the work you're trying to do during delivery. On 3/23/06, Munson, Jacob [EMAIL PROTECTED]

Re: cfeclipse plugins

2006-03-22 Thread Rob Wilkerson
Like Barney, I now use MyEclipse, but have, in the past, used XMLBuddy (XML, of course), JSEclipse (JavaScript) and the Eclipse Web Tools Platform (CSS). All were reasonably solid - and free. On 3/21/06, dave [EMAIL PROTECTED] wrote: I know they are on here but search of archives is futile.

Re: [OT] Multi Users

2006-03-22 Thread Rob Wilkerson
I've been using MS Visual SourceSafe for years, but haven't been much of a fan. I've even tried the latest version and the improvements are few and far between - at least for the way I use it. I've heard good things about Subversion as well and will probably make the switch as soon as I get the

Re: text replace

2006-03-22 Thread Rob Wilkerson
If you're going to go that path, awk or sed is probably ideal. A bit more work on Windows since it will require the installation of Cygwin (or a similar tool, if there are others). And, if you do go that route, you get a thousand other very useful Unix tools to help in other areas. On 3/22/06,

Re: text replace

2006-03-22 Thread Rob Wilkerson
of the world. In other words, Perl programming covers a much larger breadth than awk, so if you learn Perl you can take that skill a lot more places. But awk /is/ very powerful. :) -Original Message- From: Rob Wilkerson Sent: Wednesday, March 22, 2006 10:48 AM If you're

Re: Suggestions on scrambling code

2006-03-22 Thread Rob Wilkerson
CF packages a source code encryption utility. I believe it's called cfencrypt.exe. I've long since moved mine from the default location so I can't tell you wehre to look. I'm also not entirely sure that it ships with later versions. On 3/22/06, Andy Matthews [EMAIL PROTECTED] wrote: Doesn't

<    1   2   3   4