Re: CFIF Statement

2006-10-01 Thread Robertson-Ravo, Neil (RX)
Note; I never said the process of cfif isStruct() etc was a bad thing, far from it - I use it all the time when the statement is evaluating a boolean (and in cases where we fool ColdFusion into thinking a value is) I simple noted that the recordcount hack is not a boolean and as indeed you noted c

Re: CFIF Statement

2006-10-01 Thread Robertson-Ravo, Neil (RX)
Erm, I never said it was ambiguous (if this is indeed the message you are replying to). The point is that query.recordcount is not a boolean - it could have 3 possible values true, false, nothing..(in ColdFusion terms) Implicit evaluation when the value is a boolean is great, if it is guaranteed t

Re: Localization best practices

2006-10-01 Thread Nathan Strutz
Yeah, if the site is mostly static content, that works, but if it's a dynamic application, you probably won't want to duplicate the display layer in all the different layers. Victor, your approach is good and makes sense, however, instead of doing all of that in your Application.cfc, you should pr

Re: Structures in Java?

2006-10-01 Thread Mark Mandel
Your probably better off with a java.util.Hashtable, as it is already syncronised (thread safe), and more often than not, where are using Hashtables in a web environment, they need to be thread safe. That being said, java.util.Collections gives you some easy to use utilities to create synchronised

Re: Hash Sha-1

2006-10-01 Thread Juman Lop
>Try using SHA instead of MD5? > >On 10/2/06, Juman Lop <[EMAIL PROTECTED]> wrote: > > >-- >CFAJAX docs and other useful articles: >http://www.bifrost.com.au/blog/ I have been trying to change the MD5 with Sha but the output is still do not work properly. ~~

RE: Hash Sha-1

2006-10-01 Thread Tom Kitta
Be careful with encryption moving from .Net to CF and vice versa. Just because the one names the algorithm the same way as the other it doesn't follow that you can just encrypt in one and decrypt in the other. For example, the MD5 hash used in CF is a short version that uses hexedecimal notation.

Re: CFIF Statement

2006-10-01 Thread Aaron Rouse
If the query failed, wouldn't an error get thrown? I personally do not see how "dynamic evaluation" is such a bad thing. I recall when everyone on these lists started saying how bad it is and when those CF guidelines were put out on the MACR site that supported the idea of them being bad. At some

Re: CFIF Statement

2006-10-01 Thread Douglas Knudsen
agreed. Note that folks in JS land use this all the time. if( document.someobject ) IIRC, can use in Java toooh and AS. DK On 10/1/06, Dave Watts <[EMAIL PROTECTED]> wrote: > > > No, the point here is that will give > > you true or false usually reserved for booleans which do > > actually

Hash Sha-1

2006-10-01 Thread Juman Lop
Can anyone help me to convert this VB.NEt code to Coldfusion code. I'm trying to do it but the output is dosn't same. VB.NET cod: '' Input: SENTRYORD01154321SENTRYORD01154321 ''

Re: Hash Sha-1

2006-10-01 Thread James Holmes
Try using SHA instead of MD5? On 10/2/06, Juman Lop <[EMAIL PROTECTED]> wrote: > Can anyone help me to convert this VB.NEt code to Coldfusion code. I'm trying > to do it but the output is dosn't same. > VB.NET cod: > '' > Input: SE

Hash Sha-1

2006-10-01 Thread Juman Lop
Can anyone help me to convert this VB.NEt code to Coldfusion code. I'm trying to do it but the output is dosn't same. VB.NET cod: '' Input: SENTRYORD01154321SENTRYORD01154321 ''

RE: CFIF Statement

2006-10-01 Thread Dave Watts
> No, the point here is that will give > you true or false usually reserved for booleans which do > actually give true/false/1/0, such as isStruct() If a language supports implicit evaluation of integers as Boolean values, there is nothing wrong with taking advantage of it. If I suggested t

Re: Structures in Java?

2006-10-01 Thread Denny Valliant
On 10/1/06, D F <[EMAIL PROTECTED]> wrote: > > Thanks Dave, so presumably this HashMap object can be passed around > through various methods etc? Pretty much. I think the one thing you need to keep in your head is that in java, everything starts at 0, and CF starts with 1. There is a word that

RE: CF vs. .NET presentations?

2006-10-01 Thread Mark Henderson
> CSS developers aren't considered such unless they can make > things work cross-browser. Would you agree? Agreed, no arguments there. > Even if you > don't, that is my take. I won't hire anyone for XHTML/CSS > unless they can work cross-browser. So, again...fix your CSS. This is where we dif

Re: Structures in Java?

2006-10-01 Thread Dave Carabetta
On 10/1/06, D F <[EMAIL PROTECTED]> wrote: > Thanks Dave, so presumably this HashMap object can be passed around through > various methods etc? > If I'm understanding what you're trying to to do, then yes, you can pass Java objects just like you can pass CF objects around. The big difference is t

Re: Structures in Java?

2006-10-01 Thread D F
Thanks Dave, so presumably this HashMap object can be passed around through various methods etc? >On 10/1/06, D F <[EMAIL PROTECTED]> wrote: >> Is there anything in Java similar to Coldfusions Structures? >> > >Remember that ColdFusion is compiled to Java, so there's always going >to be a relate

Re: Structures in Java?

2006-10-01 Thread Dave Carabetta
On 10/1/06, D F <[EMAIL PROTECTED]> wrote: > Is there anything in Java similar to Coldfusions Structures? > Remember that ColdFusion is compiled to Java, so there's always going to be a related data type between the two languages. In this case, you want a HashMap, which is what a CF structure is u

Structures in Java?

2006-10-01 Thread D F
Is there anything in Java similar to Coldfusions Structures? ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a ye

RE: Localization best practices

2006-10-01 Thread Snake
Depends if your site is database driven and needs to be DB driven, if it is, store multiple langauge versions of all content with a languageID, otherwise store flat files in language folders. E.g. Mysite/uk MySite/FR When someone enters the site, ask them to choose the language,a nd stor ethe ID

Re: CF vs. .NET presentations?

2006-10-01 Thread John C. Bland II
(again, responded off list) On 10/1/06, Matt Quackenbush <[EMAIL PROTECTED]> wrote: > > I typically don't respond to this type of thread, but this one kinda threw > me... > > While I wholeheartedly agree that one should be able to "make things work > cross-browser", it is absurd at best to suggest

Localization best practices

2006-10-01 Thread Victor Moore
Hi, I am struggling to determine what is the best option for the following: If a site has to provide multiple languages, how would one go about displaying the language info in selects. Ex the information is stored in the db like: table_1 id int language_id tinyint lang_string nvarchar [40] I cam

Re: CFIF Statement

2006-10-01 Thread Robertson-Ravo, Neil (RX)
Indeed, but toboot it only looks valid if it is boolean! IMO. "This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant, Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential a

Re: CFIF Statement

2006-10-01 Thread John C. Bland II
The idea is not to bank on myquery.RecordCount being a boolean. What happens if the query fails? Then myquery won't contain RecordCount. I think this is what he meant. Most of the time I'll add checks: I could be wrong...it just seemed that is what Neil meant. He also said *some say* and I would

Re: CF vs. .NET presentations?

2006-10-01 Thread John C. Bland II
(responded offlist; this post is pretty much dead and no need to fill up everyone's inbox) On 10/1/06, Jochem van Dieten <[EMAIL PROTECTED]> wrote: > > John C. Bland II wrote: > > Duh, the rendering engine does not render everything properly and the > > community has found the necessary hacks to w

Re: CFIF Statement

2006-10-01 Thread Robertson-Ravo, Neil (RX)
No, the point here is that will give you true or false usually reserved for booleans which do actually give true/false/1/0, such as isStruct() If have 58 records (or more than one) then it doesn't make sense to use an cfif like this, whether it works or not. "This e-mail is from Re

RE: CFIF Statement

2006-10-01 Thread Loathe
Dynamic evaluation is bad use? News to me. How so? I think it's clear and anyone that understand how that evaluates knows what that statement is doing, I don't have a problem with shortcut evaluations at all. You don't think thats clear? > -Original Message- > From: Robertson-Ravo, Nei

Re: No buffer space available (maximum connections reached?)

2006-10-01 Thread Dan Plesse
Richard, I use *netstat -a* The Connection object has methods to test the connection Can you provide a full stack trace? Does it look like this? Error Executing Database Query. [Macromedia][SQLServer JDBC Driver]Error establishing socket. No buffer space available (maximum connections reached?)

Re: CFIF Statement

2006-10-01 Thread Robertson-Ravo, Neil (RX)
This though can be frowned upon. It is evaluating it as a booleon when in most cases it will never be. Some say bad use. "This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant, Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business, Registered in England, Nu

Re: OT:EnterpriseDB

2006-10-01 Thread Jochem van Dieten
Doug Brown wrote: > I was wondering if anyone on the board has used, or is using > EnterpriseDB as their RDBMS? I noticed that Sony, who deploys over 150 > Oracle 9i servers are changing over to EnterpriseDB for their gaming > solutions. Is this a monster or what? EnterpriseDB is a propietary P

Re: CF vs. .NET presentations?

2006-10-01 Thread Jochem van Dieten
John C. Bland II wrote: > Duh, the rendering engine does not render everything properly and the > community has found the necessary hacks to work around them. Did you think I > was talking about 5 years ago or now? You were talking about a specific phone call I made in the past. If you don't know

RE: CF vs. .NET presentations?

2006-10-01 Thread Matt Quackenbush
I typically don't respond to this type of thread, but this one kinda threw me... While I wholeheartedly agree that one should be able to "make things work cross-browser", it is absurd at best to suggest that to "fix your CSS issues = find out the necessary hack to fix your issue". The very fact t

Re: CFIF Statement

2006-10-01 Thread Nick Tong - TalkWebSolutions.co.uk
you dont even need the GT you can just use -- Nick Tong web: http://talkwebsolutions.co.uk blog: http://succor.co.uk short urls: http://wapurl.co.uk green link: http://wapurl.co.uk/?4Z2YDLX ~| Introducing the

RE: CF vs. .NET presentations?

2006-10-01 Thread John McKown
Phillip, Well written. I agree 100%. John > -Original Message- > From: Phillip Holmes [mailto:[EMAIL PROTECTED] > Sent: Friday, September 29, 2006 10:30 AM > To: CF-Talk > Subject: RE: CF vs. .NET presentations? > > Steve, > > Let me start by saying I have been with CF since 1996. >

Re: No buffer space available (maximum connections reached?)

2006-10-01 Thread Richard Cooper
OK thanks Jochem Richard ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/q

Re: No buffer space available (maximum connections reached?)

2006-10-01 Thread Jochem van Dieten
Richard Cooper wrote: > It's our dedicated server which has SQL server installed on it. > > I also have the tick box for 'maintain connections across client > request' ticked for the datasources. > > Does this give a cleared indication of the cause? Unfortunately not. If you hadn't enabled the

Re: CF vs. .NET presentations?

2006-10-01 Thread John C. Bland II
Read my last post in response. I explain. On 10/1/06, Jochem van Dieten <[EMAIL PROTECTED]> wrote: > > John C. Bland II > > Are you seriously stating you called MSFT about IE not rendering > something > > right? > > Of course. If you find a bug you report it. How else do bugs get fixed, by > bashi

Re: CF vs. .NET presentations?

2006-10-01 Thread John C. Bland II
Oh man, this is one of the reasons I don't like replying on big lists. I have to explain every detail or I get "flamed" by someone. Duh, the rendering engine does not render everything properly and the community has found the necessary hacks to work around them. Did you think I was talking about 5

OT:EnterpriseDB

2006-10-01 Thread Doug Brown
I was wondering if anyone on the board has used, or is using EnterpriseDB as their RDBMS? I noticed that Sony, who deploys over 150 Oracle 9i servers are changing over to EnterpriseDB for their gaming solutions. Is this a monster or what? Anyhow, Just wanted to get some input from people and the

Re: No buffer space available (maximum connections reached?)

2006-10-01 Thread Richard Cooper
How would you directly test if the socket is open? ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://

RE: CF vs. .NET presentations?

2006-10-01 Thread Dawson, Michael
"In fact, the only company that does worse is Blackboard" So very true. M!ke ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door

Re: No buffer space available (maximum connections reached?)

2006-10-01 Thread Dan Plesse
Jochem, Are you saying users can turn connection pooling off and people are getting their collective hands dirty with JDBC conections or is it if the connection fails reconnect and hence persist? What I meant was if someone was making connections outside the scope of pooling and making a

Re: CF vs. .NET presentations?

2006-10-01 Thread Mark Henderson
On 9/30/06, Robertson-Ravo, Neil (RX) wrote > He was being sarcastic, that was obvious. Then John C. Bland II wrote >Apparently not. ;-) and the text in question from Jochem: > So next time I find an issue where for instance a bug in IE results in > incorrect rendering, I can just call and I ge

Re: No buffer space available (maximum connections reached?)

2006-10-01 Thread Doug Brown
Watch out, Jochem has his "spock" ears on again..:-p. Totally illogical. - Original Message - From: "Jochem van Dieten" <[EMAIL PROTECTED]> To: "CF-Talk" Sent: Sunday, October 01, 2006 4:55 AM Subject: Re: No buffer space available (maximum connections reached?) > Dan Plesse wrote:

Re: No buffer space available (maximum connections reached?)

2006-10-01 Thread Richard Cooper
It's our dedicated server which has SQL server installed on it. I also have the tick box for 'maintain connections across client request' ticked for the datasources. Does this give a cleared indication of the cause? ~| Introduc

Re: No buffer space available (maximum connections reached?)

2006-10-01 Thread Jochem van Dieten
Dan Plesse wrote: > I would assume he is not persisting the connection because normally people > don't know how to do that. Considering the default setting is to maintain connections, I find that statement illogical :) Jochem ~

RE: CFIF Statement

2006-10-01 Thread Snake
It should be -Original Message- From: William James Neil Kiddie Baskerville [mailto:[EMAIL PROTECTED] Sent: 01 October 2006 11:37 To: CF-Talk Subject: Re: CFIF Statement Hey, I wonder if you can help me. I am new here and I am having difficulties in getting a tag to work on my page. I

RE: CFIF Statement

2006-10-01 Thread Snake
It should be -Original Message- From: William James Neil Kiddie Baskerville [mailto:[EMAIL PROTECTED] Sent: 01 October 2006 11:37 To: CF-Talk Subject: Re: CFIF Statement Hey, I wonder if you can help me. I am new here and I am having difficulties in getting a tag to work on my page.

Re: CFIF Statement

2006-10-01 Thread William James Neil Kiddie Baskerville
Hey, I wonder if you can help me. I am new here and I am having difficulties in getting a tag to work on my page. I have a search page, where the user can select their criteria from a drop down list, then click the submit button. This then takes them to the next page that searches the database,

Re: CF vs. .NET presentations?

2006-10-01 Thread Jochem van Dieten
Robertson-Ravo, Neil (RX) wrote: > He was being sarcastic, that was obvious. "that is not a bug, that is a feature" -> IE rendering of some CSS Level 1 core stuff (btw, the MS homepage still claims that IE 6 has "Full CSS Level 1 Support" http://www.microsoft.com/windows/ie/ie6/evaluation/feat

Re: CF vs. .NET presentations?

2006-10-01 Thread Jochem van Dieten
John C. Bland II > Are you seriously stating you called MSFT about IE not rendering something > right? Of course. If you find a bug you report it. How else do bugs get fixed, by bashing the vendor on #1337? > That is definitely not a bug. So how would you call it if a browser does not render