ColdFusion One Liners

Comments

There aren't any comments for this presentation.

Add Comment

Please enter a valid email address.

Optional. Enter a URL for your website.

  Remember Me
  Notify me of follow up comments

Transcript

no image

Slide Text

Slide Notes


Slide 1


ColdFusion One Liners

no notes exist for this slide

Slide 2


I’ve got a friend who is a fat, alcoholic, cross dresser. All he does is eat, drink and be Mary.

no notes exist for this slide

Slide 3


About Me
Adobe Community Professional for ColdFusion
Live in Washington, DC
Happily married, two great daughters, ride my bike, play soccer and huge Arsenal fan
Work at: Politico
Co-founder: 16applications
samfarmer.com @sam_farmer

no notes exist for this slide

Slide 4


What we will cover today
Overview of what’s possible with ColdFusion
The little things that make you a hero

no notes exist for this slide

Slide 5


Other Sessions
Other sessions right now. I won’t be offended.

no notes exist for this slide

Slide 6


Which version?

no notes exist for this slide

Slide 7


AJAX / RIA

no notes exist for this slide

Slide 8


<cfmap centeraddress="44050 Woodbridge Parkway, 20176" zoomlevel="8" type="hybrid" />

no notes exist for this slide

Slide 9


<cfinput type="datefield" name="startDate">

no notes exist for this slide

Slide 10


<cftextarea richtext="true" name="comments" />

no notes exist for this slide

Slide 11


<cfmessagebox type="confirm" name="question"    message="CF is Awesome?" />

no notes exist for this slide

Slide 12


<cffileupload url="multiFile.cfm">

no notes exist for this slide

Slide 13


<cfmediaplayer source="/phone.flv" >

no notes exist for this slide

Slide 14

no text exists for this slide

no notes exist for this slide

Slide 15

no text exists for this slide

no notes exist for this slide

Slide 16


Language

no notes exist for this slide

Slide 17


<cfset myStruct = {AL="Alabama", AK="Alaska"}>

no notes exist for this slide

Slide 18


<cfset myArray = ["Homer", "Lisa", "Bart"]>

no notes exist for this slide

Slide 19


<cfdump var="#variables#">

no notes exist for this slide

Slide 20


myStruct = {AL="Alabama", AK="Alaska"};

no notes exist for this slide

Slide 21


myArray = ["Homer", "Lisa", "Bart"];

no notes exist for this slide

Slide 22


writeDump(var=variables);

no notes exist for this slide

Slide 23


<cfloop array="#myArray#" index="i"></cfloop>

no notes exist for this slide

Slide 24


<cfloop file="/log.txt" index="i"></cfloop>

no notes exist for this slide

Slide 25

no text exists for this slide

no notes exist for this slide

Slide 26


Conversion

no notes exist for this slide

Slide 27


<cfspreadsheet action="write" query="getArt"    filename="art.xls">

no notes exist for this slide

Slide 28


<cfimage action="convert" source="cf8.png"    destination="cf8.jpg">

no notes exist for this slide

Slide 29


serializeJSON(getArt);

no notes exist for this slide

Slide 30


<cfdocument format="pdf"    srcfile="#expandPath('mydoc.docx')#"    filename="mydoc.pdf" />

no notes exist for this slide

Slide 31


<cfpresentation title="Powerpoint" >
   <cfpresentationslide src="#expandPath('Preso')#" />
</cfpresentation>

no notes exist for this slide

Slide 32

no text exists for this slide

no notes exist for this slide

Slide 33

no text exists for this slide

no notes exist for this slide

Slide 34


PDF

no notes exist for this slide

Slide 35


<cfdocument format="pdf"><h1>HTML to PDF</h1></cfdocument>

no notes exist for this slide

Slide 36


<cfpdf action="merge" source="1.pdf,cf9.pdf"    destination="all.pdf">

no notes exist for this slide

Slide 37


<cfpdf action="optimize" source="big.pdf"    algo="Bicubic" destination="small.pdf">

no notes exist for this slide

Slide 38


<cfpdf action="addheader" source="all.pdf"
   destination="header.pdf"
   text="CFUnited Rocks! Page _PAGENUMBER">

no notes exist for this slide

Slide 39

no text exists for this slide

no notes exist for this slide

Slide 40


ORM

no notes exist for this slide

Slide 41


art = entityLoad('art');

no notes exist for this slide

Slide 42


art.setPrice('500');

no notes exist for this slide

Slide 43


entitySave(newObject);

no notes exist for this slide

Slide 44

no text exists for this slide

no notes exist for this slide

Slide 45

no text exists for this slide

no notes exist for this slide

Slide 46


Caching

no notes exist for this slide

Slide 47


cachePut( "band", anyCF );

no notes exist for this slide

Slide 48


cacheGetAllIds()

no notes exist for this slide

Slide 49


aha = cacheGet( "band" );

no notes exist for this slide

Slide 50

no text exists for this slide

no notes exist for this slide

Slide 51


Q & A

no notes exist for this slide

Slide 52


“If at first you don’t succeed,
then skydiving definitely isn’t for you.”

no notes exist for this slide

Slide 53


<cfimap action="open" secure="yes"port="993"   server="imap.googlemail.com"
   username="" password="" connection="gmail">

no notes exist for this slide