• Home
  • About
  • Archives
  • Links
  • Sitemap
Subscribe: Posts | Comments | E-mail
  • Personal stuffMostly family-related
  • ReviewsProduct/Book/Whatever Reviews
  • Side projectsStuff that I'm working on sometimes
  • WorkingRelates to Industry Interactive mostly

Flyingtroll.com

Archive for the ‘Technology abuse’ Category


Posted on September 4, 2009 - by J Lane

ColdFusion 8 on Snow Leopard

Seems like every time Apple does an update, ColdFusion breaks.  Usually it’s some problem with Java, this time it looks like Apple running 64 bit Apache under Snow Leopard.  That’s not new though, Leopard also ran 64 bit Apache that cause a few pains on install (you’d think the 64 bit ColdFusion installer would do the trick, but sadly it fails early in the install).

The trick that worked for me:

  1. Uninstall/re-install 32 bit ColdFusion (it’s probably not necessary, but I wanted to make sure that nothing else got messed up during the Leopard -> Snow Leopard upgrade).
  2. I installed as standalone, multi-server should be fine too.
  3. I didn’t configure the Apache connector during the install, I just told Coldfusion to use the built-in server.
  4. After the install finished, and I verified Coldfusion was working, I popped open a terminal and went to: cd /Applications/ColdFusion8/bin/connectors/
  5. (Again in Terminal): sudo nano apache_connector.sh (you’ll have to enter your password)
  6. Change the line that starts with -dir to /etc/apache2, the line that starts with -bin to /usr/sbin/httpd and the line that starts with -script to /usr/sbin/apachectl
  7. Press “Control-O” (that’s oh) and “Control-X” to save the file and exit the editor.
  8. Type: sudo ./apache_connector.sh
  9. It’ll report that everything went smoothly.  If you try to access http://localhost/, you’ll notice that Apache isn’t running though.  Grab the recompiled connector from Scott Pinkston’s article on ColdFusion 8 with Apache on Leopard (thanks Scott!)
  10. It’ll download and unzip.  In your terminal window, type cd /Applications/ColdFusion8/runtime/lib/wsconfig/1
  11. Type sudo cp (and the drag the .so file from your Downloads folder onto your terminal window) and type ./
  12. For good measure, type sudo apachectl graceful.

Yup, a 12 step program to get ColdFusion running on Snow Leopard.  Maybe someday Adobe will just be able to make an installer that works properly.

Update: As was noted in one of the comments, images aren’t showing up properly in the CF Admin.  For me, the problem seemed to be that Apache didn’t think my web root for http://localhost/ was actually /Library/WebServer/Documents/, but that’s unlikely to be the case for you.  To “clean up” the install I did a couple of additional things (listed here separately so as not to ruin my great “12 step” joke above – har dee har har).

  1. In the Terminal, type sudo pico /etc/apache2/httpd.conf and look for the like that reads:

    DirectoryIndex index.html

    Change it to read:
    DirectoryIndex index.html index.cfm
  2. Also in Terminal, type “sudo chown -R _www:_www /Applications/ColdFusion8/wwwroot/CFIDE/”.  That will set the ownership of the CFIDE directory to _www, which is the user Apache runs under.  That should fix any permissions problems you’re having (if not, drop a comment!).
  3. Give Apache a “sudo apachectl graceful” once this so that Apache picks up the config change from step 1.

Posted on August 9, 2009 - by J Lane

Apple Mail’s Handling of Attachments

When Apple said “Think Different”, they weren’t kidding.  Especially as it relates to their handling of certain types of attachments in Apple Mail.

The Background:

My company, Industry Interactive, produces Mailmanagr.  Mailmanagr lets people post messages, todos, milestones and files directly to Basecamp from their e-mail.  Among other uses, if you’ve got a client that just can’t get used to logging into Basecamp and posting stuff there, you can just forward the messages they send you through Mailmanagr.  Works great, unless you’re using Apple Mail.

While most mail clients (like Gmail, or Outlook) will handle files as attachments, Apple has decided to include them inline in the message.  This is true for any type of file that Apple things is an image — so JPGs, GIFs, PNGs, PDFs — anything that displays within Apple Mail and doesn’t require a third party application to view.  There are ways to get around it, and to force Apple Mail to deal with them as attachments, but that’s messy.  As far as I can figure, it all comes down to this:

–Apple-Mail-14-963253153
Content-Disposition: inline;
filename=image004.jpg
Content-Transfer-Encoding: base64
Content-Type: image/jpeg;
x-unix-mode=0644;
name=”image004.jpg”

Instead of the standard:

Content-Type: image/jpeg; name=”image001.jpg”
Content-Transfer-Encoding: base64
X-Attachment-Id: 0.0.1

The problem here is that certain types of clients can’t figure out that there is an attachment on the message.  Mailmanagr suffers this problem and so “image” attachments forwarded from Apple Mail don’t get sent through to Basecamp.

The Solution:

There is a workaround, but it’s extremely messy.  In Mailmanagr’s case, I have to write a completely different way of dealing with file attachments for Apple Mail than for any other e-mail client.  It’s a pain – I’ll have to sniff the “X-Mailer” and then handle accordingly.  So far, only one customer has had this problem so I’ve been putting off developing the fix.


Posted on July 7, 2009 - by J Lane

CFFTP not returning a directory listing

In my Googling, I couldn’t find anything about it, so I thought I’d post something here.  It might seem painfully obvious to most ColdFusion developers, but my brain has been dealing with a head cold, and I just couldn’t figure out what I was doing wrong.

I’m not sure if it’s true of all servers/situations, but I was running into a problem with CFFTP recently.  I could connect to an FTP server fine, and get a directory listing of the root folder, but subfolders weren’t returning anything.  There wasn’t an error returned, it just returned nothing.

Turns out what I was doing wrong was that you actually need to change into the working directory before listing it’s contents.  In retrospect, yeah, it makes sense, but it was something that confused me for an hour or so.

<cfftp connection="myConnection" action="changeDir" directory="/some/sub/folder/">
<cfftp connection="myConnection" action="listDir" directory="/some/sub/folder/">

Seems silly to me that it works this way, especially because you have to specify complete paths in all CFFTP operations.  It would be one thing if I just had to specify the complete path in the changeDir operation, and then listDir would just assume I mean the current working directory (the directory attribute would be optional), but it doesn’t work like that.  Same deal for getFile and putFile operations… have to specify the complete path.

Not the end of the world, just mildly annoying.


Posted on June 28, 2009 - by J Lane

WestJet Twitter free flight contest

I’m a big fan of Westjet, but their terms and conditions on their Twitter follower contest were at worst recycled from a past promotion, and at best written by a lawyer who has no idea what Twitter is.

WestJet is running a contest where if you follow them on Twitter, you’ll be entered to win a free round-trip flight to anywhere in Canada, from anywhere in Canada.

I’m a bit of a geek, and I’ve recently taken an interest in actually reading through the terms and conditions for various things.  I’m a geek, but I’m not a lawyer so legally everything I write here might actually be wrong.  There were, however, some things that I thought were interesting in the terms and conditions of this promotion:

Last line under #3 reads:

If you’re already following @WestJet then you’re already automatically entered into each of the daily draws. Maximum one entry per person/follower.

Okay, cool so they’re not going to penalize their current followers.  Good on them.  The only part I thought was weird was is you combine this with #7:

By entering this contest, twitter followers (“Entrants”) agree to be bound by these Contest rules (the “Rules”), which are subject to change without notice, and all decisions of the Sponsor which are final. By entering, Entrants grant the Sponsor and their affiliates the right, but not the obligation, to use their photograph, filmed or recorded image, name and city of residence in all publicity campaigns related to the Contest without further notice or compensation.

What if I happened to follow @Westjet because of my undying love for them, and was completely unaware of the contest they’re running.  I’d be entered into the contest automatically and in turn automatically agree to be bound by contest rules?  This seems a bit slimy to me — essentially automatically being entered into a contract by using a 3rd party service?  I’m going to go put on my Facebook profile that by friending me, you automatically agree to pay me $100.

Okay, so I’m totally playing devil’s advocate on this.  Personally, I’m a huge fan of Westjet — I think that if all airlines operated like them, the world would be a better place.  That said, this seems like a case of them re-using terms and conditions of a past contest with only slightly changing the wording, and not thinking through what they’re saying.  Why do people have to agree to contest rules upon entry, and not upon winning?

Here’s another great clause:

All entries become the property of the Sponsor and will not be returned. Sponsor assumes no responsibility for lost, stolen, or damaged entries. Entries are subject to verification and will be declared invalid if they are illegible, mechanically reproduced, mutilated, forged, falsified, altered or tampered with in any way.  The Sponsor is not responsible for typographical or other errors in the offer or administration of this Contest, including but not limited to, errors in advertising, the Rules, the selection and announcement of winner, or the distribution of any Prize.

Isn’t an entry my following them on Twitter?  That becomes their property?  How?  Do I need to get their permission to unfollow them?  Geez, I hope my twitter account isn’t mechanically reproduced, mutilated or rendered illegible.  In the digital world, that seems a bit contradictory though — it should be mechanically reproduced (backed up) so that it doesn’t become mutilated (suffer a hardware or software failure).  Good to know that I can’t hold Westjet accountable if my Twitter account gets hacked or hijacked though.

Oh, and lastly, under #9:

No correspondence will be entered into except with the selected Entrants.

I guess that Westjet won’t be tweeting much.  Because, of course, that would be communicating with all of the entrants (their followers).  At least they’ll have a nice, high follower count.  Westjet, do you need a little intro to what Twitter does?



  • Hey there!

    Flyingtroll.com is the personal web site of Jonathan C Lane, a Mayne Island, BC-based web developer, author and all-around great guy.

    Why not SUBSCRIBE and make the whole reading thing effortless?

  • Meanwhile on twitter...

    • A new contender for best REWORK photo: http://bit.ly/9eL7LJ /via @jasonfried. I felt that way for years. 6 hrs ago
    • Just got the domain I had backordered. Yay me. 1 day ago
    • Pro tip: some kind of vapor-producing cream in your hand (tiger balm, Vicks), cupped over an ear -> instant ear ache relief 1 day ago
    • More updates...
  • Flickr Photos

  • RSS Industry Interactive

    • ColdFusion and Postmarkapp March 2, 2010
    • Cobworks February 3, 2010
    • Cobworks November 15, 2009
  • RSS DiscoverGulfIslands.com

    • Winter storms November 20, 2009 J Lane
    • Small communities November 4, 2009 J Lane
    • Halloween on Mayne November 3, 2009 J Lane
  • RSS Moveable Feast

    • Jonathan Lane posted a new status update: October 29, 2009
    • Jonathan Lane wrote on their own wire: October 29, 2009
    • Jonathan Lane wrote a new blog post: Moveablefeast 101 October 29, 2009
© 2008 Flyingtroll.com - Jonathan C Lane is once again bringing sexy back