Tuesday, September 20, 2011

Useless SVN Error Message: Network connection closed unexpectedly « Ben J. Christensen

This is VERY helpful if you're trying to use svn+ssh with an alternate port number and you get the vague message about the network connection closing unexpectedly:

Useless SVN Error Message: Network connection closed unexpectedly « Ben J. Christensen

Before you go there, however, if you have shell access on the remote host from which you're trying to check the project out, be sure to test locally:

svn list svn+ssh://username@localhost/path/to/project/repository

If you don't have a port number specified in ~/.ssh/config, you should first try:

svn list svn+ssh://username@localhost:1234/path/to/project/repository ('1234' in place of your port number)

If that doesn't work, open up ~/.ssh/config (you may need to create it) and enter this:

Host yourhost.com
User username
Port 1234

In the case of testing on localhost, I used this config file:

Host localhost
User myUsername
Port 1234

Literally use the host, "localhost."

Once I knew that worked, I could try remotely, at which point I got the seemingly meaningless error. So, I then created the config file on my local machine.

Good luck!

Sunday, September 11, 2011

Dana Luther on Yii's AuthManager Using the Database

Dana Luther is "da bomb" as they say. Her guides are well-written and super helpful. Her blog is one of my go-to choices when I'm stymied or confused by something in Yii.

Here, for example, is a great article on setting up Yii's built-in AuthManager to use your application's database:

Adventures in Programming: Yii Authentication via database