Verwendung von AnkhSVN und Subversion zur Quellcodeverwaltung in Microsoft Visual Studio 2010

by hm 7. April 2012 15:30

Für meine kommerziellen Projekte ist die Verwendung des Microsoft Team Foundation Servers inzwischen Standard. Aber auch bei privaten Projekten, an denen u.U. nur ein Entwickler beteiligt ist, ist es ein gutes Gefühl, jederzeit die aktuellen Änderungen zu sehen und auf definierte alte Stände zurückgehen zu können.

Wer also z.B. Microsoft Visual Studio 2010 Prof. verwendet - die Express-Versionen unterstützen leider keine Plugins - kann unter

http://www.sliksvn.com/en/download

slik subversion (32 bit oder 64 bit) als .msi herunterladen und nach erfolgter Installation z.B. per

C:\Program Files\SlikSvn\bin>svnadmin create c:\data\svn\repos

 

ein SVN Repository erzeugen. Dort werden die Quellcode-Versionen abgelegt.

 

Unter

http://ankhsvn.open.collab.net/downloads

steht mit AnkhSVN ein Visual Studio Quellcodeverwaltungs-Plug-In zum Download bereit. Nach der Installation evtl. noch in Visual Studio 2010 unter Extras - Optionen, Registerkarte Source Control AnkhSVN als aktuelles Quellcodeverwaltungs-Plug-In wählen

 

 

Anschließend kann ein Projekt geöffnet und per rechtem Mausclick auf die Projektmappe Subversion zwecks Quellcode-Verwaltung hinzugefügt werden.

Das Fenster Pending Changes erlaubt die Verwaltung der Änderungen; alternativ können dafür per rechte Maustaste die Kontextmenüs auf den Dateien verwendet werden, z.B. View History.

Tags: , , , , ,

Computers

Running SQL Server 2000 SQL Scripts from the Microsoft Visual Studio 2010 IDE

by hm 12. March 2012 16:27

You can't directly run sql scripts on a Microsoft Sql Server 2000 inside the Microsoft Visual Studio 2010 IDE BUT you can connect to a supported server and then use :connect inside of an sqlcmd script - so you CAN run SQL Server 2000 scripts inside Visual Studio 2010 ;)

Security caveat: You have to supply username and password in your sqlcmd script.

Tags: , ,

Computers

Data Loss while using Microsoft wbadmin sysrecovery with excludeDisks parameter

by hm 1. February 2012 18:48

Just a quick reminder to ALWAYS back up ALL data still accessible (or remove the not required disks physically) before using wbadmin to do a sysrecovery (it happened on Windows 7 Prof. 64 Bit but there is a common codebase with Windows Server 2008R2). While doing a sysrecovery I carefully excluded several harddisks (using copy and paste for the cryptic disk identifiers required as arguments for excludeDisks). Nevertheless an excluded disk was overwritten with partitions created during the sysrecovery. I guess it is because the backup included partitions using Windows software RAID 1 and that while recreating the mirror the excludeDisks: parameter wasn't checked ... *BAM* - bad luck. So, yes, it seems to be a "special case", but this isn't Windows 0.9, is it? ;)

PS: If you wonder ... I could recover all current data from a disk mirror that wasn't connected (with 2 additional backups on external hdds up my sleeve ;)

Tags: , ,

Computers

Energiesparplan "Power Saver" Standard für 1 & 1 Windows Server

by hm 28. December 2011 10:38

Als 1 & 1 Windows Server Kunde lohnt evtl. ein Blick in die Energieoptionen. Mein dort gehosteter physikalischer Server war - abweichend von den von Microsoft empfohlenen Einstellungen - auf "Power Saver" gestellt (Saves energy by reducing your computer's performance where possible). Gut für die Umwelt, für das 1 & 1 Bankkonto, aber vielleicht nicht unbedingt für leistungshungrige Applikationen ...

Tags: ,

Computers

Windows 8 Developer Preview installed on Windows Server 2008 R2 Hyper-V

by hm 14. September 2011 23:05

After unsuccessfully trying to run the different versions of the Microsoft Windows 8 Developer Preview on VMware Workstation 7.x I've just installed the 32 bit version on Hyper-V running on top of Windows Server 2008 R2 Enterprise. Installation was smooth and fast ...

Update: Just started Microsoft Visual Studio 11 Express running in Windows 8 Developer Preview 64 Bit installed on Windows Server 2008 R2 Hyper-V!

 

 

 

 

ISO-Images available for download at http://dev.windows.com

Tags: ,

Computers

Attached USB drive not visible in Hyper-V computer

by hm 9. September 2011 18:49

A client is using Microsoft Small Business Server 2011 on Hyper-V server. Currently two USB drives are used for the internal SBS 2011 backup. For security reasons one of them is always kept at an external location.

Because of current Hyper-V limitations we have to connect the drives to the Hyper-V server, set them offline with the diskpart cmd tool and attach them to a virtual SCSI controller; only then the drive can be used inside of SBS 2011 for backup purposes.

Today I tried different ways to switch to the other USB drive and disconnect the one formerly in use. I believe the trouble started because at first both harddisks where connected when I selected the other one in Hyper-V manager.

After disconnecting the "old" drive Hyper-V manager showed the new "SCSI" drive but it wasn't visible in the virtual SBS 2011. After several virtual reboots, configuration changes (remove drive, add it again), a physical server reboot I finally removed the virtual SCSI controller, readded it, readded the drive ... and it was once again visible in SBS 2011 and backup worked without any problems.

The moral for me: When using the current Hyper-V 2008 R2 Server make sure that you first shutdown the virtual machine, remove the backup USB-drive from the virtual machine configuration, remove the physical drive from the host, add the other physical USB backup drive, add the drive to the virtual machine configuration ...

If one of my readers knows of a more user-friendly way to handle the described scenario I would be very grateful to hear about it!

Tags: , , , ,

Computers

Dynamic Data Localization Issue In .NET Framework 4.0

by hm 2. September 2011 13:18

The little pleasures of a developers life ...

RangeAttribute throws a run time error in SetUpValidator(RangeValidator1) when a decimal sign is included and the client language is German; most likely a localization issue in the .NET 4.0 Dynamic Data Framework

// [RangeAttribute(0.0d, 9.999d]

Workaround using RegularExpressionAttribute; the supplied regular expression only supports German decimal number notation; I would use a global resource like Resources.Resource.MyRegex but this is not allowed since it's static but not const; only workaround I know about: using the InMemoryMetadataManager I found on the web - very useful if "dynamic" attributes are required

[RegularExpression(@"^[0-9](\,[0-9]{1,4})?$"]
    public dynamic x {get; set; }

 

Final localized solution using InMemoryMetadataManager and my custom base class:

       

AddColumnAttributes(
           p => p.x,
           new RegularExpressionAttribute(Resource.FunctionCoordRegex)
              { ErrorMessage = Resource.InvalidFunctionCoordValue});

 

Method in generic base class:

static public void AddColumnAttributes(
          Expression<Func<T, object>> propertyAccessor,
          params Attribute[] attributes)
    {
        InMemoryMetadataManager.AddColumnAttributes<T>(propertyAccessor, attributes);
    }

 

Just a few snippets so feel free to ask ... ;)

Tags: , ,

Computers

VMware vCenter Converter and Blue Screen Stop 0x7b

by hm 25. August 2011 09:53

When I migrate to new PC hardware I usually virtualize the existing hardware - just in case I've missed something. While using VMware vCenter Converter 4.3.0 I had trouble getting my virtualized "old" Dell Notebook running XP Prof. to start: Blue Screen, Stop 0x7b. The solution: Choose the SCSI Bus Logic Controller in the Converter (instead of the default IDE) ... Obviously this was the default in older versions of the converter but, hey, life would be less interesting without such "improvements" ... ;)


Tags: , ,

Computers

Microsoft SBS 2011 Backup Und Sharepoint Problem

by hm 18. August 2011 13:54

Die Microsoft Small Business Server 2011 Sicherung funktionierte nach einigen Updates (inkl. SharePoint Foundation 2010 SP1) plötzlich nicht mehr:
(Fehler bei einem Volumenschattenkopie-Dienst-Vorgang; Unknown error (0x800423f0)

Kritischer SharePoint Foundation Fehler im Log:

Ausnahme der Methode 'Execute' der Auftragsdefinition 'Microsoft.SharePoint.Search.Administration.SPSearchJobDefinition' (ID c5f1f053-c487-4034-95bc-da2380895e52). Weitere Informationen finden Sie unten. Das Gerät ist nicht bereit.



Lösung: Manuelle Ausführung von PSCONFIG

 

Tags: , ,

Computers

Umzug eines Benutzerkontos in die Domäne und EFS-Dateiverschlüsselung

by hm 18. August 2011 13:41

Im Rahmen des Beitritts meines PCs zu meiner Domäne (Hyper-V virtualisierter SBS 2011), habe ich mein lokales Benutzerkonto ebenfalls mit umziehen lassen.

Alles scheint korrekt funktioniert zu haben - bis auf den Zugriff auf einen Ordner mit verschlüsselten Dateien. Zwar war das Zertifikat vom lokalen Benutzerkonto mit in das Domänenbenutzerkonto umgezogen. Allerdings war damit keine Entschlüsselung meiner Dateien möglich. Ein Export dieses Zertifikats war nicht möglich.

Ein Import eines vor einiger Zeit auf CD gebrannten exportierten Zertifikat funktionierte unter dem alten lokalen Benutzer nicht ("Ein interner Fehler ist aufgetreten"). Das dort ursprünglich vorhandene Zertfikat war im Rahmen des "Profilumzugs" verschwunden.

Unter einem anderen neu angelegten Benutzer "test" konnte ich dieses Zertifikat allerdings importieren; genauso wie später unter dem neuen Domänenbenutzerkonto (dort wurde das vorhandene Zertifikat ersetzt). Vielen Dank an Oliver Lohkamp für die Idee mit dem neu angelegten Benutzer!

Moral: Immer das EFS-Zertifikat sichern! Gute Freunde sind wichtig! ;)

Tags: , , , , ,

Computers | Computers

About the author