Installing RMagick on Ubuntu*
Posted by Ryan Baxter Thu, 20 Aug 2009 17:00:00 GMT
Because I always forget how…
sudo apt-get install libmagickwand-dev
sudo gem install rmagickand you reference it in code like so:
# Don't forget the capital "RM"!
require 'RMagick'
include RMagick*I’ve only done this using Ubuntu 9.04. Your mileage may vary.
- Posted in Code Snippets
- Meta no comments, permalink, rss, atom
Multiple Subversion Services on Windows
Posted by Ryan Baxter Wed, 10 Jun 2009 20:13:00 GMT
It’s possible, but not often necessary, to run multiple instances of the Subversion service on Microsoft Windows. At work, the source code of IT staff and Engineers is kept on two different servers with a third hosting Subversion. Since one of our Engineering departments recently decided to test Subversion as their SCM system, I had to install an additional service to manage their repositories.
I have a horrible time remembering the syntax for creating a Subversion service. That said, I’ve posted my worst case scenario for future reference. The arguments include UNC paths, ports, and lots of slashes. Next time, with the help of Google, I’ll remember. Oh, and if you’re receiving a 1053 error, it may be that you need to run the service under an account with sufficient rights to the UNC path used as the root (-r) Subversion repository.
sc create svnserve_it binpath= "\"C:\Program Files\CollabNet Subversion Server\svnserve.exe\" --service -r \"\\ITFILESERVER\Repositories\" --listen-port 3690" displayname= "Subversion Server (IT)" depend= tcpip start= autosc create svnserve_engineering binpath= "\"C:\Program Files\CollabNet Subversion Server\svnserve.exe\" --service -r \"\\ENGFILESERVER\Repositories\" --listen-port 3691" displayname= "Subversion Server (Engineering)" depend= tcpip start= auto- Posted in Code Snippets
- Meta no comments, permalink, rss, atom
System.Net.Mail.SmtpFailedRecipientException and Exchange 2007
Posted by Ryan Baxter Fri, 30 Jan 2009 17:45:00 GMT
I’d recently been struggling with a .NET application that sends email via SMTP through Exchange 2007 outside of my domain at work. That is, until I found a workaround that uses the Exchange 2007 Pickup folder. This eliminated my authentication hassles and resolved the dreaded Mailbox unavailable. The server response was: 5.7.1 Unable to relay error. I’ve posted the solution here, but I also suggest reading the original post.
SmtpClient smtpClient = new SmtpClient("EXCHANGESRV", 25) {
DeliveryMethod = SmtpDeliveryMethod.SpecifiedPickupDirectory,
PickupDirectoryLocation = "\\EXCHANGESRV\PickupFolder"
}
Keep in mind that you’ll either need sufficient write permission on the Pickup folder or be able to impersonate somebody that does. I happen to have written about identity impersonation a few months ago. You’re in luck.
Kudos to stackoverflow.com. I only wish I had enough rep to upvote the submitter. :(
- Posted in Code Snippets, Expect the Unexpected
- Meta 2 comments, permalink, rss, atom

