Raymond Camden's Blog Rss

Update to RIAForge Today (and a little secret)

23

Posted in ColdFusion | Posted on 01-30-2007 | 4,528 views

Just a quick note about a change I did to RIAForge this morning. Before I go on however, please note that I can't answer any questions about this, so please do not ask.

So this morning I added screenshots to RIAForge. This means project owners can upload screenshots of their applications to help give people an idea of how their project looks. As an example, check out the screenshots I uploaded for Lighthouse Pro.

Did I do this with a third party extension or funky Java code? Nope, I just used the new <cfimage> tags in Scorpio. (Oh, did I mention RIAForge is running on Scorpio now? You should note that this is NOT allowed and is a violation of the NDA. But I was given special permission by the ColdFusion team to do this. Otherwise I'd be dead now. Seriously.) I have one tag to read in the uploaded image:

view plain print about
1<cfimage action="read" name="yourimage" source="#ifile#">

and another few lines of code to do a quick resize for my thumbnail:

view plain print about
1<!--- create a unique file name --->
2<cfset tfilePath = fileupload.serverdirectory & "/" & replace(createUUID(),"-","_","all") & ".gif">
3<!--- resize proportionally to 125 wide --->
4<cfset imageResize(yourimage, 125,"")>
5<!--- save the sucker --->
6<cfimage action="write" source="#yourimage#" destination="#tfilePath#">

Nifty.

Comments

[Add Comment] [Subscribe to Comments]

Very Very Cool....


RIAForge continues to break new ground... I am very impressed they allowed the upgrade.

dw
Player! I can't wait to get into some CFImage tag shenanigans :)
well well look at you... Aren't you the lucky one. hehe ;-) right on man. Is that MG running on Scorpio as well? or Mach?
What's up with the screenshots being done in Windows? Aagghh!

As a Mac user now, you have taken an oath to promote only OS X! :-)
I said I couldn't answer any questions, but since your framework question doesn't apply to Scorpio per se, then I'll answer it. RIAForge is a Model-Glue application.
Well, I figured <cfimage> would be coming. People have only been asking for it for as long as I've been using Coldfusion, and probably then some!

Hopefully they'll make it "feature rich". Are you allowed to tell us what the native format is when coldfusion reads an image and puts it into a variable.. what kind of object is it?
Good stuff! I am currently working on a project to do something similar, and then generate a PDF document using CFDOCUMENT.
Ray,

This question you can probably answer. Does this mean that you are a Beta tester and that they have been picked (and I missed out)

Or your just more inner circle than the beta testing program.
Actually Ray probably can't answer that, our NDAs for Prerelease programs generally prohibit you from mentioning whether you are on that program.
So the resize function is part of Scorpio as well? (If you can't answer me...well I had to try)
It looks like the resize quality is as bad as with the Image Component from Alagad or ImageCFC. They say that Java is at fault, but there has to be a way to make it better.
With the Alagad component, you can blur the image before resizing to achieve better results. I'm hoping they optimize the resize quality before the final release.
Thanks for the little preview and the added functionality though Ray! ;D
Ok, so lots of questions that can't be answered, but ...

Sal, MG is indeed running on Scorpio, and it is LOTS faster than on CFMX7.

Rick, it supports multiple formats, all of the obvious ones.

Dale, the beta has not yet started, if you've not heard from us yet that does not mean that you are not in. Hold on a little longer. Oh, FYI, it was I who pushed Ray to move RIAForge to Scorpio, and FWIW, there are actually public facing Adobe.com sites that have been running on Scorpio since the earliest alpha days. What better way to test the thing - we want this to be rock solid when it ships, and so while pre-release testers are not allowed to use the products on public facing sites, we do make special exceptions in controlled environments where it'll help us better the product.

Joe, yes it is. I demonstrated that at MAX in the opening keynote. Actually, so did Tim in his Day 3 sneak, and that was all shown in the session on imaging.

But I can't answer questions. Oops! ;-)

--- Ben
"there are actually public facing Adobe.com sites that have been running on Scorpio since the earliest alpha days"

That explains so much, thanks!

Good to hear it's gotten faster. Read an article about (don't laugh) MySpace's infrastructure and how they switched from CF to BlueDragon because of performance.
Not to open a whole can of worms, but most CF devs will tell you that MySpace is NOT a good example of a CF site. They publicly admitted their development process was to just code and throw crap up on the server. Then they complain when CF doesn't perform? Sorry - but I don't buy it. ColdFusion could have easily supported MySpace with the proper development methodology.
imo myspace is similar to what digg experienced. In the beginning it was an idea and probably an excited coder to get a basic shell up there before other people. Once it caught on it becomes obvious the original design wasn't intended to serve that sheer nbr of visitors effectively. Digg did a rehaul, myspace probably needs too (although thats a discussion for if the next fad is here or too close anyhow for it to matter lol).

my pocket change anyhow.
I must concur with ya Ray, CFMX7 can easily handle MySpace, built correctly...
"most CF devs will tell you that MySpace is NOT a good example of a CF site"

Most CF devs have never, ever seen any of the MySpace CFML code, so how could they know? Most CF devs have never built a single web site that gets even 1% of the traffic that MySpace gets, so how would they know what it takes to build such a web site?

"ColdFusion could have easily supported MySpace with the proper development methodology"

"CFMX7 can easily handle MySpace, built correctly..."

Yet the exact same CFML code runs perfectly fine on BlueDragon.NET? (It had to be the exact same code while they transitioned from CF5 to BD.NET so the code could run on either server). You're saying that crappy CFML code runs perfectly fine on BlueDragon, but only CFML code "built correctly" using "proper development methodology" is suitable for running on CFMX? If crappy CFML code runs better on BlueDragon than on CFMX, would't good CFML also run better on BlueDragon than on CFMX?
P.S. If you want to try the CFIMAGE tag, there's no need to wait for the Scorpio beta. CFIMAGE has been supported on BlueDragon since version 3.0, which was released in 2002.
<cfset canOWorms.close()>
= = =
Yet the exact same CFML code runs perfectly fine on BlueDragon.NET? (It had to be the exact same code while they transitioned from CF5 to BD.NET so the code could run on either server). You're saying that crappy CFML code runs perfectly fine on BlueDragon, but only CFML code "built correctly" using "proper development methodology" is suitable for running on CFMX? If crappy CFML code runs better on BlueDragon than on CFMX, would't good CFML also run better on BlueDragon than on CFMX?
# Posted By vinceb | 1/31/07 11:32 AM
= = =

crappier html code used to run better on internet exploder than on old netscape or early mozilla because of quirks mode etc. It doesn't make the HTML any less poorly coded for a thin analogy /shrug.

when myspace first started seeing massive slowdowns they did state publically about their design process and how it affected the performance today.... its not like the people above were making it up.
I'm often forced to dig through code on MySpace...the gf is nutty about it. I understand that they never intended to allow people to "skin" their pages...but people do it, and MySqace could make a few small changes to make it a LOT less painful...ids on major page elements...? Also, with the help of BD/ASP.Net, they are slowly transitioning bits of the site over to .Net.

I think that it would be cool for them to publish a fake dataset (like netflix has done) to allow developers to hack on new features...friend/message search anyone? Or maybe some way to tag/label/group friends...? But I guess that searching might reduce page views...and we know how important add revenue is.

Sorry for the OT rant. I'll take my _Former_Team_Allaire_ self back to hermit cave.
Vince, DK pretty much answered it. I was speaking about CFUNITED a few years ago when the MySpace owner (or one of them) talked about how they were developing code. So I think that is straight from the horses mouth. :)
About time! I am curious how rich this tag will be.

[Add Comment] [Subscribe to Comments]