Doorgaan naar hoofdcontent

Posts

Serializing a Webservice response When you want to view the details of a SOAP webservice response and, for instance, write it to your log, the following example of serialization can help:         private static string SerializeObject( object toSerialize)         {             XmlSerializer xmlSerializer = new XmlSerializer(toSerialize.GetType());             using (StringWriter textWriter = new StringWriter())             {                 xmlSerializer.Serialize(textWriter, toSerialize);                 return textWriter.ToString();          ...
Recente posts
How to keep track of your continuous learning? I try it with a scrum board:  https://trello.com/b/OIuiA3Ql/study
Synchronize databases When you want to synchronize master data between SQL databases in different environments, you can easily generate a script for this with SSMS 2017. Just select the database, right mouse click and choose: Tasks => Generate script => Set scripting options => Advanced Scripting options: and change a setting from Types of data to "Schema AND data". A T-SQL script will be generated with both the table structure and the INSERT INTO statements.

Settings for CodedUI in Visual Studio 2017

When working with CodedUI and SpecFlow, it can be important to have it run as a 32-bits process. I spend quite some time finding the correct setting in Visual Studio for a project that was not running the tests. It appeared I needed to change the following test setting: from the Menu in Visual Studio, choose Test\Test settings\Default Processor Architecture: X86 (so not: X64!). The same can be said for all other test types run from the Test Explorer, like unit tests.

Adding Polymer element to ASPX

Below you can see a simple example of how to integrate a Polymer element (core-toolbar here) into an ASP.NET Webforms page. Note that the import lines are included in the element. Source Code: <% @   Page   Title = "Home Page"   Language = "C#"   MasterPageFile = "~/Site.Master"   AutoEventWireup = "true"   CodeBehind = "Default.aspx.cs"     Inherits = "TestPolWebApp._Default"   %> < asp : Content   ID = "BodyContent"   ContentPlaceHolderID = "MainContent"   runat = "server" >          < link   rel = "import"   href = "Scripts/Polymer/polymer/polymer.html" >      < link   rel = "import"   href = "Scripts/Polymer/core-toolbar/core-toolbar.html" >      < script   src = "Scripts/Polymer/webcomponentsjs/webcomponents-lite.js" ></ script >      < div ...

How to become an expert developer?

Advice from John Sonmez (Simple Programmer) about how to become an expert developer: A major trap that I see software developers fall into is this: once you get past the "raw newbie" stage in your learning, you open your eyes and realize just how LITTLE you actually know and understand. And the net effect is that you focus on the gaps in your knowledge—and you completely devalue the experience and expertise that you DO have. The best thing you can do for your career is to recognize the value in the skills you have TODAY... APPOINT yourself as The Expert in some tiny corner of this field... And teach what you know!