tag:blogger.com,1999:blog-64538550660596133042024-03-07T06:56:51.051+01:00Things that crosses the mind of a developerWith this blog, I would like to share my thoughts and discoveries about development of software.Jan van de Polhttp://www.blogger.com/profile/15786573724300968457noreply@blogger.comBlogger20125tag:blogger.com,1999:blog-6453855066059613304.post-87322668527279669512010-12-05T10:24:00.005+01:002010-12-05T20:27:48.338+01:00MS Tech ED 2010 Day 4, Friday November 12, 2010Today only 2 sessions (out of 3), because we have to leave early. Architecture in Agile Projects – How to do it right Speaker: Mitch Lacey (www.mitchlacey.com) Link: http://www.msteched.com/2010/Europe/ARC208 Timeslot: 09:00-10:00 Notes: Don’t expect that software will be right the first time. Accept that and write throw away code, just to learn. Create a working solution as Jan van de Polhttp://www.blogger.com/profile/15786573724300968457noreply@blogger.com0tag:blogger.com,1999:blog-6453855066059613304.post-81639128849433758132010-12-05T10:24:00.003+01:002010-12-05T20:14:41.829+01:00MS Tech ED 2010 Day 3, Thursday November 11, 2010Giving your Windows Phone XNA Games Plenty of Whizz and Bang Speaker: Rob Miles (www.robmiles.com) Link: http://www.msteched.com/2010/Europe/WPH310 Timeslot: 09:00-10:00 Notes: Very entertaining and informative session. Watch the video for lots of information about Windows Phone Development and a good laugh. The Future of parallel programming in Visual Studio Speaker: Drew Jan van de Polhttp://www.blogger.com/profile/15786573724300968457noreply@blogger.com0tag:blogger.com,1999:blog-6453855066059613304.post-66867418080394587342010-12-05T10:24:00.001+01:002010-12-05T19:49:07.633+01:00MS Tech ED 2010 Day 2, Wednesday November 10, 2010 Yesterday I found out that Microsoft focusses on “the Cloud”. I want to know more about it. Especially how a private cloud could be created and if it would be of benefit for our customers. The public cloud is especially usefull in case where a solution must be very scalable, like the website of an event (i.e. Tech ED). This is due to Microsoft’s pricing strategy. Private Cloud Reference Jan van de Polhttp://www.blogger.com/profile/15786573724300968457noreply@blogger.com0tag:blogger.com,1999:blog-6453855066059613304.post-4522832799723476912010-12-05T10:21:00.002+01:002010-12-05T19:48:44.245+01:00MS Tech ED 2010 Day 1, Tuesday November 9, 2010 Getting your Return on Investment with Microsoft .NET Framework 4.0 Speaker: Drew Robbins Link: http://www.msteched.com/2010/Europe/DEV201 Timeslot: 09:00-10:00 Notes: It’s possible to run .NET 4.0 side-by-side with older .NET frameworks. It’s also possible to install VS 2010 side-by-side with older Visual Studio versions. With an application manifest file it’s possible to Jan van de Polhttp://www.blogger.com/profile/15786573724300968457noreply@blogger.com0tag:blogger.com,1999:blog-6453855066059613304.post-39132635587550458332010-02-16T14:19:00.001+01:002010-02-16T14:19:46.680+01:00Using batchfile to setup environment for running .NET ProcessToday I faced a problem that I wanted to use a third party library, which depends on all kind of environment settings. Since this library came with an accompanying batch file for setting up this environment, I would like to reuse this batch file. After much googling I could not find a satisfying solution for my problem and decided to go for my own. The resulting code is here // Run 3 commands Jan van de Polhttp://www.blogger.com/profile/15786573724300968457noreply@blogger.com0tag:blogger.com,1999:blog-6453855066059613304.post-46659741524894663212009-10-26T16:48:00.004+01:002009-10-27T08:04:10.914+01:00XamlParseException when no AssemblyInfo.cs file availableIn my project I have an exe and a dll assembly. The App.xaml in the exe references a ResourceDictionary in the dll assembly. This had worked for a long time, but all of a sudden it stopped working. The following very frustating error showed up during runtime:System.Windows.Markup.XamlParseException: Could not load file or assembly 'MyAssembly.MyResource, Version=0.0.0.0, Culture=neutral, Jan van de Polhttp://www.blogger.com/profile/15786573724300968457noreply@blogger.com0tag:blogger.com,1999:blog-6453855066059613304.post-31937871934055424862009-07-13T15:40:00.001+01:002009-07-13T15:40:58.455+01:00Why are my WPF MenuItems grayed outWell not all of them, but only those bound to WPF Commands. After a 2 hour search, I finally found that a control that had focus, became invisible because it was not necessary anymore. Upon that event, my menuitems became grayed out (IsEnabled became false). Focussing a visible control on the screen resolved my issue. So it seems that WPF Commands can not be executed when no focussed control isJan van de Polhttp://www.blogger.com/profile/15786573724300968457noreply@blogger.com0tag:blogger.com,1999:blog-6453855066059613304.post-59919917414721526362009-05-28T20:25:00.001+01:002009-05-28T20:49:25.003+01:00Databinding and LostFocus (HOWTO Force SourceUpdate for any WPF FrameworkElement)Today I faced a bug that was not so easy to handle. While editing a value within a WPF textbox I pressed CTRL+S to save my work. Unfortunately my edited data was not saved, but the previous data was instead. How did that happen. Well my WPF textbox was data bound to my dataobject. The dataobject (source) normally gets updated upon a Lostfocus of the textbox (that’s the default). However pressingJan van de Polhttp://www.blogger.com/profile/15786573724300968457noreply@blogger.com0tag:blogger.com,1999:blog-6453855066059613304.post-69207672441813150542008-01-25T14:18:00.000+01:002008-01-28T09:37:57.777+01:00IList is not serializable in combination with XmlSerializerBecause IList<T> does not implement ICollection (but the generic ICollection<T> instead), the XMLSerializer is not able to serialize the items within the collection. More info on this "bug" can be found here:http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=105767Jan van de Polhttp://www.blogger.com/profile/15786573724300968457noreply@blogger.com0tag:blogger.com,1999:blog-6453855066059613304.post-45786363928431565262008-01-04T10:22:00.000+01:002008-01-04T10:31:44.272+01:00Implementing a custom Dispose for a form or usercontrolHave you ever wanted to implement a custom dispose method for a usercontrol or a form. Trying to override protected void dispose(bool disposing) learns that the designer generated file (mycontrol.designer.cs) already implements this override. Mark Seemann wrote an intersting approach for dealing with this situation in his blog. It makes use of an Disposer component. A new instance will be createdJan van de Polhttp://www.blogger.com/profile/15786573724300968457noreply@blogger.com0tag:blogger.com,1999:blog-6453855066059613304.post-68407523119058261952007-08-15T21:24:00.000+01:002007-08-15T21:29:11.093+01:00Error: Validation of viewstate MAC failed. in ASP.NET pageFull error:Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies thesame validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.This error may occur when one hosts an ASP.NET webpage on a web-garden.Simple solution (for ASP.NET 2.0 and up): Generate a new machinekey and add it to the Jan van de Polhttp://www.blogger.com/profile/15786573724300968457noreply@blogger.com0tag:blogger.com,1999:blog-6453855066059613304.post-36036533285060138512007-06-08T11:23:00.000+01:002007-06-08T12:23:15.311+01:00Programmatic databinding between classes and controlsIt's possible to programmatically databind to controls with the following statement:myLabel.DataBindings.Add("Text", myObject, "Name");However there are some specific controls that have trouble using databinding. Some should use another property, like Value or SelectedItem, while others need a specificDataSourceUpdateMode. From my experience here's a list of controls and possible databindings:Jan van de Polhttp://www.blogger.com/profile/15786573724300968457noreply@blogger.com0tag:blogger.com,1999:blog-6453855066059613304.post-85193457624758166112007-05-16T08:54:00.000+01:002009-05-28T20:52:12.127+01:00Help not always on top!Today I was asked whether it was possible to show the help in a non-modal manner. After a little searching on the internet, I found the following solution, posted in a forum by Rodger Constandse. It's a little trick but it works faboulous: Create a new Form (once for an application). Call CreateControl() on it in order to create a handle to it, but it will not show up. See the following Jan van de Polhttp://www.blogger.com/profile/15786573724300968457noreply@blogger.com4tag:blogger.com,1999:blog-6453855066059613304.post-39395356601111690322007-04-22T10:19:00.000+01:002007-04-22T11:13:02.430+01:00Issue tracking with GeminiIn this blog I would like to mention some tools that I'm using, and that have helped me a lot. One of them is Gemini. We did issue tracking before with an Excel spreadsheet. But with growing number of team members that needed (simultanious) access to the issues, the spreadsheet way of working began to create a countereffect ...After some searching on the internet I found Gemini (2.0.5 at the timeJan van de Polhttp://www.blogger.com/profile/15786573724300968457noreply@blogger.com0tag:blogger.com,1999:blog-6453855066059613304.post-88176277374889474862007-04-01T12:10:00.000+01:002007-04-14T12:16:57.199+01:00VSLive, Day 5, All about WPFSo, I'm very excited about Windows Presentation Foundation. Therefore I spent the last (workshop) day allday with Billy Hollis in his session about WPF, named: From the Ground up.WPF is officially released. The tooling however to create i.e. XAML pages is in a very early state. The tools available at the time of writing can be found at the bottom of this page under resources. Therefore the amountJan van de Polhttp://www.blogger.com/profile/15786573724300968457noreply@blogger.com2tag:blogger.com,1999:blog-6453855066059613304.post-37991580918525179892007-03-31T13:07:00.000+01:002007-05-02T21:04:49.982+01:00VSLive, Day 4, .NET 3.0 & ASP.NET 2.0More WPF today and a little bit on ASP.NETWPF Keynote:WPF = The best of the Web + The best of the desktopPowerfull Graphics:ScalablePersisted, you draw something once and it stays on the screen.2D3DMediaAnimationNext Generation Reading:PaginationColumnization (automatically and dynamically layout for best reader experience, seen new york time, seattle ...)CleartypeRich content integrationRich UI Jan van de Polhttp://www.blogger.com/profile/15786573724300968457noreply@blogger.com0tag:blogger.com,1999:blog-6453855066059613304.post-75771456825308639932007-03-27T17:20:00.000+01:002007-03-28T06:30:00.670+01:00VSLive, Day 3, .NET 3.0Some tools that make life easier for editting XML and XSLTXMLEditor integrated into Visual StudioCreate dataschema from example XMLAssociate schema to XML file enables template insertion of xml fragmentsXSLT DebuggerUse breakpoints in the XSLT and watch variables.Use breakpoints in the source XML file also.Step into XSLT debugging from a normal code.Future XSD Designer (availble within "Orcas")Jan van de Polhttp://www.blogger.com/profile/15786573724300968457noreply@blogger.com1tag:blogger.com,1999:blog-6453855066059613304.post-66514249975521554782007-03-27T00:34:00.000+01:002007-04-01T12:10:42.634+01:00VSLive, Day 2, .NET DayToday various speakers held several presentations and demos. This post summarizes the interesting things I heard today over all these presentations.Visual Studio next generationsCodename "Orcas". CTP has been launched in March 2007. RTM is scheduled for late 2007.Codename "Rosario". Will build further upon Orcas, featuring even more Team productivity trough their Team System.WPF Demos that Jan van de Polhttp://www.blogger.com/profile/15786573724300968457noreply@blogger.com0tag:blogger.com,1999:blog-6453855066059613304.post-6277401744244564142007-03-26T02:39:00.000+01:002007-05-24T08:56:55.018+01:00VSLive, Day 1, Pre-Conference workshop (CSLA)Build Distributed OO Apps in .NET 3.0Speaker: Rockford LhotkaMost important things heard today:N-Tier is not the same as N-Layer. N-Layer is always good, especially to structure your code, which makes it maitainable. N-Tier involves a process-boundary, or even a network boundary. Therefore a tradeoff must be evaluated from the following:Performance ScalabilityFault toleranceSecurityFormula to Jan van de Polhttp://www.blogger.com/profile/15786573724300968457noreply@blogger.com0tag:blogger.com,1999:blog-6453855066059613304.post-80887289010007359802007-03-23T22:11:00.000+01:002007-03-23T22:36:08.095+01:00Hello world!These are the famous words for an application written with a new technology (at least for the developer in question). And blogging is new to me.So here's my blog.I don't know whether I'm going to feed this a lot, but at least it gives me some space on the internet, where I can leave my toughts about software development.Jan van de Polhttp://www.blogger.com/profile/15786573724300968457noreply@blogger.com0