Re: Handling In-Field Commas in CSV import?

2010-06-03 Thread Barney Boisvert
There is absolutely no reason to parse a CSV document manually; there are myriad tools for exactly this purpose. A quick Googling will turn up a pile of options. You may need to tweak them if your file is enormous and must be processed line-by-line, but even then you should be able to use an

Re: Query Results sent from search engines CGI variable?

2010-06-01 Thread Barney Boisvert
It'll be in the referrer, if present, which is sent by the browser. cgi.http_referer, split it up, check the domain to identify the search engine, and then check the query string to find the search query under the corresponding variable. cheers, barneyb On Tue, Jun 1, 2010 at 1:34 PM, UXB

Re: referencing #application.applicationname#

2010-05-31 Thread Barney Boisvert
?  Or is it not required because the application name does not change? -- Barney Boisvert bboisv...@gmail.com http://www.barneyb.co ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp

Re: Attributes scope in a cfc

2010-05-30 Thread Barney Boisvert
What attributes scope? If you mean the structure variables.attributes that is created from the form and url scopes by some front controller frameworks, then no, since it's just a struct (not a scope). In general, however, referencing the environment from within a CFC is a bad idea. In nearly

Re: referencing #application.applicationname#

2010-05-30 Thread Barney Boisvert
CFLOCK is only required to serialize access to prevent race conditions. For immutable state, no race conditions can arise, so locking is unneeded. Since application.applicationname is immutable, you don't need to lock access to it. In a more general sense, anything that is only accessed in a

Re: How to delete a post in House of fusion?

2010-05-27 Thread Barney Boisvert
On the flip side, if you contact Michael Dinowitz, he would be able to delete the post. Whether he would be willing to do that or not is a different question, but he's the man to talk to about at least removing it from HoF. But as has been pointed out, making it non-public is impossible, even

Re: Getting a list of MySQL database views

2010-05-26 Thread Barney Boisvert
http://dev.mysql.com/doc/refman/5.0/en/views-table.html On Wed, May 26, 2010 at 1:00 PM, Ray Meade raym...@yahoo.com wrote: I'm trying to create a custom export page for our member rep's. I'm using cfdbinfo to get a list of tables to pull the data from, but I also have a handful of views

Re: create cf-tags as code for a file

2010-05-20 Thread Barney Boisvert
This is the right way to do it, in general: cfsavecontent var=content #chr(60)#cfoutput li.../li #chr(60)#/cfoutput /cfsavecontent It's kind of ugly, however, and this will often work: cfsavecontent var=content [cfoutput li.../li [/cfoutput /cfsavecontent cfset content =

Re: HomePortals?

2010-05-18 Thread Barney Boisvert
The guy who built it happens to be sitting at the desk next to me. ;) It's not really a wiki, but it might serve the need. Canvas and Codex are both real CFML wiki packages, and they should run next to CommonSpot, I'd think. cheers, barneyb On Tue, May 18, 2010 at 9:44 AM, Sandra Clark

Re: Force SSL

2010-05-18 Thread Barney Boisvert
Make a HTTP host that simply redirects to the same domain-relative URI, except over HTTPS. Then every request will be either over SSL or forward to one that is. cheers, barneyb On Tue, May 18, 2010 at 10:00 AM, Donnie Carvajal donnie.carva...@transformyx.com wrote: Does anyone know of a way

Re: Convert to number

2010-05-13 Thread Barney Boisvert
That won't work, you'll get 100.00, not 10.00. Try REReplace(my_number, [^0-9.], , all). cheers, barneyb On Thu, May 13, 2010 at 10:34 AM, DURETTE, STEVEN J (ATTASIAIT) sd1...@att.com wrote: Robert, You shouldn't have to strip it in a perfect world, but the comma makes it a string

Re: Convert to number

2010-05-13 Thread Barney Boisvert
it be REReplace(my_number, [^0-9\.], , all)? I thought that . meant any single character in RegEx. Thanks, Steve -Original Message- From: Barney Boisvert [mailto:bboisv...@gmail.com] Sent: Thursday, May 13, 2010 1:38 PM To: cf-talk Subject: Re: Convert to number That won't work

Re: Loop through an array - with GROUPING?

2010-05-13 Thread Barney Boisvert
I'm not sure what you mean, but with a snip of Groovy you can group an array's items into a structure with a key for each group. Consider this array: cfset variables.people = [ { name = barney, age = 29 }, { name = kim, age = 30 }, { name = holly, age = 33 }, { name = emery, age = 4 }, {

Re: SQL Gurus... obtaining the correct Incremental ID

2010-04-28 Thread Barney Boisvert
that occur at roughly the same time obtain the proper incremental id from an Identity column? Is their a SQl equivalent to CF's cflock tag? Thanks, Che -- Barney Boisvert bboisv...@gmail.com http://www.barneyb.com/ ~| Want to reach

Re: sql method in cfcatch

2010-04-28 Thread Barney Boisvert
The error you're catching might not have those properties. For example, maybe it's a connection failure error. Or perhaps an expression error in a CFQUERYPARAM. Those keys will be present when appropriate, but they're not necessarily available all the time. As such, you have to do existence

Re: Not so simple date format question...

2010-04-27 Thread Barney Boisvert
s = 20100420; mid(s, 5, 2) / right(s, 2) / left(s, 4); cheers, barneyb On Tue, Apr 27, 2010 at 8:32 AM, Che Vilnonis ch...@asitv.com wrote: I'm working with an accounting database that stores order dates as a varchar (8) field. An example would be 20100420. Obviously, CF's dateformat

Re: CFEclipse and dynamic snippets

2010-04-13 Thread Barney Boisvert
Eclipse (via a plugin) supports JavaScript scripting of the IDE, so you can get some of this behaviour. It's not snippet-centric, which makes snippets harder, but lets you do anything you want (e.g., bulk edit files). I can't remember the name of the plugin off hand, but Google should turn it

Re: CFEclipse and dynamic snippets

2010-04-13 Thread Barney Boisvert
Sorry, I don't know. A quick Googling (http://www.google.com/search?q=scripting+eclipse) turned up a pair of projects: Eclipse Monkey: http://www.brain-bakery.com/projects/articles/eclipse-monkey-scripting/ Eclipse Shell: http://eclipse-shell.sourceforge.net/ The former is the one I was

Re: Easy application question

2010-04-12 Thread Barney Boisvert
Only a single Application.cfm file (note the capital 'A') will be run for a single request. CF will look up the directory tree until it finds one, but it will stop it's search at the first one encountered. If you want to chain Application.cfm files as you propose, simply use CFINCLUDE to grab

Re: Easy application question

2010-04-12 Thread Barney Boisvert
at 8:35 AM, Cutter (ColdFusion) cold.fus...@cutterscrossing.com wrote: Barney, Not to pick a fight, but what problems do you see with using Application.cfc? I, personally, find it to be a much better solution, so I am curious about your misgivings... Steve Cutter Blades -- Barney Boisvert

Re: Eclipse search question

2010-04-10 Thread Barney Boisvert
Hit CTRL-H, and then pick your search scope/context near the bottom of the dialog (project, workspace, selected files/folders). You can also use the Search menu to do it. cheers, barneyb On Sat, Apr 10, 2010 at 8:36 PM, fun and learning funandlrnn...@gmail.com wrote: Hi, Is there a way in

Re: CFDocs

2010-04-08 Thread Barney Boisvert
Eric, you can use the function category dropdown if you want to filter that way instead of enter the text it starts with. cheers, barneyb On Thu, Apr 8, 2010 at 8:01 AM, Eric Cobb cft...@ecartech.com wrote: I like http://coldfusiondocs.com/app/, it has both ACF and Railo (although CF 9 stuff

Re: CFDocs

2010-04-07 Thread Barney Boisvert
cfquickdocs.com is a similar concept and it has modern docs. I'd imagine cfdocs.org was probably abandoned if it's that old, quite likely because cfquickdocs is around now. cheers, barneyb On Wed, Apr 7, 2010 at 9:31 AM, Dave Sueltenfuss dsueltenf...@gmail.com wrote: Does anyone know if the

Re: Is ColdFusion request speed based on CPU clock speed alone?

2010-04-07 Thread Barney Boisvert
anyone know why requests run on the older generation xeon 5160 would be 20% faster than the current generation 5540?  Is the speed of a ColdFusion app purely based on clock speed in anyone elses experience? Thx, John -- Barney Boisvert bboisv...@gmail.com http://www.barneyb

Re: Is ColdFusion request speed based on CPU clock speed alone?

2010-04-07 Thread Barney Boisvert
The instruction width doesn't change the number of instructions you can run at any given time. Certain operations can be done more efficiently (for example, adding small numbers can be done in-instruction, rather than having to load stuff into registers first), but in general it's not going to

Re: java.lang.String as a structure with members

2010-04-05 Thread Barney Boisvert
cfset t1 = #Trim(t1.Team)# you're setting t1 equal to a string, so it's no longer a recordset. cheers, barneyb On Mon, Apr 5, 2010 at 12:33 PM, Rick Sanders c...@webenergy.ca wrote: I've done this a dozen times before, and now the following code gives me this error: You have attempted to

Re: Best way to return generated html from cfc

2010-04-05 Thread Barney Boisvert
that will generate some html to be displayed inline.  I was just going to reuturn a string rather than have it output directly.  Is this the proper way to do that? How do I save generated html from cf code into a variable to be returned as a string? Thanks. -- Barney Boisvert bboisv

Re: Custom search engine

2010-03-26 Thread Barney Boisvert
MySQL has decent (not stellar, not terrible) FULLTEXT indexing capabilities. It's not going to give you web indexing, just database indexing, but that might be sufficient if the content to search is simple and stored the right way. If you wanted to go really low tech, you could use wget to

Re: CFThread limitations with CF9 Standard vs Enterprise

2010-03-25 Thread Barney Boisvert
I'm pretty sure in CF8 the limitation is 1 on standard, not 10. The default max concurrent threads setting in the CF Administrator is 10, but that's irrelevant on standard, since it's hard-capped at 1. cheers, barneyb On Thu, Mar 25, 2010 at 10:43 AM, Judah McAuley ju...@wiredotter.com wrote:

Re: Repeating Data - Unsure of my use of cfquery

2010-03-15 Thread Barney Boisvert
Your second query is the problem, both the repeating data and the slowness. You have a full outer join of five tables, which is not what you want. You need inner joins. Here is a simple reference that might help you on your way: http://www.sql-tutorial.net/SQL-JOIN.asp Has a million

Re: listgetat problem...

2010-03-15 Thread Barney Boisvert
The CSV format is not a comma-delimited list per line. It's richer than that. So you can't just use the list functions on it, you need an actual CSV parser. One isn't hard to write (and there are several valid approaches), but the easiest course of action is to just grab one that is already

Re: how to maintain source code

2010-03-14 Thread Barney Boisvert
Version control software. Always use it. If the company doesn't want to use it, that's their [idiotic] prerogative, but there is no reason you can't with a local server. Subversion is trivially easy to set up a repository whatever your OS (download and install free binaries). The cool kids

Re: replacement for ionic rewriter on 64 bit

2010-03-14 Thread Barney Boisvert
How does running IIS in 32-bit mode affect your CF? Just run a 32-bit IIS and have it front your 64-bit CF, right? Or were you going 64-bit specifically for IIS? Or even better, drop IIS for Apache. :) Where we still have Windows at work, we use Apache exclusively. It works like a champ.

Re: Need Ajax Combobox

2010-03-12 Thread Barney Boisvert
jQueryUI has a pretty nice autocomplete widget that I use for most stuff: http://jqueryui.com/demos/autocomplete/ I wrote this combobox 5-6 years ago (because there weren't any freely available implementations that didn't suck) and though it predates both jQuery and Prototype, still use it when

Re: using name of query in QofQ form custom tag

2010-03-12 Thread Barney Boisvert
=testquery customtag: cfquery dbtype=query name=#attributes.query# select * from #attributes.query# /cfquery Obviously the name=#attributes.query# does not work. Any ideas? -- Barney Boisvert bboisv...@gmail.com http://www.barneyb.com

Re: Two CFQUERY statements?

2010-03-11 Thread Barney Boisvert
You can happily query multiple databases within the same request; what you can't do is query multiple databases within a single transaction. So as long as your CFQUERY tags don't share a CFTRANSACTION block you should be fine. Can you post the actual error message? cheers, barneyb On Thu, Mar

Re: Pretty XML

2010-03-10 Thread Barney Boisvert
I've updated the UDF on my blog to deal with the closing-tag-on-same-line issue, as well as submitted it to cflib.org. cheers, banreyb On Sat, Mar 6, 2010 at 3:13 PM, Scott McAllister stmcallis...@gmail.com wrote: Got it! Thanks to all that replied and helped! Barney, I used your UDF and it

Re: choosing a methodology

2010-03-10 Thread Barney Boisvert
If you like procedural, fb3lite is a extra-super-lightweight combination of FB3 and FB5 that I built a few years ago. http://www.barneyb.com/barneyblog/projects/fb3lite/ The framework is a whopping 72 lines long, but I use it for pretty much everything I do, and after I used it for a couple

Re: Stack overflow in self nested custom tag

2010-03-08 Thread Barney Boisvert
I haven't tested this, but I'd imagine that the CURRENT tag is on the tag stack (as it is with exceptions). Since getBaseTagData operates on names rather than offsets/indexes, it's going to match the current tag, and then return it's own data. So lvData is pointing at one of it's own scopes,

Re: Pretty XML

2010-03-05 Thread Barney Boisvert
I wrote this little UDF a couple years back to pretty-print XML. http://www.barneyb.com/barneyblog/2008/05/01/indentxml-cf-udf/ cfoutput pre#htmlEditFormat(indentXml(xmlStringToFormat))#pre /cfoutput On Fri, Mar 5, 2010 at 10:20 PM, Brad Wood b...@bradwood.com wrote:

Re: sql on Linux

2010-03-03 Thread Barney Boisvert
From the error message, it appears that your login attempt is failing. Did you double check your username/password in the DSN settings? cheers, barneyb On Wed, Mar 3, 2010 at 8:30 AM, Orlini, Robert rorl...@hwwilson.com wrote: I'm running CF7 on Linux and it won't connect to the datasources.

Re: chain variable setting

2010-03-01 Thread Barney Boisvert
other languages but I've never seen it in CF. Anyone know when it was added? Please make me look like a fool for missing it. :) -- Michael Dinowitz -- Barney Boisvert bboisv...@gmail.com http://www.barneyb.com/ ~| Want

Re: Time to patch the servers ...

2010-02-18 Thread Barney Boisvert
You can remove the servlet mappings from web-xml. I suppose that's technically editing configuration files manually, but everyone already does that for RDS, so it's not that foreign. cheers, barneyb On Thu, Feb 18, 2010 at 1:50 PM, Dave Watts dwa...@figleaf.com wrote: Ok, cool.  Thanks.  I

Re: Total Two Field From Two Tables

2010-02-15 Thread Barney Boisvert
Just add: (select count(*) from articles where zipcode = fddirectory.fdd_zip) as articleCount to the end of your SELECT clause: SELECT fddirectory.fdd_id, fddirectory.fdd_name, fddirectory.fdd_zip, fddirectory.fdd_state, states.abrev , (select count(*) from articles where zipcode =

Re: Total Two Field From Two Tables

2010-02-15 Thread Barney Boisvert
What version of MySQL are you using? If it's a really old one that doesn't support subqueries, check out the MySQL docs. They have a section about rewriting subqueries into JOINs. cheers, barneyb On Mon, Feb 15, 2010 at 9:16 AM, Barry Mcconaghey bmcconag...@gmail.com wrote: Thanks Barney B.

Re: Total Two Field From Two Tables

2010-02-15 Thread Barney Boisvert
You just need a JOIN and GROUP BY clause. Check out the subquery-to-join docs on MySQL's site. They have examples of how to do exactly what you want. cheers, barneyb On Mon, Feb 15, 2010 at 11:19 AM, Barry Mcconaghey bmcconag...@gmail.com wrote: I'm using MySQL 4.0.20. Is there any other

Re: how do I create a new file with cffile?

2010-02-11 Thread Barney Boisvert
Either the containing directory doesn't exist, or you (meaning the CF server) doesn't have sufficient privileges to create a new file in that location (because of filesystem ACLs). Java doesn't delineate between the two for security reasons, much like web apps return 404 for existing resources

Re: IDE for coldfusion 9

2010-02-09 Thread Barney Boisvert
You have to specify which version of CF you're using on your project, and if you upgraded, you'll still be set on CF8. Not sure what the default is, but it could well be CF8 as well, since CF9 is still lower adoption. cheers, barneyb On Tue, Feb 9, 2010 at 11:50 AM, Qing Xia

Re: IDE for coldfusion 9

2010-02-09 Thread Barney Boisvert
upgraded, you'll still be set on CF8.  Not sure what the default is, but it could well be CF8 as well, since CF9 is still lower adoption. Oh yeah, you are right Barney. My dictionary view is set to CF8. Trying to figure out how to update it to CF9 now... -- Barney Boisvert bboisv

Re: mod_rewrite issue on fusebox 5

2010-01-23 Thread Barney Boisvert
You need a slash at the front of your rule (and you DO need to escape both the question mark and period): RewriteRule ^/index.cfm\?fuseaction=test\.test$ bob.html cheers, barneyb On Sat, Jan 23, 2010 at 12:23 PM, Matthew Gersting mgerst...@gmail.com wrote: Hey gang, Having an issue I was

Re: ORM question

2010-01-18 Thread Barney Boisvert
. cheers, barneyb On Mon, Jan 18, 2010 at 10:22 AM, Victor Moore victor.mo...@gmail.com wrote: I think I will stick with one load per call and probably will end up saving it in the application scope so it's available in other places as needed. Thank you Victor -- Barney Boisvert bboisv

Re: Difference between 3 tier architecture and MVC pattern

2010-01-18 Thread Barney Boisvert
with separation of layers? Thanks. -- Barney Boisvert bboisv...@gmail.com http://www.barneyb.com/ ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists

Re: ORM question

2010-01-17 Thread Barney Boisvert
and test it. Thanks Victor On Sat, Jan 16, 2010 at 11:58 PM, Barney Boisvert bboisv...@gmail.com wrote: The short answer is no. The long answer is that yeah, you can do a whole bunch of hacking around to make it work like that (or at least APPEAR to work like that), but it's a mess.  I

Re: ORM question

2010-01-17 Thread Barney Boisvert
-performance-tuning-lazy-loading/, if you use lazy=proxy, you would only load the objects you use. So if you only displayed the first three, then only the first three would be loaded. On Sun, Jan 17, 2010 at 7:13 PM, Barney Boisvert bboisv...@gmail.com wrote: If you subCategories collections

Re: ORM question

2010-01-17 Thread Barney Boisvert
and more, so don't do that. :) Sorry for how run-on that is. Hard to do editing on the phone, so I just kind of streamed it out. cheers, barneyb -- Barney Boisvert bboisv...@gmail.com http://www.barneyb.com/ On Jan 17, 2010, at 9:52 PM, Raymond Camden rcam...@gmail.com wrote: I'm confused

Re: ORM question

2010-01-16 Thread Barney Boisvert
The short answer is no. The long answer is that yeah, you can do a whole bunch of hacking around to make it work like that (or at least APPEAR to work like that), but it's a mess. I can't think of a case when you wouldn't be better off a) just constraining the loop over the subcategories when

Re: form.FieldNames

2010-01-07 Thread Barney Boisvert
I would expect the order to be the same as the order that the fields are submitted to the server (which, in turn, should be the same as the DOM order of the form elements), but if I wouldn't rely on that behaviour. If you need them in a specific order, best to order them yourself on the server.

Re: How to query encrypted password

2010-01-05 Thread Barney Boisvert
What you need to do is take the input password and encrypt it in the same way that the database password was originally encrypted. Then do a string compare on the two of them. Typically when you store passwords you don't encrypt them, you hash them. Encryption is symmetric; encrypted things

Re: Loading an CSV

2009-12-22 Thread Barney Boisvert
. For example take this line: 1,barney,boisvert, \crazy man\, barney,1234 Main Street, Apt 5 When you listToArray it, you'll get this: [ '1', 'barney', 'boisvert', ' \crazy man\', ' barney', '1234 Main Street', ' Apt 5' ] Note the position of the double quotes in the items. What you need

Re: Loading an CSV

2009-12-22 Thread Barney Boisvert
, 2009 at 9:21 AM, Phillip Vector vec...@mostdeadlygame.com wrote: On Tue, Dec 22, 2009 at 9:09 AM, Barney Boisvert bboisv...@gmail.com wrote: Use a CSV parsing library, rather than rolling your own.  They take care of all that stuff for you.  I've used http://ostermiller.org/utils/CSV.html

Re: ColdFusion could not delete the file

2009-12-07 Thread Barney Boisvert
If you just want to silently ignore, wrap with CFTRY..CFCATCH and nothing in the CFCATCH. Typically windows has this problem if another process has the file open for some reason (or just hasn't cleaned up it's handles). cheers, barneyb On Mon, Dec 7, 2009 at 7:37 AM, Stefan Richter

Re: ColdFusion could not delete the file

2009-12-07 Thread Barney Boisvert
to force delete it somehow - any process that is still hanging onto it would likely be CF or the webserver. On the other hand, how can I find out what's holding onto it? I know how to do this on OSX... Cheers Stefan On 7 Dec 2009, at 15:40, Barney Boisvert wrote: If you just want

Re: cflocation tag

2009-12-04 Thread Barney Boisvert
Do you have CFFLUSH above the CFLOCATION tag anywhere (like another template or Application.cfm)? Once you flush the page, you can no longer do a CFLOCATION (or CFHEADER, CFCONTENT, etc.). cheers, barneyb On Fri, Dec 4, 2009 at 11:27 AM, Mike Stromme gtrplayer5...@gmail.com wrote: Anyone

Re: Date Compare Help

2009-11-29 Thread Barney Boisvert
Just change that EQ to LT and you'll be set. On Sunday, November 29, 2009, m...@markleder.com m...@markleder.com m...@markleder.com wrote: Hi all, Trying to do a date compare on a file datelastmodified (retrieved through CFDirectory). If the file datelastmodified is older than 1 hour

Re: Round to the nearest .5 value

2009-11-25 Thread Barney Boisvert
Assuming 'n' is your number, use #round(n * 2) / 2# For example: 3.21 * 2 == 6.42 round(6.42) == 6 6 / 2 == 3 3.31 * 2 = 6.62 round(6.62) == 7 7 / 2 == 3.35 cheers, barneyb On Wed, Nov 25, 2009 at 11:13 AM, Che Vilnonis ch...@asitv.com wrote: I'm trying to create a ratings system that

Re: Round to the nearest .5 value

2009-11-25 Thread Barney Boisvert
, Nov 25, 2009 at 11:32 AM, Ian Skinner h...@ilsweb.com wrote: Barney Boisvert wrote: 7 / 2 == 3.35 No it doesn't!  I suspect your typing thumbs, or is it your ring finger, is making you look like a bad mathematician! ;-) -- Barney Boisvert bboisv...@gmail.com http://www.barneyb.com

Re: Selecting everything in a string up to a point....

2009-11-18 Thread Barney Boisvert
cfset html = REReplace(html, '^(.*?img[^]+header.jpg[^]*).*', '\1') / I think that'll do it, but I didn't actually test. That says starting at the beginning of the string, find everything until you find the string img, followed by one or more characters excluding , followed by the string

Re: MySQL Limit

2009-11-16 Thread Barney Boisvert
select r.*, v.* from (select resourceId from resources limit 100) r inner join resourcesattributesvalues v on r.resourceId = v.resourceId cheers, barneyb On Mon, Nov 16, 2009 at 4:49 PM, Agha Mehdi aghaime...@gmail.com wrote: I have three tables tableA Rresources (resourceID) tableB

Re: ColdFusion 9 runs slower as a WAR than as standalone

2009-11-16 Thread Barney Boisvert
apps as well)? cheers, barneyb -- Barney Boisvert bboisv...@gmail.com http://www.barneyb.com/ On Nov 16, 2009, at 5:48 PM, J Boss dotfus...@changethings.org wrote: I have ColdFusion 9 installed standalone and the performance is great. I also have it as a WAR file running on Tomcat 6

Re: Deleting contents within a folder

2009-11-09 Thread Barney Boisvert
If you don't mind synchronizing, you can just delete the directory (as you are now) and then recreate an empty one after you're done. Otherwise you'll need to use CFDIRECTORY to get a list of the contained files and delete them individually with CFFILE. cheers, barneyb On Monday, November 9,

Re: custom tag content displaying twice

2009-11-04 Thread Barney Boisvert
just do cfset thisTag.generatedContent = / in the end tag? CF has to do one or the other (render the output or suppress the output), and then provide a means to accomplish the other. At least from the perspective of the principle of least surprise, rendering the output seems like the correct

Re: custom tag content displaying twice

2009-11-04 Thread Barney Boisvert
the resulting variable as an attribute into the now-self-closing custom tag. Mik -- Barney Boisvert bboisv...@gmail.com http://www.barneyb.co ~| Want to reach the ColdFusion community with something they want? Let them know

Re: Child Threads

2009-10-28 Thread Barney Boisvert
and sometimes cut up the generated images, or apply a different compression setting, resize them etc. Each step can take a few minutes. Yes I could use some sort of polling mechanism but that's not slick enough ;-) Cheers Stefan On 27 Oct 2009, at 22:46, Barney Boisvert wrote: No limit

Re: Child Threads

2009-10-27 Thread Barney Boisvert
No limit to threads on Enterprise Edition, but no CF edition allows child threads. Total buzzkill. Fortunately, with native threads can be leveraged with Groovy or JavaLoader's CFC-based dynamic proxies. Neither one is particularly elegant, but at least you can do it, since CF itself doesn't

Re: Unit Testing Frameworks

2009-10-26 Thread Barney Boisvert
MXUnit pretty much superceded CFCUnit. CFCUnit is still viable, of course, but MXUnit is certainly seeing a lot more activity, and is pretty much the de facto standard for unit testing of CF apps. cheers, barneyb On Mon, Oct 26, 2009 at 9:15 PM, Judith Dinowitz jdino...@houseoffusion.com

Re: rotating cfchart

2009-10-21 Thread Barney Boisvert
Can you post a link that isn't secured? On Wed, Oct 21, 2009 at 12:35 PM, Michael Dinowitz mdino...@houseoffusion.com wrote: ColdFusion MX used to have an attribute called rotate which would rotate a chart by 90 degrees. This was removed in ColdFusion 7 without a good replacement. I've seen

Re: Can anyone see the problem here?

2009-10-21 Thread Barney Boisvert
The three uses of APPLICATION.DBPRE are invalid; hash-wrapped juxtaposition is not valid for concatenation except within quoted strings. cheers, barneyb On Wed, Oct 21, 2009 at 2:20 PM, Douglas Brown mistobr...@gmail.com wrote: I think I have lost it and cannot seem to see the error of my

Re: Issues using CFHTTP

2009-10-21 Thread Barney Boisvert
. Would anyone care to tell me what I'm doing wrong with CFHTTP or if alternatively, my concerns are unfounded and my solution is in fact secure. Thanks, Asaf -- Barney Boisvert bboisv...@gmail.com http://www.barneyb

Re: Randomize Query results?

2009-10-13 Thread Barney Boisvert
If you're picking one item from a query, you can just do: myQuery.myColumn[randRange(1, myQuery.recordCount)] That'll be way more efficient than reordering the whole query. cheers, barneyb On Tue, Oct 13, 2009 at 2:53 PM, Yuliang Ruan yuliangr...@hotmail.com wrote: I have a Query of Query

Re: Splitting a list of unknown amount

2009-10-10 Thread Barney Boisvert
Totally untested and written on my phone, but it should be close: A = listToArray(yourList); Parts = []; while (arrayLen(a) gt 100) { ArrayAppend(parts, a.subList(0, 100)); A = a.subList(100, arrayLen(a)); } Dump(parts); Cheers, Barneyb -- Barney Boisvert bboisv...@gmail.com http

Re: Deploying ColdFusion to Tomcat Server

2009-10-07 Thread Barney Boisvert
I don't see how that could possible be the case for Railor or BlueDragon. All three engines operate in exactly the same way: a servlet mappings for .cfm and .cfc files that run a servlet from the local context. They all have to be copied into each context they're needed. Can we see your tomcat

Re: Deploying ColdFusion to Tomcat Server

2009-10-07 Thread Barney Boisvert
the contents / structure of your template project as that sounds exactly like what I am trying to setup? Thanks -- Jeff -Original Message- From: Barney Boisvert [mailto:bboisv...@gmail.com] Sent: Wednesday, October 07, 2009 11:51 AM To: cf-talk Subject: Re: Deploying ColdFusion to Tomcat

Re: CFScript - what's the advantage?

2009-10-04 Thread Barney Boisvert
, barneyb -- Barney Boisvert bboisv...@gmail.com http://www.barneyb.com/ On Oct 4, 2009, at 10:05 PM, Mike Kear afpwebwo...@gmail.com wrote: I've been trying to see what's the benefit of enhancing CFScript. There are a couple of reasons I can think of, but am I missing something

Re: Error (The Value 2F cannot be converted to a number)

2009-10-02 Thread Barney Boisvert
val() will do that for you, but that's a rather course approach. If you have a know format (e.g. one number then one letter), you'd be better parsing it explicitly (e.g., left(value, 1)) rather than using something like val(). cheers, barneyb On Fri, Oct 2, 2009 at 12:48 AM, Damo Drumm

Re: can I do the following entirety in script? (CF8)

2009-10-02 Thread Barney Boisvert
This isn't a list loop, it's an index loop into a list. There's is a marked performance difference if you list is of any size, because you have to do tokenization of the list at least twice per loop when you use an index loop. I did some tests a few years ago and even a 10-item list is about

Re: MySQL Auto Increment Field

2009-09-30 Thread Barney Boisvert
element). I don't know whether Open BlueDragon supports this feature yet. Anyone? -- Sean A Corfield -- (904) 302-SEAN Railo Technologies US -- http://getrailo.com/ An Architect's View -- http://corfield.org/ -- Barney Boisvert bboisv...@gmail.com http://www.barneyb.com

Re: MySQL Auto Increment Field

2009-09-29 Thread Barney Boisvert
select last_insert_id() as id http://dev.mysql.com/doc/refman/5.0/en/information-functions.html#function_last-insert-id cheers, barneyb On Tue, Sep 29, 2009 at 12:16 PM, Agha Mehdi aghaime...@gmail.com wrote: All, How do I get the ID value back in CF from MySQL after doing an insert with

Re: SOT aligning multiple lists

2009-09-28 Thread Barney Boisvert
this. ListA ListB ListC 1     1     1 2           2      3     3      4 5     5 The trouble is there is no master list to drive this from.  I just can not get my sleep deprived, aging mind to conceive of a way to create this display from six arbitrary lists. TIA Ian -- Barney Boisvert

Re: (ot) Detect OS and CPU Architecture

2009-09-26 Thread Barney Boisvert
Windows only runs on Intel, and I says windows right in the UA string. What else do you need? -- Barney Boisvert bboisv...@gmail.com http://www.barneyb.com/ On Sep 26, 2009, at 11:23 AM, Don L do...@yahoo.com wrote: Barney, thank you for your input. I ran CGI.HTTP_USER_AGENT (cf

Re: (ot) Detect OS and CPU Architecture

2009-09-25 Thread Barney Boisvert
to the point, unable to do anything architecture-specific anyway. cheers, barneyb -- Barney Boisvert bboisv...@gmail.com http://www.barneyb.com/ On Sep 25, 2009, at 6:37 PM, Don L do...@yahoo.com wrote: Hi, Preferably do it with javascript. Did a bit of digging myself, neither

Re: Getting URL from URL address bar!

2009-09-23 Thread Barney Boisvert
Do it on the app sever. Accept requests for xyz.com and abc.com, log the request, and then redirect to finalsite.com. Just make sure you do a 302 so search engines won't correct themselves. cheers, barneyb On Wed, Sep 23, 2009 at 10:54 AM, David Torres djt...@yahoo.com wrote: Hello, My

Re: Getting URL from URL address bar!

2009-09-23 Thread Barney Boisvert
On Wed, Sep 23, 2009 at 11:12 AM, Jacob ja...@excaliburfilms.com wrote: Hmm... should it be a 301? -Original Message- From: Barney Boisvert [mailto:bboisv...@gmail.com] Sent: Wednesday, September 23, 2009 11:02 AM To: cf-talk Subject: Re: Getting URL from URL address bar! Do

Re: clearing flash cache

2009-09-18 Thread Barney Boisvert
Just add a dummy timestamp parameter to the url's query string. E.g. change this: fileXml.load(/path/to/your.cfm) to something like this: fileXml.load(/path/to/your.cfm?ts= + new Date().valueOf()) cheers, barneyb On Fri, Sep 18, 2009 at 11:18 AM, Michael Muller mich...@mullertech.com wrote:

Re: Strange VAR error: browser specific

2009-09-17 Thread Barney Boisvert
CF looks up a whole pile of scopes when dereferencing variables, including CGI. It's possible that IE8 sends an extra header named myvar that is what CF found to interrogate, but no other browser sends it. Is the actual name of myvar reasonable for that case? cheers, barneyb On Thu, Sep 17,

Re: Putting a random phrase after a sentence.

2009-09-17 Thread Barney Boisvert
100% untested, but you get the idea: s = The project is done.; strings = [ and dinna spare the whip, and I sure am handsome, ... ] start = 0; while (true) { // any . ? ! preceded by a letter and followed by a space start = REFind([a-zA-Z][.?!]( |$), s, start); if (start == 0) {

Re: HoF invaded

2009-09-15 Thread Barney Boisvert
Or the user account the web/app server runs as shouldn't have write access to the code it's executing? Sure, it might be a hole in IIS, but IIS is like sieve, and you shouldn't be able to modify the code in place like that in any case. On Tue, Sep 15, 2009 at 10:14 AM, Michael Dinowitz

Re: 65mb XML file Crashing CF8 on my workstation

2009-09-14 Thread Barney Boisvert
I'd recommend grabbing a SAX parser and using that instead of the DOM-based stuff that CF ships with. Then you can stream the file in and deal with it's nodes sequentially, rather than having to inflate the whole thing into a DOM tree to manipulate. Definitely can make the code trickier to

Re: Is this possible with component methods in cf8?

2009-09-11 Thread Barney Boisvert
You can't send anything back to the user until all the photos are uploaded, but once that's done, you can just leave them on disk, record the fact that they're there in session scope, and return a response after kicking off a background thread to process the images. That background thread should

Re: ColdFusion Builder - free or commercial product?

2009-08-24 Thread Barney Boisvert
To this point, Adobe and it's ancestors have charged for all their development products: HomeSite, CF Studio, Dreamweaver, UltraDev, FlexBuilder, perhaps others? They also obviously charge for their design products (the Creative Suite's members). It stands to reason that FlashBuilder and CF

Re: Coldfusion + Flex

2009-08-21 Thread Barney Boisvert
For the officially released products, FlexBuilder and CFEclipse (on Eclipse) or IntelliJ's counterparts. If you don't mind beta, FlashBuilder and CFBuilder (on Eclipse). I use the first pair personally. cheers, barneyb On Fri, Aug 21, 2009 at 9:22 AM, Agha Mehdiaghaime...@gmail.com wrote:

  1   2   3   4   5   6   7   8   9   10   >