<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>A blog by Daniel Andres, about the code experiences</description><title>CODE eXPerience</title><generator>Tumblr (3.0; @codexp)</generator><link>http://codexp.tumblr.com/</link><item><title>wpf7 Error	8	Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))</title><description>&lt;p&gt;Applying a design on a WP7 application I got the following error message(on compile):&lt;/p&gt;
&lt;p&gt;Error    8    Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))&lt;/p&gt;
&lt;p&gt;Not very intuitive neither friendly; couldn&amp;#8217;t find much on the internet either so I had to dig the design element by element, check the types styles are applied to, etc.&lt;/p&gt;
&lt;p&gt;Finally I discovered that I had a style defined for TextBlock target type and I was trying to apply it to a TextBox. Lack of support from VS and Blend in this matter.&lt;/p&gt;</description><link>http://codexp.tumblr.com/post/15772190181</link><guid>http://codexp.tumblr.com/post/15772190181</guid><pubDate>Fri, 13 Jan 2012 14:36:00 +0200</pubDate><category>WP7</category><category>Mango</category><category>Visual Studio</category><category>Blend</category><category>Wrong TargetType</category><category>Styles</category><category>Silverlight</category><category>XAML Design</category><dc:creator>danyandresh</dc:creator></item><item><title>Performance on Silverlight 4 Applications</title><description>&lt;p&gt;Hello there!&lt;/p&gt;
&lt;p&gt;In December 2010 I presented the design pattern for WPF and Silverlight applications recommended by Microsoft itself. MVVM it&amp;#8217;s a deerivation from MVC design pattern and I will get back with a blog post about that presentation.&lt;/p&gt;
&lt;p&gt;Following that presentation, Wednesday, 15 June 2011 I have came up with a new presentation which treated the performance of applications built on top of Silverlight 4, and I was pleased to catch public attention with architecture debate on what we had.&lt;/p&gt;
&lt;p&gt;First of all the application was supposed to get 18&amp;#160;000 objects from the server and display them in realtime without pagination on the UI, all the controls which presented content had to be customized.&lt;/p&gt;
&lt;p&gt;I used a grid from Silverlight toolkit, and customized all columns and cell from that grid so I can display all the information form the server.&lt;/p&gt;
&lt;p&gt;FYI, the information from the server was structured in Games -&amp;gt; Events -&amp;gt; event details; events had different number of details so I needed to customize to a very low level all the interface elements.&lt;/p&gt;
&lt;p&gt;In order to create a very responsive application for the user, and user experience to be as fluent as possible I applied a couple of tricks:&lt;/p&gt;
&lt;p&gt;1. While performing heavy operation in background use dispatcher to you can update the UI&lt;/p&gt;
&lt;p&gt;2. Structure your resources on shortest paths: e.g. I put all templates on the app.xaml -&amp;gt; it&amp;#8217;s bad for the another developer, but I was able to deliver a good user experience&lt;/p&gt;
&lt;p&gt;3. In order to get all that information form the server I needed to split down my calls: I did it on Games -&amp;gt; call the server for each item. Later, the profiler told me I splitted that too much&lt;/p&gt;
&lt;p&gt;So far the experience of the user was acceptable, but I felt like I needed further optimization.&lt;/p&gt;
&lt;p&gt;As next steps, which IMHO every developer should take, I launched a couple of profiling tools and which are available only with Visual Studio Ultimate edition (2010).&lt;/p&gt;
&lt;p&gt;1. Sampling profile: it measures the CPU samples of your application. To find out more about sampling read &lt;a target="_blank" href="http://msdn.microsoft.com/en-us/library/ms242753.aspx"&gt;this&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;2. .NET profiler &lt;a target="_blank" href="http://msdn.microsoft.com/en-us/magazine/cc337887.aspx"&gt;instrumentation&lt;/a&gt;: this method detect long executing methods from your code.&lt;/p&gt;
&lt;p&gt;3. .NET &lt;a target="_blank" href="http://msdn.microsoft.com/en-us/library/ms242740%28v=vs.90%29.aspx"&gt;memory allocation&lt;/a&gt;: as name says this profiling method allows you to target excessive memory allocating code blocks, but this is not the only way to do it: VMMap also can help you a lot!&lt;/p&gt;
&lt;p&gt;4. (my favourite) &lt;a href="http://blogs.msdn.com/b/profiler/archive/2010/04/23/resource-contention-concurrency-profiling-in-visual-studio-2010-performance-investigation-flows.aspx" target="_blank"&gt;Concurrency profile&lt;/a&gt;:  this method will help you with the part that you cannot even detect from inspecting the lines of code: resource contentions and thread synchronization issues from your application. Yet this is a very tricky part and only some of the developers are aware of this aspect.&lt;/p&gt;
&lt;p&gt;Hope to write soon about the next presentation!&lt;/p&gt;</description><link>http://codexp.tumblr.com/post/6801281157</link><guid>http://codexp.tumblr.com/post/6801281157</guid><pubDate>Wed, 15 Jun 2011 00:00:00 +0300</pubDate><dc:creator>danyandresh</dc:creator></item><item><title>ASP.NET MVC 3.0 Fundamentals - Online Training Course for .NET Developers</title><description>&lt;a href="http://www.pluralsight-training.net/microsoft/olt/course/toc.aspx?n=aspdotnet-mvc3"&gt;ASP.NET MVC 3.0 Fundamentals - Online Training Course for .NET Developers&lt;/a&gt;: &lt;p&gt;A good and organized kick-starter for ASP.NET MVC3.&lt;/p&gt;</description><link>http://codexp.tumblr.com/post/2824601478</link><guid>http://codexp.tumblr.com/post/2824601478</guid><pubDate>Wed, 19 Jan 2011 11:21:26 +0200</pubDate><dc:creator>danyandresh</dc:creator></item><item><title>IIS7 App pool identity access to SQL Server on the same machine. What happens on distributed architecture?</title><description>&lt;p&gt;Have you ever tried to use the Default application pool identity(ApplicationPoolIdentity) in IIS7 and provide trusted access to a SQL Server database?&lt;/p&gt;
&lt;p&gt;Some of you may know about the new, innovative application pool identity mechanism that IIS 7 provides: each application pool will have a virtual user created (when ApplicationPoolIdentity identity is used) and you are no longer required to manage that.&lt;/p&gt;
&lt;p&gt;&lt;img src="http://media.tumblr.com/tumblr_le72vaLIdy1qcqokg.png"/&gt;&lt;/p&gt;
&lt;p&gt;Quite fine &amp;#8216;till here, but what about trusted connections, to a SQL database for example?&lt;/p&gt;
&lt;p&gt;Then you&amp;#8217;ll have to give rights to the &amp;#8220;IIS APPPOOL\research&amp;#8221; user from SQL Server.&lt;/p&gt;
&lt;p&gt;You won&amp;#8217;t be able to find that user as a user object using &amp;#8220;Advanced&amp;#8221; option from Select User or Group dialog window.&lt;/p&gt;
&lt;p&gt;&lt;img src="http://media.tumblr.com/tumblr_le72vl1c8v1qcqokg.png"/&gt;&lt;/p&gt;
&lt;p&gt;You wonder what happens on a distributed architecture?&lt;/p&gt;</description><link>http://codexp.tumblr.com/post/2512677749</link><guid>http://codexp.tumblr.com/post/2512677749</guid><pubDate>Wed, 29 Dec 2010 16:59:00 +0200</pubDate><category>ASP.NET</category><category>ApplicationPoolIdentity</category><category>IIS7</category><category>SQL Server</category><category>Trusted Connection</category><dc:creator>danyandresh</dc:creator></item><item><title>JQuery Mobile with ASP.NET MVC</title><description>&lt;a href="http://yobriefcase.posterous.com/practical-jquery-mobile-with-aspnet-mvc"&gt;JQuery Mobile with ASP.NET MVC&lt;/a&gt;: &lt;p&gt;Can’t wait to play with it! :)&lt;/p&gt;</description><link>http://codexp.tumblr.com/post/1396768190</link><guid>http://codexp.tumblr.com/post/1396768190</guid><pubDate>Mon, 25 Oct 2010 11:24:03 +0300</pubDate><dc:creator>danyandresh</dc:creator></item><item><title>Change default browser in Visual Studio</title><description>&lt;p&gt;Did you ever found yourself in need to change the default browser  when running your web applications from Visual Studio? I&amp;#8217;m sure yes. Now  there is a lot more easier way to do that:&lt;/p&gt;
&lt;p&gt;&lt;img alt="Visual Studio default browser choosing" src="http://lh5.ggpht.com/_HEJQ2qGqr4U/TH2Bx-xQhlI/AAAAAAAAAA8/lm7rRZL4azo/DBSToolbar_thumb%5B2%5D.png?imgmax=800" align="middle" height="187" width="387"/&gt;&lt;/p&gt;
&lt;p&gt;Find out &lt;a title="Open the original link in a new tab" target="_blank" href="http://blog.wovs.com/2010/08/make-it-easy-to-change-default-browser.html"&gt;here&lt;/a&gt; more details.&lt;/p&gt;</description><link>http://codexp.tumblr.com/post/1046383524</link><guid>http://codexp.tumblr.com/post/1046383524</guid><pubDate>Wed, 01 Sep 2010 08:44:00 +0300</pubDate><category>Visual Studio</category><category>Default Browser</category><category>Web applications</category><dc:creator>danyandresh</dc:creator></item><item><title>Launch List</title><description>&lt;p&gt;#entrepreneurs check this out: &amp;#8220;Launchlist is intended to help and encourage web designers and  developers to check their work before exposing it to the world at large.&amp;#8221; Find it &lt;a title="Open LaunchList" target="_blank" href="http://launchlist.net/"&gt;here&lt;/a&gt;.&lt;/p&gt;</description><link>http://codexp.tumblr.com/post/1031433819</link><guid>http://codexp.tumblr.com/post/1031433819</guid><pubDate>Sun, 29 Aug 2010 18:35:13 +0300</pubDate><category>entrepreneur</category><category>launchlist</category><category>before launch</category><dc:creator>danyandresh</dc:creator></item><item><title>AppInventor for Android</title><description>&lt;p&gt;Apple iPhone 4&amp;#160;&lt;a title="See the comparison and comments" target="_blank" href="http://www.knowyourmobile.com/comparisons/517419/samsung_galaxy_s_vs_iphone_4.html"&gt;is compared&lt;/a&gt; to Samsung l9000 Galaxy S. Yes, the smart phone that worth no less than 1000 $ is compared to a much more cheaper one.  There must be a reason for that. I think Android OS is part of the success of Android based smart phones  and thus  will end in a large use of it. Know how to build your own application on Android: &lt;a href="http://appinventor.googlelabs.com/about/." target="_blank"&gt;http://appinventor.googlelabs.com/about/.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I forget to mention this project is supported by Google.&lt;/p&gt;</description><link>http://codexp.tumblr.com/post/1030977275</link><guid>http://codexp.tumblr.com/post/1030977275</guid><pubDate>Sun, 29 Aug 2010 16:36:00 +0300</pubDate><category>android</category><category>smart phones</category><category>samsung</category><category>apple</category><category>iphone4</category><category>l9000</category><category>Galaxy S</category><category>google</category><category>googlelabs</category><category>mobile applications</category><category>AppInventor</category><dc:creator>danyandresh</dc:creator></item><item><title>Html5 Boilerplate</title><description>&lt;p&gt;&lt;em&gt;&amp;#8220;Boilerplate is not a framework, nor does it prescribe any philosophy of  development, it&amp;#8217;s just got some tricks to get your project off the  ground quickly and right-footed.&amp;#8221;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;says all about it!:)&lt;/p&gt;
&lt;p&gt;Find it &lt;a title="Navigate to Boilerplate" target="_blank" href="http://html5boilerplate.com/"&gt;here&lt;/a&gt;.&lt;/p&gt;</description><link>http://codexp.tumblr.com/post/1030927677</link><guid>http://codexp.tumblr.com/post/1030927677</guid><pubDate>Sun, 29 Aug 2010 16:22:00 +0300</pubDate><category>html5</category><category>boilerplate</category><dc:creator>danyandresh</dc:creator></item><item><title>MVCContrib Gallery</title><description>&lt;p&gt;During my work experience I met several situations were companies developed several galleries of own developed controls and templates. It is a good practice to develop once and reuse.&lt;/p&gt;
&lt;p&gt;However there are several disadvantages:&lt;/p&gt;
&lt;p&gt;- The controls and templates become quickly obsolete&lt;/p&gt;
&lt;p&gt;- You need a strong support documentation for them.&lt;/p&gt;
&lt;p&gt;- Not having a large community feedback may drive to a wrong approach, and/or wrong approach to continue their development further.&lt;/p&gt;

&lt;p&gt;Considering previous deck I can say that open/public galleries are better to support and develop; MVCContrib Gallery is such an example. It&amp;#8217;s description quoted from the Codeplex: &amp;#8220;&lt;br/&gt;This gallery is filled with project styles that work with the out of  the box markup from the ASP.Net MVC project template. These were  origionally part of the &lt;a href="http://www.asp.net" target="_blank"&gt;www.asp.net&lt;/a&gt; website but went away after a site  redesign. Since they were licensed under a Creative Commons licences, we  put them up here and hope to have more submitted by great developers  and designers like you!&amp;#8221;&lt;/p&gt;

&lt;p&gt;Here it is: &lt;a href="http://mvccontribgallery.codeplex.com/" target="_blank"&gt;http://mvccontribgallery.codeplex.com/&lt;/a&gt; Go and use it!&lt;/p&gt;</description><link>http://codexp.tumblr.com/post/1030914500</link><guid>http://codexp.tumblr.com/post/1030914500</guid><pubDate>Sun, 29 Aug 2010 16:18:08 +0300</pubDate><category>mvc</category><category>codeplex</category><category>template gallery</category><category>MvcContrib</category><category>good practice</category><dc:creator>danyandresh</dc:creator></item><item><title>Define your own code snippets within VS with SnippetDesigner</title><description>&lt;a href="http://snippetdesigner.codeplex.com/"&gt;Define your own code snippets within VS with SnippetDesigner&lt;/a&gt;</description><link>http://codexp.tumblr.com/post/938729861</link><guid>http://codexp.tumblr.com/post/938729861</guid><pubDate>Thu, 12 Aug 2010 00:17:00 +0300</pubDate><category>vs</category><category>visual studio 2010</category><category>snippet designer</category><category>code snippet</category><dc:creator>danyandresh</dc:creator></item><item><title>PowerGUI. Editing PowerShell from VS. Any bell ringing yet?</title><description>&lt;a href="http://powerguivsx.codeplex.com/"&gt;PowerGUI. Editing PowerShell from VS. Any bell ringing yet?&lt;/a&gt;: &lt;p&gt;I always found PowerShell (as name says) a strong weapon. However I wanted to have that weapon designed directly into VS(yes, for intelisense).&lt;/p&gt;</description><link>http://codexp.tumblr.com/post/938714383</link><guid>http://codexp.tumblr.com/post/938714383</guid><pubDate>Thu, 12 Aug 2010 00:14:06 +0300</pubDate><category>powershell</category><category>visual studio</category><category>vs</category><category>PowerGUI</category><dc:creator>danyandresh</dc:creator></item><item><title>Html5: features that might help you</title><description>&lt;a href="http://net.tutsplus.com/tutorials/html-css-techniques/25-html5-features-tips-and-techniques-you-must-know/"&gt;Html5: features that might help you&lt;/a&gt;: &lt;p&gt;Long story short. check it out. Some &lt;a title="templates" target="_blank" href="http://html5reset.org/"&gt;templates&lt;/a&gt; might be helpful too&lt;/p&gt;</description><link>http://codexp.tumblr.com/post/938624438</link><guid>http://codexp.tumblr.com/post/938624438</guid><pubDate>Wed, 11 Aug 2010 23:52:00 +0300</pubDate><category>features</category><category>html</category><category>html5</category><category>templates</category><dc:creator>danyandresh</dc:creator></item></channel></rss>
