If you want to setup a Windows SVN server, it’s easy as pie! I set one up for the company I work for as the Linux SVN Server was getting too difficult to manage. I would highly recommend using the free version of VisualSVN server for Windows for your code repository: VisualSVN Server.
It’s a ~4MB msi installer, and it’s a doddle to add new repositories and manage them. There is also an Enterprise version of the software should you need any extra features but we have found that the free one does everything we need and more.
Once you have installed the VisualSVN Server, download and install Tortoise SVN onto your computer: Tortoise Download.
You can then use Tortoise to update and commit code to your repository!
Posted in Uncategorized
Another of my little Windows 7 deployment annoyances has been the fact that windows media player is pinned to the new taskbar by default, and with windows 7, it’s not possible to programmatically add or remove pinned items from the taskbar.
After a while of script hunting for something that might get around this, I found out that there is an option that can be used in the unattended xml file will stop it from being automatically added!
In windows system image manager, add the following under phase 7 (OOBE):
Windows shell setup >> Windows Features >> ShowWindowsMediaPlayer >> false
Posted in OS, Tips
I’ve always wondered when looking at C# what get and set methods are used for. In basic terms I found that the get and set method was mainly for reading (get) or writing (set) a property. After scratching my head for some time, I tried to give it a go as I have problems setting a string to a particular value within one of my C# projects.
I setup another class within my project called “tgtNotes”, which would contain my get and set:
class tgtNotesJK
{
private string LocNotes = null;
public string NotesLoc
{
get
{
return LocNotes;
}
set
{
LocNotes = value;
}
}
I then thought, “surely it’s not that easy”! I then went back to the code on the form, and defined the class within the code for button1:
tgtNotesJK notestgt = new tgtNotesJK();
Getting and setting is really easy. To set a value:
notesgt.NotesLoc = "Some text";
And to get the value for example:
Console.WriteLine(notesgt.NotesLoc);
Another great benefit of this is that you will be able to access the methods from anywhere within the C# project. So because I ’setted’ a value within button1, will mean for example that I can still access the value within other parts (for example button2).
Posted in Programming