EC2: Coda Public Key Authentication
Panic’s Coda uses the same method of connecting to EC2 instances as I described previously here.
In short:
Edit your ~/.ssh/config file (or create one if you don’t already have it) and add an entry that looks like this (variable areas are marked like this {variable})
Host {the shortcut name that you want to use to connect to the instance}
User {the user you will connect with, for instance root}Port 22 Hostname {host name or ip address} IdentityFile {location of your private key file, for example ~/.ssh/id_rsa-gsg-keypair} TCPKeepAlive yes IdentitiesOnly yes
And thats it, you should be able to connect to your instance (or any server you have private-key authentication setup on) with Transmit. Simply use the shortcut name that you entered after “host” in the server field in the transmit connection screen and leave the password and user fields blank. MAKE SURE that you are using sftp and that you have poked a hole in the firewall on port 22 with the ec2 tools (ec2-authorize -p 22).
I did want to mention that there is one gotcha laying in wait, Coda will force the host to lower case, so you will need to enter the host in the .ssh/config file as lower case or the it will not find the entry.
On Facebook, codeigniter and errors
When you throw an error in codeigniter, it gives you helpful little error pages. Helpful, that is, if you are building for a domain rather than building a facebook app. Those error pages will generate a decidedly un-helpful facebook errors because they have body tags (and probably other stuff that’s not going to make it through fb’s re-interpreting). The solution, though, is sweetly simple:
(fbml apps only, iframe you’re likely not having this problem)
In your errors directory change the markup for error_404, error_db, error_general and error_php to something like this
<fb:error>
<fb:message><?=$heading?></fb:message>
<?=$message?>
</fb:error>
Nothing else, just that line, and when you see that error on the facebook side it will be styled just like an error from fb itself.
January 26th, 2009 - Posted in Web-Dev | |
PDPworks 2.1
A big update for PDPworks is live. PDPworks 2.1 has search enhancements, improved reports and much more.

It’s live at PDPworks.com
New PDPworks Site
Today we updated the PDPworks public facing sites, pretty’d up some things. Check it out at http://www.pdpworks.com

PDPworks 2.0 Released
Version 2 of PDPworks has been released. 2.0 features a new user interface, many new features and improvements.
You can get more information on PDPworks and Current users can login here.


