A Big Beautiful Light for Photographers – Westcott Zeppelin Para-59″

March 21, 2014 | By

The bigger the light and the closer to your subject, the softer it will be. I’ve always been a fan of BIG softboxes. So when I saw that Westcott had just introduced three new Zeppelin deep parabolic softboxes and the largest one being 59″ I was delighted to take it for a spin. First off, […]

The post A Big Beautiful Light for Photographers – Westcott Zeppelin Para-59″ appeared first on Terry White’s Tech Blog.

Read More

Into The Box 2014

March 20, 2014 | By

A day before cf.Objective() 2014, the ColdBox team is hosting the one-day Into The Box 2014, featuring sessions on the entire ColdBox family – WireBox, CacheBox, LogBox, TestBox, ProfileBox, and more.

Read More

30 Inspiring Examples of 3D Printing

March 20, 2014 | By

Since the first functional 3D printers were created 30 years ago they have been used to create car parts, smartphone cases, fashion accessories and even artificial organs. Not only is the technology impressive, so are the different types of materials you can print with. But I want to focus on what 3D printing can do in the hands of creatives (especially […]

Read More

“Birds-Eye” Zoom View in Photoshop

March 20, 2014 | By

A quick way to navigate to another part of an image is to use “Birds-Eye View”. With any tool selected, hold down the “H” key (to temporarily select the Hand tool) and click in the image area to “crash”-zoom the image to Fit on Screen. Drag to reposition the rectangle and release the Hand tool […]

Read More

This server…

March 20, 2014 | By

A few days ago I blogged about how I was unhappy with the stability of my blog. I discussed how I was looking to simplify and reduce the “moving parts” here and that as part of that plan, I was going to switch to a static site.

In the meant…

Read More

Zooming and Panning in Photoshop without Switching Tools

March 19, 2014 | By

• Spacebar + Command (Mac) | Spacebar + Control + Alt  (Win) will temporarily give you the Zoom In tool without having to switch to the Zoom tool. • Spacebar + Option + Option (Mac)/ Spacebar + Alt (Win) will temporarily give you the Zoom Out tool without having to switch to the Zoom tool. On Mac, it’s important the order […]

Read More

ExpoDisc 2.0 Review

March 19, 2014 | By

Having proper white balance in your photos can help make the difference between a good shot and a great shot. If you’re shooting RAW or in studio with a gray card or color passport, it’s pretty easy to adjust the white balance in post. However, if you’re shooting JPEG or shooting scenes where you can’t […]

The post ExpoDisc 2.0 Review appeared first on Terry White’s Tech Blog.

Read More

“Flick Panning” in Photoshop

March 18, 2014 | By

When using the Hand tool to pan (move left, right, up or down in an image), Photoshop “eases out” of the pan. For an abrupt stop when panning,  click, drag and hold with the Hand tool. If you prefer, Flick Panning can be toggled off in the General Preferences by unchecking  Enable Flick Panning. 

Read More

Brackets Sprint 37 and Upcoming Hackathon

March 18, 2014 | By

Today Brackets Sprint 37 was released. You can download it via the usual place. Release notes may be found here: https://github.com/adobe/brackets/wiki/Release-Notes:-Sprint-37. My favorite updates here are the ability to finally disabl…

Read More

5 Things Developers Need to Know About Design #SXSW2014

March 18, 2014 | By

Many people have asked for my slides from the “Design for Developers” talk I gave at SXSW Interactive for the Adobe Creative Camp. Now I did upload the slides here but the entire presentation was just too complex considering all the videos and interactive elements I used. So I decided to record my presentation for your viewing pleasure.  Feel free to […]

Read More

Krebs On Security ColdFusion Story

March 17, 2014 | By

Krebs on Security has posted a story with the link bait title of The Long Tail of ColdFusion Fail. The title is misleading; the story is not about ColdFusion fails at all, but about IT failing to keep servers up to date to deal with already a…

Read More

Aerial Photography with a GoPro Camera and Adobe Creative Cloud tools

March 17, 2014 | By

My second article on aerial imaging with a remote controlled helicopter is now live in the March 2014 issue of Adobe Inspire!  The first article focused on aerial videography and Adobe video tools. This time it’s all about aerial photography with a GoPro camera and DJI Phantom (and how to bring these images to life [...]

Read More

Zooming in Photoshop

March 17, 2014 | By

• Double click on the Zoom tool to display the image at 100%.  • Double click on the Hand tool to display the image as large as possible on the monitor, while still seeing the entire image (View > Fit on Screen). • Command + “+” (plus)  (Mac) | Control  (Win) +” (plus) zooms in. […]

Read More

Attending cfObjective? Check out Into The Box

March 17, 2014 | By

Just a quick note to suggest that folks attending this years cfObjective consider coming up a day early for Into the Box. This is a conference for all things Ortus – ok, maybe you don’t recognize that name – but these are the folks behin…

Read More

Very odd CFDOCUMENT Bug

March 16, 2014 | By

Every now and then I can’t find a good solution for a reader so I take to the “airways” and ask my good readers for help. This is one of those days. Rick emailed me a few days ago with an interesting issue.

He had a query that he used to create a set of PDFs. In each PDF, he included a bit of dynamic data, like name, age, etc. It worked, but something odd happened. Consider the following sample code.

<cfset getStudents = queryNew("fname,lname,email", "cf_sql_varchar,cf_sql_varchar,cf_sql_varchar", [
	{fname:"Ray",lname:"Camden",email:"raymondcamden@gmail.com"},
	{fname:"Joe",lname:"Blow",email:"jblow@gmail.com"},
	{fname:"Scott",lname:"Stroz",email:"boyzoid@gmail.com"}]
	)>


<cfoutput>
 
    <cfloop query="getStudents">
   
        <cfdocument format="pdf" orientation="landscape" name="certificate">

        	<p style="background-image:url(cert.jpg);background-repeat:no-repeat;height:680px;width:900px">
			<font size="+2">#fname# #lname#</font>
			</p>
			
        </cfdocument>
       
        <cfmail from="no_reply@monoc.org" to="#email#" subject="Your Course Completion Certificate" type="html">
       
	        <cfmailparam file="certificate.pdf" type="application/pdf" content="#certificate#" />
        </cfmail>
       
    </cfloop>
   
</cfoutput>

Pretty straightforward, right? Each PDF is stored in memory and then attached to an email. When executed, emails go out, the text is dynamic per the code specified, but only the first PDF has the background attachment as defined in CSS.

As an FYI, when you create emails with attachments, you can find the attachments pretty easily. Open the mail file first, and then make note of the file line. Here is a sample from one of my tests: file: /Applications/ColdFusion10/cfusion/runtime/work/Catalina/localhost/tmp/cftmp1249913661563960132.tmp

The file is named .tmp, but I found the file, renamed it .pdf, and was able to view it just fine.

Anyway, I did some digging into this and immediately found some interesting tips:

  • Use localurl=”true”
  • Use a file:/// path

But none of these worked. I also tried adding a bit of randomness to the URL, thinking it was something in ColdFusion’s request handling, but that didn’t work either. I then made the variable used for PDF data dynamic. Why? Who the heck knows. I was trying everything. Here is the final version of the script, and one you can run yourself, to see the bug in action.

<cfset getStudents = queryNew("fname,lname,email", "cf_sql_varchar,cf_sql_varchar,cf_sql_varchar", [
	{fname:"Ray",lname:"Camden",email:"raymondcamden@gmail.com"},
	{fname:"Joe",lname:"Blow",email:"jblow@gmail.com"},
	{fname:"Scott",lname:"Stroz",email:"boyzoid@gmail.com"}]
	)>


<cfoutput>
 
    <cfloop query="getStudents">
   
        <cfdocument format="pdf" orientation="landscape" name="certificate#currentRow#" localurl="true">

        	<p style="background-image:url(cert.jpg);background-repeat:no-repeat;height:680px;width:900px">
			<font size="+2">#fname# #lname#</font>
			</p>
			<hr/>
			<p style="background-image:url(file:///Users/ray/Dropbox/websites/testingzone/cert.jpg);background-repeat:no-repeat;height:680px;width:900px">
			<font size="+2">#fname# #lname#</font>
			</p>
			<hr/>
			<p style="background-image:url(cert.jpg?x=#createUUID()#);background-repeat:no-repeat;height:680px;width:900px">
			<font size="+2">#fname# #lname#</font>
			</p>
			
        </cfdocument>
       
       <cfset content = variables["certificate#currentRow#"]>
        <cfmail from="no_reply@monoc.org" to="#email#" subject="Your Course Completion Certificate" type="html">
       
	        <cfmailparam file="certificate.pdf" type="application/pdf" content="#content#" />
        </cfmail>
       
    </cfloop>
   
</cfoutput>

So… any ideas?

Read More

March 2014 Inspire Magazine Published

March 16, 2014 | By

The March 2014 edition of Inspire Magazine has been released, featuring stories on Lightroom, Photoshop, Muse, aerial photography, and more.

Read More

CodeCanyon and ColdFusion

March 14, 2014 | By

A tip of the hat to reader David Imrie who (many weeks ago) let me know that CodeCanyon is willing to accept ColdFusion snippets. If you have no idea what CodeCanyon is (I didn’t until David’s email), it is a site that lets you buy/sell…

Read More

This blog…

March 14, 2014 | By

I have to apologize. For a while now this server has had issues. Sometimes I have to restart the services every morning. Sometimes it runs fine for days. My host, Edge Web, are very proactive and helpful, I know this because I’ll get mu…

Read More

Improving The Quality Of Your Video Compositions With Creative Cloud

March 13, 2014 | By

I’ve been spending a lot of time with Adobe video tools lately… everything from videos for the blog, to promotional videos, to help/technical videos.  Here are a few topics that beginners in video production need to think about… audio processing and color correction. First, you can make so-so video look great with a few simple [...]

Read More

Animated HTML that syncs with video

March 13, 2014 | By

A while back many of us saw this supercrazy Japanese music video, which shows how awesome it can be for HTML animations to play back in sync with an embedded video. But hand-coding this kind of content wouldn’t be much fun, so I thought I’d share how to visually author similar effects with Edge Animate. For […]

Read More

Video Tutorial – How to Quickly Add Photographs to a Collection in Lightroom

March 13, 2014 | By

In this Quick Tip for Lightroom (How to Quickly Add Photographs to a Collection in Lightroom), Julieanne demonstrates how to easily add images into a target collection using a single keystroke. 

Read More