Tuesday, December 09, 2008

808s & Heartbreak

Finally bought the new album. Lovin' it!

ColdFusion 8 avec MAMP!

Added CF8 to my existing MAMP dev environment this morning. Was a breeze especially after watching this guys paiiinfully slow and noobalicious install video.

But hey, it seems to work thus far. I'll keep you posted on what I run into and how learning model glue works out.

Tuesday, December 02, 2008

MVC Demystified

I posted yesterday about application frameworks causing vertigo. In reading through this article by Malcolm Tredinnick I breathed a sigh of relief. Things made sense again.

I genuinely feel that people are locking their thinking in, and causing unnecessary confusion, by getting hung up on "MVC practices". When, as I hope I've shown and linked to, the problem space is much more subtle than that and multiple solutions exist. Focus on the problem you are trying to solve. Keep in mind that there are many similar, but different solutions and think about the Django mapping example I did in the previous section. Hopefully you can see that it's ridiculously constraining (not to mention, simply incorrect) to assign labels to broad components in a framework when they work at a much finer-grained level.


Malcolm links to ModelViewController at WardsWiki which provides excellent information on these usefult echniques. In a recent interview, a developer asked me to define MVC design. I put together the traditional explanation, and I thought the quote on the WW article summed it up nicely:
The model is the data, the view is the window on the screen, and the controller is the glue between the two. -- ConnellyBarnes

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