Navigace



ColdFusion 9 (AKA Centaur) to have impressive new features

I've been following closely all the comments and blog posts from the guys at CFUnited 08.

I've managed to compile a list with all the new functionalities announced yesterday 18/06/08 for the ColdFusion 9 (codename Centaur).

This is still work in progress, and I'm still scavenging into all the blogs and twitter posts to amend my list, but here are the key points I've go so far.

ColdFusion 9 will:

  • have hibernate running native;
  • have implicit get/set methods in CFC's;
  • have new LOCAL scope in functions;
  • give you the possibility to create CFC's in cfscript (more on that later);
  • have a 100% free enterprise edition for students and educators;

So far, I've been really impressed by all the points here, as some of them are really ticking items on my complaint's list.

It seems that Adobe is still interested in ColdFusion (contrary to what some people think), and are really investing on it (the free editions for students tells it by itself)

One of my main complaints about ColdFusion was that it wouldn't let you use OO properly (I've mentioned this hundreds of times), and now, it seems to be being addressed in a very gentle way.

Well keep an eye here to read more about the new functionalities for CF9


Back in Business

Well, I know it's been a real long time since my last post here (dating over a year...).

In fact I've been just involved in lots of other projects lazy and didn't really have time to update.

As some of you may know, I've been working for the EU Commission for over a year now, and for some reason, the firewall blocked my blog (note that I still didn't post pics from naked chicks or stuff), and I simply let it be. Till yesterday when I found out that my blog has been massively attacked by bloody spammers, and was fully packed with nasty URL's. Maybe this is the reason why it was blocked by the firewall in first instance.

I did a good clean-up on it, and now it should be OK.

There's some stuff I want to post here later, so stay tuned for some exciting stuff about the new ColdFusion version (codename Centaur)


Yet another first Apollo app - Lyric Finder

I was going through the blogs and found that I was pretty late in releasing my first Apollo app.

So I decided to play around with Apollo and build something. It's a Lyric Finder (I know... very stupid creative name). It uses lyricwiki as source and some regular expressions to interpret the results.

I know there should be an easier way to do that using some sexy webservices, but as I'm still learning the stuff....

And it also helped me to realize that I'm still pretty bad in AS3

The download link is on the bottom of this POST

<?xml version="1.0" encoding="utf-8"?>
<mx:ApolloApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
   
   <mx:Script>
    <![CDATA[
    import mx.rpc.events.ResultEvent;
    private function getResults(event:ResultEvent):void
    {
       var str:String = event.result.toString();
       var pattern:RegExp = /<div id="lyric">.*?<\/div>/
       var returnStr:String = pattern.exec(str)
       
       if(returnStr != null){
       requestResult.htmlText = pattern.exec(str);
    }
    else{
       requestResult.htmlText = "No Matches Found";
    }
    }
    private function doSearch():void
    {
       import mx.controls.Alert;
       var url:String = "http://lyricwiki.org/";
       var queryStrURL:String = prepareString(artistCriteria.text,songCriteria.text);
       var newURL:String = url + queryStrURL;
       
       trace(newURL);
       
       pageRequest.url=newURL;
       pageRequest.send()
       lbl_res.text="Results For:";
       lbl_details.text = capFirst(artistCriteria.text," ") + " - " + capFirst(songCriteria.text," ");
    }
   
    private function prepareString(artist:String,track:String):String
    {
       var newArtist:String = capFirst(artist,"_");
       var newTrack:String = capFirst(track,"_");
       
       return newArtist + ":" + newTrack;
    }
    private function capFirst(txt:String,delimiter:String):String{
      var str:String = txt;
      var aSTR:Array = str.split(" ");
      var i:int;
      var uString:String;
      var newStr:String = "";
      var strSpace:String = "";
      
      for (i = 0; i < aSTR.length; i++) {
       uString = aSTR[i].substr(0, 1).toUpperCase() + aSTR[i].substr(1);
       newStr = newStr + strSpace + uString
       strSpace = delimiter;
      }
      return newStr
    }
    ]]>
   </mx:Script>

   <mx:HTTPService url="http://www.placona.co.uk" id="pageRequest" method="GET" resultFormat="text" result="getResults(event)"/>
   
   <!-- The search Criteria here -->
   <mx:TextInput id="artistCriteria" width="127.5" text="Type the artist name" click="artistCriteria.text=''" bottom="10" right="272.5"/>
   <mx:TextInput id="songCriteria" width="135.5" text="Type the song name" click="songCriteria.text=''" bottom="10" right="83"/>
   
   <!-- My Labels -->
   <mx:Label text="Artist:" bottom="10" right="403"/>
   <mx:Label text="Song:" bottom="10" right="226.5"/>
   <mx:Label width="75" height="17" left="24" top="10" id="lbl_res" fontFamily="Verdana" fontWeight="bold" alpha="0.0"/>
   <mx:Label y="28" horizontalCenter="0" width="265" id="lbl_details" textAlign="center" fontWeight="bold" color="#ff0000" fontSize="12"/>
   
   <!-- Displaying it -->
   <mx:HTML width="445" id="requestResult" height="263" verticalCenter="2.5" horizontalCenter="0" fontFamily="Verdana" fontSize="10"/>
   
   <!-- the button -->
   <mx:Button label="Search" id="loadWeb" bottom="10" click="doSearch()" right="10"/>
   <mx:Text text="placona.co.uk" top="10" alpha="0.5" color="#400000" fontWeight="bold" id="placona" click="" right="8"/>
</mx:ApolloApplication>


AS3 my own implementation of capFirst()

I'm just studying a little bit of Flex and Action Script 3. Basically to be able to build some tiny gadgets using Apollo.

While building one of them, I came up with the following function:

private function capFirst(txt:String):String{
            var str:String = txt;
            var aSTR:Array = str.split(" ");
            var i:int;
            var uString:String;
            var newStr:String = "";
            var strSpace:String = "";
            
            for (i = 0; i < aSTR.length; i++) {
             uString = aSTR[i].substr(0, 1).toUpperCase() + aSTR[i].substr(1);
             newStr = newStr + strSpace + uString
             strSpace = " ";
            }
            return newStr
         }

Basically what it does is take all the first letters of each word of the string given and return them in upper case.

I think I've seen this before somewhere ;-).

Not sure if there's any easier way of doing that, but for my first steps it's just fine.


FW 8 Easter Egg

So, some guys managed to find another Adobe Easter Egg.

This time not for ColdFusion, but for Fireworks 8.

Basically on PC(don't know if it works on MAC) you go to Fireworks 8, click on help and then about.

It'll show the developers names. Just ctrl+click the number 8 on the Fireworks 8 logo, and you'll see some strange animals like this:


Wanna be a ColdFusion 8 Beta Tester?

In case you haven't heard about this, Adobe is "recruiting" Beta Testers for ColdFusion 8 Beta Release.

If you're still not part of the beta program, this is your chance.

Yes, I wanna be a ColsFusion 8 beta tester!


Regexp saves the day

So, we just upgraded one of our servers to version 7.0.2. Everything was working fine, except for some stored procedures being called by tag.

What was wrong?

Basically, the versions before 7.0.2 didn't bother if the contents of the attribute dbvarname were being sent using an "@" before or not.

It means the something like:

<cfstoredproc procedure="my_proc" datasource="#request.ds#">
   <cfprocparam type="In" cfsqltype="CF_SQL_INTEGER" dbvarname="i_id" value="#attributes.i_id#" null="No">
   <cfprocresult name="content">
</cfstoredproc>

Will become:

<cfstoredproc procedure="my_proc" datasource="#request.ds#">
   <cfprocparam type="In" cfsqltype="CF_SQL_INTEGER" dbvarname="@i_id" value="#attributes.i_id#" null="No">
   <cfprocresult name="content">
</cfstoredproc>

Apparently nothing changes, unless you have a look at the attribute dbvarname, and you'll see that an "@" was added before the variable name.

The way to fix it?

Very easy, just use your favorite IDE and replace using regular expression.

Search for: dbvarname="([^@])

Replace for: dbvarname="@\1

And it's done! The regExp says for itself as it's looking for something starting with the string dbvarname and that doesn't contain an "@" at the beginning. Then it replaces the result for the string dbvarname="@ and the variable name.

Hope it helps someone.


Scorpio on Adobe Labs

For those who still don't know (I doubt). Yesterday Adobe put some ColdFusion Scorpio information on Adobe Labs

There you can find Scorpio's F.A.Q and some red(ish) Scorpio's wallpapers.


Scottish CFUG with Rob Gonda

According to Andy Allan's Blog Rob Gonda will be speaking to the Scottish CFUG this Thursday (07/11/2006) @ 8pm (GMT) via Acrobat Connect about Ajax integrated with ColdFusion, comparing frameworks, and telling us about the Ajax history.

Don't miss this opportunity


Listen: ColdFusion Is Not A DBMS!

Very interesting post regarding ColdFusion and your DBMS.

Ben Forta gives a practical example of a real nightmare system developed by guys who didn't know exactly the difference between ColdFusion and DBMS. Making ColdFusion work as a DBMS.

Read this article before you blame CF when having performance issues.


A New Vision for ColdFusion

Excellent article by Hal Helms about the new Vision for ColdFusion. It's a must to read!

A New Vision for ColdFusion


More Entries

Search


Calendar

Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            

Subscribe

Enter your email address to subscribe to this blog.


Archives By Subject

Adobe (14) [RSS]
Adobe Max 2007 (1) [RSS]
Apollo (2) [RSS]
CFDevcon06 (2) [RSS]
CFDevcon08 (1) [RSS]
CFUNITED 2008 (2) [RSS]
CFUNITED2007 (1) [RSS]
ColdFusion (31) [RSS]
Flex (3) [RSS]
General Techie Stuff (6) [RSS]
Javascript (1) [RSS]
Linux (5) [RSS]
Misc (24) [RSS]
Scotch on th Rocks2007 (1) [RSS]
Tag of the day (2) [RSS]
UKCFUG (1) [RSS]

Tags

adobe coldfusion misc

Recent Entries

No recent entries.

Adds


RSS


Add to Technorati Favorites


SpamStop

This blog is protected by the SpamStop plugin and Project Honeypot.
Handled in almost 2 month:
  • Total suspicious visitors: 50
  • Spammers: 16
  • and 34 where marked as suspicious.
The last shady visitor was here on August 22, 2008

In almost 2 month this blog was visited 42 times by search engines and other harmless crawlers and aggregators.

More info:
SpamStop plugin
Project Honeypot