Re: Hype 2.0

2006-05-15 Thread Brendan Baldwin
If you do not stay intellectually curious in the technology field, you have
two choices: become a manger or watch the $$ value of your position fall or
your job get off-shored.  And frankly, I think way there are way too many
managers out there who are simply technology people that have *given up* on
learning.

The reason there is hype around ajax and web 2.0 is not just so kids
with blogs have something to rant about.  First of all web 2.0 is not just
about ajax.  Its more about how you can use standards and principles
learned over the past 10 years to design your products to allow a greater
level of usefulness, interconnectedness, and relevance.

IMHO Flex is not about pushing that vision at all.  Flex is just Macromedia
trying to leverage ColdFusion to promote the adoption of Flash as an
application platform, essentially reducing the webbiness of the web by
closing the standards discussion for web resources as usable, mungible
things.

Flash is, granted, slick as a multimedia platform, whereas dhtml+webpages
have a ways to go to compete.  But frankly, unless you're doing multimedia,
there's really no reason to do websites in Flash.  I *can't stand* having to
wade through Macromedia's unusable Flash interface on THEIR website to find
what I'm looking for when HTML would have done the job in a much better,
faster, and more usable way.

Anyways sorry to rant, but ever since Macromedia bought Allaire, the product
has just stopped *evolving*.  They seem to think that just because Java is
underneath it now, they can leave CFML and CFScript alone.  The fact is that
neither Java nor ColdFusion are competitively *agile* platforms for web
development anymore when compared to Ruby's Rails, Python's Django, or even
PHP5's several stellar frameworks.

Why is this?

Because the *language features* (not the widgets) of Ruby, Python, and PHP5
promote and allow expressions which are not easily or efficiently
expressible in ColdFusion.  Unless you actually enjoy exploring these
concepts you'll never actually realize what you're missing, and you will
some day become a manager or your salary and your ability is going to
plateau.

I sincerely URGE my fellow CF developers to consider looking into all three
languages as alternatives to CF and Java.  I've been doing CF for more than
8 years and switched because technology has evolved and Macromedia does not
seem interested in evolving with it.  Java also does not support the
language constructs of Ruby, Python, or PHP5 and is practically *less* agile
than CF.

In any case that's my opinion -- I'm not here to troll, I'm just trying to
tell you from one human to another that CF rocked a few years ago, but the
web is moving on and you're really doing yourselves and your families a
disservice if you decide you don't need to move with it.

--Brendan @ http://www.brendanbaldwin.com

On 5/12/06, Ben Nadel [EMAIL PROTECTED] wrote:

 Personally, I think it is way over-hyped... Or at least, it is not done
 well
 enough. Almost every time I see something very web2.0, it feels like it is
 not worht it. Here are requirements that I have for web2.0 to be good:

 1. My back button (backspace on the keyboard) cannot act wrong as it
 does
 with some AJAX type deals.
 2. If I start typing, FireFox should start searching the page (applcation
 preference)
   - This is not possible in flash
 3. I can scroll the page with my space bar and shift+space bar
 4. Not totally required... But I love to hit SHIFT+CLICK to launch a page
 in
 a new window, so I don't lose the current page... Not available in flash
 type pages.

 Basically, I love using my keyboard... Hate using the mouse, hurts my
 wrist... Anything that forces me to go to the mouse it a compromise for
 me,
 that is rarely worth it.

 My two cents.
 ...
 Ben Nadel
 www.bennadel.com

 -Original Message-
 From: Jon Block [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 12, 2006 3:51 PM
 To: CF-Talk
 Subject: Hype 2.0

 What do you cf developers think of this web 2.0 chatter in our industry?
 Do you feel like you need to use asynchronous JavaScript and other current
 widgets and services just to tell people that you are web 2.0 compliant?
 This seems like a silly buzzword ... do we need to embrace it to be
 considered to be competitive?


 This electronic message transmission contains information from Collegiate
 Funding Services, LLC or its subsidiaries or affiliates that may be
 confidential or privileged. The information is intended to be for the use
 of
 only the individual or entity named above. If you are not the intended
 recipient, be aware that any disclosure, copying, distribution or use of
 the
 contents of this information is strictly prohibited. If you have received
 this electronic transmission in error, please notify the sender by reply
 e-mail @cfsloans.com immediately and delete this e-mail and any
 attachments
 from your system and any copies you may have made, electronic or
 otherwise.






 


Smallest, coolest function I ever wrote: Struct()

2006-01-04 Thread Brendan Baldwin
Here's the actual function in cfscript:

function Struct() { return arguments; }

I posted about its use here:
http://www.brendanbaldwin.com/post/structfunction/

Basically though, it lets you do this:

customer=Struct(id=1,name=Brendan,occupation=Web-Lackey);

Which does the equivalent of:

customer=StructNew();
StructInsert(customer,id,1);
StructInsert(customer,name,Brendan);
StructInsert(customer,occupation,Web-Lackey);

Pass it on! :-)

--Brendan Baldwin
  http://www.brendanbaldwin.com

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:228379
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Smallest, coolest function I ever wrote: Struct()

2006-01-04 Thread Brendan Baldwin
I think it should be a language feature.

Same thing happened with everybody writing a custom tag to do the same
thing they finally did with CFSAVECONTENT.  Just feels too basic to
not be included in the core language somehow.

But it was fun to have the lightbulb go off in my head.  I'd been
doing an iterative solution like that UDF in cflib for a couple months
and then it just kind of hit me how unnecessary that was!

Funny what a morning cup of coffee will do.

--Brendan
  http://www.brendanbaldwin.com


On 1/4/06, Damien McKenna [EMAIL PROTECTED] wrote:
  -Original Message-
  From: Brendan Baldwin [mailto:[EMAIL PROTECTED]
 
  function Struct() { return arguments; }

 That's brilliant! :-D  You need to get that in cflib!

 --
 Damien McKenna - Web Developer - [EMAIL PROTECTED]
 The Limu Company - http://www.thelimucompany.com/ - 407-804-1014
 #include stdjoke.h

 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:228387
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Smallest, coolest function I ever wrote: Struct()

2006-01-04 Thread Brendan Baldwin
You know, what I'd REALLY like is for CFScript to adopt the JavaScript
convention of allowing the creation of Structs like:

person = {id=1,name=Brendan,occupation=Thumb-Twiddler};

Of course, they could throw in an Array constructor too:

people = [Brendan,Ray,Andy];

I can dream...  or switch to Ruby ;-) ?

Come on Macromedia!!! Make my dreams come true!!!

--Brendan
  http://www.brendanbaldwin.com

On 1/4/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 That's a nice function Brendan. Good job.

 andy
  Here's the actual function in cfscript:
 
  function Struct() { return arguments; }
 
  I posted about its use here:
  http://www.brendanbaldwin.com/post/structfunction/
 
  Basically though, it lets you do this:
 
  customer=Struct(id=1,name=Brendan,occupation=Web-Lackey);
 
  Which does the equivalent of:
 
  customer=StructNew();
  StructInsert(customer,id,1);
  StructInsert(customer,name,Brendan);
  StructInsert(customer,occupation,Web-Lackey);
 
  Pass it on! :-)
 
  --Brendan Baldwin
http://www.brendanbaldwin.com
 
 

 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:228396
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Smallest, coolest function I ever wrote: Struct()

2006-01-04 Thread Brendan Baldwin
Nice!



On 1/4/06, Baz [EMAIL PROTECTED] wrote:
 Another nice one is:

 QuerySetRow(Query=Users,Name='Foo',Password='Bar',Date=now(),RowNumber=2);

 To replace:

 querySetCell(Users,'Name','Foo',2);
 querySetCell(Users,'Password','Bar',2);
 querySetCell(Users,'Date',now(),2);

 Baz


 -Original Message-
 From: Brendan Baldwin [mailto:[EMAIL PROTECTED]
 Sent: January 4, 2006 6:12 PM
 To: CF-Talk
 Subject: Re: Smallest, coolest function I ever wrote: Struct()

 You know, what I'd REALLY like is for CFScript to adopt the JavaScript
 convention of allowing the creation of Structs like:

 person = {id=1,name=Brendan,occupation=Thumb-Twiddler};

 Of course, they could throw in an Array constructor too:

 people = [Brendan,Ray,Andy];

 I can dream...  or switch to Ruby ;-) ?

 Come on Macromedia!!! Make my dreams come true!!!

 --Brendan
   http://www.brendanbaldwin.com

 On 1/4/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  That's a nice function Brendan. Good job.
 
  andy
   Here's the actual function in cfscript:
  
   function Struct() { return arguments; }
  
   I posted about its use here:
   http://www.brendanbaldwin.com/post/structfunction/
  
   Basically though, it lets you do this:
  
   customer=Struct(id=1,name=Brendan,occupation=Web-Lackey);
  
   Which does the equivalent of:
  
   customer=StructNew();
   StructInsert(customer,id,1);
   StructInsert(customer,name,Brendan);
   StructInsert(customer,occupation,Web-Lackey);
  
   Pass it on! :-)
  
   --Brendan Baldwin
 http://www.brendanbaldwin.com
  
  
 
 



 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:228425
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: QoQ Trouble for Column Names with Spaces

2005-08-25 Thread Brendan Baldwin
Incidentally -- House of Fusion is not letting me change my primary email 
address -- My actual email is [EMAIL PROTECTED] if anyone was 
writing me back.

Also, I solved the problem, but in a workaround way--

Since I'm only trying to ORDER BY the columns in question I am using column 
ordinals instead of names, such as:

SELECT * FROM thetable ORDER BY 3

The only trick there is to know the order of the columns in the result set 
from which you're querying -- this can not be derived from the COLUMNLIST 
property of the query object since it is always returned alphanumerically 
sorted-- fortunately I was able to view the original Oracle Function and saw 
the select statement-- then I just mapped the values and my sortable 
columnheaders form now works.

What a pain though!

--Brendan Baldwin :: [EMAIL PROTECTED]

On 8/25/05, Brendan Baldwin [EMAIL PROTECTED] wrote:
 
 Hi everyone --
 
 I'm working for a client who has given me some Oracle stored procedures 
 which return some fields that have SPACES in the columns returned.
 
 I want to apply sorting to the results, so I was going to use a CFQUERY 
 DBTYPE=query and just ORDER BY selectively--
 
 The problem is that I can't seem to reference column names that have 
 spaces in them when doing a QoQ !
 
 Anyone know how to reference column names with spaces in a QoQ?
 
 I've tried:
 SELECT * FROM thetable ORDER BY 'my column'
 SELECT * FROM thetable ORDER BY my column
 SELECT * FROM thetable ORDER BY [my column]
 SELECT * FROM thetable ORDER BY ['my column']
 
 Any other Ideas?
 
 --Brendan
 
 

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216384
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


QoQ Trouble for Column Names with Spaces

2005-08-25 Thread Brendan Baldwin
Hi everyone --

I'm working for a client who has given me some Oracle stored procedures which 
return some fields that have SPACES in the columns returned.

I want to apply sorting to the results, so I was going to use a CFQUERY 
DBTYPE=query and just ORDER BY selectively--

The problem is that I can't seem to reference column names that have spaces in 
them when doing a QoQ !

Anyone know how to reference column names with spaces in a QoQ?

I've tried:
SELECT * FROM thetable ORDER BY 'my column'
SELECT * FROM thetable ORDER BY my column
SELECT * FROM thetable ORDER BY [my column]
SELECT * FROM thetable ORDER BY ['my column']

Any other Ideas?

--Brendan

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216360
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: QoQ Trouble for Column Names with Spaces

2005-08-25 Thread Brendan Baldwin
I would love to do that, but the problem is I don't have an original query 
-- I retrieving the results from a CFSTOREDPROC and not CFQUERY.

:-/

On 8/25/05, Ewok [EMAIL PROTECTED] wrote:
 
 Give it an alias in your original query that doesn't have spaces.
 
 cfquery datasource=...
 Select my column as mycolumn
 
 -Original Message-
 From: Brendan Baldwin [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 25, 2005 11:15 AM
 To: CF-Talk
 Subject: QoQ Trouble for Column Names with Spaces
 
 Hi everyone --
 
 I'm working for a client who has given me some Oracle stored procedures
 which return some fields that have SPACES in the columns returned.
 
 I want to apply sorting to the results, so I was going to use a CFQUERY
 DBTYPE=query and just ORDER BY selectively--
 
 The problem is that I can't seem to reference column names that have 
 spaces
 in them when doing a QoQ !
 
 Anyone know how to reference column names with spaces in a QoQ?
 
 I've tried:
 SELECT * FROM thetable ORDER BY 'my column'
 SELECT * FROM thetable ORDER BY my column
 SELECT * FROM thetable ORDER BY [my column]
 SELECT * FROM thetable ORDER BY ['my column']
 
 Any other Ideas?
 
 --Brendan
 
 
 
 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216411
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: QoQ Trouble for Column Names with Spaces

2005-08-25 Thread Brendan Baldwin
Surprisingly this doesn't work with DBTYPE=query. And I'm even running 
CFMX7!

On 8/25/05, Mike Klostermeyer [EMAIL PROTECTED] wrote:
 
 SELECT * FROM thetable ORDER BY [my column]
 
 Mike
 
 -Original Message-
 From: Ewok [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 25, 2005 1:01 PM
 To: CF-Talk
 Subject: RE: QoQ Trouble for Column Names with Spaces
 
 
 Give it an alias in your original query that doesn't have spaces.
 
 cfquery datasource=...
 Select my column as mycolumn
 
 -Original Message-
 From: Brendan Baldwin [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 25, 2005 11:15 AM
 To: CF-Talk
 Subject: QoQ Trouble for Column Names with Spaces
 
 Hi everyone --
 
 I'm working for a client who has given me some Oracle stored procedures
 which return some fields that have SPACES in the columns returned.
 
 I want to apply sorting to the results, so I was going to use a CFQUERY
 DBTYPE=query and just ORDER BY selectively--
 
 The problem is that I can't seem to reference column names that have 
 spaces
 in them when doing a QoQ !
 
 Anyone know how to reference column names with spaces in a QoQ?
 
 I've tried:
 SELECT * FROM thetable ORDER BY 'my column'
 SELECT * FROM thetable ORDER BY my column
 SELECT * FROM thetable ORDER BY [my column]
 SELECT * FROM thetable ORDER BY ['my column']
 
 Any other Ideas?
 
 --Brendan
 
 
 
 
 
 

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216412
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: QoQ Trouble for Column Names with Spaces

2005-08-25 Thread Brendan Baldwin
If only :-)

Query Of Queries syntax error.
 Encountered [. Incorrect Select List,  Incorrect select column

Sigh.  The ORDER BY 3 syntax is working okay, its just a pain to
maintain the mapping in the event the guy changes the order of columns
in the SELECT statement.

I'm considering hollering about the spaces... (it's a new client --
treading carefully...)

--Brendan

On 8/25/05, Mark A Kruger [EMAIL PROTECTED] wrote:
 Brendan,
 
 Does the select [my column] as NewColumn from queryname  work?
 
 If so - you can do 2 queries of a query.  First alias the offending column
 and second to order by. Not pretty - but I'd holler at the guy who wrote the
 SP if I were you :)
 
 -Mark
 
 
 -Original Message-
 From: Brendan Baldwin [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 25, 2005 3:11 PM
 To: CF-Talk
 Subject: Re: QoQ Trouble for Column Names with Spaces
 
 
 I would love to do that, but the problem is I don't have an original query
 -- I retrieving the results from a CFSTOREDPROC and not CFQUERY.
 
 :-/
 
 On 8/25/05, Ewok [EMAIL PROTECTED] wrote:
 
  Give it an alias in your original query that doesn't have spaces.
 
  cfquery datasource=...
  Select my column as mycolumn
 
  -Original Message-
  From: Brendan Baldwin [mailto:[EMAIL PROTECTED]
  Sent: Thursday, August 25, 2005 11:15 AM
  To: CF-Talk
  Subject: QoQ Trouble for Column Names with Spaces
 
  Hi everyone --
 
  I'm working for a client who has given me some Oracle stored procedures
  which return some fields that have SPACES in the columns returned.
 
  I want to apply sorting to the results, so I was going to use a CFQUERY
  DBTYPE=query and just ORDER BY selectively--
 
  The problem is that I can't seem to reference column names that have
  spaces
  in them when doing a QoQ !
 
  Anyone know how to reference column names with spaces in a QoQ?
 
  I've tried:
  SELECT * FROM thetable ORDER BY 'my column'
  SELECT * FROM thetable ORDER BY my column
  SELECT * FROM thetable ORDER BY [my column]
  SELECT * FROM thetable ORDER BY ['my column']
 
  Any other Ideas?
 
  --Brendan
 
 
 
 
 
 
 
 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216417
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


String Length Hard-Limit (NOT a RegEx question)

2004-04-07 Thread Brendan Baldwin
Does CF have a hard-limit on number of characters for string variables?Do form posts from textareas themselves have a hard-limit?We have a database column of type nText which is truncating well before the (2^30)-1 character limit and I suspect an internal CF limit may be the culprit.

Thanks!

Brendan
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: String Length Hard-Limit (NOT a RegEx question)

2004-04-07 Thread Brendan Baldwin
Well I did some testing and CF handled gigantor strings (20 million characters and more) without fail, even via form posts. but the sql insert truncated all inserted strings down to 64999 characters.

I wonder if I could insert larger values using a stored procedure and query params?

MS SQL documentation says that ntext columns can hold about a billion unicode characters a pop-- i just dont know how to pop them in there

i didn't realize there were other limitations in the sql call itself.but at least i know the exact upperbound for vanilla sql now.i'll just throw on some client-side form validation to keep users from going over the 64999 character limit until i do some more reading on the subject...

thanks for your help everybody!cf-talk is the best.

--brendan

Ah, after Dave said 65k, made me think, isn't the datasource long text
buffer size 65000 bytes by default? Could this be your issue?

-Original Message-
From: Craig Dudley 
Sent: 07 April 2004 17:02
To: CF-Talk
Subject: RE: String Length Hard-Limit (NOT a RegEx question)


I suppose another possible culprit would be the datasource, have you
enabled clobs? just a thought.

-Original Message-
From: Brendan Baldwin [mailto:[EMAIL PROTECTED] 
Sent: 07 April 2004 16:57
To: CF-Talk
Subject: String Length Hard-Limit (NOT a RegEx question)

Does CF have a hard-limit on number of characters for string variables?
Do form posts from textareas themselves have a hard-limit?We have a
database column of type nText which is truncating well before the
(2^30)-1 character limit and I suspect an internal CF limit may be the
culprit.

Thanks!

Brendan 
_ 
_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]