<?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>A Programmer with Microsoft tools</title>
	<atom:link href="http://msprogrammer.serviciipeweb.ro/feed/" rel="self" type="application/rss+xml" />
	<link>http://msprogrammer.serviciipeweb.ro</link>
	<description>A programmer journey through code, books and tools</description>
	<lastBuildDate>Fri, 03 Feb 2012 05:06:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>friday links 15</title>
		<link>http://msprogrammer.serviciipeweb.ro/2012/02/03/friday-links-15/</link>
		<comments>http://msprogrammer.serviciipeweb.ro/2012/02/03/friday-links-15/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 05:06:00 +0000</pubDate>
		<dc:creator>Andrei Ignat</dc:creator>
				<category><![CDATA[friday links]]></category>

		<guid isPermaLink="false">http://msprogrammer.serviciipeweb.ro/2012/02/03/friday-links-15/</guid>
		<description><![CDATA[
Interviewstreet &#8211; Facebook Programming Challenge 
Ebooks: List of our free books &#8211; Microsoft Press &#8211; Site Home &#8211; MSDN Blogs 
Javascript and CSS Minifying/Bundling with the Microsoft.Web.Optimization Nuget package &#8211; Canadian Developer Connection &#8211; Site Home &#8211; MSDN Blogs 
Good JavaScript Habits for C# Developers &#124; MIX11 &#124; Channel 9 
Customizing Error Messages in Asp.Net [...]]]></description>
			<content:encoded><![CDATA[<ol>
<li><a href="http://www.interviewstreet.com/recruit/test/start/4e769c33164d9/7fd4c30a54635e103b893a363b91a55d/" rel="nofollow" target="_blank">Interviewstreet &#8211; Facebook Programming Challenge</a> </li>
<li><a href="http://blogs.msdn.com/b/microsoft_press/archive/2011/03/03/ebooks-list-of-our-free-books.aspx#10261216" rel="nofollow" target="_blank">Ebooks: List of our free books &#8211; Microsoft Press &#8211; Site Home &#8211; MSDN Blogs</a> </li>
<li><a href="http://blogs.msdn.com/b/cdndevs/archive/2012/01/23/javascript-and-css-minifying-bundling-with-the-microsoft-web-optimization-nuget-package.aspx" rel="nofollow" target="_blank">Javascript and CSS Minifying/Bundling with the Microsoft.Web.Optimization Nuget package &#8211; Canadian Developer Connection &#8211; Site Home &#8211; MSDN Blogs</a> </li>
<li><a href="http://channel9.msdn.com/Events/MIX/MIX11/OPN08" rel="nofollow" target="_blank">Good JavaScript Habits for C# Developers | MIX11 | Channel 9</a> </li>
<li><a href="http://www.dotnet-programming.com/post/2012/01/17/Customizing-Error-Messages-in-AspNet-MVC.aspx" rel="nofollow" target="_blank">Customizing Error Messages in Asp.Net MVC</a> </li>
<li><a href="http://www.hanselman.com/blog/FromConceptToCodeIn6HoursShippingMyFirstWindowsPhoneApp.aspx" rel="nofollow" target="_blank">From Concept to Code in 6 hours: Shipping my first Windows Phone App &#8211; Scott Hanselman</a> </li>
<li><a href="http://blog.8thlight.com/angelique-martin/2012/01/19/8-thing-you-ought-to-know.html" rel="nofollow" target="_blank">8 Things You Ought to Know If You Do Not Know Anything About Hiring A Software Developer | 8th Light</a> </li>
<li><a href="http://akdubya.github.com/dustjs/" rel="nofollow" target="_blank">dust</a> </li>
<li><a href="http://www.udidahan.com/2011/11/28/its-not-about-you/" rel="nofollow" target="_blank">It’s not about you</a> </li>
<li><a href="http://codebetter.com/patricksmacchia/2012/01/23/mythical-man-month-10-lines-per-developer-day/" rel="nofollow" target="_blank">Mythical man month : 10 lines per developer day | Patrick Smacchia</a> </li>
<li><a href="http://arstechnica.com/tech-policy/news/2012/01/the-worlds-first-computer-password-it-was-useless-too.ars" rel="nofollow" target="_blank">The world&#8217;s first computer password? It was useless, too</a> </li>
<li><a href="http://freepress.intel.com/community/news/blog/2012/01/09/stephen-hawkings-new-pc" rel="nofollow" target="_blank">Stephen Hawking&#8217;s New PC</a> </li>
<li><a href="http://jstorimer.com/2012/01/09/the-hungry-programmer.html" rel="nofollow" target="_blank">The Hungry Programmer</a> </li>
</ol>

<!-- Quick Adsense Wordpress Plugin: http://techmilieu.com/quick-adsense -->
<div style="float:none;margin:10px 0 10px 0;text-align:center;">
<script type="text/javascript"><!--
google_ad_client = "pub-8594549901808862";
/* 250x250, creat 20.03.2010 */
google_ad_slot = "9699514583";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>

<div style="font-size:0px;height:0px;line-height:0px;margin:0;padding:0;clear:both"></div>]]></content:encoded>
			<wfw:commentRss>http://msprogrammer.serviciipeweb.ro/2012/02/03/friday-links-15/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clearer  MVC</title>
		<link>http://msprogrammer.serviciipeweb.ro/2012/01/30/clearer-mvc/</link>
		<comments>http://msprogrammer.serviciipeweb.ro/2012/01/30/clearer-mvc/#comments</comments>
		<pubDate>Mon, 30 Jan 2012 06:45:00 +0000</pubDate>
		<dc:creator>Andrei Ignat</dc:creator>
				<category><![CDATA[MVC 4]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[cookie]]></category>
		<category><![CDATA[mvc]]></category>
		<category><![CDATA[session]]></category>

		<guid isPermaLink="false">http://msprogrammer.serviciipeweb.ro/2012/01/30/clearer-mvc/</guid>
		<description><![CDATA[In every application there are some variables that are set by the ASP.NET  application(  ASP.NET_SessionId  cookie ) and some that are set by the programmer( cached data in Application/Session/Cache/Cookies and so on).
I wanted every time to have a page where I can “clear” / delete those – and not found. So it’s the Clearer project.
It [...]]]></description>
			<content:encoded><![CDATA[<p>In every application there are some variables that are set by the ASP.NET  application(  ASP.NET_SessionId  cookie ) and some that are set by the programmer( cached data in Application/Session/Cache/Cookies and so on).</p>
<p>I wanted every time to have a page where I can “clear” / delete those – and not found. So it’s the Clearer project.</p>
<p>It consists of :</p>
<ol>
<li>ClearerController with 2 Actions:   Index and DeleteItem</li>
<li>2 Views : Index.cshtml and EditAppData.cshtml</li>
<li>Different Models:
<ul>
<li>SourceData  &#8211; enum  &#8211; can be  :  None ,        Application ,        Cache ,        Session ,        Cookies</li>
<li>AppData -  maintains Key/Value and SourceData pairs</li>
<li>ListAppData – loads data from Application , Cache , Session , Cookies  &#8211; and deletes.</li>
</ul>
</li>
</ol>
<p>To make an example, I have put in the Application_Start and Session_Start different values. So the screen is the following:</p>
<p><a href="http://msprogrammer.serviciipeweb.ro/wp-content/uploads/Clearer-global-vars-in-MVC_13BD0/image.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://msprogrammer.serviciipeweb.ro/wp-content/uploads/Clearer-global-vars-in-MVC_13BD0/image_thumb.png" border="0" alt="image" width="887" height="320" /></a></p>
<p>What I learn from the code:</p>
<ol>
<li>The Cookies, Applications, Session , Cache items can be easily converted to an DictionaryEntry and the code can be like this:
<pre class="brush: csharp;">
 DictionaryEntry de = new DictionaryEntry(item, sess[item.ToString()]);
 AddNew(de, SourceData.Session);
</pre>
</li>
<li>Code must be error prone &#8211; what if some item in Session is null ? So , if I have the Key, all is good:
<pre class="brush: csharp;">
private void AddNew(DictionaryEntry de, SourceData sd)
        {
            AppData ap = new AppData() { source = sd, Key = de.Key.ToString() };
            try
            {
                var obj = de.Value;
                ap.Value = (obj == null) ? Null : obj.ToString();
            }
            catch (Exception ex)
            {

                ap.Value = string.Format(ErrorToString, ex.Message);
            }
            this.Add(ap);
        }
</pre>
</li>
<li>The <a href="http://en.wikipedia.org/wiki/Eating_your_own_dog_food" target="_blank">dog-food</a> is good: I have followed my advice from <a href="http://bit.ly/mvc_ajax_jquery" target="_blank">msprogrammer.serviciipeweb&#8230;</a> and it works ( used for Remove )
<pre class="brush: csharp;">
   [HttpPost]
        public JsonResult DeleteItem(string TheKey, int Source)
        {
            try
            {
                var lad = new ListAppData();
                lad.DeleteItem(TheKey, (SourceData)Source);
                return Json(new { ok = true, message = &quot;&quot; });
            }
            catch (Exception ex)
            {
                return Json(new { ok = false, message = ex.Message });
            }

        }
</pre>
</li>
<li>When you pass strings in Javascript, there is a simple way to encode: HttpUtility.JavaScriptStringEncode
<pre class="brush: xml;">
&lt;a href=&quot;javascript:removeItem('@HttpUtility.JavaScriptStringEncode(Model.Key)','@((int)Model.source)','@id')&quot;&gt;Remove&lt;/a&gt;
</pre>
</li>
</ol>
<p>Possible uses:</p>
<ol>
<li>For developers -  when they want to see what happens when a cache item no longer exists</li>
<li>For developers – to put to site admins some simple tool to reload data from Cache/Application . Just edit the LoadAll function to load only Cache/Application <img class="wlEmoticon wlEmoticon-winkingsmile" style="border-style: none;" src="http://msprogrammer.serviciipeweb.ro/wp-content/uploads/Clearer-global-vars-in-MVC_13BD0/wlEmoticon-winkingsmile.png" alt="Winking smile" /></li>
<li>For developers  &#8211; to test easily the session. Just delete ASP.NET_SessionId  cookie – you will get another one when you refresh the page.</li>
</ol>
<p>You can view online at <a href="http://clearer.apphb.com/Clearer" target="_blank">http://clearer.apphb.com/Clearer</a><br />
The project could be found at <a title="http://clearer.codeplex.com" href="http://clearer.codeplex.com">http://clearer.codeplex.com</a> and have all – source code, downloadable project .</p>
<p>Next week it will be a Nuget item.</p>
<p>For more features , please leave me a comment here or on codeplex at <a href="http://clearer.codeplex.com/workitem/list/basic" target="_blank">issues</a></p>
]]></content:encoded>
			<wfw:commentRss>http://msprogrammer.serviciipeweb.ro/2012/01/30/clearer-mvc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twitter Weekly Updates for 2012-01-29</title>
		<link>http://msprogrammer.serviciipeweb.ro/2012/01/29/twitter-weekly-updates-for-2012-01-29/</link>
		<comments>http://msprogrammer.serviciipeweb.ro/2012/01/29/twitter-weekly-updates-for-2012-01-29/#comments</comments>
		<pubDate>Sun, 29 Jan 2012 20:27:00 +0000</pubDate>
		<dc:creator>Andrei Ignat</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[blog]]></category>

		<guid isPermaLink="false">http://msprogrammer.serviciipeweb.ro/2012/01/29/twitter-weekly-updates-for-2012-01-29/</guid>
		<description><![CDATA[
Blog tehnic RO : Intilnire RONUA Bucuresti, 24 ianuarie 2012 , ora 18:30 http://t.co/FHCHBN2m #
BLOG propriu Despre mine si altii http://t.co/TxtuxzhC #
BLOG propriu Dilema veche si Snobilimea &#38; Hipsteria http://t.co/8lkVsfU6 #

Powered by Twitter Tools
]]></description>
			<content:encoded><![CDATA[<ul class="aktt_tweet_digest">
<li>Blog tehnic RO : Intilnire RONUA Bucuresti, 24 ianuarie 2012 , ora 18:30 <a href="http://t.co/FHCHBN2m" rel="nofollow">http://t.co/FHCHBN2m</a> <a href="http://twitter.com/ignatandrei/statuses/161315350724608000" class="aktt_tweet_time">#</a></li>
<li>BLOG propriu Despre mine si altii <a href="http://t.co/TxtuxzhC" rel="nofollow">http://t.co/TxtuxzhC</a> <a href="http://twitter.com/ignatandrei/statuses/161377175315021824" class="aktt_tweet_time">#</a></li>
<li>BLOG propriu Dilema veche si Snobilimea &amp; Hipsteria <a href="http://t.co/8lkVsfU6" rel="nofollow">http://t.co/8lkVsfU6</a> <a href="http://twitter.com/ignatandrei/statuses/162071773658091520" class="aktt_tweet_time">#</a></li>
</ul>
<p class="aktt_credit">Powered by <a href="http://alexking.org/projects/wordpress">Twitter Tools</a></p>
]]></content:encoded>
			<wfw:commentRss>http://msprogrammer.serviciipeweb.ro/2012/01/29/twitter-weekly-updates-for-2012-01-29/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>friday links 14</title>
		<link>http://msprogrammer.serviciipeweb.ro/2012/01/27/friday-links-14/</link>
		<comments>http://msprogrammer.serviciipeweb.ro/2012/01/27/friday-links-14/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 05:45:00 +0000</pubDate>
		<dc:creator>Andrei Ignat</dc:creator>
				<category><![CDATA[friday links]]></category>

		<guid isPermaLink="false">http://msprogrammer.serviciipeweb.ro/2012/01/27/friday-links-14/</guid>
		<description><![CDATA[
YSlow “Grade A” website with ASP.NET MVC 4 In the trenches with .NET by Harvey Kandola
Rob Miles &#8211; C# Yellow Book
Anyone over the age of 35 should read this, as I copied this from a friends status .. « Gaasedal&#8217;s Weblog
Raphaël—JavaScript Library
tompipe.co.uk &#124; Utilising MEF to self-register HTTP modules
Why Stack Exchange Isn’t in the Cloud [...]]]></description>
			<content:encoded><![CDATA[<ol>
<li><a href="http://www.collectivematters.com/2012/01/tips-for-a-yahoo-yslow-grade-a-website-with-asp-net-mvc/" rel="nofollow" target="_blank">YSlow “Grade A” website with ASP.NET MVC 4 In the trenches with .NET by Harvey Kandola</a></li>
<li><a href="http://www.robmiles.com/c-yellow-book/" rel="nofollow" target="_blank">Rob Miles &#8211; C# Yellow Book</a></li>
<li><a href="http://gaasedal.wordpress.com/2012/01/09/anyone-over-the-age-of-35-should-read-this-as-i-copied-this-from-a-friends-status/" rel="nofollow" target="_blank">Anyone over the age of 35 should read this, as I copied this from a friends status .. « Gaasedal&#8217;s Weblog</a></li>
<li><a href="http://raphaeljs.com/" rel="nofollow" target="_blank">Raphaël—JavaScript Library</a></li>
<li><a href="http://blog.tompipe.co.uk/post/Utilising-MEF-to-self-register-HTTP-modules.aspx" rel="nofollow" target="_blank">tompipe.co.uk | Utilising MEF to self-register HTTP modules</a></li>
<li><a href="http://blog.serverfault.com/2011/11/17/why-stack-exchange-isn%e2%80%99t-in-the-cloud/" rel="nofollow" target="_blank">Why Stack Exchange Isn’t in the Cloud &#8211; Server Fault Blog</a></li>
<li><a href="http://blog.serverfault.com/2011/11/09/pete-get-a-job-in-it/" rel="nofollow" target="_blank">So You Want to Get a Job in Information Technology? &#8211; Server Fault Blog</a></li>
<li><a href="http://www.netmagazine.com/features/top-20-html5-games" rel="nofollow" target="_blank">The top 20 HTML5 games | Feature | .net magazine</a></li>
<li><a href="http://blogs.msdn.com/b/adonet/archive/2012/01/12/ef-4-3-beta-1-automatic-migrations-walkthrough.aspx" rel="nofollow" target="_blank">EF 4.3 Beta 1: Automatic Migrations Walkthrough &#8211; ADO.NET team blog &#8211; Site Home &#8211; MSDN Blogs</a></li>
<li><a href="http://danielmiessler.com/blog/20-pieces-of-programming-wisdom" rel="nofollow" target="_blank">20 Pieces of Programming Wisdom | danielmiessler.com</a></li>
<li><a href="http://forums.asp.net/t/1760633.aspx/1?Need+a+workaround+to+use+MVC2+view+page+or+control+to+generate+html+without+controller+context" rel="nofollow" target="_blank">Need a workaround to use MVC2 view page or control to generate html without controller context : The Official Microsoft ASP.NET Forums</a></li>
<li><a href="http://blog.cwa.me.uk/" rel="nofollow" target="_blank">The Morning Brew &#8211; Chris Alcock</a></li>
<li><a href="http://blogs.msdn.com/b/ericlippert/archive/2011/12/08/so-many-interfaces-part-two.aspx" rel="nofollow" target="_blank">So many interfaces, part two &#8211; Fabulous Adventures In Coding &#8211; Site Home &#8211; MSDN Blogs</a></li>
<li><a href="http://blog.schauderhaft.de/2012/01/15/tipps-for-testing-database-code/" rel="nofollow" target="_blank">Schauderhaft » Tips for Testing Database Code</a></li>
<li><a href="http://nitriq.com/" rel="nofollow" target="_blank">Code review made simple and affordable | Nitriq Code Analysis for .Net</a></li>
<li><a href="http://johnlindquist.com/category/patterncraft/" rel="nofollow" target="_blank">PatternCraft | johnlindquist.com</a></li>
<li><a href="http://thejit.org/" rel="nofollow" target="_blank">JavaScript InfoVis Toolkit</a></li>
<li><a href="http://rdegges.com/how-i-program-stuff" rel="nofollow" target="_blank">How I Program Stuff &#8211; Randall Degges</a></li>
<li><a href="http://nancyfx.org/" rel="nofollow" target="_blank">Nancy &#8211; Lightweight Web Framework for .net</a></li>
<li><a href="http://www.htmlgoodies.com/html5/markup/providing-an-html5-date-input-control-with-fallback.html#fbid=EYKFFZv8sux" rel="nofollow" target="_blank">Providing an HTML5 Date Input control with Fallback</a></li>
<li><a href="http://thegamebakers.com/money-and-the-app-store-a-few-figures-that-might-help-an-indie-developer.html" rel="nofollow" target="_blank">The Game Bakers – Money and the App Store: a few figures that might help an indie developer</a></li>
<li><a href="http://jstorimer.com/2012/01/09/the-hungry-programmer.html" rel="nofollow" target="_blank">The Hungry Programmer</a></li>
<li><a href="http://freepress.intel.com/community/news/blog/2012/01/09/stephen-hawkings-new-pc" rel="nofollow" target="_blank">Stephen Hawking&#8217;s New PC</a></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://msprogrammer.serviciipeweb.ro/2012/01/27/friday-links-14/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>This software is free</title>
		<link>http://msprogrammer.serviciipeweb.ro/2012/01/23/this-software-is-free/</link>
		<comments>http://msprogrammer.serviciipeweb.ro/2012/01/23/this-software-is-free/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 05:26:00 +0000</pubDate>
		<dc:creator>Andrei Ignat</dc:creator>
				<category><![CDATA[dev thoughts]]></category>
		<category><![CDATA[free]]></category>

		<guid isPermaLink="false">http://msprogrammer.serviciipeweb.ro/2012/01/23/this-software-is-free/</guid>
		<description><![CDATA[
&#160;
This is an MVC add-on to add a messaging system to any MVC application. It costs me 0$ to make this program ( not yet finished, but free source at http://messagemvc.codeplex.com/&#160; and the related posts are at http://msprogrammer.serviciipeweb.ro/category/howto/asp-net-mvc/mvc-4/mvc-messaging-system-mvc-4-asp-net-mvc-howto/ )
Home Computer – already done for browsing the internet.
Download Visual Studio Express – free .
Download Sql Server [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://msprogrammer.serviciipeweb.ro/wp-content/uploads/This-software_2CD0/image.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://msprogrammer.serviciipeweb.ro/wp-content/uploads/This-software_2CD0/image_thumb.png" width="555" height="192" /></a></p>
<p>&#160;</p>
<p>This is an MVC add-on to add a messaging system to any MVC application. It costs me 0$ to make this program ( not yet finished, but free source at <a title="http://messagemvc.codeplex.com/" href="http://messagemvc.codeplex.com/" target="_blank">http://messagemvc.codeplex.com/</a>&#160; and the related posts are at <a title="http://msprogrammer.serviciipeweb.ro/category/howto/asp-net-mvc/mvc-4/mvc-messaging-system-mvc-4-asp-net-mvc-howto/" href="http://msprogrammer.serviciipeweb.ro/category/howto/asp-net-mvc/mvc-4/mvc-messaging-system-mvc-4-asp-net-mvc-howto/" target="_blank">http://msprogrammer.serviciipeweb.ro/category/howto/asp-net-mvc/mvc-4/mvc-messaging-system-mvc-4-asp-net-mvc-howto/</a> )</p>
<p>Home Computer – already done for browsing the internet.</p>
<p>Download Visual Studio Express – free .</p>
<p>Download Sql Server Express – free.</p>
<p>Download latest bits of EF 4.2 – to work with SqlServer Compact too – free.</p>
<p>(Connection to internet : 25 $ – but was already done for browsing the internet)</p>
<p>Installing and configuring software on my PC – 0 $.</p>
<p>All I have done is to sit on my home desk and tapping into the keyboard. But this is does not costs , right?</p>
<p>Making, Planning, testing, deploying – 0$. </p>
<p>[quote from=<a title="http://www.petapixel.com/2012/01/10/this-photograph-is-not-free/" href="http://www.petapixel.com/2012/01/10/this-photograph-is-not-free/" target="_blank">http://www.petapixel.com/2012/01/10/this-photograph-is-not-free/</a> ]</p>
<p>So if you’re a magazine, website, corporation, sports team, or <strong><strike>advertiser</strike></strong> developer who wishes to use this <strike><strong>photo</strong></strike>&#160; software , please <strong><strike>don’t </strike></strong>&#160; come and ask to use it for free, or in exchange for credit or “exposure”. </p>
<p>[/quote]</p>
<p>Do not give feedback . Just rant about how bad code smells ,about how OOP and SOLID and Design Patterns are not made clear and how Testing is not properly handled. After all, it is free , right?</p>
]]></content:encoded>
			<wfw:commentRss>http://msprogrammer.serviciipeweb.ro/2012/01/23/this-software-is-free/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>friday links 13&#8211;just 3</title>
		<link>http://msprogrammer.serviciipeweb.ro/2012/01/19/friday-links-13just-3/</link>
		<comments>http://msprogrammer.serviciipeweb.ro/2012/01/19/friday-links-13just-3/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 05:10:00 +0000</pubDate>
		<dc:creator>Andrei Ignat</dc:creator>
				<category><![CDATA[friday links]]></category>

		<guid isPermaLink="false">http://msprogrammer.serviciipeweb.ro/2012/01/19/friday-links-13just-3/</guid>
		<description><![CDATA[Evolution &#8211; from programmer&#160;&#160; to CEO
www.ariel.com.au/jokes/The_Evolution_of_a_Programmer.html
And Haskell 
http://www.willamette.edu/~fruehr/haskell/evolution.html
Hope you understand Haskell 
And books for you:
http://www.codinghorror.com/blog/2004/02/recommended-reading-for-developers.html
]]></description>
			<content:encoded><![CDATA[<p>Evolution &#8211; from programmer&#160;&#160; to CEO</p>
<p><a href="http://www.ariel.com.au/jokes/The_Evolution_of_a_Programmer.html">www.ariel.com.au/jokes/The_Evolution_of_a_Programmer.html</a></p>
<p>And Haskell </p>
<p><a title="http://www.willamette.edu/~fruehr/haskell/evolution.html" href="http://www.willamette.edu/~fruehr/haskell/evolution.html">http://www.willamette.edu/~fruehr/haskell/evolution.html</a></p>
<p>Hope you understand Haskell <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-winkingsmile" alt="Winking smile" src="http://msprogrammer.serviciipeweb.ro/wp-content/uploads/Just-2-links_14523/wlEmoticon-winkingsmile.png" /></p>
<p>And books for you:</p>
<p><a title="http://www.codinghorror.com/blog/2004/02/recommended-reading-for-developers.html" href="http://www.codinghorror.com/blog/2004/02/recommended-reading-for-developers.html">http://www.codinghorror.com/blog/2004/02/recommended-reading-for-developers.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://msprogrammer.serviciipeweb.ro/2012/01/19/friday-links-13just-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Usual Methods to transfer data from Page To Page in ASP.NET MVC</title>
		<link>http://msprogrammer.serviciipeweb.ro/2012/01/15/usual-methods-to-transfer-data-from-page-to-page-in-asp-net-mvc/</link>
		<comments>http://msprogrammer.serviciipeweb.ro/2012/01/15/usual-methods-to-transfer-data-from-page-to-page-in-asp-net-mvc/#comments</comments>
		<pubDate>Sun, 15 Jan 2012 10:36:00 +0000</pubDate>
		<dc:creator>Andrei Ignat</dc:creator>
				<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[full]]></category>

		<guid isPermaLink="false">http://msprogrammer.serviciipeweb.ro/2012/01/16/usual-methods-to-transfer-data-from-page-to-page-in-asp-net-mvc/</guid>
		<description><![CDATA[Preamble:
In ASP.NET  ( like in PHP and other Web frameworks) there are 2 clear entities: Server ( code on the WebServer ) and Client( the HTML interpreted by the browser and javascript).
Server and Client shares same cookies – means Client and Client both can read and write cookies.
Transfer from the Client to Server happens [...]]]></description>
			<content:encoded><![CDATA[<h3>Preamble:</h3>
<p>In ASP.NET  ( like in PHP and other Web frameworks) there are 2 clear entities: <strong><em>Server</em></strong> ( code on the WebServer ) and <strong><em>Client</em></strong>( the HTML interpreted by the browser and javascript).</p>
<p><strong><em>Server</em></strong> and <strong><em>Client </em></strong>shares same <strong><em>cookies</em></strong> – means <strong><em>Client </em></strong>and <strong><em>Client </em></strong>both can read and write cookies.</p>
<p>Transfer from the <strong><em>Client</em></strong> to <strong><em>Server</em></strong> happens when</p>
<p>a) you click a <strong><em>link</em></strong> : the information to transfer is query string . That means, http://…/a?x=y&amp;a=b will send information y ( associated to key x) and b( associated to key a). This is called a <strong><em>GET</em></strong></p>
<p>b) you press a <strong><em>submit </em></strong>button to send a <strong>FORM</strong> : the information is values of select and  input. This is called a <strong><em>POST</em></strong>.</p>
<p>c) you send information via javascript ( including AJAX) . Usually this can involve a <strong><em>PUT</em></strong>, a <strong><em>GET</em></strong>, or other ( see <a href="http://en.wikipedia.org/wiki/Representational_state_transfer" target="_blank">REST</a> ).</p>
<p>d) Creating/Modifying and send cookies. The sending happens automatically  by the browser .</p>
<p>Transfer from the <strong><em>Server</em></strong> to <strong><em>Client </em></strong></p>
<p>a)sending text(HTML)/binary data. . The interpretation is done by the browser( how to display html, how to display send file …)</p>
<p>b) Creating/Modifying and send cookies . Browser will do automatically this.</p>
<h3>ASP.NET WebForms way:</h3>
<p>For <strong>ASP.NET</strong> <em><strong>Webforms</strong></em> the modalities to transfer are detailed by Peter Bromberg , <a href="http://www.eggheadcafe.com/tutorials/asp-net/e653f028-01fb-4d0e-843b-058deae562a2/eight-different-ways-to-transfer-data-from-one-page-to-another-page.aspx" target="_blank">http://www.eggheadcafe.com/tutorials/asp-net/e653f028-01fb-4d0e-843b-058deae562a2/eight-different-ways-to-transfer-data-from-one-page-to-another-page.aspx</a> .</p>
<h3>ASP.NET MVC way:</h3>
<p>I want to discuss from <strong><em>ASP.NET MVC</em></strong> perspective. In <strong><em>MVC</em></strong> we have 2 distinct objects: <strong><em>VIEW</em></strong> and <strong><em>ACTION</em></strong>. Both happens to run on the <strong><em>Server</em></strong> .</p>
<ul>
<li>The <strong><em>ACTION</em></strong> can return a <strong><em>VIEW</em></strong> or ( or a redirect to) another <strong><em>ACTION</em></strong> or simply a <strong>FILE</strong></li>
<li>The <strong><em>VIEW</em></strong> processes a Model ( and a ViewBag/ViewData) and sends the text( HTML) data to the <strong><em>Client .</em></strong></li>
</ul>
<p><strong><em>Instead of PAGES , we will discuss of VIEWS – because the VIEWS sends HTML data to the Client.</em></strong></p>
<p>So, to transfer data between <strong><em>View1</em></strong> to <strong><em>View2</em></strong> in MVC is reduced to this:</p>
<p>a) <strong><em>Page1</em></strong> transfer data to the server <strong><em>ACTION1</em></strong>( by a,b,c,d  methods in the <strong><em>Preamble )</em></strong></p>
<p>b) The Action receives the values as his parameters ( by  binding) and can do this:</p>
<p>b1) Return a different <strong><em>View</em></strong> ( using some logic :</p>
<p>if( a )</p>
<p>return View1(Model1);</p>
<p>else</p>
<p>return View2(Model1);</p>
<p>b2) Returning a Redirect to <em><strong>ACTION2 </strong></em>( that return <strong><em>View2</em></strong>) or simply return the result of this action</p>
<p>return RedirectToAction(Action2(&lt;parameters&gt;)); //Used in Post/Request/GET, <a title="http://en.wikipedia.org/wiki/Post/Redirect/Get" href="http://en.wikipedia.org/wiki/Post/Redirect/Get">http://en.wikipedia.org/wiki/Post/Redirect/Get</a></p>
<p>return Action2(&lt;parameters&gt;);</p>
<p>Resuming: Transfer betweem <strong>PAGE</strong> to <strong>PAGE</strong> in <strong>ASP.NET MVC</strong> is really transfering from <strong>ACTION</strong> to <strong>ACTION </strong><em>, besides the cookie that can be transferred directly by the browser.</em></p>
<h3>9 Modalities to transfer data from Page to Page in ASP.NET MVC</h3>
<p>Enough theory, let’s do some code. We have a Model to transfer named  <strong><em>ModelTransfer</em></strong> </p>
<pre class="brush: csharp;">
public class ModelTransfer
    {
        public int Age { get; set; }
        public string Name { get; set; }

    }
</pre>
<p>We have the first <em><strong>View1</strong></em>( <strong>Index</strong>) and a second <strong><em>View2</em></strong>(<strong>Transfer</strong>) that will server as an example. Also, we will have the more ACTIONS – one for each example of transfer – all are using the <strong><em>TRANSFER</em></strong> action as an ultimate resort do see the View.</p>
<p><strong><em>Method1</em></strong> : Transfer directly to the second View/Action .</p>
<pre class="brush: xml;">
&lt;a href='@Url.Action(&quot;Transfer&quot;, new { Age = 42, Name = &quot;Andrei Ignat&quot; })'&gt;click me&lt;/a&gt;
</pre>
<pre class="brush: csharp;">
public ActionResult Transfer(ModelTransfer m)
</pre>
<p><strong><em>Method2</em></strong> Index sends POST data to a [HttpPost] Index action, that performs some calculations and return a redirect.Usefull in PRG</p>
<pre class="brush: xml;">
@using (Html.BeginForm()) {
&lt;input type=&quot;text&quot; id=&quot;Age&quot; name=&quot;Age&quot; value=&quot;42&quot; /&gt;
&lt;input type=&quot;text&quot; id=&quot;Name&quot; name=&quot;Name&quot;  value=&quot;Andrei Ignat&quot;/&gt;
&lt;input type=&quot;submit&quot; value=&quot;Click me&quot; /&gt;
}
</pre>
<pre class="brush: csharp;">
 [HttpPost]
        public ActionResult Index(ModelTransfer m)
        {
            //save to the database the data 

            //this is for transferring alert data - such an &quot;Completed saving&quot; message to the user
            TempData[&quot;displayalert&quot;] = &quot; this is from Index POST action!&quot;;
            //used in PRG
            return RedirectToAction(&quot;Transfer&quot;, new ModelTransfer() { Age = m.Age, Name = m.Name });
        }
</pre>
<p><strong><em>Method3</em></strong>: No data send. The ServerAction just make some data to be transferred to the Transfer view, by TempData</p>
<pre class="brush: xml;">
&lt;a href='@Url.Action(&quot;ServerAction&quot;)'&gt;click me&lt;/a&gt;
</pre>
<pre class="brush: csharp;">
 public ActionResult ServerAction()
        {
            //You can put also into the Session / Application /Cache depending on your specifications
            TempData[&quot;MyModel&quot;]=new ModelTransfer(){ Age = 42, Name = &quot;Andrei Ignat&quot;};
            TempData[&quot;displayalert&quot;] = &quot;this is from Server action!&quot;;

            return RedirectToAction(&quot;Transfer&quot;);
        }
</pre>
<p><strong><em>Method4</em></strong>: No data send. The ServerAction just make some data to be transferred to the Transfer view, by Cache</p>
<p><strong><em>Method5</em></strong>: No data send. The ServerAction just make some data to be transferred to the Transfer view, by Session</p>
<p><strong><em>Method6</em></strong>: No data send. The ServerAction just make some data to be transferred to the Transfer view, by Application</p>
<p><strong><em>Method7</em></strong>: No data send. The ServerAction just make some data to be transferred to the Transfer view, by HttpContext Items</p>
<p><strong><em>Method8</em></strong>: By Cookies</p>
<pre class="brush: xml;">
&lt;a href='@Url.Action(&quot;TransferCookies&quot;)'&gt;click me&lt;/a&gt;
</pre>
<pre class="brush: csharp;">
 HttpCookie cook = new HttpCookie(&quot;Transfer&quot;);
            //usually you put here more , but now I do not want to interfere with other methods
            cook.Expires = DateTime.Now.AddSeconds(1);
            cook.Value = &quot;from transfer cookies&quot;;
            Response.Cookies.Add(cook);
            return RedirectToAction(&quot;Transfer&quot;);
</pre>
<p><strong><em>Method9</em></strong>: By Javascript /Ajax.<br />
It is an entire post by itself and you can see here:<br />
<a href="http://msprogrammer.serviciipeweb.ro/2011/12/05/jquery-ajax-request-and-mvcdetailed/" target="_blank">http://msprogrammer.serviciipeweb.ro/2011/12/05/jquery-ajax-request-and-mvcdetailed/</a></p>
<h3>Summary</h3>
<p>In  this post you have seen 9 methods to transfer data in MVC. As a bonus, the page dispolays also a message with Javascript( usefull for messaging like &#8220;Data Saved to database&#8221; messages to the user.<br />
The code source you will find here:</p>
<p><a href="http://msprogrammer.serviciipeweb.ro/wp-content/uploads/2012/01/TransferDataPage.zip">Transfer Data Page to Page</a><br />
It is made with Razor and MVC3  &#8211; but you can replace Razor with aspx and MVC3 with MVC2 also.</p>
<p>If you think I can improve this post, please leave some comment.</p>
<p><sub>Notes: </sub></p>
<p><sub>I used here hard coding values. Please learn about T4MVC and Html.EditorFor ! </sub></p>
<p><sub>To learn more about ASP.NET MVC visit <a href="http://asp.net/mvc">http://asp.net/mvc</a>. </sub></p>
<p><sub>Default TempDataProvider is based on Session. There is one more , based on cookies.</sub></p>
<p><sub>Please do the exercises to gain self knowledge about MVC</sub></p>
]]></content:encoded>
			<wfw:commentRss>http://msprogrammer.serviciipeweb.ro/2012/01/15/usual-methods-to-transfer-data-from-page-to-page-in-asp-net-mvc/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>friday links 12</title>
		<link>http://msprogrammer.serviciipeweb.ro/2012/01/13/friday-links-12/</link>
		<comments>http://msprogrammer.serviciipeweb.ro/2012/01/13/friday-links-12/#comments</comments>
		<pubDate>Thu, 12 Jan 2012 22:50:44 +0000</pubDate>
		<dc:creator>Andrei Ignat</dc:creator>
				<category><![CDATA[friday links]]></category>

		<guid isPermaLink="false">http://msprogrammer.serviciipeweb.ro/2012/01/13/friday-links-12/</guid>
		<description><![CDATA[
Find &#38; Purchase Data Subscriptions &#124; Windows Azure Marketplace 
Would A Ponzi By Any Other Name Smell As Bad? &#124; ZeroHedge 
Troy Hunt: ASP.NET session hijacking with Google and ELMAH 
Troy Hunt: Free eBook: OWASP Top 10 for .NET developers 
StructureMap and ASP.NET MVC 3 – Getting Started 
CuBox 
Unit Testing Myths and Practices 
This [...]]]></description>
			<content:encoded><![CDATA[<ol>
<li><a href="https://datamarket.azure.com/browse/Data?Price=Free&amp;Page=6" rel="nofollow" target="_blank">Find &amp; Purchase Data Subscriptions | Windows Azure Marketplace</a> </li>
<li><a href="http://www.zerohedge.com/news/would-ponzi-any-other-name-smell-bad" rel="nofollow" target="_blank">Would A Ponzi By Any Other Name Smell As Bad? | ZeroHedge</a> </li>
<li><a href="http://www.troyhunt.com/2012/01/aspnet-session-hijacking-with-google.html" rel="nofollow" target="_blank">Troy Hunt: ASP.NET session hijacking with Google and ELMAH</a> </li>
<li><a href="http://www.troyhunt.com/2011/12/free-ebook-owasp-top-10-for-net.html" rel="nofollow" target="_blank">Troy Hunt: Free eBook: OWASP Top 10 for .NET developers</a> </li>
<li><a href="http://www.thecodinghumanist.com/blog/archives/2011/1/20/structuremap-and-asp-net-mvc-3-getting-started" rel="nofollow" target="_blank">StructureMap and ASP.NET MVC 3 – Getting Started</a> </li>
<li><a href="http://www.solid-run.com/products/cubox#TypicalApplications" rel="nofollow" target="_blank">CuBox</a> </li>
<li><a href="http://www.simple-talk.com/dotnet/.net-framework/unit-testing-myths-and-practices/" rel="nofollow" target="_blank">Unit Testing Myths and Practices</a> </li>
<li><a href="http://www.petapixel.com/2012/01/10/this-photograph-is-not-free/" rel="nofollow" target="_blank">This Photograph Is Not Free</a> </li>
<li><a href="http://www.osnews.com/story/25469/Richard_Stallman_Was_Right_All_Along" rel="nofollow" target="_blank">Richard Stallman Was Right All Along</a> </li>
<li><a href="http://www.neophilic.com/b2evo/blogs/blog4.php/2011/09/02/programming-isnt-fun-any-more" rel="nofollow" target="_blank">Programming Isn&#8217;t Fun Any More</a> </li>
<li><a href="http://www.mattwrock.com/post/2011/12/15/Microsoft-blogging-platform-gains-33-performance-boost-after-adopting-RequestReduce.aspx" rel="nofollow" target="_blank">Matt Wrock&#8217;s Blog | Microsoft blogging platform gains 33% performance boost after adopting RequestReduce</a> </li>
<li><a href="http://www.mattwrock.com/post/2011/09/10/Adopt-RequestReduce-and-see-immediate-Yslow-and-Google-Page-Speed-score-improvements-not-to-mention-a-faster-site!.aspx" rel="nofollow" target="_blank">Matt Wrock&#8217;s Blog | Adopt RequestReduce and see immediate Yslow and Google Page Speed score improvements not to mention a faster site!</a> </li>
<li><a href="http://www.joelonsoftware.com/articles/fog0000000043.html" rel="nofollow" target="_blank">The Joel Test: 12 Steps to Better Code &#8211; Joel on Software</a> </li>
<li><a href="http://www.itworld.com/cloud-computing/237699/developer-declares-i-am-done-freemium-business-model" rel="nofollow" target="_blank">Developer declares &#8216;I am done with the Freemium Business Model&#8217; | ITworld</a> </li>
<li><a href="http://www.infoworld.com/d/the-industry-standard/university-accuses-oracle-extortion-lies-rigged-demo-in-lawsuit-181892?page=0,0" rel="nofollow" target="_blank">University accuses Oracle of extortion, lies, &#8216;rigged&#8217; demo in lawsuit | The Industry Standard &#8211; InfoWorld</a> </li>
<li><a href="http://www.independent.org/blog/wp-content/uploads/2008/12/calvin.jpg" rel="nofollow" target="_blank">calvin.jpg (JPEG Image, 900&#215;628 pixels)</a> </li>
<li><a href="http://www.hanselman.com/blog/NuGetPackageOfTheWeek10NewMobileViewEnginesForASPNETMVC3SpeccompatibleWithASPNETMVC4.aspx" rel="nofollow" target="_blank">NuGet Package of the Week #10 &#8211; New Mobile View Engines for ASP.NET MVC 3, spec-compatible with ASP.NET MVC 4 &#8211; Scott Hanselman</a> </li>
<li><a href="http://www.forbes.com/sites/ericjackson/2012/01/02/the-seven-habits-of-spectacularly-unsuccessful-executives/3/" rel="nofollow" target="_blank">The Seven Habits of Spectacularly Unsuccessful Executives &#8211; Forbes</a> </li>
<li><a href="http://www.elezea.com/2011/12/facebook-ads-and-you/" rel="nofollow" target="_blank">Everything for free, always: how Facebook ads show us the sad state of the Internet</a> </li>
<li><a href="http://www.eggheadcafe.com/tutorials/asp-net/e653f028-01fb-4d0e-843b-058deae562a2/eight-different-ways-to-transfer-data-from-one-page-to-another-page.aspx" rel="nofollow" target="_blank">Eight Different Ways to Transfer Data from One Page to Another Page</a> </li>
<li><a href="http://www.devtrends.co.uk/blog/stop-using-automapper-in-your-data-access-code" rel="nofollow" target="_blank">Stop using AutoMapper in your Data Access Code | Blog | DevTrends</a> </li>
<li><a href="http://www.codeproject.com/KB/database/Visual_SQL_Joins.aspx?msg=2921458" rel="nofollow" target="_blank">Visual Representation of SQL Joins &#8211; CodeProject®</a> </li>
<li><a href="http://www.codeproject.com/KB/cs/i-interface.aspx" rel="nofollow" target="_blank">I, Interface &#8211; CodeProject®</a> </li>
<li><a href="http://www.codeproject.com/KB/aspnet/MVC4Techniques1.aspx" rel="nofollow" target="_blank">MVC Techniques with JQuery, JSON, Knockout and C# &#8211; CodeProject®</a> </li>
<li><a href="http://www.brainpickings.org/index.php/2011/12/12/best-science-books-2011/" rel="nofollow" target="_blank">The 11 Best Science Books of 2011 | Brain Pickings</a> </li>
<li><a href="http://www.beletsky.net/2012/01/using-aspnet-mvc-validation-mechanism.html" rel="nofollow" target="_blank">Alexander Beletsky&#8217;s Development Blog: Using ASP.NET MVC Validation Mechanism without ASP.NET MVC</a> </li>
<li><a href="http://www.amazon.com/The-Flinch-ebook/dp/B0062Q7S3S" rel="nofollow" target="_blank">Amazon.com: The Flinch eBook: Julien Smith: Kindle Store</a> </li>
<li><a href="http://windowsazurecat.com/2010/10/best-practices-for-handling-transient-conditions-in-sql-azure-client-applications/" rel="nofollow" target="_blank">Best Practices for Handling Transient Conditions in SQL Azure Client Applications | Windows Azure Customer Advisory Team (CAT)</a> </li>
<li><a href="http://wiki.jqueryui.com/w/page/41375604/Template-Comparison" rel="nofollow" target="_blank">jQuery UI Development &amp; Planning Wiki / Template-Comparison</a> </li>
<li><a href="http://weblogs.asp.net/scottgu/archive/2011/05/12/asp-net-mvc-3-and-the-helper-syntax-within-razor.aspx" rel="nofollow" target="_blank">ASP.NET MVC 3 and the @helper syntax within Razor &#8211; ScottGu&#8217;s Blog</a> </li>
<li><a href="http://visualstudiomagazine.com/Articles/2011/12/01/High-Performance-ASPNET-Caching.aspx?Page=2" rel="nofollow" target="_blank">High-Performance ASP.NET Caching &#8212; Visual Studio Magazine</a> </li>
<li><a href="http://visualstudiomagazine.com/Articles/2011/11/01/Free-Databases-in-the-Window-Azure-Marketplace.aspx?Page=2" rel="nofollow" target="_blank">Free Databases in the Window Azure Marketplace &#8212; Visual Studio Magazine</a> </li>
<li><a href="http://unspace.ca/blog/duck-programming/" rel="nofollow" target="_blank">Duck Programming</a> </li>
<li><a href="http://tripleemcoder.wordpress.com/2011/12/10/writing-an-automatic-debugger-in-15-minutes-yes-a-debugger/#comment-14" rel="nofollow" target="_blank">Writing an automatic debugger in 15 minutes (yes, a debugger!) « TripleEmcoder</a> </li>
<li><a href="http://thinkvitamin.com/code/javascript/creating-bookmarklets-for-fun-and-profit/" rel="nofollow" target="_blank">Creating Bookmarklets for Fun and Profit | Think Vitamin</a> </li>
<li><a href="http://thebestpageintheuniverse.net/c.cgi?u=math" rel="nofollow" target="_blank">Math doesn&#8217;t suck, you do.</a> </li>
<li><a href="http://tatiyants.com/hostile-code-bases/" rel="nofollow" target="_blank">- tatiyants.com</a> </li>
<li><a href="http://swizec.com/blog/why-programmers-work-at-night/swizec/3198" rel="nofollow" target="_blank">A geek with a hat » Why programmers work at night</a> </li>
<li><a href="http://stephenwalther.com/blog/archive/2011/12/22/asp-net-mvc-selenium-iisexpress.aspx" rel="nofollow" target="_blank">ASP.NET MVC + Selenium + IISExpress</a> </li>
<li><a href="http://social.technet.microsoft.com/wiki/contents/articles/sql-azure-performance-and-elasticity-guide.aspx#SQL%20Azure%20Performance%20Guidelines" rel="nofollow" target="_blank">SQL Azure Performance and Elasticity Guide &#8211; TechNet Articles &#8211; Home &#8211; TechNet Wiki</a> </li>
<li><a href="http://repeatgeek.com/tools/6-books-every-programmer-should-own/" rel="nofollow" target="_blank">6 Books Every Programmer Should Own</a> </li>
<li><a href="http://repeatgeek.com/technical/10-websites-on-how-to-be-a-better-programmer/" rel="nofollow" target="_blank">10 Websites On How To Be A Better Programmer</a> </li>
<li><a href="http://pulkitarora.wordpress.com/2011/12/18/a-professor-explained-marketing-to-mba-students/" rel="nofollow" target="_blank">A Professor explained Marketing to MBA students « Pulkit Arora</a> </li>
<li><a href="http://pulkitarora.wordpress.com/2011/03/12/91-ways-to-become-the-coolest-developer-in-the-world/" rel="nofollow" target="_blank">91 Ways to become the Coolest Developer in the World « Pulkit Arora</a> </li>
<li><a href="http://orchard.codeplex.com/SourceControl/changeset/view/dbec3d05e6d1#src%2fOrchard.Startup%2fWarmupUtility.cs" rel="nofollow" target="_blank">Orchard Project</a> </li>
<li><a href="http://ninject.org/extensions.html" rel="nofollow" target="_blank">Extensions &#8211; Ninject</a> </li>
<li><a href="http://msdn.microsoft.com/en-us/library/ff953191(PandP.50).aspx" rel="nofollow" target="_blank">Chapter 1 &#8211; Welcome to the Library</a> </li>
<li><a href="http://mashable.com/2011/12/20/microsoft-2011/" rel="nofollow" target="_blank">Microsoft in 2011: How 13 Big Developments Shaped the Tech Giant</a> </li>
<li><a href="http://htmlemailboilerplate.com/#f1" rel="nofollow" target="_blank">HTML EMAIL BOILERPLATE v 0.5 updated 11/5</a> </li>
<li><a href="http://haacked.com/archive/2011/04/25/conditional-filters.aspx" rel="nofollow" target="_blank">Conditional Filters in ASP.NET MVC 3</a> </li>
<li><a href="http://haacked.com/archive/2010/12/05/asp-net-mvc-diagnostics-using-nuget.aspx" rel="nofollow" target="_blank">ASP.NET MVC Diagnostics Using NuGet</a> </li>
<li><a href="http://forums.asp.net/p/1752246/4744825.aspx/1?Re+Conversion+from+type+Object+to+type+String+is+not+valid+" rel="nofollow" target="_blank">Conversion from type &#8216;Object&#8217; to type &#8216;String&#8217; is not valid. : The Official Microsoft ASP.NET Forums</a> </li>
<li><a href="http://devlicio.us/blogs/rob_eisenberg/archive/2012/01/04/how-i-lost-regained-and-then-turned-down-an-mvp-award.aspx" rel="nofollow" target="_blank">How I Lost, Regained and then Turned Down an MVP Award &#8211; .NET &amp; Funky Fresh &#8211; Devlicio.us &#8211; Just the Tasty Bits</a> </li>
<li><a href="http://code.nasa.gov/project/" rel="nofollow" target="_blank">Projects | code.nasa.gov</a> </li>
<li><a href="http://channel9.msdn.com/Events/BUILD/BUILD2011/TOOL-803T?ocid=aff-n-in-loc--hr" rel="nofollow" target="_blank">Progressively enable the mobile web with ASP.NET MVC 4, HTML5, and jQuery Mobile | BUILD2011 | Channel 9</a> </li>
<li><a href="http://blogs.msdn.com/b/adonet/archive/2011/11/29/code-first-migrations-beta-1-with-magic-walkthrough-automatic-migrations.aspx" rel="nofollow" target="_blank">Code First Migrations: Beta 1 ‘With-Magic’ Walkthrough (Automatic Migrations) &#8211; ADO.NET team blog &#8211; Site Home &#8211; MSDN Blogs</a> </li>
<li><a href="http://blogs.msdn.com/b/adonet/archive/2011/11/29/code-first-migrations-beta-1-released.aspx" rel="nofollow" target="_blank">Code First Migrations: Beta 1 Released &#8211; ADO.NET team blog &#8211; Site Home &#8211; MSDN Blogs</a> </li>
<li><a href="http://blogs.hbr.org/cs/2011/12/five_things_you_should_stop_do.html" rel="nofollow" target="_blank">Five Things You Should Stop Doing in 2012 &#8211; Dorie Clark &#8211; Harvard Business Review</a> </li>
<li><a href="http://badprogrammer.infogami.com/" rel="nofollow" target="_blank">Signs that you are a bad programmer (Bad Programmers)</a> </li>
<li><a href="http://andorjakab.blog.hu/2012/01/06/this_is_why_i_don_t_give_you_a_job" rel="nofollow" target="_blank">This is why I don&#8217;t give you a job &#8211; Andor Jakab</a> </li>
<li><a href="http://a.shinynew.me/post/14215757504/html5-boilerplate-in-visual-studio-2010" rel="nofollow" target="_blank">A Shiny New Me • HTML5 Boilerplate In Visual Studio 2010</a> </li>
<li><a href="http://9gag.com/gag/1573422" rel="nofollow" target="_blank">9GAG &#8211; Can live with them can&#8217;t f**k without them</a> </li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://msprogrammer.serviciipeweb.ro/2012/01/13/friday-links-12/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hydrating</title>
		<link>http://msprogrammer.serviciipeweb.ro/2012/01/09/hydrating/</link>
		<comments>http://msprogrammer.serviciipeweb.ro/2012/01/09/hydrating/#comments</comments>
		<pubDate>Mon, 09 Jan 2012 07:52:00 +0000</pubDate>
		<dc:creator>Andrei Ignat</dc:creator>
				<category><![CDATA[codeplex]]></category>
		<category><![CDATA[nuget]]></category>
		<category><![CDATA[projects]]></category>

		<guid isPermaLink="false">http://msprogrammer.serviciipeweb.ro/2012/01/09/hydrating/</guid>
		<description><![CDATA[My first Nuget project: Hydrating.&#160; Also a Codeplex project : http://hydrating.codeplex.com/&#160;
It can re-make an object by adding items of “property/value”
It comes in 2 flavors: .NET 2.0 ( reflection ) and .NET 4&#160; ( expression).
Sample Usage:
Sample usage:   var Model = new HydrateGeneric&#60;MyModel&#62;();    Model.AddNewProperty(&#34;OneProp&#34;, &#34;bb&#34;);    Model.AddNewProperty(&#34;newData.StartDate&#34;, DateTime.Now.AddDays(1).ToString());   [...]]]></description>
			<content:encoded><![CDATA[<p>My first Nuget project: <a href="https://nuget.org/packages/Hydrate" target="_blank">Hydrating</a>.&#160; Also a Codeplex project : <a title="http://hydrating.codeplex.com/" href="http://hydrating.codeplex.com/">http://hydrating.codeplex.com/</a>&#160;</p>
<p>It can re-make an object by adding items of “property/value”</p>
<p>It comes in 2 flavors: .NET 2.0 ( reflection ) and .NET 4&#160; ( expression).</p>
<p>Sample Usage:</p>
<p>Sample usage:   <br />var Model = new HydrateGeneric&lt;MyModel&gt;();    <br />Model.AddNewProperty(&quot;OneProp&quot;, &quot;bb&quot;);    <br />Model.AddNewProperty(&quot;newData.StartDate&quot;, DateTime.Now.AddDays(1).ToString());    <br />Model.AddNewProperty(&quot;newData.SecondProp&quot;, &quot;AB&quot;);    <br />Model.AddNewProperty(&quot;newData.aOne.ThirdProp&quot;, &quot;XXX&quot;);    <br />var data = Model.NewObject();    <br />Console.WriteLine(data.newData.SecondProp);    <br />Console.WriteLine(data.newData.StartDate);    <br />Console.WriteLine(data.newData.aOne.ThirdProp);</p>
<p>&#160;</p>
<p>It comes from a Paulo Morgado idea from <a title="http://msmvps.com/blogs/paulomorgado/archive/tags/ExpressionTrees/default.aspx" href="http://msmvps.com/blogs/paulomorgado/archive/tags/ExpressionTrees/default.aspx">http://msmvps.com/blogs/paulomorgado/archive/tags/ExpressionTrees/default.aspx</a> . However, his initialization does not specify property name – so it’s rather error prone if you do not specify properties + values in right order. I have somewhat improved by</p>
<p>&#160;</p>
<p>Model. AddNewProperty(&quot;OneProp&quot;, &quot;bb&quot;);</p>
<p>&#160;</p>
<p>Enjoy!</p>
<p><a title="http://hydrating.codeplex.com/" href="http://hydrating.codeplex.com/">http://hydrating.codeplex.com/</a> </p>
<p><a title="https://nuget.org/packages/Hydrate" href="https://nuget.org/packages/Hydrate">https://nuget.org/packages/Hydrate</a></p>
]]></content:encoded>
			<wfw:commentRss>http://msprogrammer.serviciipeweb.ro/2012/01/09/hydrating/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>(Happy&#124;Merry) (New Year&#124;Christmas) donate</title>
		<link>http://msprogrammer.serviciipeweb.ro/2011/12/26/happymerry-new-yearchristmas-donate/</link>
		<comments>http://msprogrammer.serviciipeweb.ro/2011/12/26/happymerry-new-yearchristmas-donate/#comments</comments>
		<pubDate>Mon, 26 Dec 2011 09:34:00 +0000</pubDate>
		<dc:creator>Andrei Ignat</dc:creator>
				<category><![CDATA[new year]]></category>

		<guid isPermaLink="false">http://msprogrammer.serviciipeweb.ro/2011/12/26/happymerry-new-yearchristmas-donate/</guid>
		<description><![CDATA[Happy New Year And Merry Christmas
And , if you have used some site intensively, return the favor: Donate back!
For myself it was Wikipedia:
 
&#160;
Does not matter the site. Does not matter what they are doing with the money. Do it.
And , again:
Happy New Year And Merry Christmas
]]></description>
			<content:encoded><![CDATA[<p>Happy New Year And Merry Christmas</p>
<p>And , if you have used some site intensively, return the favor: Donate back!</p>
<p>For myself it was Wikipedia:</p>
<p> <a href="http://msprogrammer.serviciipeweb.ro/wp-content/uploads/Happy_14A94/wiki3.gif"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="wiki3" border="0" alt="wiki3" src="http://msprogrammer.serviciipeweb.ro/wp-content/uploads/Happy_14A94/wiki3_thumb.gif" width="430" height="132" /></a>
<p>&#160;</p>
<p>Does not matter the site. Does not matter what they are doing with the money. Do it.</p>
<p>And , again:</p>
<p>Happy New Year And Merry Christmas</p>
]]></content:encoded>
			<wfw:commentRss>http://msprogrammer.serviciipeweb.ro/2011/12/26/happymerry-new-yearchristmas-donate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

