I Cast Magic Missile on CFObjective

As I mentioned yesterday, I will be organizing D&D for the Games BOF at CFObjective. Here's a little bit more detail on what to expect and what you need to bring.

We're in the second BOF time slot so that we can play indefinitely into the night. We'll play until we start falling asleep or until they kick us out of the room, whichever comes first. If we're all still going strong and we get kicked out, we may even try to find an alternate space to continue playing.

Here's how it's going to work: We'll have a stack of pre-rolled characters of each class, so you don't need to bring anything except yourself and maybe your favorite pencil. If you've got dice/etc feel free to bring them. Oh and if you have a token/minifig for your character, that would probably be helpful too. But again, nothing is required... just show up and we'll try to accommodate you!

We originally had a volunteer DM, but he is unfortunately not able to make it to the conference this year. If you would like to volunteer in his place, please contact me!

See you there!

in cfObjective | 2 Responses Posted 2012-05-09 09:01

Free Booze for Hackers (at CFObjective)

The BOF's for this year's CFObjective conference have just been announced, and both of my suggestions are among them! I'll talk a little bit about the D&D BOF in my next post, but this time I wanted to share some exciting news about the CFScript Community Components Hackathon.

Adobe has agreed to provide a small sponsorship to cover some drinks at the hotel bar for Hackathon attendees! We've still got to work out the logistics, but hey... free beer. As in free beer!

I've also connedconvinced Sam Farmer to help out with organizing and running the Hackathon. In fact, it was Sam's idea to get the drinks sponsored, and his hard work and persistence that made it happen.

Thanks, Sam; and thanks Adobe!

in cfObjective | No Responses Yet Posted 2012-05-08 10:00

Getting nothing but 404's for ColdFusion 10 REST on Apache?

I was (getting nothing but 404's for CF10 REST on Apache), and it baffled me for days. It turns out that the solution is incredibly simple.

In my case, I've got several Virtual Hosts setup in Apache, and the CF10 installer isn't accounting for this. All you have to do is add a line to each VHost for which you want to enable REST. The installer adds the line to the global httpd.conf file, but not to the included file that defines VHosts.

Not only is the separation of vhosts out into an include file standard on recent versions of OSX, it's pretty standard among most Apache installs these days. I imagine that pretty much all developers using Apache and multiple VHosts will run into this problem if and when they try to use the CF10 REST features.

If you're on OSX, it's probably something like this:

JkMountFile "/Applications/ColdFusion10/config/wsconfig/1/uriworkermap.properties"

Or on Windows, like this:

JkMountFile "C:\ColdFusion10\config\wsconfig\1\uriworkermap.properties"

So once added, my localhost VHost entry looked like this, with the new JkMountFile directive in the middle:

<VirtualHost *:80>

    ServerName localhost
    ServerAlias localhost
    DocumentRoot /Users/adam/Sites/localhost

    ErrorLog /private/var/log/apache2/localhost-error_log
    CustomLog /private/var/log/apache2/localhost-access_log common

    JkMountFile "/Applications/ColdFusion10/config/wsconfig/1/uriworkermap.properties"

    <Directory "/Users/Adam/Sites/localhost">
        Options Indexes FollowSymLinks
        AllowOverride AuthConfig FileInfo
        Order allow,deny
        Allow from all

        RewriteEngine On
        RewriteOptions Inherit
    </Directory>

</VirtualHost>

Simply save the file and restart Apache and you're on your way.

Credit for this information goes to the always wise and insightful Rob Brooks-Bilson.

I've filed a bug against the CF10 installer for this issue. I imagine it's possible that the issue is too nuanced to be able to fix for all users all of the time (or we may not have time to get it fixed before release), but regardless of whether or not the installer is fixed, the documentation needs to make this painfully clear.

in ColdFusion | No Responses Yet Posted 2012-05-07 11:26

Happy 5th Blog Birthday To Me

It's hard to believe but this blog is one of the most consistent things I've done online, ever. I don't have the post frequency or count of, say, Ben Nadel or Ray Camden, but I've not gone a single month without posting on this blog for the last 5 years. (I even came up with what I consider to be a clever way of navigating old entries by month in a grid format, which clearly illustrates this trend.)

I've been on this domain since July 23rd 2007, but for almost a year prior I was using WordPress installed in a sub-folder on a now-defunct blog, on a domain I recently allowed to expire. Ah, memories.

At any rate, here's to 5 years, and hopefully many more to come!

in Meta | 2 Responses Posted 2012-04-27 09:00

Bloggers: Stop Outsourcing Your Code Samples!

I get it, really, I do. Syntax highlighting plugins can sometimes be a pain in the rear... sometimes they don't work the way you want them to, sometimes they conflict with other things your site is trying to do, and sometimes you have to fight with (some of) them to get the characters you want to display displayed (e.g. encoding greater-than and less-than symbols as &gt; and &lt; instead of just writing > and <)...

Lately I've seen many blogs switching to the use of embedded Gists as a way to show code samples. I think this is a terrible idea.

Sure, Github seems pretty stable and popular now. I love Github and I host many of my projects there, but you won't see me outsourcing my blog code-sample hosting to them.

What happens if they get bought by AOL for two billion dollars and AOL decides they just don't like the Gist service. Poof. Gone. Your blog, which will live on in perpetuity (as long as you keep paying the bills) now has large and important chunks missing. The value of those posts just disappeared.

Even if they decided to give you 6 months notice before shutting the service down? You'd then have to go through your entire blog history and convert the gists into either another service or embed them in the blog directly.

By hosting your code samples elsewhere -- anywhere other than on your own blog -- you're making a bet. And that's not a bet I would make, ever.

I've tried most of the options available. ColdFish, embedded in most versions of BlogCFC is not horrible. I even used the aptly but unimaginatively named Syntax Highlighter.

These days I've settled on what I think is a much more robust solution: Prettify. It's a JS library from Google that is 100% language agnostic. You don't have to do any "brushes" like Syntax Highlighter. You just wrap every code sample in <pre class="prettyprint"> and include the JS library on your page. And if you're not a huge fan of the color scheme, there are existing themes and it's easy to tweak it and create your own, too.

So please, bloggers... Knock it off. You're making the internet worse, not better, with these shenanigans.

in Meta | 8 Responses Posted 2012-04-19 08:18