August 2003 - Posts

Found the SourceSafe Switch!

I knew there was a way to switch VSS-databases by changing registry settings, but I prefer a little tool when I want to switch databases. Since I have also a GotDotNet WS, I now and then like to update some sources.

Some sources I change more often locally, while the workspace updates I do once per week.
DevHawk helped me out!

While GDN Workspaces are very cool, and the integration with VS.NET makes it very easy to use, not all of my projects use GDN workspaces as a SCC system. Unfortunately, the SCC API only supports a single "current" SCC system at a time. I didn't find any documentation about how to switch what SCC API considers "current" but it turned out to be pretty easy to figure out. Details are below, plus I'm providing a simple tool (with source) to easily switch the current SCC provider.

SCC API uses a registry key to store two important pieces of information. The first is the currently selected provider. The other is a list of all installed providers. The availability of the list made creating the SccSwitch tool very trivial (the whole app is under 150 lines of code).

The main SCC API registry key path is HKLM\SOFTWARE\SourceCodeControlProvider. This key has a single value named "ProviderRegKey". It contains a string value with the path (in the HKLM hive) to the settings for the SCC Provider. For example, my ProviderRegKey is currently set to "Software\Microsoft\SourceSafe", which means I'm using VSS as my integrated source control provider. That registry path holds information such as the dll that implements the SCC API as well as provider specific information.

Under HKLM\SOFTWARE\SourceCodeControlProvider is a subkey named "InstalledSCCProviders". This key contains multiple string values, one for each installed SCC API. For example, on my system I have two installed SCC Providers - SourceSafe and GotDotNet Workspaces. The value data for each contains the registry key path for that specific SCC API provider. To change the current SCC provider, simply copy the desired provider registry path into the ProviderRegKey value described above.

Since the list of installed providers is readily available, building a utility to switch them is simple. On load, SccSwitch iterates the InstalledSCCProviders key for all the values, placing them in a checked list box. It auto checks the currently selected SCC provider as it loads. If the user selects a different provider, the update button is enabled and the other items get unchecked. When the enabled update button is pressed, the correct provider registry key is looked up from the registry and written to the ProviderRegKey value as detailed above. That's all there is to it!

with 0 Comments

What's up Scott? (or must I say Donnie?)

Post operation failed. The error message related to this problem was as follows: 'xml:namespace' is an invalid name for processing instructions. Line 4, position 381.
 
Get this message when editing a message...
with 0 Comments

SourceSafe, GotDotNet Workspace: switching, merging, how to's?

I also got a workspace at GotDotNet, but I'm just wondering how you easily can switch from local sourcesafe to workspace sourcesafe...

How do you guys do this? I'd like to keep my local copy on my server and just connect to the workspace for some major updates to share them with team members.

Enlighten me guys !

Any other advice concerning other tools for source management across the web is also welcome!

with 0 Comments

Another Bug in .Text ....

I'd like to edit my former post http://dotnetjunkies.com/weblog/kris/posts/1212.aspx but when I'd like to edit the content of the post (misstyped title), the body of the post is missing a huge part.

So what is the limit of characters? Donnie, please make some changes...

with 0 Comments

Programming Language Inventor or Serial Killer

Do you pass the test?

I got 7 out of 10

with 0 Comments

PDC

with 0 Comments

Sharepoint Portal Server v. 2 and Office Systems

I've been playing around with the new SPPS for a while and have been building some web parts. I wonder of other junkies also have been writing some web parts in C# or VB.NET. Want to share some knowledge?

One thing I need to get used to, is altering styles / colors / lay-outs etc in Frontpage. But one thing which is really nifty in Frontpage is the way you can drag XML-data in the pages.

So far I made some document folders with a list I use to store properties in that belong to the folder (file numbers e.g. or special data I need to be found in a search), some event viewers, ...

 

with 0 Comments

I want to share this with you all!

Sorry for those who don't (won't) understand, but I'm still floating a bit after having seen this setlist in a small venue (1500 people) where I was standing on the first row... And everyone should be jealous! And no I was not selling my ticket for $ 3,000.-

Jumping Jack Flash
Live With Me
Hand Of Fate
No Expectations
Worried About You
Saint Of Me
It's Only Rock'n Roll
Dance
Everybody Needs Somebody To Love
That's How Strong My Love Is
Going To A Go Go
--introduction of the band
Thief In The Night (Keith)
Happy (Keith)
I Can't Turn You Loose
Can't You Hear Me Knocking
Start Me Up
Tumbling Dice
Brown Sugar
Satisfaction (encore)

 

That was in that little Vredenburg in Utrecht!

with 0 Comments

We have to be prepared, New York wasn't

http://securityresponse.symantec.com/avcenter/FixBlast.exe

Be prepared and check your PC for the virus before tomorrow!

 

with 0 Comments

Expressions in OO

If Me.IsThirsty OrElse Me.IsHungry Then
    Me.Goto(Fridge)
    Dim coll As Foods = Me.CurrentLocation.GetContents()
    Dim i As Integer
    For Each f As Food In coll
        Me.Consume(f.RawContent)
        If i > 10 Then : Me.Burp() : End If
        i += 1
    Next   
End If   
 
- Thought I wanted to share this one with you all, but don't know anymore where I found this one (was on one blog)
Sorry for not refering... 
with 0 Comments

What a blast!

Everyone should read this one: http://www.microsoft.com/security/incident/blast.asp

 

with 0 Comments

.Text or dasBlog ?

Quite frankly, .Text and DasBlog both have their charms.

DasBlog easily let you upgrade BlogX to DasBlog and has several themes which the reader can change and allows the administrator to “email' to the blog,

 

Anyway I'm following the development of both tools, but at this moment I'm into DasBlog because I don't need SQL Server.

with 0 Comments