Monday, December 01, 2008

Springs, Boxes, Controllers

Oh, my. Trying to decide between MVC frameworks, implicit invocation features, and Object Relational Mappers is enough to make your head spin. One advantage is that I am narrowed down to a language (Coldfusion) and DataBase Management Server (SQL Server), which is interesting because although normally I would probably choose something LAMP oriented, for this current project I am confined to MS/Adobe land.

Adobe devnet article on ColdFusion Frameworks: http://www.adobe.com/devnet/coldfusion/articles/frameworks_intro_print.html

Model-Glue vs Coldbox?

Coldspring vs Lightwire?

ORM or custom solution?

So many questions, such little time. Will choosing an ORM wall me in for the future? Is this ok? Setting out in the brave new world that is web application development. Always evolving and highly malleable. Perhaps that's why I like it.

Tuesday, November 25, 2008

Applescript to decode Gmail's noname attachments from base64

This site does it all for you, good if you're in a hurry:
http://www.jquery.info/noname/

Below is an applescript:
You still have to open the file and remove the first blocks of MIME headers and the last line of the file. Then drop your edited noname onto it.

Can someone help me write a way to remove the MIME headers and the last line of the file... any ideas? Maybe a pattern matching a solid block of 500 chars or so with no spaces?


on open theFile
tell application "Finder"
-- get a "/folder/folder/name" (POSIX) path
set thePath to POSIX path of (theFile) as string
-- make work with spaces in the path
set theName to do shell script "perl -e \"print quotemeta ('" & thePath & "');\""
-- decode noname from base64 and save to the Desktop as somename
do shell script "/usr/bin/openssl enc -d -base64 -in " & theName & " -out ~/Desktop/noname_fix"
end tell
end open


http://drobertadams.blogspot.com/2007/12/opening-gmail-attachments-in-mac-os-x.html