RE: How do I get the characters after the last period in a string?

2007-11-07 Thread Bobby Hartsfield
Oh absolutely... cffile... I didn't see anything about getting it while
uploading though so I assumed that the files already existed.

..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com

-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 07, 2007 5:04 PM
To: CF-Talk
Subject: Re: How do I get the characters after the last period in a string?

am i missing something here?  if you're trying to get the file name
(sans extension) and extension (sas filename) -of an uploaded file-...
why not the cffile variables that i mentioned earlier (or has my prior
message not made it yet?)

On Nov 7, 2007 11:53 AM, Bobby Hartsfield <[EMAIL PROTECTED]> wrote:
> Listlast(filename, '.')
> to get the extenstion
>
> And...
>
> ListDeleteAt(filename, listlen(filename, '.'), '.')
> to get everything except the extension (including the dot)
>
> It doesn't matter with either method whether there is 1 dot or 40. They
will
> work as long as there is at least 1 dot present.
> However, the first will return the entire string if there is no dot and
the
> second will return an empty string if there is no dot.
>
> ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
> Bobby Hartsfield
> http://acoderslife.com
>
>
>
>
> 



~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292922
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Next time somebody asks about input validation for security...

2007-11-07 Thread Jim Davis
 show them this:

http://xkcd.com/327/

(Most of them are good... this one just happens to appropriate.)

Jim Davis


~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292923
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Tracking down server issues MX 7

2007-11-07 Thread James Holmes
FusionReactor is a great way to get this info - you'll see what
templates are running, their execution times, memory and CPU usage and
more. You can even set up alerting for memory / CPU / queue length
conditions to keep your servers running while you are alerted of
issues. It's been essential for us.

On Nov 8, 2007 11:18 AM, Rand Thacker <[EMAIL PROTECTED]> wrote:
> My company has a homegrown eCommerce solution, shopping cart.  We run several 
> linux CF MX7 servers behind a Cisco CSS load balancing appliance.
>
> A little setup before the question: normally, we receive on average, between 
> 25-50 orders per hour.   Every once in a while, we get these breaks in our 
> order patterns (yes,it's vague, but I'm talking like 3 orders in one hour 
> where we'd normally get 20).  Management is all over our IT team to find out 
> why these breaks happen.
>
> I am able to look at the Cisco appliance and see average number of users on 
> each cart, I can look at the load on the linux web/CF servers using top (just 
> to see if they're loaded down).  The carts seem a little slow, but THAT much 
> slower than normal.
>
> **My real question, after all this setup: what kind of tools, services, 
> software could one use to look deeper into the CF server processes.  
> FusionReactor?  More?  We need to be able to definitively log information as 
> baselines, and prove to management that it's not our servers or necessarily 
> our code.  If it is the servers or code, then great, we'll fix it if we know 
> where to look.
>
> I'd love to hear suggestions or even references of people that have 
> experience in tracking this stuff down.  I need help.
>
> Thanks in advance.  I can give more details, but I have a feeling we need a 
> deeper look into the CF MX 7 servers to see if memory/locks servers 
> restarting, etc.
>
> 

~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292918
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: changing style sheets

2007-11-07 Thread Charlie Griefer
On Nov 7, 2007 3:39 PM, John  P <[EMAIL PROTECTED]> wrote:
> Is there a way to allow the user to change the style sheet of a page using a 
> link on the page?

http://www.spoono.com/javascript/tutorials/tutorial.php?id=18

-- 
Charlie Griefer


"...All the world shall be your enemy, Prince with a Thousand Enemies,
and whenever they catch you, they will kill you. But first they must catch
you, digger, listener, runner, prince with a swift warning.
Be cunning and full of tricks and your people shall never be destroyed."

~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292915
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: How do I get the characters after the last period in a string?

2007-11-07 Thread Todd
I offered him 2 choices.  ListFirst() and Regex.  I gave examples of each.
What more am I supposed to do?

On Nov 7, 2007 5:39 PM, Claude Schneegans <[EMAIL PROTECTED]>
wrote:

>  >>Regex example would be:
>
> Hmmm, why make it simple when regExp could make it look more
> complicated? ;-)
>


~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292916
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: How do I get the characters after the last period in a string?

2007-11-07 Thread Dale Fraser
Or





Regards
Dale Fraser

http://learncf.com


-Original Message-
From: Todd [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 8 November 2007 7:39 AM
To: CF-Talk
Subject: Re: How do I get the characters after the last period in a string?

Scratch the last, use this instead:



On Nov 7, 2007 3:31 PM, Todd <[EMAIL PROTECTED]> wrote:

>
> 
> 
>
> On Nov 7, 2007 1:58 PM, Rick Faircloth < [EMAIL PROTECTED]> wrote:
>
> > You know... a better solution than what I've got, which is
> > to only deal with as many as two periods in a filename, is needed.
> > The current solution leaves some gaps if a user decides to user several
> > periods as delimiters.  And stripping out the periods, except for the
> > one
> > before the extension might cause name conflicts.
> >
> > Todd... what would be the regex for deleting just the last period
> > in a filename plux the extension?
> >
> > Rick
>
>
>




~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292911
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: How do I get the characters after the last period in a string?

2007-11-07 Thread Rick Faircloth
I saw your mention of those variables, Charlie, and I'm definitely
going that way... they seem made just for my purposes.

Rick

> -Original Message-
> From: Charlie Griefer [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 07, 2007 5:04 PM
> To: CF-Talk
> Subject: Re: How do I get the characters after the last period in a string?
> 
> am i missing something here?  if you're trying to get the file name
> (sans extension) and extension (sas filename) -of an uploaded file-...
> why not the cffile variables that i mentioned earlier (or has my prior
> message not made it yet?)
> 
> On Nov 7, 2007 11:53 AM, Bobby Hartsfield <[EMAIL PROTECTED]> wrote:
> > Listlast(filename, '.')
> > to get the extenstion
> >
> > And...
> >
> > ListDeleteAt(filename, listlen(filename, '.'), '.')
> > to get everything except the extension (including the dot)
> >
> > It doesn't matter with either method whether there is 1 dot or 40. They will
> > work as long as there is at least 1 dot present.
> > However, the first will return the entire string if there is no dot and the
> > second will return an empty string if there is no dot.
> >
> > ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
> > Bobby Hartsfield
> > http://acoderslife.com
> >
> >
> >
> >
> >
> 
> 

~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292912
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Image Management

2007-11-07 Thread Paul Hastings
Jochem van Dieten wrote:
> It may be unlikely that you ever want to find 'all images with the color 
> #de7f3d', but if you do your data had better be in a database with a 
> functional index on color(image).

actually we're doing exactly that right now, searching microscopic mineral/gem 
imagery for certain colors. the new cf8 image bits are making the whole image 
to 
blob/thumbnail/etc. process fairly easy.

these days pretty much all GIS s/w firms use a db to hold their spatial data 
(as 
well as many OS projects like mapserver which can use postGIS, arcSDE, etc.). 
it's so 1980's if you really think it's a 100% bad idea to store binary data in 
a db. big iron databases have come a long way.

~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292914
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Webservice over SSL

2007-11-07 Thread James Holmes
The error you get doesn't match what I expect the problem to be, which
is that the CA cert for the SSL certificate needs to be in the CF Java
keystore. The error looks like the ?wsdl is missing from the URL.

On Nov 8, 2007 1:15 AM, Web Exp <[EMAIL PROTECTED]> wrote:
> Hey guys...
> i am getting an error message when trying to invoke a webservice's
> wsdl over SSL.
>
> The error is: File not found: /CFIDE/componentutils/cfcexplorer.cfc
>
> Now, if I access the url through my browser it comes up fine, although
> I do get a browser warning about the SSL certificate not issued by a
> Trusted Authority.
> if I go past that the wsdl shows up fine.
>
> The webservice gets fine if I invoke it over http, but causes the
> above error if tried over https.
>
> Any ideas?
>
> Thanks,
> K
>
> 

~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292920
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: clearing Sessions on a per-site basis

2007-11-07 Thread James Holmes
Yes, if you don't mind hacking into the sessionTracker object in the
service factory. This allows full access to all data in every session
on the box. It's unsupported, so ymmv from version to version of CF
etc. Let me know if you can't find relevant code with Google.

On Nov 8, 2007 6:59 AM, Jonathon Stierman <[EMAIL PROTECTED]> wrote:
> Is there any way to wipe out all the Sessions on a particular site running
> ColdFusion?
>
> My application is storing an instantiated object in the Session scope, and
> I've just had to make an update to that object.  Trick is, I don't want
> anyone wandering around the site with old versions of this object.  I could
> reboot the ColdFusion service if necessary, but I'd rather not take down all
> my sites just to push an update out to this one site...
>
> TIA
>
> Jonathon
>
>
>
> 

~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292921
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: How do I get the characters after the last period in a string?

2007-11-07 Thread Adam Haskell
+1

On Nov 7, 2007 5:04 PM, Charlie Griefer <[EMAIL PROTECTED]> wrote:
> am i missing something here?  if you're trying to get the file name
> (sans extension) and extension (sas filename) -of an uploaded file-...
> why not the cffile variables that i mentioned earlier (or has my prior
> message not made it yet?)
>
> On Nov 7, 2007 11:53 AM, Bobby Hartsfield <[EMAIL PROTECTED]> wrote:
> > Listlast(filename, '.')
> > to get the extenstion
> >
> > And...
> >
> > ListDeleteAt(filename, listlen(filename, '.'), '.')
> > to get everything except the extension (including the dot)
> >
> > It doesn't matter with either method whether there is 1 dot or 40. They will
> > work as long as there is at least 1 dot present.
> > However, the first will return the entire string if there is no dot and the
> > second will return an empty string if there is no dot.
> >
> > ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
> > Bobby Hartsfield
> > http://acoderslife.com
> >
> >
> >
> >
> >
>
> 

~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292910
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Tracking down server issues MX 7

2007-11-07 Thread Rand Thacker
My company has a homegrown eCommerce solution, shopping cart.  We run several 
linux CF MX7 servers behind a Cisco CSS load balancing appliance.

A little setup before the question: normally, we receive on average, between 
25-50 orders per hour.   Every once in a while, we get these breaks in our 
order patterns (yes,it's vague, but I'm talking like 3 orders in one hour where 
we'd normally get 20).  Management is all over our IT team to find out why 
these breaks happen.

I am able to look at the Cisco appliance and see average number of users on 
each cart, I can look at the load on the linux web/CF servers using top (just 
to see if they're loaded down).  The carts seem a little slow, but THAT much 
slower than normal.

**My real question, after all this setup: what kind of tools, services, 
software could one use to look deeper into the CF server processes.  
FusionReactor?  More?  We need to be able to definitively log information as 
baselines, and prove to management that it's not our servers or necessarily our 
code.  If it is the servers or code, then great, we'll fix it if we know where 
to look.

I'd love to hear suggestions or even references of people that have experience 
in tracking this stuff down.  I need help.

Thanks in advance.  I can give more details, but I have a feeling we need a 
deeper look into the CF MX 7 servers to see if memory/locks servers restarting, 
etc. 

~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292913
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: changing style sheets

2007-11-07 Thread Dave l
doesn't "Will, Sr Advanced CFM Developer" himself have something on easycfm?


> Is there a way to allow the user to change the style sheet of a page 
> using a link on the page? 
> 
> Thanks,
> 
> John
> 
> 
> 


~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292917
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: changing style sheets

2007-11-07 Thread Paul Vernon
> Is there a way to allow the user to change the style sheet of a page
> using a link on the page?

There are plenty of ways to do this.

http://www.the-eyesite.org/ does this with several stylesheets by keeping
the stylesheet in the session and then populating the header accordingly.

Paul




~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292919
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: How do I get the characters after the last period in a string?

2007-11-07 Thread Claude Schneegans
 >>Todd... what would be the regex for deleting just the last period
in a filename plux the extension?

If you want to be that fussy, you should also take in account files with 
no extension at all.

Personally, I rename the file using a UUID with no extension, then 
analyse the file
to know exactly what's it's type, then rename the file and add the 
correct extension
according to the type, or delete it if it is not a valid image.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292901
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: How do I get the characters after the last period in a string?

2007-11-07 Thread Claude Schneegans
 >>Regex example would be:

Hmmm, why make it simple when regExp could make it look more 
complicated? ;-)

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292898
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Need help with the value of a Macbook

2007-11-07 Thread Dave l
mac's hold their value really well so it's hard to get a really good deal one 
one, actually an article on it today 
http://machinist.salon.com/feature/2007/11/07/mac_price/index.html?sr=hotnews

off the top of my head maybe $700 - 800.. find some on ebay with same specs and 
see what they sell for.



>I know many of you on this list are Mac users and so I'm asking for help.
>
>I'm looking to upgrade my computer (new workstation, and two new monitors).
>I'm budgeting about $1500 - $2000. A co-worker of mine said that a friend of
>HIS is selling a Macbook. Since I know that's an Intel machine I was curious
>so I asked about the specs. Can you guys tell me what you think this machine
>is worth?
> 
>It's a late-2006 Macbook. 2GHz Core 2 Duo with SuperDrive. He upgraded the
>RAM to 2GB and the hard drive to 160GB. The model number is MA700LL/A
>(Google says that this is a 13.3 inch screen). But, that series is generally
>called the Late 2006 Macbook. It's the white 2GHz one from that series. He's
>got all of the original packaging, accessories, disks, etc.
> 
>More importantly, I'm needing a new machine to work on. My PC is nearing the
>end of it's useful life and so I'm wanting something that kicks some hiney.
>I need to run Photoshop, Illustrator, etc. on it. I also need to run code on
>it. At the moment I only have CS2 and I've heard that CS2 is pretty slow on
>Intel Macs.
> 
>Finally, I need comparisons on this computer to a newer Dell workstation. I
>prefer to have a desktop machine, but if I can get away with a laptop that
>can run fast, can run Windows, and can be hooked up to a real monitor, then
>a laptop is okay.
> 
>Amazon has this price listed for the machine:
>http://www.amazon.com/Apple-MacBook-MA700LL-Notebook-SuperDrive/dp/B000GABVO
>S
> 
>
> 
>Andy Matthews
>Senior ColdFusion Developer
>
>Office:  877.707.5467 x747
>Direct:  615.627.9747
>Fax:  615.467.6249
>[EMAIL PROTECTED]
>  www.dealerskins.com 

~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292899
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: MIME type

2007-11-07 Thread Dave l
if you were on cfm 6 you could probably check via java, if you were on 8 i 
think it will tell u.

but since you are on pre-civil war version it would probably be harder.

Quick n dirty you could grab the file and look at last 3 letters and tell and 
if they are ok let them through, if not error

like


   thefile = theimage.jpg;
   checkFile = right(thefile, 3);



ok let it through

ok let it through

not acceptable image format





>Hi,
>CF5.0
>I have a nameconflict="Overwrite" destination="..."> (wrapped in a )
>that is failing. Permissions are fine, so as a first step I'm assumimg it's
>the MIME type problem.  How do I determine the actual MIME type of a file
>that user's are trying to upload?
>
>Thanks in advance
>
>Dave 

~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292902
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: How do I get the characters after the last period in a string?

2007-11-07 Thread Dale Fraser



Regards
Dale Fraser

http://learncf.com

-Original Message-
From: Rick Faircloth [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 8 November 2007 7:46 AM
To: CF-Talk
Subject: RE: How do I get the characters after the last period in a string?

You're right... I should be using cffile for renaming...

> -Original Message-
> From: Todd [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 07, 2007 1:58 PM
> To: CF-Talk
> Subject: Re: How do I get the characters after the last period in a
string?
> 
> Because CFImage isn't supposed to be used as a file system manipulation?
> Even functions like fileMove() doesn't even have one.  Only one that I'm
> aware that has a nameconflict attribute is CFFile action="upload."
There's
> a reason why we have functions like fileExists().
> 
> On Nov 7, 2007 1:14 PM, Rick Faircloth <[EMAIL PROTECTED]> wrote:
> 
> > One thing I did notice is that the cfimage tag doesn't have a
> > "nameconflict" option.
> > It seems it really needs one.  Any reason why it wouldn't have one?
> >
> > Rick






~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292905
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


clearing Sessions on a per-site basis

2007-11-07 Thread Jonathon Stierman
Is there any way to wipe out all the Sessions on a particular site running
ColdFusion?

My application is storing an instantiated object in the Session scope, and
I've just had to make an update to that object.  Trick is, I don't want
anyone wandering around the site with old versions of this object.  I could
reboot the ColdFusion service if necessary, but I'd rather not take down all
my sites just to push an update out to this one site...

TIA

Jonathon



~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292892
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: How do I get the characters after the last period in a string?

2007-11-07 Thread Rick Faircloth
Thanks, Bobby...

Rick

> -Original Message-
> From: Bobby Hartsfield [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 07, 2007 2:53 PM
> To: CF-Talk
> Subject: RE: How do I get the characters after the last period in a string?
> 
> Listlast(filename, '.')
> to get the extenstion
> 
> And...
> 
> ListDeleteAt(filename, listlen(filename, '.'), '.')
> to get everything except the extension (including the dot)
> 
> It doesn't matter with either method whether there is 1 dot or 40. They will
> work as long as there is at least 1 dot present.
> However, the first will return the entire string if there is no dot and the
> second will return an empty string if there is no dot.
> 
> ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
> Bobby Hartsfield
> http://acoderslife.com
> 
> 
> 
> 
> 

~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292909
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


cfimage captcha

2007-11-07 Thread Dave l
Trying out the new captcha with cfimage

I cant seem to find in the docs anything about controlling bg color or font 
color.

In this case I have a site with a black bg and so if you get a dark captcha bg 
and the text is kinda dark you cant see it. It's not an issue on white bg but 
this is UG

anyone know? 

~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292903
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: How do I get the characters after the last period in a string?

2007-11-07 Thread Dale Fraser


Regards
Dale Fraser

http://learncf.com


-Original Message-
From: Todd [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 8 November 2007 7:32 AM
To: CF-Talk
Subject: Re: How do I get the characters after the last period in a string?




On Nov 7, 2007 1:58 PM, Rick Faircloth <[EMAIL PROTECTED]> wrote:

> You know... a better solution than what I've got, which is
> to only deal with as many as two periods in a filename, is needed.
> The current solution leaves some gaps if a user decides to user several
> periods as delimiters.  And stripping out the periods, except for the one
> before the extension might cause name conflicts.
>
> Todd... what would be the regex for deleting just the last period
> in a filename plux the extension?
>
> Rick




~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292906
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


changing style sheets

2007-11-07 Thread John P
Is there a way to allow the user to change the style sheet of a page using a 
link on the page? 

Thanks,

John





~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292908
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Image Management

2007-11-07 Thread Rick Faircloth
Good point...

Rick

> -Original Message-
> From: Dennis Powers [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 07, 2007 5:25 PM
> To: CF-Talk
> Subject: RE: Image Management
> 
> >> the file is being read in binary form, whether it's being read off
> >> the hard disk or from binary code in the database, correct?
> 
> Technically correct however if read off the OS's file system it is just the
> web server software processing the file, however if read from the DB then
> you have the Database and Cold Fusion processing the data, before sending it
> to the web server for transmission to the Browser.
> 
> >> there really should be little difference in performance regardless of how
> the
> >> file data is accessed.
> 
> Not exactly. The OS file system and web server are optimized for this
> particular task. Adding both CF and the DB into the mix is addition besides
> them not being optimized for it.
> 
> 
> Best Regards,
> 
> Dennis Powers




~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292904
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: How do I get the characters after the last period in a string?

2007-11-07 Thread Claude Schneegans
 >>Listlast(filename, '.')  to get the extenstion

 or to get the file name if no extension...

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292900
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Image Management

2007-11-07 Thread Dennis Powers
>> the file is being read in binary form, whether it's being read off 
>> the hard disk or from binary code in the database, correct?

Technically correct however if read off the OS's file system it is just the
web server software processing the file, however if read from the DB then
you have the Database and Cold Fusion processing the data, before sending it
to the web server for transmission to the Browser.

>> there really should be little difference in performance regardless of how
the 
>> file data is accessed.

Not exactly. The OS file system and web server are optimized for this
particular task. Adding both CF and the DB into the mix is addition besides
them not being optimized for it. 


Best Regards,

Dennis Powers
UXB Internet - A website design and Hosting Company
690 Wolcott Road
P.O. Box 6029
Wolcott, CT  06716
Tel: (203)879-2844
http://www.uxbinternet.com/
http://www.uxb.net/



~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292895
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Wierd regex problem (isn't it always)

2007-11-07 Thread Jon Clausen
Andy,

I'm not a regex ninja, like some, but I think what you're looking for  
is this.  Escape the space character (using ^)  so that any  
backreferences stop at the space character.



Then you can use the first backreference:

\1",  
"all") >

HTH,

Jon


On Nov 7, 2007, at 2:03 PM, Andy Jarrett wrote:

> Hi
>
> I'm trying to do a look through as string to find usernames and add
>  tags around them ala Twitter.
>
> The regex I think is fine but when I use reReplace 's back reference
> I'm not getting the result I thought I would of. Heres the code. Can
> anyone see anything obvious?
>
> Cheers, Andy
>
>
> 
> 
> #str# 
>
>
> 
> 
>
> 
> \2",  
> "all") >
>   
> #usernamePos#
>
> 

~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292893
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Image Management

2007-11-07 Thread Dave l
You don't have to make it NASA code Rick.








and i dont see any real benefits of storing the images in db, seems like a real 
good way to really slow down your db. If you did do it then I would at least 
put the db on its own server. It's kinda like sticking a really fat guy in a 
kids go-cart.

If you have your own vps or ded server you could upload them out of the webroot 
and then call them back and show the images with writetobrowser. I think I am 
gunna do that with the new myalix site and use a lot of the blur.







~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292907
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: How do I get the characters after the last period in a string?

2007-11-07 Thread Claude Schneegans
 >> want to return the characters in the name of a photo preceding the 
period.

ListFirst() man, listFirst! ;-)

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292896
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: How do I get the characters after the last period in a string?

2007-11-07 Thread Charlie Griefer
am i missing something here?  if you're trying to get the file name
(sans extension) and extension (sas filename) -of an uploaded file-...
why not the cffile variables that i mentioned earlier (or has my prior
message not made it yet?)

On Nov 7, 2007 11:53 AM, Bobby Hartsfield <[EMAIL PROTECTED]> wrote:
> Listlast(filename, '.')
> to get the extenstion
>
> And...
>
> ListDeleteAt(filename, listlen(filename, '.'), '.')
> to get everything except the extension (including the dot)
>
> It doesn't matter with either method whether there is 1 dot or 40. They will
> work as long as there is at least 1 dot present.
> However, the first will return the entire string if there is no dot and the
> second will return an empty string if there is no dot.
>
> ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
> Bobby Hartsfield
> http://acoderslife.com
>
>
>
>
> 

~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292894
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Image Management

2007-11-07 Thread Claude Schneegans
 >>So, I'm assuming, again, that there really should be little difference
in performance regardless of how the file data is accessed.

Basically correct;
however, images can make a huge amount of data, and the bigger the database
is, the less it's performance is. You're right that you're reading the 
image from the disk anyway,
but with data in a database and files in the file system, instead of one 
huge data repository,
you're having TWO smaller and completely separate systems working for 
you, each one
with it's own index system, and an index system specialized for the kind 
of job it is doing.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292897
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: What might this Oracle PLSQL be doing?

2007-11-07 Thread Dave Watts
> I have a .sql file that is executing four pages of code like this.
> 
> Connect intdm/d

This is connecting to the intdm user's default schema. A user's schema
controls what that user can see and interact with.

> Exec chem_epa2

This is running a stored procedure or package.

> ...
> @epa_compare6.sql

This is executing whatever's in the file epa_compare6.sql.

> exec checkstatus(6)

This is executing the checkstatus function. I'm a dummy when it comes to
Oracle, so I'm not sure whether that's a native function or not.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!


~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292890
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: 2 cfforms on same page problem

2007-11-07 Thread Tony
hmmm make sure the containing  is not conflicting
and is outside the  tag?

tony

On Nov 7, 2007 2:16 PM, Michael Appenzellar
<[EMAIL PROTECTED]> wrote:
> ColdFusion 8: I have 2 cfforms on the same page. One in not a flash
> form, the other is. The flash form won't work because I have another
> cfform on the same page. Any thoughts on how to fix this?
>
>
>
> 
> Michael Appenzellar
> Sr. Web Applications Developer
>
>
> Mirame Interactive
>
> http://www.mirameinteractive.com
>
> 301-663-5672 x6413
>
>
>
>
>
> 

~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292882
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Weird CF8 issue, Customer gets asked for RDS login after redirect from app login

2007-11-07 Thread Sam Farmer
That occurs when the user is requesting a cfc directly and the access
for the method is not remote.

It is strange that only one person sees this though.

On Nov 7, 2007 11:18 AM, Keith, Jeremy <[EMAIL PROTECTED]> wrote:
> Also the page that it's redirecting to is the CFC explorer
>
> CFIDE/componentutils/cfcexplorer.cfc?method=getcfcinhtml&name=WebService
> s.ajaxCFC.core.RWGJKAjax&path=/Webservices/ajaxCFC/core/RWGJKAjax.cfc
>
>
> Jeremy Keith
> Network Administrator
> Rand-Whitney Group LLC
> One Agrand Street
> Worcester, MA 01607
> Office: (508) 890-7032
>
>
> -Original Message-
> From: Keith, Jeremy [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 07, 2007 10:02 AM
> To: CF-Talk
> Subject: Weird CF8 issue, Customer gets asked for RDS login after
> redirect from app login
>
>
> OK, have a very strange issue that I've not seen before.
>
> We have literally thousands of customers, and I really think that this
> is probably a security setting on their firewall or in their IE
> settings, however I'll post this up anyways.
>
> We have a application with authentication that creates a session, when
> anyone at this location attempts to log into the application they get
> kicked to a different page that asks them to provide a login into RDS
>
> Now the only thing to note is that their public IP address is a 192.*
> IP, not in 192.168, but I'm wonder if there is something with the
> debugging in CF8 that might be causing this? Anyone else seen anything
> like this?
>
>
> Jeremy Keith
> Network Administrator
> Rand-Whitney Group LLC
> One Agrand Street
> Worcester, MA 01607
> Office: (508) 890-7032
>
>
>
> 
> CAUTION:The preceding email message and any
> attachments to it may be confidential and/or may contain proprietary
> information that is entitled to protection from disclosure under
> applicable law.  It is not intended for transmission to, or receipt by,
> any unauthorized persons.  If you are not the intended recipient or such
> recipient's employee or agent, please do not read any attachments, or
> print, copy, disseminate or otherwise
> disclose the contents of this email.   If you have
> received this message in error, please (i) notify the sender by return
> email immediately that you received the message in error, and (ii) erase
> or destroy the message.
> Thank you.
> 
>
>
>
> 

~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292886
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CFFTP list folder with leading numbers issue

2007-11-07 Thread Todd
You're 100% sure you're just doing a straight list and you're not doing any
preprocessing the name?

What happens when you change the folder to 2006_budgets?

On Nov 7, 2007 2:23 PM, Brian Love <[EMAIL PROTECTED]> wrote:

> I have been using CFFTP to successfully implement a file browser that
> easily enforces local file/folder permissions because the CFFTP client
> connects and authenticates as the user that is logged in.  It was really
> quite simple and straightforward (thanks CF!).  However... I have run into a
> small issue with folders whose name begins with a number.
>
> For example, lets say you have folder named "2006 budgets" and query the
> parent folder using  to obtain a query of all files
> and folders.  The "2006 budgets" folder will be returned by CF as just
> "budgets" - it strips off the leading numbers.
>
> Has anyone ever run into this problem before?  We didn't notice this until
> just now, and we are running CF8.  Not sure if this is also true for CF7 and
> earlier.  Is this a known issue of CFFTP?  TIA for any help/suggestions...


~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292874
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Image Management

2007-11-07 Thread Jochem van Dieten
Claude Schneegans wrote:
> The purpose of a database is to store information in such a way that it 
> can be sorted and searched
> more easily. An image file is just a bunch of binary data, there is 
> nothing that can be searched or sorted
> in an image, except may be in the name of the file.

Depends on what the image represents. Binary information in Well Known 
Binary (WKB) format (a format for Geographic Information Systems defined 
by the OpenGIS specification) can be searched, sorted and indexed to 
find 'all geometries that intersect Australia' if your database is smart 
enough. With other image formats and index formats it will be possible 
to answer other questions.

It may be unlikely that you ever want to find 'all images with the color 
#de7f3d', but if you do your data had better be in a database with a 
functional index on color(image).

Jochem

~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292887
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: How do I get the characters after the last period in a string?

2007-11-07 Thread Rick Faircloth
Thanks, Todd!

Rick

> -Original Message-
> From: Todd [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 07, 2007 3:32 PM
> To: CF-Talk
> Subject: Re: How do I get the characters after the last period in a string?
> 
> 
> 
> 
> On Nov 7, 2007 1:58 PM, Rick Faircloth <[EMAIL PROTECTED]> wrote:
> 
> > You know... a better solution than what I've got, which is
> > to only deal with as many as two periods in a filename, is needed.
> > The current solution leaves some gaps if a user decides to user several
> > periods as delimiters.  And stripping out the periods, except for the one
> > before the extension might cause name conflicts.
> >
> > Todd... what would be the regex for deleting just the last period
> > in a filename plux the extension?
> >
> > Rick
> 
> 
> 

~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292891
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Verity Search Results - formatting issues

2007-11-07 Thread Raymond Camden
What I do is this:

1) Use contextHighlightBegin and contextHighlightEnd attributes to
tell CF how to mark up stuff in the context. I use

___000___ and ___111___

I then remove all HTML from the context: foo = replace(foo,"<.*?>", "", "all")

I then replace ___000___ with whatever HTML I want to use to start a
context match, like , and then replace ___111___ with .

On Nov 7, 2007 2:22 PM, Peterson, Andrew S.
<[EMAIL PROTECTED]> wrote:
> Hello,
>
> I've got some verity search results from a query and am outputting the
> #Context# variable The context variable returns as formatted text, but
> however the text is formatted, if there is no corresponding end tag,
> such as an , the formatting carries over to the next search
> result.
>



-- 
===
Raymond Camden, Camden Media

Email: [EMAIL PROTECTED]
Blog  : www.coldfusionjedi.com
AOL IM : cfjedimaster

Keep up to date with the community: http://www.coldfusionbloggers.org

~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292889
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Verity Search Results - formatting issues

2007-11-07 Thread Andrew Peterson
>Hello,
> 
>Now my solution is to throw a bunch of end tags at the end of the
>outputted Context variable, for example 
>a la classic.cfm

I just wanted to add this this "solution" wreaks havoc on any formatting on the 
remainder of the web page formatting, so I won't be able to use this solution. 

~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292888
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Inserting NULL into ms sql 2005 datetime field

2007-11-07 Thread Charlie Griefer
is the field configured to accept null values?  are you actually
inserting a NULL or are you just not inserting anything.  if you're
not inserting anything, it'll default to the default value (which
seems to be 1/1/1900).

INSERT INTO tablename (col1, myDateCol) VALUES ('foo', NULL)

or in an update:

UPDATE
 tablename
SET
 myDateCol = NULL
WHERE
 

On Nov 7, 2007 10:38 AM, Jason Presley <[EMAIL PROTECTED]> wrote:
> How to i insert a null field into a ms sql 2005 date/time field?  All I get 
> is it inserting the value 01/1/1900.
>
> Thanks!
>
> 

~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292865
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Wierd regex problem (isn't it always)

2007-11-07 Thread Bobby Hartsfield
reReplace(str, "@([a-zA-Z0-9]{1,16})", "@\1 ", "all")

change 16 to the max length of your usernames. I'm just assuming you have a
max length since you started to specify 1 through something but didn't
finish... you just have {1,}

..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com


-Original Message-
From: Andy Jarrett [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 07, 2007 2:04 PM
To: CF-Talk
Subject: Wierd regex problem (isn't it always)

Hi

I'm trying to do a look through as string to find usernames and add
 tags around them ala Twitter.

The regex I think is fine but when I use reReplace 's back reference
I'm not getting the result I thought I would of. Heres the code. Can
anyone see anything obvious?

Cheers, Andy




#str#   






\2", "all") >

#usernamePos#



~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292885
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Weird CF8 web service wsdl generation issue and a leftfield fix

2007-11-07 Thread Paul Vernon
Having upgraded to CF8 pretty much as soon as it came out, I believe I've
just run across a really obscure issue when consuming web services.

We have a hr-xml based webservice that had been running fine for months on
CFMX6.1. When we upgraded to CF8, everything remained fine and the service
continued to work with those servers that used it. As it happens, those
servers although not ours are also ColdFusion 6, 7 an 8. The issue arose
when the CF servers that consume the service had their webservice caches
cleared and slowly but surely, all the servers posting data to this service
began to fail one by one.

Obviously the guys that were looking at their servers posting debugged as
much as they could at their end of things but no progress was made. I was
testing the webservice using eclipse and everything was fine there too.
Everything looked fine.

Then I coded up a simple test to invoke the service and started to get the
file not found issues which pointed to a case sensitivity issue.

In the CFC, the cfcomponent declaration was as follows:



The filename is hrxml.cfc

Depending on the url used to invoke the service, CF8 was generating
different portType tags

http:///svc/Hrxml.cfc?wsdl made the wsdl generate  http:///svc/hrxml.cfc?wsdl made the wsdl generate
 http:///svc/HRXML.cfc?wsdl made the wsdl
generate 

This seemingly random case generation ended up generating the file not found
errors at the point of consumption stating that hrxml.java or HRXML.java or
Hrxml.java could not be found.

I double checked that all references to "hrxml" in the CFC were lower case
which they were but it still didn't work. So, doing something totally
leftfield, I removed the displayname attribute from the  tag
and up to now, it seems to be working reliably again but it was a pig of an
issue to debug...

Paul



~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292876
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: 2 cfforms on same page problem

2007-11-07 Thread Sam Farmer
Do the forms have different names?

On Nov 7, 2007 2:16 PM, Michael Appenzellar
<[EMAIL PROTECTED]> wrote:
> ColdFusion 8: I have 2 cfforms on the same page. One in not a flash
> form, the other is. The flash form won't work because I have another
> cfform on the same page. Any thoughts on how to fix this?
>
>
>
> 
> Michael Appenzellar
> Sr. Web Applications Developer
>
>
> Mirame Interactive
>
> http://www.mirameinteractive.com
>
> 301-663-5672 x6413
>
>
>
>
>
> 

~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292881
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: How do I get the characters after the last period in a string?

2007-11-07 Thread Rick Faircloth
You're right... I should be using cffile for renaming...

> -Original Message-
> From: Todd [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 07, 2007 1:58 PM
> To: CF-Talk
> Subject: Re: How do I get the characters after the last period in a string?
> 
> Because CFImage isn't supposed to be used as a file system manipulation?
> Even functions like fileMove() doesn't even have one.  Only one that I'm
> aware that has a nameconflict attribute is CFFile action="upload."  There's
> a reason why we have functions like fileExists().
> 
> On Nov 7, 2007 1:14 PM, Rick Faircloth <[EMAIL PROTECTED]> wrote:
> 
> > One thing I did notice is that the cfimage tag doesn't have a
> > "nameconflict" option.
> > It seems it really needs one.  Any reason why it wouldn't have one?
> >
> > Rick




~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292884
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: How do I get the characters after the last period in a string?

2007-11-07 Thread Rick Faircloth
Thanks for the info, Charlie!

Still working with those CF 4.5 ways.  :o)

Thanks for bringing this luddite up-to-speed!

Rick

> -Original Message-
> From: Charlie Griefer [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 07, 2007 1:52 PM
> To: CF-Talk
> Subject: Re: How do I get the characters after the last period in a string?

> hi rick:
> 
> a couple of things:
> 
> 1) the 'file' scope has been deprecated in favor of 'cffile'.  so you
> should make an effort to reference cffile.serverfile instead of
> file.serverfile.
> 2) instead of messing with the list functions, you can use
> cffile.clientFilename to get the name of the file (without the
> extension).  instead of messing with the list functions, you can use
> cffile.clientFileExt to get the extension of the file.
> 
> --
> Charlie Griefer
> 




~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292883
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Wierd regex problem (isn't it always)

2007-11-07 Thread Ben Doom
A handful of comments:

Backreferencing a single, static character is silly.  It just wastes 
memory and processor time.  You're throwing it away, anyway.

{1} is useless.  It means "one of".  Which would just be the thing by 
itself.

Second, {1,} is more commonly written +.  Also, you are saying "one or 
more backreferenced things" instead of "one or more backreferenced things.

I'd write it like this:
@([a-zA-Z0-9]+)
Then use the first backreference instead of the second.

--Ben Doom

Andy Jarrett wrote:
> Hi
> 
> I'm trying to do a look through as string to find usernames and add
>  tags around them ala Twitter.
> 
> The regex I think is fine but when I use reReplace 's back reference
> I'm not getting the result I thought I would of. Heres the code. Can
> anyone see anything obvious?
> 
> Cheers, Andy
> 
> 
> 
> 
> #str# 
> 
> 
> 
> 
> 
> 
> \2", "all") >
>   
> #usernamePos#
> 
> 

~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292878
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


MIME type

2007-11-07 Thread Dave Francis
Hi,
CF5.0
I have a  (wrapped in a )
that is failing. Permissions are fine, so as a first step I'm assumimg it's
the MIME type problem.  How do I determine the actual MIME type of a file
that user's are trying to upload?

Thanks in advance

Dave


~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292875
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: How do I get the characters after the last period in a string?

2007-11-07 Thread Todd



On Nov 7, 2007 1:58 PM, Rick Faircloth <[EMAIL PROTECTED]> wrote:

> You know... a better solution than what I've got, which is
> to only deal with as many as two periods in a filename, is needed.
> The current solution leaves some gaps if a user decides to user several
> periods as delimiters.  And stripping out the periods, except for the one
> before the extension might cause name conflicts.
>
> Todd... what would be the regex for deleting just the last period
> in a filename plux the extension?
>
> Rick


~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292879
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: How do I get the characters after the last period in a string?

2007-11-07 Thread Bobby Hartsfield
Listlast(filename, '.') 
to get the extenstion

And...

ListDeleteAt(filename, listlen(filename, '.'), '.') 
to get everything except the extension (including the dot)

It doesn't matter with either method whether there is 1 dot or 40. They will
work as long as there is at least 1 dot present. 
However, the first will return the entire string if there is no dot and the
second will return an empty string if there is no dot. 

..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com




~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292872
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Inserting NULL into ms sql 2005 datetime field

2007-11-07 Thread Aaron Rouse
How are you trying?  Should be as simple as SET COLNAME = NULL or using a
cfqueryparam tag with its null attribute set to true.

On Nov 7, 2007 12:30 PM, Jason Presley <[EMAIL PROTECTED]> wrote:

> I have a table that contains two fields to indicate when a production run
> is scheduled.  It indicates that start and end dates of the run.  When a run
> is not scheduled I need to allow the user to simply remove the date and set
> the value of the field back to NULL.  Every time I try this it sets the
> value to 01/1/1900.  How do I get the value to be NULL?  (Allow NULL is set
> for the field in the table).
>
> 

~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292873
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: How do I get the characters after the last period in a string?

2007-11-07 Thread Todd
Scratch the last, use this instead:



On Nov 7, 2007 3:31 PM, Todd <[EMAIL PROTECTED]> wrote:

>
> 
> 
>
> On Nov 7, 2007 1:58 PM, Rick Faircloth < [EMAIL PROTECTED]> wrote:
>
> > You know... a better solution than what I've got, which is
> > to only deal with as many as two periods in a filename, is needed.
> > The current solution leaves some gaps if a user decides to user several
> > periods as delimiters.  And stripping out the periods, except for the
> > one
> > before the extension might cause name conflicts.
> >
> > Todd... what would be the regex for deleting just the last period
> > in a filename plux the extension?
> >
> > Rick
>
>
>


~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292880
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Verity Search Results - formatting issues

2007-11-07 Thread Peterson, Andrew S.
Hello,
 
I've got some verity search results from a query and am outputting the
#Context# variable The context variable returns as formatted text, but
however the text is formatted, if there is no corresponding end tag,
such as an , the formatting carries over to the next search
result. 
 
Now my solution is to throw a bunch of end tags at the end of the
outputted Context variable, for example 
a la the CF Debugging text, but is this really the best way? If not,
please let me know. Thanks in advance.
 
Sincerely,
Andrew
 
 


~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292877
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Inserting NULL into ms sql 2005 datetime field

2007-11-07 Thread J.J. Merrick
If it allows NULL then just do

datefield = 



On 11/7/07, Jason Presley <[EMAIL PROTECTED]> wrote:
>
> How to i insert a null field into a ms sql 2005 date/time field?  All I
> get is it inserting the value 01/1/1900.
>
> Thanks!
>
> 

~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292871
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


2 cfforms on same page problem

2007-11-07 Thread Michael Appenzellar
ColdFusion 8: I have 2 cfforms on the same page. One in not a flash
form, the other is. The flash form won't work because I have another
cfform on the same page. Any thoughts on how to fix this?

 


Michael Appenzellar
Sr. Web Applications Developer


Mirame Interactive

http://www.mirameinteractive.com

301-663-5672 x6413

 



~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292866
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


CFFTP list folder with leading numbers issue

2007-11-07 Thread Brian Love
I have been using CFFTP to successfully implement a file browser that easily 
enforces local file/folder permissions because the CFFTP client connects and 
authenticates as the user that is logged in.  It was really quite simple and 
straightforward (thanks CF!).  However... I have run into a small issue with 
folders whose name begins with a number.

For example, lets say you have folder named "2006 budgets" and query the parent 
folder using  to obtain a query of all files and 
folders.  The "2006 budgets" folder will be returned by CF as just "budgets" - 
it strips off the leading numbers.

Has anyone ever run into this problem before?  We didn't notice this until just 
now, and we are running CF8.  Not sure if this is also true for CF7 and 
earlier.  Is this a known issue of CFFTP?  TIA for any help/suggestions... 

~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292869
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: How do I get the characters after the last period in a string?

2007-11-07 Thread Charlie Griefer
On Nov 7, 2007 10:14 AM, Rick Faircloth <[EMAIL PROTECTED]> wrote:
> Thanks everyone, for the help...
>
> Here's the final solution, if anyone's interested:
>
>  accept="image/jpg, image/pjpg, image/jpeg, image/pjpeg, image/png"
> nameconflict="makeunique">
> 
>
>  source="#rppo##file.serverfile#"
> destination="#wppp#/#listfirst(file.serverfile, '.')#_w400.jpg" 
> overwrite="yes">
>  source="#rppo##file.serverfile#"
> destination="#wppt#/#listfirst(file.serverfile, '.')#_w100.jpg" 
> overwrite="yes">
>

hi rick:

a couple of things:

1) the 'file' scope has been deprecated in favor of 'cffile'.  so you
should make an effort to reference cffile.serverfile instead of
file.serverfile.
2) instead of messing with the list functions, you can use
cffile.clientFilename to get the name of the file (without the
extension).  instead of messing with the list functions, you can use
cffile.clientFileExt to get the extension of the file.

-- 
Charlie Griefer


"...All the world shall be your enemy, Prince with a Thousand Enemies,
and whenever they catch you, they will kill you. But first they must catch
you, digger, listener, runner, prince with a swift warning.
Be cunning and full of tricks and your people shall never be destroyed."

~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292858
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Inserting NULL into ms sql 2005 datetime field

2007-11-07 Thread Jason Presley
How to i insert a null field into a ms sql 2005 date/time field?  All I get is 
it inserting the value 01/1/1900.

Thanks! 

~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292857
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: What might this Oracle PLSQL be doing?

2007-11-07 Thread Todd
Looks like 2 other-db connects with their associative kick off this stored
proc along with loading a sql file and kicking off a stored proc named
checkstatus(6).

On Nov 7, 2007 1:37 PM, Ian Skinner <[EMAIL PROTECTED]> wrote:

> I have a .sql file that is executing four pages of code like this.
>
> Connect intdm/d
> Exec chem_epa2
> connect  staging/ee
> exec chem_epa2_dw
> @epa_compare6.sql
> exec checkstatus(6)
>
> Can somebody put this in 'For Dummies" language for me.  I think I have
> the general gist, but I would like to confirm my limited understanding.
>
> TIA
> Ian


~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292870
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: How do I get the characters after the last period in a string?

2007-11-07 Thread Todd
^ = start of string
\w = Word

* probably isn't needed.  This regex doesn't account for multiple "."
characters, but that's not to say that you can't make it.  \w will probably
need changed to something else.  I'm a hack at this, not an expert. :)
Trying to get there.

Regex cheat sheet:
http://www.ilovejackdaniels.com/cheat-sheets/regular-expressions-cheat-sheet/

On Nov 7, 2007 1:35 PM, Rick Faircloth <[EMAIL PROTECTED]> wrote:

> Thanks, Todd...
>
> Can you explain the '^\w' part?
>
> Rick


~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292867
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: How do I get the characters after the last period in a string?

2007-11-07 Thread Jerry Johnson
this will work for 1 or more, but will NOT work for none! (it will
return an empty string)
you should do a listLen(file,".") gt 0 test to make sure before you start.


On Nov 7, 2007 1:21 PM, Rick Faircloth <[EMAIL PROTECTED]> wrote:
> Jerry...
> I'll modify my code to use:
> #listdeleteat(file,listlast(file.'.'),'.')>
>
> Now, I'm assuming that the code above will work if there's
> only one period, too, right?  (I'll test it shortly after lunch!)

~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292868
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: How do I get the characters after the last period in a string?

2007-11-07 Thread Rick Faircloth
You know... a better solution than what I've got, which is
to only deal with as many as two periods in a filename, is needed.
The current solution leaves some gaps if a user decides to user several
periods as delimiters.  And stripping out the periods, except for the one
before the extension might cause name conflicts.

Todd... what would be the regex for deleting just the last period
in a filename plux the extension?

Rick



> -Original Message-
> From: Todd [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 07, 2007 12:08 PM
> To: CF-Talk
> Subject: Re: How do I get the characters after the last period in a string?
> 
> Regex example would be:
> 
> 
> 
> 
> On Nov 7, 2007 11:57 AM, Todd <[EMAIL PROTECTED]> wrote:
> 
> >
> > Plenty of things to do here.
> > 1.) Use regular expression.
> > 2.) Treat the string as a list using the "." as a delimiter (e.g.:  > name = listFirst(varname,'.')> )
> 




~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292861
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: How do I get the characters after the last period in a string?

2007-11-07 Thread Todd
Because CFImage isn't supposed to be used as a file system manipulation?
Even functions like fileMove() doesn't even have one.  Only one that I'm
aware that has a nameconflict attribute is CFFile action="upload."  There's
a reason why we have functions like fileExists().

On Nov 7, 2007 1:14 PM, Rick Faircloth <[EMAIL PROTECTED]> wrote:

> One thing I did notice is that the cfimage tag doesn't have a
> "nameconflict" option.
> It seems it really needs one.  Any reason why it wouldn't have one?
>
> Rick
>
>


~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292860
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


What might this Oracle PLSQL be doing?

2007-11-07 Thread Ian Skinner
I have a .sql file that is executing four pages of code like this.

Connect intdm/d
Exec chem_epa2
connect  staging/ee
exec chem_epa2_dw
@epa_compare6.sql
exec checkstatus(6)

Can somebody put this in 'For Dummies" language for me.  I think I have 
the general gist, but I would like to confirm my limited understanding.

TIA
Ian



~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292855
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Inserting NULL into ms sql 2005 datetime field

2007-11-07 Thread Todd
?

On Nov 7, 2007 1:38 PM, Jason Presley <[EMAIL PROTECTED]> wrote:

> How to i insert a null field into a ms sql 2005 date/time field?  All I
> get is it inserting the value 01/1/1900.
>
> Thanks!


~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292864
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Inserting NULL into ms sql 2005 datetime field

2007-11-07 Thread Jason Presley
I have a table that contains two fields to indicate when a production run is 
scheduled.  It indicates that start and end dates of the run.  When a run is 
not scheduled I need to allow the user to simply remove the date and set the 
value of the field back to NULL.  Every time I try this it sets the value to 
01/1/1900.  How do I get the value to be NULL?  (Allow NULL is set for the 
field in the table). 

~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292856
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Inserting NULL into ms sql 2005 datetime field

2007-11-07 Thread Janet MacKay
> How to i insert a null field into a ms sql 2005 date/time field? 

If you're using cfqueryparam use it's null attribute

   INSERT INTO TheTable (TheColumn) 
   VALUES (  )

Or insert the keyword NULL

   INSERT INTO TheTable (TheColumn) VALUES ( NULL )


~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292862
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Wierd regex problem (isn't it always)

2007-11-07 Thread Andy Jarrett
Hi

I'm trying to do a look through as string to find usernames and add
 tags around them ala Twitter.

The regex I think is fine but when I use reReplace 's back reference
I'm not getting the result I thought I would of. Heres the code. Can
anyone see anything obvious?

Cheers, Andy




#str#   






\2", "all") >

#usernamePos#

~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292863
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


OT: Need help with the value of a Macbook

2007-11-07 Thread Andy Matthews
I know many of you on this list are Mac users and so I'm asking for help.

I'm looking to upgrade my computer (new workstation, and two new monitors).
I'm budgeting about $1500 - $2000. A co-worker of mine said that a friend of
HIS is selling a Macbook. Since I know that's an Intel machine I was curious
so I asked about the specs. Can you guys tell me what you think this machine
is worth?
 
It's a late-2006 Macbook. 2GHz Core 2 Duo with SuperDrive. He upgraded the
RAM to 2GB and the hard drive to 160GB. The model number is MA700LL/A
(Google says that this is a 13.3 inch screen). But, that series is generally
called the Late 2006 Macbook. It's the white 2GHz one from that series. He's
got all of the original packaging, accessories, disks, etc.
 
More importantly, I'm needing a new machine to work on. My PC is nearing the
end of it's useful life and so I'm wanting something that kicks some hiney.
I need to run Photoshop, Illustrator, etc. on it. I also need to run code on
it. At the moment I only have CS2 and I've heard that CS2 is pretty slow on
Intel Macs.
 
Finally, I need comparisons on this computer to a newer Dell workstation. I
prefer to have a desktop machine, but if I can get away with a laptop that
can run fast, can run Windows, and can be hooked up to a real monitor, then
a laptop is okay.
 
Amazon has this price listed for the machine:
http://www.amazon.com/Apple-MacBook-MA700LL-Notebook-SuperDrive/dp/B000GABVO
S
 

 
Andy Matthews
Senior ColdFusion Developer

Office:  877.707.5467 x747
Direct:  615.627.9747
Fax:  615.467.6249
[EMAIL PROTECTED]
  www.dealerskins.com
 


~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292859
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: How do I get the characters after the last period in a string?

2007-11-07 Thread Rick Faircloth
Thanks, Todd...

Can you explain the '^\w' part?

Rick

> -Original Message-
> From: Todd [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 07, 2007 12:08 PM
> To: CF-Talk
> Subject: Re: How do I get the characters after the last period in a string?
> 
> Regex example would be:
> 
> 
> 
> 
> On Nov 7, 2007 11:57 AM, Todd <[EMAIL PROTECTED]> wrote:
> 
> >
> > Plenty of things to do here.
> > 1.) Use regular expression.
> > 2.) Treat the string as a list using the "." as a delimiter (e.g.:  > name = listFirst(varname,'.')> )
> 




~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292854
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: How do I get the characters after the last period in a string?

2007-11-07 Thread Rick Faircloth
Thanks everyone, for the help...

Here's the final solution, if anyone's interested:







This gives me the original image in a folder, "Original", with the original 
filename intact:
"House.jpg".

A resized 400px wide image in a folder, "popup_400", with the original filename 
changed to:
"House_w400.jpg".

And a 100px wide image in a folder, "thumbnails_100", with the original 
filename changed to:
"House_w100.jpg".

I realize I don't have to rename the photos because they're going into separate 
folders.  However,
in case I
ever want to know the width or id the photo by name, I can just look at the 
filename spec.

If anyone sees any improvement that can be made in the code, please let me know!

One thing I did notice is that the cfimage tag doesn't have a "nameconflict" 
option.
It seems it really needs one.  Any reason why it wouldn't have one?

Rick



> -Original Message-
> From: Web Specialist [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 07, 2007 12:13 PM
> To: CF-Talk
> Subject: Re: How do I get the characters after the last period in a string?
> 
> 
> 
> Cheers
> 
> 2007/11/7, Todd <[EMAIL PROTECTED]>:
> >
> > Plenty of things to do here.
> > 1.) Use regular expression.
> > 2.) Treat the string as a list using the "." as a delimiter (e.g.:  > name = listFirst(varname,'.')> )
> >
> > On Nov 7, 2007 11:41 AM, Rick Faircloth <[EMAIL PROTECTED]> wrote:
> >
> > > This seems so simple, yet I couldn't figure out the answer even after
> > > going through the list and strings functions in the docs for CF 8.
> > >
> > > I want to return the characters in the name of a photo preceding the
> > > period.
> > >
> > > i.e.. If the photo is named "dog.jpg", I want to strip out ".jpg" from
> > the
> > > filename so I can alter the filename and then "reattach" the ".jpg".
> > >
> > > Seems so simple, but I can't figure out how to get it done.
> > >
> > > Rick
> >
> >
> >
> 
> 

~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292851
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: How do I get the characters after the last period in a string?

2007-11-07 Thread Rick Faircloth
Jerry...

You hit upon something I thought about after I posted my solution.
Yes, there definitely could be more than one period, since these
are user-uploaded images.

I'll modify my code to use:
#listdeleteat(file,listlast(file.'.'),'.')>

Now, I'm assuming that the code above will work if there's
only one period, too, right?  (I'll test it shortly after lunch!)

And while I'm at it, I should probably just strip out any
periods which might exist in the name beyond two.

I thought about asking the user to do it with an error message,
but the less I ask these users to do, the better!  ;o)

Rick

PS - I just can't get over how great it is to have some image functions!




> -Original Message-
> From: Jerry Johnson [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 07, 2007 12:04 PM
> To: CF-Talk
> Subject: Re: How do I get the characters after the last period in a string?
> 
> Use the list functions, with the period as the delimiter
> 
> could there be more than one period? If so, you need to decide between
> two options (if not, then either will work)
> 
> If you only want to remove the very last extension after the last period,
> 
> 
> 
> If you only want the content before the first one,
> 
> 
> 




~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292853
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Image Management

2007-11-07 Thread Rick Faircloth
Thanks for the tip, Andrew!
I'll check into it!

Rick


> -Original Message-
> From: Andrew Grosset [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 07, 2007 12:47 PM
> To: CF-Talk
> Subject: Re: Image Management
> 
> Stick everything in one bucket (folder) at Amazon using the Amazon S3 REST 
> Wrapper CFC  by Joe
> Danziger see:
> http://www.ajaxcf.com/blog/index.cfm/2006/9/7/Amazon-S3-REST-Wrapper
> 
> then you could name like so:
> 
> imagename_s.jpg //small
> imagename_m.jpg //medium
> imagename_L.jpg //Large
> imagename_E.jpg //elephant :)
> 
> Amazon claim there is no practical limit to how much you can put in a bucket 
> (folder) which
> keeps it nice and simple - certainly worth a look.
> 
> Andrew.
> 




~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292852
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Image Management

2007-11-07 Thread Andrew Grosset
Stick everything in one bucket (folder) at Amazon using the Amazon S3 REST 
Wrapper CFC  by Joe Danziger see:
http://www.ajaxcf.com/blog/index.cfm/2006/9/7/Amazon-S3-REST-Wrapper

then you could name like so:

imagename_s.jpg //small
imagename_m.jpg //medium
imagename_L.jpg //Large
imagename_E.jpg //elephant :)

Amazon claim there is no practical limit to how much you can put in a bucket 
(folder) which keeps it nice and simple - certainly worth a look.

Andrew. 

~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292850
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: How do I get the characters after the last period in a string?

2007-11-07 Thread Jonathon Stierman
ListLast("dog.jpg",".")

Jonathon 

-Original Message-
From: Rick Faircloth [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 07, 2007 10:42 AM
To: CF-Talk
Subject: How do I get the characters after the last period in a string?

This seems so simple, yet I couldn't figure out the answer even after going
through the list and strings functions in the docs for CF 8.

I want to return the characters in the name of a photo preceding the period.

i.e.. If the photo is named "dog.jpg", I want to strip out ".jpg" from the
filename so I can alter the filename and then "reattach" the ".jpg".

Seems so simple, but I can't figure out how to get it done.

Rick





~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292845
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: How do I get the characters after the last period in a string?

2007-11-07 Thread Eric Cobb
ListFirst('dog.jpg','.')


Rick Faircloth wrote:
> This seems so simple, yet I couldn't figure out the answer even after
> going through the list and strings functions in the docs for CF 8.
> 
> I want to return the characters in the name of a photo preceding the
> period.
> 
> i.e.. If the photo is named "dog.jpg", I want to strip out ".jpg" from the
> filename so I can alter the filename and then "reattach" the ".jpg".
> 
> Seems so simple, but I can't figure out how to get it done.
> 
> Rick
> 
> 
> 
> 

~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292849
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: How do I get the characters after the last period in a string?

2007-11-07 Thread Jerry Johnson
Use the list functions, with the period as the delimiter

could there be more than one period? If so, you need to decide between
two options (if not, then either will work)

If you only want to remove the very last extension after the last period,



If you only want the content before the first one,



On Nov 7, 2007 11:41 AM, Rick Faircloth <[EMAIL PROTECTED]> wrote:
> This seems so simple, yet I couldn't figure out the answer even after
> going through the list and strings functions in the docs for CF 8.
>
> I want to return the characters in the name of a photo preceding the
> period.
>
> i.e.. If the photo is named "dog.jpg", I want to strip out ".jpg" from the
> filename so I can alter the filename and then "reattach" the ".jpg".
>
> Seems so simple, but I can't figure out how to get it done.
>
> Rick
>
>
>
> 

~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292846
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: How do I get the characters after the last period in a string?

2007-11-07 Thread Web Specialist


Cheers

2007/11/7, Todd <[EMAIL PROTECTED]>:
>
> Plenty of things to do here.
> 1.) Use regular expression.
> 2.) Treat the string as a list using the "." as a delimiter (e.g.:  name = listFirst(varname,'.')> )
>
> On Nov 7, 2007 11:41 AM, Rick Faircloth <[EMAIL PROTECTED]> wrote:
>
> > This seems so simple, yet I couldn't figure out the answer even after
> > going through the list and strings functions in the docs for CF 8.
> >
> > I want to return the characters in the name of a photo preceding the
> > period.
> >
> > i.e.. If the photo is named "dog.jpg", I want to strip out ".jpg" from
> the
> > filename so I can alter the filename and then "reattach" the ".jpg".
> >
> > Seems so simple, but I can't figure out how to get it done.
> >
> > Rick
>
>
> 

~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292848
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: How do I get the characters after the last period in a string?

2007-11-07 Thread Todd
Regex example would be:




On Nov 7, 2007 11:57 AM, Todd <[EMAIL PROTECTED]> wrote:

>
> Plenty of things to do here.
> 1.) Use regular expression.
> 2.) Treat the string as a list using the "." as a delimiter (e.g.:  name = listFirst(varname,'.')> )


~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292847
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


How do I get the characters after the last period in a string?

2007-11-07 Thread Rick Faircloth
This seems so simple, yet I couldn't figure out the answer even after
going through the list and strings functions in the docs for CF 8.

I want to return the characters in the name of a photo preceding the
period.

i.e.. If the photo is named "dog.jpg", I want to strip out ".jpg" from the
filename so I can alter the filename and then "reattach" the ".jpg".

Seems so simple, but I can't figure out how to get it done.

Rick



~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292842
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: How do I get the characters after the last period in a string?

2007-11-07 Thread Todd
Plenty of things to do here.
1.) Use regular expression.
2.) Treat the string as a list using the "." as a delimiter (e.g.:  )

On Nov 7, 2007 11:41 AM, Rick Faircloth <[EMAIL PROTECTED]> wrote:

> This seems so simple, yet I couldn't figure out the answer even after
> going through the list and strings functions in the docs for CF 8.
>
> I want to return the characters in the name of a photo preceding the
> period.
>
> i.e.. If the photo is named "dog.jpg", I want to strip out ".jpg" from the
> filename so I can alter the filename and then "reattach" the ".jpg".
>
> Seems so simple, but I can't figure out how to get it done.
>
> Rick


~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292843
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: How do I get the characters after the last period in a string?

2007-11-07 Thread Barney Boisvert
listLast(myString, ".")

cheers,
barneyb

On 11/7/07, Rick Faircloth <[EMAIL PROTECTED]> wrote:
> This seems so simple, yet I couldn't figure out the answer even after
> going through the list and strings functions in the docs for CF 8.
>
> I want to return the characters in the name of a photo preceding the
> period.
>
> i.e.. If the photo is named "dog.jpg", I want to strip out ".jpg" from the
> filename so I can alter the filename and then "reattach" the ".jpg".
>
> Seems so simple, but I can't figure out how to get it done.
>
> Rick
>
>
>
> 

~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292844
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Weird CF8 issue, Customer gets asked for RDS login after redirect from app login

2007-11-07 Thread Keith, Jeremy
Also the page that it's redirecting to is the CFC explorer

CFIDE/componentutils/cfcexplorer.cfc?method=getcfcinhtml&name=WebService
s.ajaxCFC.core.RWGJKAjax&path=/Webservices/ajaxCFC/core/RWGJKAjax.cfc 


Jeremy Keith
Network Administrator
Rand-Whitney Group LLC
One Agrand Street
Worcester, MA 01607
Office: (508) 890-7032


-Original Message-
From: Keith, Jeremy [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 07, 2007 10:02 AM
To: CF-Talk
Subject: Weird CF8 issue, Customer gets asked for RDS login after
redirect from app login

OK, have a very strange issue that I've not seen before.

We have literally thousands of customers, and I really think that this
is probably a security setting on their firewall or in their IE
settings, however I'll post this up anyways.

We have a application with authentication that creates a session, when
anyone at this location attempts to log into the application they get
kicked to a different page that asks them to provide a login into RDS

Now the only thing to note is that their public IP address is a 192.*
IP, not in 192.168, but I'm wonder if there is something with the
debugging in CF8 that might be causing this? Anyone else seen anything
like this?


Jeremy Keith
Network Administrator
Rand-Whitney Group LLC
One Agrand Street
Worcester, MA 01607
Office: (508) 890-7032




CAUTION:The preceding email message and any
attachments to it may be confidential and/or may contain proprietary
information that is entitled to protection from disclosure under
applicable law.  It is not intended for transmission to, or receipt by,
any unauthorized persons.  If you are not the intended recipient or such
recipient's employee or agent, please do not read any attachments, or
print, copy, disseminate or otherwise
disclose the contents of this email.   If you have
received this message in error, please (i) notify the sender by return
email immediately that you received the message in error, and (ii) erase
or destroy the message.
Thank you.




~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292841
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Webservice over SSL

2007-11-07 Thread Web Exp
Hey guys...
i am getting an error message when trying to invoke a webservice's
wsdl over SSL.

The error is: File not found: /CFIDE/componentutils/cfcexplorer.cfc

Now, if I access the url through my browser it comes up fine, although
I do get a browser warning about the SSL certificate not issued by a
Trusted Authority.
if I go past that the wsdl shows up fine.

The webservice gets fine if I invoke it over http, but causes the
above error if tried over https.

Any ideas?

Thanks,
K

~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292840
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Image Management

2007-11-07 Thread Terry Schmitt
More food for thought... I don't don't know what OS you are using, but you may 
want to limit how many files are stored in a single folder.

I installed a helpdesk ticketing system on Windows that stored attachments in a 
single folder. The folder now contains 10's of thousands of files and is 
painfully slow to work with via Windows Explorer and makes maintenance a real 
pain.

If you expect a large quantity of files, I would create a folder scheme that 
stores the files by year, month, user or whatever makes sense for your specific 
situation. 

~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292833
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Image Management

2007-11-07 Thread Rick Faircloth
I would assume my understanding is correct, that the file is being read
in binary form, whether it's being read off the hard disk or from
binary code in the database, correct?

So, I'm assuming, again, that there really should be little difference
in performance regardless of how the file data is accessed.

Would these assumptions be correct?

Rick

> -Original Message-
> From: Dan G. Switzer, II [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 07, 2007 9:28 AM
> To: CF-Talk
> Subject: RE: Image Management
> 
> Claude,
> 
> > >>My gut reaction is that this would add overhead, a
> >dependency on the database, network traffic, etc.  What are your thoughts?
> >
> >This sbject has been brought many times.
> >You're right
> >The purpose of a database is to store information in such a way that it
> >can be sorted and searched
> >more easily. An image file is just a bunch of binary data, there is
> >nothing that can be searched or sorted
> >in an image, except may be in the name of the file.
> >The best tool to store such information is the file management system in
> >the operating system.
> >You can store anything in the database, like the file name, owner's
> >name, image type, sizes, subject, key words,
> >but the right place of the image itself is in some directory.
> >Storing the image in the database will just add overhead without any of
> >the advantages brought by a database.
> 
> I disagree. There are some key advantages to using a database. The two
> biggest advantages to using the database is all your data is stored in one
> location. This means if you move your app to your server, all the files go
> with it.
> 
> This is also an important issue if you're in a clustered environment, where
> trying to keep files in sync between web servers can be problematic. If the
> files are all stored in the database, then there's no need to sync the files
> across multiple servers.
> 
> I would only use the database to store user created/uploaded content.
> There's no point in putting static files/images that are part of the web
> application itself--that would definitely add overhead you don't want.
> 
> There's also some maintenance advantages. If you need to remove files
> because the data has been deleted, you don't need to delete data in two
> places (database and file system) you can just delete it from the database.
> You also don't have to worry about rogue files that may or may not be
> needed.
> 
> Obviously, you can overcome these obstacles if you want to use file system.
> 
> It can also be advantageous at times to combine the two methods. Store the
> files in the database, but write them to disk for performance. This works
> well for images or other files that you want the webserver to serve direct.
> You can write scripts to write the images to disk if they don't already
> exist.
> 
> One other note, if you're going to be using  to push the files
> to users because some kind of authorization is required, then you going to
> have to read that binary data from somewhere. Depending on your connectivity
> to the database server, there's not going to be a whole lot of difference
> between reading from a database or file system.
> 
> Most databases have made substantial progress in BLOB/CLOB management.
> 
> I generally use the database for storing files that the user
> created/uploaded--especially when I need to serve those files via  />.
> 
> For content that I would consider part of the project source (such as
> images, help files, etc.) then I usually use the file system--since it's
> very easy to keep those files in sync when you push out new builds.
> 
> -Dan




~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292835
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Accessing other peoples Exchange calendar with CF8

2007-11-07 Thread Dawson, Michael
>As you seem to have covered this ground already, can the access given
to the admin account be restricted to just 'read calendar' or is it all
or nothing ?

The way we do it, it's full access to the mailbox.  I haven't tried
granting access through Outlook, so I'm not sure if it will work.

M!ke

~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292837
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: I want to put my webroot on a drive other than C...

2007-11-07 Thread Rick Faircloth
It's interesting, and a little confusing, when all I have to do
to change my webroot for a site, is to specify the location in IIS.

The thing that brings confusion is that last night, when I installed
CF Report Builder, it asked me the location that *CF* views as
my webroot.

If CF doesn't see a webroot and only takes its cues from IIS, why
would it ask me that question?  I'm sure I'm just missing something in
all of this, but I can't quite see it...

Rick



> -Original Message-
> From: Eric Roberts [mailto:[EMAIL PROTECTED]
> Sent: Saturday, November 03, 2007 1:46 AM
> To: CF-Talk
> Subject: RE: I want to put my webroot on a drive other than C...
> 
> Go into IIS and right click on the site...go to properties.  There is a tab
> that says home or something like that.  Just change the path...
> 
> Eric
> 
> -Original Message-
> From: Rick Faircloth [mailto:[EMAIL PROTECTED]
> Sent: Friday, November 02, 2007 10:44 PM
> To: CF-Talk
> Subject: RE: I want to put my webroot on a drive other than C...
> 
> That's what I thought and it's probably right.
> 
> I should have mentioned this is IIS 5 on XP Pro.
> I don't know if it being on XP Pro rather than a regular
> service or not.  Probably not, but I thought I'd mention it.
> 
> But I can't find anywhere in the IIS setting to configure
> the root... where would I do that?
> 
> Rick
> 
> > -Original Message-
> > From: Casey Dougall [mailto:[EMAIL PROTECTED]
> > Sent: Friday, November 02, 2007 11:00 PM
> > To: CF-Talk
> > Subject: Re: I want to put my webroot on a drive other than C...
> >
> > that's an IIS setting. Coldfusion doesn't care where webroot is. It will
> run
> > regardless as long as your home directory in IIS is pointed to the correct
> > folder. This should be a partition on your hardrive not a networked letter
> > drive.
> >
> >
> >
> > On 11/2/07, Rick Faircloth <[EMAIL PROTECTED]> wrote:
> > >
> > > Possible?  I can't seem to get a straight answer from the 'net.
> > >
> > > Does the webroot have to be at C:\Inetpub\wwwroot ?
> > >
> > > I'd really like to have it at E:\Inetpub\wwwroot.
> > >
> > > I tried changing it in the CF 8 Administrator, but that didn't work out.
> > >
> > > ???
> > >
> > > Rick
> > >
> > >
> > >
> > >
> >
> >
> 
> 
> 
> 

~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292836
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Weird CF8 issue, Customer gets asked for RDS login after redirect from app login

2007-11-07 Thread Keith, Jeremy
I should define that this is only happening with ONE specific customer,
for the others it works as designed 


Jeremy Keith
Network Administrator
Rand-Whitney Group LLC
One Agrand Street
Worcester, MA 01607
Office: (508) 890-7032


-Original Message-
From: Keith, Jeremy [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 07, 2007 10:02 AM
To: CF-Talk
Subject: Weird CF8 issue, Customer gets asked for RDS login after
redirect from app login

OK, have a very strange issue that I've not seen before.

We have literally thousands of customers, and I really think that this
is probably a security setting on their firewall or in their IE
settings, however I'll post this up anyways.

We have a application with authentication that creates a session, when
anyone at this location attempts to log into the application they get
kicked to a different page that asks them to provide a login into RDS

Now the only thing to note is that their public IP address is a 192.*
IP, not in 192.168, but I'm wonder if there is something with the
debugging in CF8 that might be causing this? Anyone else seen anything
like this?


Jeremy Keith
Network Administrator
Rand-Whitney Group LLC
One Agrand Street
Worcester, MA 01607
Office: (508) 890-7032




CAUTION:The preceding email message and any
attachments to it may be confidential and/or may contain proprietary
information that is entitled to protection from disclosure under
applicable law.  It is not intended for transmission to, or receipt by,
any unauthorized persons.  If you are not the intended recipient or such
recipient's employee or agent, please do not read any attachments, or
print, copy, disseminate or otherwise
disclose the contents of this email.   If you have
received this message in error, please (i) notify the sender by return
email immediately that you received the message in error, and (ii) erase
or destroy the message.
Thank you.




~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292838
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Weird CF8 issue, Customer gets asked for RDS login after redirect from app login

2007-11-07 Thread Keith, Jeremy
OK, have a very strange issue that I've not seen before.

We have literally thousands of customers, and I really think that this
is probably a security setting on their firewall or in their IE
settings, however I'll post this up anyways.

We have a application with authentication that creates a session, when
anyone at this location attempts to log into the application they get
kicked to a different page that asks them to provide a login into RDS

Now the only thing to note is that their public IP address is a 192.*
IP, not in 192.168, but I'm wonder if there is something with the
debugging in CF8 that might be causing this? Anyone else seen anything
like this?


Jeremy Keith
Network Administrator
Rand-Whitney Group LLC
One Agrand Street
Worcester, MA 01607
Office: (508) 890-7032




CAUTION:The preceding email message and any
attachments to it may be confidential and/or may contain
proprietary information that is entitled to protection
from disclosure under applicable law.  It is not intended
for transmission to, or receipt by, any unauthorized
persons.  If you are not the intended recipient or such
recipient's employee or agent, please do not read any
attachments, or print, copy, disseminate or otherwise
disclose the contents of this email.   If you have
received this message in error, please (i) notify the
sender by return email immediately that you received
the message in error, and (ii) erase or destroy the
message.
Thank you.


~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292831
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Image Management

2007-11-07 Thread Claude Schneegans
 >>all your data is stored in one
location. This means if you move your app to your server, all the files go
with it.

1. you can also store all your images in one location, in some images 
directory.
if this directory is inside your site -- which is better if you want 
your images to be
viewable by browsers -- it will move with your application as well,
2. unless you store your images in an access DB, which is not even "not 
recommanded",
 but rather "retarded", you won't move your app by just moving some 
files.

 >>There's no point in putting static files/images that are part of the web
application itself--that would definitely add overhead you don't want.

Definitely.

 >>There's also some maintenance advantages. If you need to remove files
because the data has been deleted, you don't need to delete data in two
places (database and file system) you can just delete it from the database.

Not really a big deal, and definitely not a good enough reason.


-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292832
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Image Management

2007-11-07 Thread Ryan Heldt
For what it's worth, we had a site here one time in which the developer that
wrote the site never really cleaned up after himself and left images
(hundreds of MBs!) all over the place, even when items associated with those
images were deleted from the database. One of the solutions we developed
after that problem was to put all of the images in the database -- not the
image data itself, but the filename. Large images, smaller images,
thumbnails, etc. That way you'll always know what images are supposed to be
there, and if you're not sure you're just one query away from finding out.
Also makes writing a cleanup script much eaiser. Just a thought.

Ryan Heldt

> -Original Message-
> From: Claude Schneegans [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, November 07, 2007 7:54 AM
> To: CF-Talk
> Subject: Re: Image Management
> 
>  >>My gut reaction is that this would add overhead, a 
> dependency on the database, network traffic, etc.  What are 
> your thoughts?
> 
> This sbject has been brought many times.
> You're right
> The purpose of a database is to store information in such a 
> way that it can be sorted and searched more easily. An image 
> file is just a bunch of binary data, there is nothing that 
> can be searched or sorted in an image, except may be in the 
> name of the file.
> The best tool to store such information is the file 
> management system in the operating system.
> You can store anything in the database, like the file name, 
> owner's name, image type, sizes, subject, key words, but the 
> right place of the image itself is in some directory.
> Storing the image in the database will just add overhead 
> without any of the advantages brought by a database.



~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292834
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Accessing other peoples Exchange calendar with CF8

2007-11-07 Thread Tom Chiverton
On Wednesday 07 Nov 2007, Dawson, Michael wrote:
> Yes.  When I say "mailbox", I mean the Exchange mailbox object that
> contains the following folders: Inbox, Calendar, Contact, Tasks, etc.

Cool.
As you seem to have covered this ground already, can the access given to the 
admin account be restricted to just 'read calendar' or is it all or nothing ?

> It was similar, except I used the attributeCollection:

/me nods
Cheers again :-)

-- 
Tom Chiverton, adding you to the 'buy beer for' list



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office.  Any reference to a partner in 
relation to Halliwells LLP means a member of Halliwells LLP.  Regulated by The 
Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.

~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292830
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: securing non-cfm files

2007-11-07 Thread Mik Muller
Found it.

http://coolfusion.com/products/iauth/

Mik


At 11:26 PM 11/6/2007, Mik Muller wrote:
>Yeah, I thought about that. Problem is some of the video files are massive, 
>and I don't want to tie up a CF process for that long. If I remember 
>correctly, this server app does a quick check based on my own auth sceme and 
>then hands the process off to IIS.
>
>Mik
>
>
>At 02:14 PM 11/6/2007, Larry Lyons wrote:
>>> Hey folks,
>>> 
>>> A while back there was a discussion about a server-side app that works 
>>> with CF to secure non-CFM files, ie; doc, pdf, etc., into whatever 
>>> auth scheme you're using in your CF application.
>>> 
>>> For the life of me I can't remember the app, or find that thread. Can 
>>> anyone direct me in the right direction?
>>> 
>>> Thanks,
>>> 
>>> Mik
>>> 
>>
>>Try this, move your non-cf files off the web root. Then only access them 
>>through cfcontent, only after the user has been properly authenticated using 
>>whatever scheme you choose.
>>
>>> deletefile="No" />
>>
>>
>>hth,
>>
>>larry
>>
>>--
>>Larry C. Lyons
>>Web Analyst
>>BEI Resources
>>American Type Culture Collection
>>http://www.beiresources.org
>>email: llyons(at)atcc(dot)org
>>tel: 703.365.2700.2678
>>--
>>
>>
>>
>
>

~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292839
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Image Management

2007-11-07 Thread Dan G. Switzer, II
Claude,

> >>My gut reaction is that this would add overhead, a
>dependency on the database, network traffic, etc.  What are your thoughts?
>
>This sbject has been brought many times.
>You're right
>The purpose of a database is to store information in such a way that it
>can be sorted and searched
>more easily. An image file is just a bunch of binary data, there is
>nothing that can be searched or sorted
>in an image, except may be in the name of the file.
>The best tool to store such information is the file management system in
>the operating system.
>You can store anything in the database, like the file name, owner's
>name, image type, sizes, subject, key words,
>but the right place of the image itself is in some directory.
>Storing the image in the database will just add overhead without any of
>the advantages brought by a database.

I disagree. There are some key advantages to using a database. The two
biggest advantages to using the database is all your data is stored in one
location. This means if you move your app to your server, all the files go
with it. 

This is also an important issue if you're in a clustered environment, where
trying to keep files in sync between web servers can be problematic. If the
files are all stored in the database, then there's no need to sync the files
across multiple servers.

I would only use the database to store user created/uploaded content.
There's no point in putting static files/images that are part of the web
application itself--that would definitely add overhead you don't want.

There's also some maintenance advantages. If you need to remove files
because the data has been deleted, you don't need to delete data in two
places (database and file system) you can just delete it from the database.
You also don't have to worry about rogue files that may or may not be
needed.

Obviously, you can overcome these obstacles if you want to use file system. 

It can also be advantageous at times to combine the two methods. Store the
files in the database, but write them to disk for performance. This works
well for images or other files that you want the webserver to serve direct.
You can write scripts to write the images to disk if they don't already
exist.

One other note, if you're going to be using  to push the files
to users because some kind of authorization is required, then you going to
have to read that binary data from somewhere. Depending on your connectivity
to the database server, there's not going to be a whole lot of difference
between reading from a database or file system.

Most databases have made substantial progress in BLOB/CLOB management.

I generally use the database for storing files that the user
created/uploaded--especially when I need to serve those files via .

For content that I would consider part of the project source (such as
images, help files, etc.) then I usually use the file system--since it's
very easy to keep those files in sync when you push out new builds.

-Dan


~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292828
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Image Management

2007-11-07 Thread Claude Schneegans
 >>My gut reaction is that this would add overhead, a
dependency on the database, network traffic, etc.  What are your thoughts?

This sbject has been brought many times.
You're right
The purpose of a database is to store information in such a way that it 
can be sorted and searched
more easily. An image file is just a bunch of binary data, there is 
nothing that can be searched or sorted
in an image, except may be in the name of the file.
The best tool to store such information is the file management system in 
the operating system.
You can store anything in the database, like the file name, owner's 
name, image type, sizes, subject, key words,
but the right place of the image itself is in some directory.
Storing the image in the database will just add overhead without any of 
the advantages brought by a database.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292827
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Accessing other peoples Exchange calendar with CF8

2007-11-07 Thread Dawson, Michael
>Oh, just to be clear - 'mailbox' in this context means calendars as
well, right ?

Yes.  When I say "mailbox", I mean the Exchange mailbox object that
contains the following folders: Inbox, Calendar, Contact, Tasks, etc.

>What was the CF you used, if I can ask ? Was it basically what I posted
(the generic account username/password, but with the mailboxname of the
other persons calendar ?

It was similar, except I used the attributeCollection:























#messages.recordCount# messages



#messages.subject# : #messages.timeReceived# :
#htmlEditFormat(messages.uid)#



~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292829
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: LiveDocs / adobe.com down

2007-11-07 Thread Larry Lyons
seems fine now.

larry

> I'm getting no answer for LiveDocs or the main adobe.com site from the 
> office, 
> ditto from home and someone else's home.
> -- 
> Tom Chiverton
> Helping to centrally market error-free meta-services
> on: http://thefalken.livejournal.com 

~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292826
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: LiveDocs / adobe.com down

2007-11-07 Thread gary gilbert
Yep its down for me too.  Just to be sure I checked through a proxy server
and had no luck there either


-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292825
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Image Management

2007-11-07 Thread Rick Faircloth
Hi, Rich...

No responses, huh?  Too bad... I, too, am interested in the differences
between storing files on a hard drive and referencing them in the db vs
storing files as BLOBs.  I've never used a BLOB, but would like to know
if there are many/any benefits.  Ultimately, it all gets stored on a
hard disk, and it would seem that BLOB storage might be more trouble with
corruption in the translation.

I guess I just need to Google and see what info I can find.

@ All:  Is there anyone using BLOB storage for images or other files?

Rick

> -Original Message-
> From: Rich [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 06, 2007 4:31 PM
> To: CF-Talk
> Subject: RE: Image Management
> 
> Since we're on this topic
> 
> I usually manage images on disk in a similar fashion.  I've recently begun
> working on a new project, and all binary content in stored in the DB
> (images, music, etc.). My gut reaction is that this would add overhead, a
> dependency on the database, network traffic, etc.  What are your thoughts?
> 
> I would really like to hear everyone's thoughts on best practice in relation
> to disk storage vs. db storage for digital assets.
> 
> Rich Kroll




~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292824
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


  1   2   >