Saturday, November 28. 2009
CloneVDIGUI - Support für VBox 3.0.12, x64
Dank einem Hinweis von notebook im VirtualBox Community Forum wurde das CloneVDIGUI-Tool erneut an VirtualBox angepasst. Der Installations- und Registrypfad von VirtualBox (aktuelle Version 3.0.12) hatte sich geändert, so dass die vboxmanage.exe nicht mehr automatisch gefunden wurde.
Die neue Version unterstützt die neuen Pfade und speichert ggf. den manuell ausgewählten Pfad ab, so dass immer wenn der Pfad nicht automatisch gefunden werden kann der gespeicherte Pfad verwendet wird. Die GUI hat sich seit der letzten Version nicht verändert.
Hinter dem Klick folgt Download, Beschreibung und Changelog CloneVDIGUI.
The VirtualBox command line helper for cloning disk images, CloneVDIGUI, was updated once more after a bug report of notebook in the VirtualBox Community Forum. The default installation path and registry path of virtualbox has changed, so vboxmanage.exe was no longer found automatically. The new version now detects the path correclty again (VirtualBox version 3.0.12) and also saves a manually selected path for use whenever the autodetection fails. The UI didn't change since the last update.
Download, Description and Changelog of CloneVDIGUI follows after the click.
UPDATE: There is a similar project for linux in the "don't trust technology" blog (german)
UPDATE: Es gibt ein ähnliches Projekt für Linux im "don't trust technology" blog
Thursday, November 26. 2009
SharedSize Grid with Silverlight
Since there is no SharedSizeGroup property for the Silverlight Grid I decided to code that myself. It is really helpful if you design a page with multiple Grids on it.
To give you an overview of the usage here is a Silverlight 3.0 XAML file
<UserControl x:Class="SLTestApp.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ext="clr-namespace:System.Windows.Controls.Extensions;assembly=System.Windows.Controls.Extensions"
mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
<Grid x:Name="LayoutRoot" Background="White" ext:SharedSize.IsSharedSizeScope="True">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid x:Name="firstfirstGrid" Grid.Row="0">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" ext:SharedSize.SharedSizeGroup="A"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" ext:SharedSize.SharedSizeGroup="A"/>
</Grid.ColumnDefinitions>
<Border BorderBrush="Green" BorderThickness="2">
<TextBlock x:Name="txtFirstFirst" >
<Run>aa</Run>
<LineBreak />
<Run>aa</Run>
</TextBlock>
</Border>
</Grid>
<Grid x:Name="firstsecondGrid" Grid.Row="1">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" ext:SharedSize.SharedSizeGroup="A"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" ext:SharedSize.SharedSizeGroup="A"/>
</Grid.ColumnDefinitions>
<Border BorderBrush="Blue" BorderThickness="2">
<TextBlock Text="aaaaaaaaaaaaaaaa" />
</Border>
</Grid>
</Grid>
</UserControl>
The current version only works in XAML and does not support adding a Grid or a SharedSize property in code and during runtime.
Download the release DLL

Here's the source code
SharedSizeGrid.zip
If you modify it and send it to me, I'll be happy to share the new version.
To give you an overview of the usage here is a Silverlight 3.0 XAML file
<UserControl x:Class="SLTestApp.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ext="clr-namespace:System.Windows.Controls.Extensions;assembly=System.Windows.Controls.Extensions"
mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
<Grid x:Name="LayoutRoot" Background="White" ext:SharedSize.IsSharedSizeScope="True">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid x:Name="firstfirstGrid" Grid.Row="0">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" ext:SharedSize.SharedSizeGroup="A"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" ext:SharedSize.SharedSizeGroup="A"/>
</Grid.ColumnDefinitions>
<Border BorderBrush="Green" BorderThickness="2">
<TextBlock x:Name="txtFirstFirst" >
<Run>aa</Run>
<LineBreak />
<Run>aa</Run>
</TextBlock>
</Border>
</Grid>
<Grid x:Name="firstsecondGrid" Grid.Row="1">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" ext:SharedSize.SharedSizeGroup="A"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" ext:SharedSize.SharedSizeGroup="A"/>
</Grid.ColumnDefinitions>
<Border BorderBrush="Blue" BorderThickness="2">
<TextBlock Text="aaaaaaaaaaaaaaaa" />
</Border>
</Grid>
</Grid>
</UserControl>
The current version only works in XAML and does not support adding a Grid or a SharedSize property in code and during runtime.
Download the release DLL

Here's the source code
SharedSizeGrid.zip
If you modify it and send it to me, I'll be happy to share the new version.
Saturday, November 21. 2009
Writing DTAUS files with C# (DTA-Dateien mit C# erzeugen)
In germany there is a file format for transfering bank transaction requests called DTAUS. I recently had the need to create such a file programatically, so I searched if anyone else already managed this task.
What I found was a blog entry of Timotheus Pokorra who wrote a litte C# class that managed this task for direct debits.
He generously allows anyone to use this class and provides his source code as download.
For my task, I extended his code to work with C# data objects instead of Xml data structures and added some optimizations and extensions.
The result is a set of three classes to create bank transfer or direct debit requests and allow them to be exported into to DTAUS fiel format with complete code documentation.
Of course, I will not hesitate to give back my extensions to the great work to Timotheus and the remaining web community.
Nevertheless, I do not want this class to be sold by others, so the license is Creative Commons NC-BY-SA. If you want to simply use my code in another (even sold) product, please contact me, if your product is more than "a library for DTAUS file management", I should gracefully permit you the right to use it.
(Download after german translation)
If you need a binary version of the file, just post me a line using the comments function of the blog.
Vor kurzem Stand ich vor der Aufgabe, in einem von mir geschriebenen Programm DTA-Dateien schreiben zu können, die in Deutschland verwendet werden, um Bankeinzug oder Überweisungsaufträge an Banken zu übermitteln. Nach einigem Suchen fand ich im Blog von Timotheus Pokorra eine Codedatei, die genau diese Aufgabe in C# erledigt. Der Code war für Xml-Strukturen als Eingabe entwickelt und darf frei verwendet werden.
Ich habe diese Klasse ein wenig erweitert, optimiert, Fehler ausgebügelt und zwei Datenobjekte erstellt, mit denen die Daten für den DTA-Auftrag in C#-Strukturen gespeichert werden können.
Gerne stelle ich meine Erweiterungen auch wieder frei zur Verfügung, solange die Anwendung nichtkommerziell ist (Creative Commons NC-BY-SA). Wer sie in kommerziellen Produkten einsetzen will, nimmt bitte Kontakt mit mir auf, ich bin gerne bereit, auch dafür die Freigabe zu erteilen, solange es nicht um eine Bibliothek zur DTA-Verwaltung geht...
Wer eine kompilierte Version benötigt, darf sich gerne über die Kommentarfunktion bei mir melden.
Please see the file header for the changelog and further information. You can find the Library here: DTAUSWriter.cs (.NET 3.5 using Linq and auto properties), DTAUSWriter_dnet20.cs (.NET 2.0)
Changelog und weitere Informationen im Dateikopf. Download der DTA-Datei-Bibliothek: DTAUSWriter.cs (.NET 3.5 mit Linq und Autoproperties), DTAUSWriter_dnet20.cs (.NET 2.0)

DTAUS Writer classes for C# von Timotheus Pokorra & Florian Harbich steht unter einer Creative Commons Namensnennung-Keine kommerzielle Nutzung-Weitergabe unter gleichen Bedingungen 3.0 Deutschland Lizenz.
Beruht auf einem Inhalt unter tpokorra.blogspot.com.
What I found was a blog entry of Timotheus Pokorra who wrote a litte C# class that managed this task for direct debits.
He generously allows anyone to use this class and provides his source code as download.
For my task, I extended his code to work with C# data objects instead of Xml data structures and added some optimizations and extensions.
The result is a set of three classes to create bank transfer or direct debit requests and allow them to be exported into to DTAUS fiel format with complete code documentation.
Of course, I will not hesitate to give back my extensions to the great work to Timotheus and the remaining web community.
Nevertheless, I do not want this class to be sold by others, so the license is Creative Commons NC-BY-SA. If you want to simply use my code in another (even sold) product, please contact me, if your product is more than "a library for DTAUS file management", I should gracefully permit you the right to use it.
(Download after german translation)
If you need a binary version of the file, just post me a line using the comments function of the blog.
Vor kurzem Stand ich vor der Aufgabe, in einem von mir geschriebenen Programm DTA-Dateien schreiben zu können, die in Deutschland verwendet werden, um Bankeinzug oder Überweisungsaufträge an Banken zu übermitteln. Nach einigem Suchen fand ich im Blog von Timotheus Pokorra eine Codedatei, die genau diese Aufgabe in C# erledigt. Der Code war für Xml-Strukturen als Eingabe entwickelt und darf frei verwendet werden.
Ich habe diese Klasse ein wenig erweitert, optimiert, Fehler ausgebügelt und zwei Datenobjekte erstellt, mit denen die Daten für den DTA-Auftrag in C#-Strukturen gespeichert werden können.
Gerne stelle ich meine Erweiterungen auch wieder frei zur Verfügung, solange die Anwendung nichtkommerziell ist (Creative Commons NC-BY-SA). Wer sie in kommerziellen Produkten einsetzen will, nimmt bitte Kontakt mit mir auf, ich bin gerne bereit, auch dafür die Freigabe zu erteilen, solange es nicht um eine Bibliothek zur DTA-Verwaltung geht...
Wer eine kompilierte Version benötigt, darf sich gerne über die Kommentarfunktion bei mir melden.
Please see the file header for the changelog and further information. You can find the Library here: DTAUSWriter.cs (.NET 3.5 using Linq and auto properties), DTAUSWriter_dnet20.cs (.NET 2.0)
Changelog und weitere Informationen im Dateikopf. Download der DTA-Datei-Bibliothek: DTAUSWriter.cs (.NET 3.5 mit Linq und Autoproperties), DTAUSWriter_dnet20.cs (.NET 2.0)

DTAUS Writer classes for C# von Timotheus Pokorra & Florian Harbich steht unter einer Creative Commons Namensnennung-Keine kommerzielle Nutzung-Weitergabe unter gleichen Bedingungen 3.0 Deutschland Lizenz.
Beruht auf einem Inhalt unter tpokorra.blogspot.com.


/* Comments */