"I'll do what I've got to do," he said. "I'm a professional. I'm not bitter. I love the fans, but I've got to take care of me."
Wednesday, September 26, 2007
Not all code - NBA
Shawn Marion reminds me today why I'm finding it increasingly harder to stomach the NBA:
Setting up svnsync
Now that I have my svnserve services running, it's time to setup svnsync. Here's the steps I followed:
- Begin with a blank, copy repository
- Created a user to be used for the synch process (svnsync)
- User has read permissions on original repository
- User has r/w on the copy repository
- I had to create a pre-revprop-change.bat file. This was a bit of a pain, as I've written very few DOS scripts, and the templates provided were unix shell scripts. I finally sludged my way through it and ended up with the following, incredibly basic implementation:
IF %3==svnsync exit 0
ELSE (
echo "Only the svnsync user can change revprops"
exit 1
)
- I then needed to initialize the sync, with the following command:
- svnsync init --username svnsync svn://copyRepository:port svn://originalRepository:port
- Finally, I executed a sync
- svnsync sync svn://copyRepository:port
Running two separate svnserve instances
I have subversion installations and repositories at two separate remote locations. I have been tasked with keeping each repository in synch with a master repository at a central location. To do this, I have setup two separate subversion repositories on the central server. I've setup two services on the central server that run svnserve, each is running on it's own non-standard port, each is attached to one of the repositories.
Deleting Services
Of course I didn't get my service setup correctly on the first try, so I had to delete it. The command is as follows:
sc delete [servicename]
In this case for me, servicename = svnserve
sc delete [servicename]
In this case for me, servicename = svnserve
Subversion Setup Notes
- Download the and install the latest Subversion release from here:
- http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91
- Create a repository (from the command line):
- svnadmin create C:\desired\path\to\repository\
- Setup the repository configuation file (C:\desired\path\to\repository\conf\svnserve.conf), by adding something similar to:
- [general]
anon-access=read
auth-access=write
password-db=passwd - Add users and passwords to the "C:\desired\path\to\repository\conf\passwd" file
- Setup user permissions on the repository in the "C:\desired\path\to\repository\conf\authz" file
- Setup a svnserve as a service (from the command line):
- sc create svnserve binpath= "C:\Subversion Installation Directory\svnserve.exe --service --root C:\desired\path\to\repository\" displayname= "Subversion" depend= tcpip start= auto
Connect via Tortoise, and you are off and running. Now I need to do some research on AD integration for authentication.
Thursday, September 20, 2007
Firefox prefers Location to Navigate()
I found out today that the following works with IE, but not with Firefox:
window.navigate('theLink') ;
I replaced it with the following, and everything is moving smoothly again in both browsers:
window.location='theLink';
window.navigate('theLink') ;
I replaced it with the following, and everything is moving smoothly again in both browsers:
window.location='theLink';
Wednesday, September 19, 2007
Symbol Scanner CE code - StartRead()
The CE app that I'm working is for a Symbol scanner, and I ran into an "Read already pending" error message when attempting to scan a third barcode into the form. It is completely beyond me why it only errors out the third time, and does not error out on the second read. It was only happening on one form, and I finally chased it down to the fact that the problem form was the only one missing error handling. An update as shown below "fixed"* the problem.
Private Sub StartRead()
'If we have both a reader and a reader data
If Not ((Me.MyReader Is Nothing) And (Me.MyReaderData Is Nothing)) Then
'Submit a read
AddHandler MyReader.ReadNotify, Me.MyEventHandler
Try
Me.MyReader.Actions.Read(Me.MyReaderData)
Catch ex As Exception
End Try
End If
End Sub
*The root cause is not fixed, but I don't really have any good reasons to go any further into fixing the root cause.
Private Sub StartRead()
'If we have both a reader and a reader data
If Not ((Me.MyReader Is Nothing) And (Me.MyReaderData Is Nothing)) Then
'Submit a read
AddHandler MyReader.ReadNotify, Me.MyEventHandler
Try
Me.MyReader.Actions.Read(Me.MyReaderData)
Catch ex As Exception
End Try
End If
End Sub
*The root cause is not fixed, but I don't really have any good reasons to go any further into fixing the root cause.
Subscribe to:
Posts (Atom)