<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" >
	<channel>
		<title>Troolean</title>
		<atom:link href="http://www.troolean.nl/feed/" rel="self" type="application/rss+xml" />
		<link>http://www.troolean.nl</link>
		<description></description>
		<lastBuildDate>Tue, 31 Jan 2012 19:19:46 +0000</lastBuildDate>
		<language>en</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
		<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
			<title>Why not to buy a HP OfficeJet Pro</title>
			<link>http://www.troolean.nl/2012/01/why-not-to-buy-a-hp-officejet-pro/</link>
			<comments>http://www.troolean.nl/2012/01/why-not-to-buy-a-hp-officejet-pro/#comments</comments>
			<pubDate>Tue, 31 Jan 2012 19:16:47 +0000</pubDate>
			<dc:creator>enijburg</dc:creator>
			<category><![CDATA[Rant]]></category>
			<guid isPermaLink="false">http://www.troolean.nl/?p=177</guid>
			<description><![CDATA[Seriously, of all printers I know, the OfficeJet Pro 8500 A909g is the worst ever. ]]></description>
			<content:encoded><![CDATA[<p>Not only does it refuse to switch to my regional settings (I repeatedly have te change from letter to A4), the print quality sucks and it constantly cancels multipage printjobs without any reason. To make things even worse, the software and driver installers reboot your pc without your consent and device support lasts as long as it is not superceded by a new version of the printer.</p><p>No more HP for us.</p>]]></content:encoded>
			<wfw:commentRss>http://www.troolean.nl/2012/01/why-not-to-buy-a-hp-officejet-pro/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		</item>
		<item>
			<title>Resize VMWare virtual machine under Windows 7</title>
			<link>http://www.troolean.nl/2012/01/resize-vmware-virtual-machine-under-windows-7/</link>
			<comments>http://www.troolean.nl/2012/01/resize-vmware-virtual-machine-under-windows-7/#comments</comments>
			<pubDate>Tue, 24 Jan 2012 09:30:14 +0000</pubDate>
			<dc:creator>enijburg</dc:creator>
			<category><![CDATA[VMWare]]></category>
			<category><![CDATA[Knowledge base]]></category>
			<guid isPermaLink="false">http://www.troolean.nl/?p=158</guid>
			<description><![CDATA[Pretty often I find myself stuck on a VM with not enough diskspace. Making the thing bigger is not a problem if you have the manuscript laying around. This is the procedure I succesfully use on VMWare workstation virtual machines containing Windows 7.]]></description>
			<content:encoded><![CDATA[<ol><li>Turn off the virtual machine;</li><li>Commit/remove all the snapshots or make a Full Clone if you use Link Clones.</li><li>Open a Command Prompt and go to:<br /><strong>C:\Program Files\VMWare\VMWare Server</strong> or <strong>C:\Program Files\VMware\VMware Workstation</strong><br />or for 64-bit<br /><strong>C:\Program Files (x86)\VMWare\VMWare Server</strong> or <strong>C:\Program Files (x86)\VMware\VMware Workstation</strong>Run this command to expand the virtual disk:<br /><strong>vmware-vdiskmanager -x 12GB &#8220;My harddisk.vmdk&#8221;</strong> (in this case, 12 GB will be the new size).<em><br />The file name can contain spaces because of the double quotes.</em></li></ol><p><em>Note: Because this only expands the disk and not the partition, you&#8217;ll need to resize the partition table as well. This can be done with &#8216;diskpart.exe&#8217;, a built-in tool of Windows. VMWare provides a list of tools on their web site: <a title="KB1004071" href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1004071" target="_blank">KB1004071</a></em></p><ol><li>Power on your virtual machine;</li><li>Open a Command Prompt and type: <strong>diskpart</strong></li><li>Type: <strong>list volume<br /></strong><em>Remember the volume number (#) of your volume!</em></li><li>Type: <strong>select volume <em></em></strong> (the number from step 3)</li><li>Type: <strong>extend</strong></li></ol><p><em>Finished, no need for a reboot.</em></p><p>Seen on <a title="Leon Meijer's Weblog" href="http://leonmeijer.nl/archive/2007/05/07/25.aspx" target="_blank">Leon Meijer&#8217;s Weblog</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.troolean.nl/2012/01/resize-vmware-virtual-machine-under-windows-7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		</item>
		<item>
			<title>Adding a DataSourceAttribute through CodeDom</title>
			<link>http://www.troolean.nl/2011/07/130/</link>
			<comments>http://www.troolean.nl/2011/07/130/#comments</comments>
			<pubDate>Tue, 05 Jul 2011 17:50:19 +0000</pubDate>
			<dc:creator>enijburg</dc:creator>
			<category><![CDATA[Code generator]]></category>
			<category><![CDATA[CodeDom]]></category>
			<category><![CDATA[MTM]]></category>
			<guid isPermaLink="false">http://www.troolean.nl/?p=130</guid>
			<description><![CDATA[Recently I have done quite a few T4 templates that use CodeDom to generate Automated test classes for use with Microsoft Test Manager. One of the problems I encountered was adding a DataSource attribute through CodeDom. This example shows how to do that.]]></description>
			<content:encoded><![CDATA[<div style="font-size: 11px;"><pre class="brush:csharp">using System; using System.CodeDom; using System.CodeDom.Compiler; using Microsoft.CSharp; using Microsoft.VisualBasic; namespace AttributeCodeGenDemo {class Program {static void Main(string[] args) {//using (CodeDomProvider codeProvider = new VBCodeProvider()) using (CodeDomProvider codeProvider = new CSharpCodeProvider()) {// Create namespace to hold new class CodeNamespace demoCodeNamespace = new CodeNamespace("Troolean.CodeDom.Demo"); // Create using statements demoCodeNamespace.Imports.Add(new CodeNamespaceImport("Microsoft.VisualStudio.TestTools.UnitTesting")); demoCodeNamespace.Imports.Add(new CodeNamespaceImport("System")); // Create class CodeTypeDeclaration fooBarCodeTypeDecl = new CodeTypeDeclaration("FooBar") {IsClass = true }; // Add class to namespace demoCodeNamespace.Types.Add(fooBarCodeTypeDecl); // Decorate class with TestClass attribute fooBarCodeTypeDecl.CustomAttributes.Add(new CodeAttributeDeclaration("TestClass")); // Create a new method CodeMemberMethod executeCodeMember = new CodeMemberMethod() {Name = "Execute", Attributes = MemberAttributes.Public | MemberAttributes.Final }; // Add new method to the class fooBarCodeTypeDecl.Members.Add(executeCodeMember); // Decorate method with TestMethod attribute executeCodeMember.CustomAttributes.Add( new CodeAttributeDeclaration("TestMethod")); // Create DataSource attribute. Output the constructor that takes 4 parameters of which three are strings and te last one is an enum. var dataSourceCodeAttrDecl = new CodeAttributeDeclaration("DataSource", new CodeAttributeArgument(new CodePrimitiveExpression("Microsoft.VisualStudio.TestTools.DataSource.TestCase")), new CodeAttributeArgument(new CodePrimitiveExpression(string.Format("http://tfsserver:8080/tfs/troolean;{0}", "Product1"))), new CodeAttributeArgument(new CodePrimitiveExpression("100"))); // The last parameter is an enum CodeTypeReferenceExpression dataAccessMethodCodeTypeRefExpr = new CodeTypeReferenceExpression("DataAccessMethod"); dataSourceCodeAttrDecl.Arguments.Add(new CodeAttributeArgument(new CodeFieldReferenceExpression(dataAccessMethodCodeTypeRefExpr, "Sequential"))); // Decorate the method with the DataSource attribute executeCodeMember.CustomAttributes.Add(dataSourceCodeAttrDecl); /* namespace Troolean.CodeDom.Demo {using Microsoft.VisualStudio.TestTools.UnitTesting; using System; [TestClass()] public partial class FooBar {[TestMethod()] [DataSource("Microsoft.VisualStudio.TestTools.DataSource.TestCase", "http://tfsserver:8080/tfs/troolean;Product1", "100", DataAccessMethod.Sequential)] public void Execute() {} }} */ // Generate the code and output to console codeProvider.GenerateCodeFromNamespace( demoCodeNamespace, Console.Out, new CodeGeneratorOptions {BlankLinesBetweenMembers = true, BracingStyle = "C" }); }} }}</pre></div>]]></content:encoded>
			<wfw:commentRss>http://www.troolean.nl/2011/07/130/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
