Using cfimage to create thumbnails

I have been playing around with the new cfimage tag in coldfusion 8. I am very impressed with the resize capability. Coldfusion 8 seemed to do a great job resizing my images into thumbnails. I created a tutorial here.

Here is a little bit of code to create thumbnails.

<cfimage action=“info” structname=“imagetemp” source=“Path to your image”>
<cfset x=min(150/imagetemp.width, 113/imagetemp.height)>
<cfset newwidth = x*imagetemp.width>
<cfset newheight = x*imagetemp.height>
<cfimage action=“resize” source=“#Path to your image#” width=“#newwidth#” height=“#newheight#” destination=“#thumbnail destination#”>

Update: My Using CFIMAGE to Generate Thumbnails tutorial was published at learncf.com

NTSC Action on Adobe Studio Exchange

My Photoshop NTSC action is now on Adobe Exchange. If you have not check out the Adobe Exchange it is a great place to download tons of mostly free stuff for all of the Adobe products.

Blog roll for BlogCFC

I have been playing around with Ray Camden’s BlogCFC for the past few weeks. I am planning on moving over from BlogCFM. One think that I really wanted with my new blog was the ability to easily update links in my blog roll. BlogCFC did not have this out the box, but I came up with a very easy whay of doing this. Using BlogCFC’s Textblocks feature I created a textblok called “blog roll”. Next I created a pod called blogroll.cfm and called my blog roll text block using

FROM dbo.tblblogtextblocks
WHERE LABEL = ‘Blog Roll’


Now all I have to do is update the links in my blog roll textblock, refresh blog cache and my blog roll is updated.

Remote into your Macintosh from Windows

I discovered this great video how to on the net. It demonstrates how to setup remote desktop on the Macintosh for free, no need for apple remote desktop. It also allows you to control your Macintosh via a Windows machine. I have configured my Macintosh this way and it works great. I setup everything on a thumb drive so I can take it with me anywhere.

  1. On your windows, machine download puttygen.exe from http://www.chiark.greenend.org.uk/~sgtatham/putty/
  2. Generate a private key file and save it on your thumb drive also save your public key file and copy it to the Macintosh you want to control.
  3. On your Macintosh, copy the “publickey.txt file you created in step 2 to your user directory.
  4. Make sure that port 22 is open to this Macintosh if you have any firewall in place
  5. Open terminal (applications/utilities) and type “mkdir .ssh” to create the .ssh folder
  6. Type “chmod 700 .ssh”
  7. Type “mv publickey.txt .ssh/authorized_keys”
  8. Type “chmod 600 .ssh/authorized_keys”
  9. Type “sudo nano /etc/sshd_config”
  10. After you type in your password hit control W and type “AllowTcpForwarding”
  11. Delete the # sign
  12. Control W again and type “PasswordAuthentication”
  13. Remove the # and change the yes to no
  14. Control W and type “UsePam” and remove the # sign from this line
  15. Control X and save the file
  16. If you want the finger print type “ssh-keygen –l –f  /etc/ssh_host_rsa_key.pub” and write the hash value down or save it to a text file on your thumb drive
  17. Open up system prefs and click on shareing make sure you have a check next to the remote login service
  18. Next download OSXVNC from http://www.redstonesoftware.com/products/vine/server/vineosx/index.html and start it up
  19. Back on the Windows machine download putty.exe from http://www.chiark.greenend.org.uk/~sgtatham/putty/ and UltraVNC from http://ultravnc.sourceforge.net/ I put both of these application on my thumb drive
  20. Start Putty and under session IP type the IP address of your Macintosh, goto the Data item in the list on the left and Auto-login username type your Macintosh short name, go under the SSH item and on auth private key browse to your private key file you created in step 1, finally goto tunnels 5900 for source port and localhost:5900 for destination and click add.
  21. Now click Open if this is your first time on the machine connecting to the mac you should get a popup with the hash value from step 16 if this does not match some one is possible doing a “man in the middle” attack to hack your Macintosh
  22. If the hash matches click Ok and then type the password you setup for your private key file.
  23. Startup UltraVNC and connect to localhost
Final Cut Pro Easter Egg

Bruce the Yak in Final Cut Pro 5.1. To get to this easter egg, Open up your video scopes (tools menu – video Scopes) Control click on the vectorscope area then choose magnify do it again then control click and double click on magnify. If you do it just right a little patch of grass will come out and then along will come Bruce the Yak. If you are patientBruce will bubble up some words of wisdom.

CFChart not working with Coldfusion 7.0.2

I installed Coldfusion 7.0.2 and my TSX Avg MPG chart would not display in IE. It would display fine in FireFox and Safari. After doing some searching I found a trick that worked for me, under your web root create a folder named CFIDE inside of it create a folder called Scripts. Do a search on your hard drive for cf_runactivecontent.js and copy it to the CFIDE/Scripts folder you created. It is working like a charm for me now.

Dual tuner tivo upgrade

I have been a Tivo fan for a while so I was excited today to see the UPS man left my new dual tuner Tivo. First thing I have to upgrade it 80 hours will not do. I got a 300 gig HD from Compusa for $57.00 after $10.00 mail in rebate. I got the Tivo from Amazon.com for $45.00 after a $20.00 coupon I had and a $150 mail in rebate from Tivo. Now on to the upgrade, I have documented the very easy process with pictures and instructions after the jump.
Step one: Make sure you have basic computer knowledge (setting jumpers on IDE Hard drives, not being afraid to take electronics apart)

Step two: Download Instant Cake from http://www.ptvupgrade.com< make sure you download the correct version for the Tivo you have. Your model number is listed on the back of your Tivo. Note: you can hunt around http://dealdatabase.com/forum/for some hacked together ISO. I just find it much easier to drop the $20 for Instant Cake<

Step Three: Burn the ISO you downloaded with your favorite cd burning software.

Step Four: Shutdown your computer and install you new HD as the secondary IDE master make sure your CDROM is setup as primary IDE slave and your bios is set to boot off of the cdrom drive.

Step Five: Boot your computer with the CD burned in step three answer the few questions you are presented and let Instant Cake do its magic.

Step Six: Shutdown your computer and remove the HD and hook everything back up.

Step Seven: Install the new HD into your Tivo

Step Eight: Power your Tivo back up and do a clear and delete everything

You are done enjoy your increased recording capacity!




3 new tutorials

I have been busy the last week or so creating 3 new tutorials. I created a Final Cut pro Lower Third with luma matte tutorial last Sunday on my way to San Jose, CA. I have also been meaning to create two using some CSS tricks I discovered. One is a three column layout using CSS (I use a variation of this on my own site). The second is a link color schemes using CSS (I also use this on my site).

Photoshop Watermark

I added a new tutorial to create an easy watermark on an image in Photoshop. Photoshop Watermark

Farcry CMS – Friendly URLS

I have been playing around a good bit with Farcry CMS a content management system for coldfusion. I have it up and running at http://www.ledetfamily.com (not really much up there mostly a domain that I use to play with stuff for the time being) I have now set it up successively with both mollio and the friendly url plugin under IIS 6. Mollio was pretty straight forward using the directions here. As for the friendly URL plugin it was a little more work. I started by following all the directions here, but they leave out one important point you need to install an ISAPI Rewrite plugin under IIS. I just installed this per the directions at the site here and created an IsapiRewrite4.ini file in the same directory as the plugin and added this code:

# friendly url rules
RewriteRule ^/go/(.*)$ /go.cfm?path=/go/$1 [L,PT]

That was it, seems to be working like a champ now. You can check it out at LedetFamily.com.

Older Posts →
← Newer Posts