Tag Archives: coldfusion

ColdFusion NPR API Pt. 1

NPR published an API a while back giving easy access to 250,000+ NPR stories.

As I’m still quite the newb when it comes to Object-Oriented Programming I thought I would blog through the process of creating an OO ColdFusion wrapper.

Example Usage:










Download the code!

PS: In order to actually run this you’ll need to register for an account and API key. Also, browse the aggregate to ID mapping info to find yourself some id’s to use!

PPS: A much-love shout-out to my local NPR affiliate WMFE. Support publc radio!

Eclipse RDS Problem: Contacting Server…

I’ve been successfully running CFEclipse on Ganymede for a week or two now, but I finally got around to just installing and setting up my ColdFusion 8 Eclipse Extensions (downloaded from the lovely coldfusionportal.org). Everything looked like it went well: “Test Connection” worked. But whenever I would double-click a folder in my RDS Fileview or Dataview I would get hung up on this “Contacting Server…”.

It took a bit of googling, but I finally stumbled upon this post and I wanted to share the link love: http://www.vintagecoding.com/blog/2008/07/24/eclipse-rds-might-be-a-problem-with-ganymede/

Apparently if you click the arrow icon’s in the RDS Fileview and RDS Dataview views it’ll work. It’s a workaround alright, but it works.

Ubuntu Hardy Heron ColdFusion 8 Oopsie

Somehow I managed to bugger up the ColdFusion installation on my beloved laptop. Whenever I would try to start the cf server I would get the following not-very-helpful message.

Running the ColdFusion 8 connector wizard
======================================================================
Configuring the web server connector
(Launched on the first run of the ColdFusion 8 start script)
Running apache connector wizard...
=======================================
There was an error while running the connector wizard
Connector installation was not successful

I googled around enough to realize that since it didn’t appear to be a common problem, that it was probably something I did. And it was.

As you may have figured out by now, I’m not a server-config kind of guy. I poked around a little bit and found an interesting looking shell script at /opt/coldfusion8/bin/connectors/apache_connector.sh. Running that gave me a much better error message:

Could not find directory /etc/apache2/apache2.conf

I opened the file and realized that the paths were all boogered up, meaning the paths I entered when installing ColdFusion where all buggered up. In any case, I fixed the incorrect paths and here’s what the file looks like now:

#!/bin/sh

#
# Configure the Apache connector.
#	-dir should be the *directory* which contains httpd.conf
#	-bin should be the path to the apache *executable*
#	-script should be the path to the script which is used to 
#		start/stop apache
#
../../runtime/bin/wsconfig 
	-server coldfusion 
    -ws apache 
	-dir /etc/apache2 
	-bin /usr/sbin/apache2 
	-script /etc/init.d/apache2 
 	-coldfusion

exit $#

And Voila!