Adsense

Friday, May 18, 2012

Subversion/SVN 1.7 upgrade causes CruiseControl.Net to checkout instead of update

I upgraded my Subversion to 1.7+ and ran the svn upgrade command to update my working copy to the new format. As a side effect, my CruiseControl.Net builds started to fail with the following error when it tried to update my repository from source control.

Source control operation failed: svn: E155000: ‘c:\myRepo\repoSubDirectory’ is already a working copy for a different URL

After banging my head on my keyboard for a while, I finally found out why. I found the following snippet about CCNet 1.2+ releases which shed some light on the problem.

SVN Checkout
As of the CCNet 1.2 release, the SVN provider now supports automatic checkout of source. If the working directory does not contain a .svn folder (or _svn folder), the SVN block will automatically perform a checkout instead of an update. The trunkUrl must be specified for checkout to function.

In Subversion 1.7+ there are no longer .svn files in sub folders of the working directory. Because of this, if you have a <workingDirectory> defined for a folder in your repository other than the root folder Cruise Control thinks it needs to do a checkout rather than an update. This will fail because the directory you’ve specified is already part of a working directory.

In my case, I was able to change the working directory to the root of my repository so that cruise control would correctly update instead of trying to checkout. Does anyone know of a way to get around this so you can continue to use a sub folder in your working directory instead of the root? Another option could be to remove the <trunkUrl> from your ccnet.config so that the checkout feature wont work, but I didn’t actually give this a try.

Hope this helps someone.

Tuesday, May 15, 2012

Diablo 3 Launch - Error 37 - AutoIt Login Script

Like millions of other Diablo 3 fans, I decided to try and get a bit of Diablo 3 in tonight before getting some sleep. Unfortunately, when users try to log into the game the majority of them are being greeted by the following error screen (Error 37) stating that “The servers are busy at this time. Please try again later.”

Diablo3-Diablo-III-Blizzard-Error37-error 37-beta-test-open-picture-2

What’s even more unfortunate is that Blizzard is making us all log into Battle.Net before we can even play Diablo 3 single player. Out of pure boredom brought on by this situation, I put together the following AutoIt script to assist with my login efforts so that I can focus on more productive activities, like watching a show or reading a book. Fire the script in AutoIt, replace YourPasswordHere with your password, hit F5, bring up Diablo 3 and press “=” to start the script. Press “-“ at any time to end it…

I take no responsibility for what you use the script for. Just posting it for educational purposes. Enjoy.

 

Global $Paused

HotKeySet("-", "Stop") ;script can be stopped by pressing -
HotKeySet("=", "Try") ;script can be stopped by pressing -

$go = True
$try = False
$password = "YourPasswordHere"
$sleepDuration = 500

While $go
   if($try) Then
      Send ($password)
      Sleep($sleepDuration)
      Send ("{ENTER}")
      Sleep($sleepDuration)
   EndIf
WEnd

Func Stop() ;to allow the script to stop
    Exit
EndFunc
 
Func Try()
    $try = True
EndFunc