<?xml version="1.0" encoding="utf-8"?>
<feed xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml:lang="en-us" xmlns="http://www.w3.org/2005/Atom">
  <title>Eran Nachum's Blog</title>
  <link rel="alternate" type="text/html" href="http://www.eranachum.com/" />
  <link rel="self" href="http://www.eranachum.com/SyndicationService.asmx/GetAtom" />
  <icon>favicon.ico</icon>
  <updated>2010-06-28T00:38:03.0396245-07:00</updated>
  <author>
    <name>Eran Nachum</name>
  </author>
  <subtitle>www.eranachum.com - Implementing &amp; executing my thoughts...</subtitle>
  <id>http://www.eranachum.com/</id>
  <generator uri="http://www.dasblog.net" version="1.8.5223.2">DasBlog</generator>
  <entry>
    <title>ASP.NET &amp;ndash; JSON &amp;ndash; Serialization and Deserialization</title>
    <link rel="alternate" type="text/html" href="http://www.eranachum.com/PermaLink,guid,7f7734e4-20df-4054-995d-e321ad923f61.aspx" />
    <id>http://www.eranachum.com/PermaLink,guid,7f7734e4-20df-4054-995d-e321ad923f61.aspx</id>
    <published>2010-06-28T07:34:00-07:00</published>
    <updated>2010-06-28T00:38:03.0396245-07:00</updated>
    <category term="ASP.NET" label="ASP.NET" scheme="dasBlog" />
    <category term="C#" label="C#" scheme="dasBlog" />
    <category term="JSON" label="JSON" scheme="dasBlog" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
      Great post in regards asp.net &amp; Json.
   </p>
        <p>
      I wasn’t familiar with <a title="System.Web.Script.Serialization.JavaScriptSerializer" href="http://msdn.microsoft.com/en-us/library/system.web.script.serialization.javascriptserializer.aspx" target="_blank">System.Web.Script.Serialization.JavaScriptSerializer</a> which
      provides serialization and deserialization functionality for AJAX-enabled applications.
   </p>
        <p>
      While searching the web in regards this issue, I bumped into a great post that outlines
      the usage of this namespace.
   </p>
        <p>
      You can check it out <a href="http://blogs.msdn.com/b/rakkimk/archive/2009/01/30/asp-net-json-serialization-and-deserialization.aspx" target="_blank">here</a>.
   </p>
        <p>
      Good Luck.
   </p>
        <img width="0" height="0" src="http://www.eranachum.com/aggbug.ashx?id=7f7734e4-20df-4054-995d-e321ad923f61" />
      </div>
    </content>
  </entry>
  <entry>
    <title>List(T).ForEach or foreach, it doesn't matter...or does it?</title>
    <link rel="alternate" type="text/html" href="http://www.eranachum.com/PermaLink,guid,12bb84c3-61d1-407b-9c23-1c2c053b1747.aspx" />
    <id>http://www.eranachum.com/PermaLink,guid,12bb84c3-61d1-407b-9c23-1c2c053b1747.aspx</id>
    <published>2010-06-22T10:45:00-07:00</published>
    <updated>2010-06-22T03:51:29.9203743-07:00</updated>
    <category term="C#" label="C#" scheme="dasBlog" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
      A great post that stands over the subtleties regards these two iteration possibilities <a href="http://www.c-sharpcorner.com/UploadFile/Baldi/1622/Default.aspx" target="_blank">here</a>.
   </p>
        <p>
      At the end of the day it seems that if you want to store objects of structs (primitive
      types such int, long etc…), in a generic List, you should use normal <strong>foreach</strong> (or
      for) instead if you want to avoid problems. Also removing items in the ForEach method
      is a thing which should be avoided also when it is possible. Otherwise i promise,
      the time will come when someone copies you code uses the ForEach to add items instead
      of removing it!
   </p>
        <img width="0" height="0" src="http://www.eranachum.com/aggbug.ashx?id=12bb84c3-61d1-407b-9c23-1c2c053b1747" />
      </div>
    </content>
  </entry>
  <entry>
    <title>ASP.Net MVC 2</title>
    <link rel="alternate" type="text/html" href="http://www.eranachum.com/PermaLink,guid,f79521df-6865-4deb-b68d-7a617343b7ab.aspx" />
    <id>http://www.eranachum.com/PermaLink,guid,f79521df-6865-4deb-b68d-7a617343b7ab.aspx</id>
    <published>2010-06-21T08:50:00-07:00</published>
    <updated>2010-06-21T06:26:22.3266243-07:00</updated>
    <category term="ASP.NET MVC" label="ASP.NET MVC" scheme="dasBlog" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
      It’s almost a year I didn’t post here something, I know – I has lots of things over
      my head – mostly work…
   </p>
        <p>
      As I posted here earlier, we used asp.net MVC 1.0 framework to develop the BackOffice
      web application of out product at work, and these days I am doing some POC regards
      the new MVC version (#2) that came official like 2 months ago to check out if there
      are some improvements to the previous version and if there’s a way to assimilate it
      easily.
   </p>
        <p>
      I have to say that developing with asp.net MVC (1.0) is different than classic asp.net
      webforms, and mostly has benefits over it, especially the Unit testing that became
      very easy to write and test the controller BL actions and logic.
   </p>
        <p>
      Until the next post regards asp.net MVC 2, I am attaching a great link that will make
      order to whom is new to MVC.
   </p>
        <p>
          <a title="http://www.howmvcworks.net/Home/Topics" href="http://www.howmvcworks.net/Home/Topics" target="_blank">http://www.howmvcworks.net/Home/Topics</a>
        </p>
        <p>
      I will post you soon with asp.net MVC 2 post.
   </p>
        <img width="0" height="0" src="http://www.eranachum.com/aggbug.ashx?id=f79521df-6865-4deb-b68d-7a617343b7ab" />
      </div>
    </content>
  </entry>
  <entry>
    <title>.Net Entity Framework VS NHibernate</title>
    <link rel="alternate" type="text/html" href="http://www.eranachum.com/PermaLink,guid,7b4a1af8-7724-42ae-ae66-3ae6e6808629.aspx" />
    <id>http://www.eranachum.com/PermaLink,guid,7b4a1af8-7724-42ae-ae66-3ae6e6808629.aspx</id>
    <published>2009-08-02T02:29:00-07:00</published>
    <updated>2009-08-02T02:46:43.53875-07:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
      Come and read and post in regards this issue at <a href="http://www.allrise.com/" target="_blank">allrise.com.</a></p>
        <p>
      There are some nice arguments there.
   </p>
        <p>
      This is the Previewed case widget:
   </p>
        <p style="text-align: center">
          <iframe style="width: 315px; height: 520px" height="520" src="http://widget.allrise.com/SmallWidget.aspx?id=215&amp;showargs=true" frameborder="0" width="315" scrolling="no">
          </iframe>
        </p>
        <img width="0" height="0" src="http://www.eranachum.com/aggbug.ashx?id=7b4a1af8-7724-42ae-ae66-3ae6e6808629" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Why do NHibernate Class Properties have to be Virtual?</title>
    <link rel="alternate" type="text/html" href="http://www.eranachum.com/PermaLink,guid,6d6cd20d-1530-40bd-a487-2af60340b727.aspx" />
    <id>http://www.eranachum.com/PermaLink,guid,6d6cd20d-1530-40bd-a487-2af60340b727.aspx</id>
    <published>2009-06-25T11:29:00-07:00</published>
    <updated>2009-06-25T04:31:31.6875-07:00</updated>
    <category term="NHibernate" label="NHibernate" scheme="dasBlog" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
      To all of you that are new to NHibernate or just curious about this question, the
      quick answer to that question is because we need members to be virtual in order to
      do lazy loading action.
   </p>
        <p>
      More detailed post is here: <a href="http://davybrion.com/blog/2009/03/must-everything-be-virtual-with-nhibernate/" target="_blank">Must
      Everything Be Virtual With NHibernate?</a></p>
        <img width="0" height="0" src="http://www.eranachum.com/aggbug.ashx?id=6d6cd20d-1530-40bd-a487-2af60340b727" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Family and Work</title>
    <link rel="alternate" type="text/html" href="http://www.eranachum.com/PermaLink,guid,89fb7980-f200-4d03-a95c-eecf5dfaba08.aspx" />
    <id>http://www.eranachum.com/PermaLink,guid,89fb7980-f200-4d03-a95c-eecf5dfaba08.aspx</id>
    <published>2009-06-21T07:20:00-07:00</published>
    <updated>2009-06-21T00:28:44.859375-07:00</updated>
    <category term="Life" label="Life" scheme="dasBlog" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
      I read a nice post by Steve Blank (a recommendation by Erez Eden) that describes how
      to manage and balance life, family and children during hard work.
   </p>
        <p>
      Perhaps it could work and you could find free time to raise your kids even the hard
      work!
   </p>
        <p>
      Great post is <a href="http://steveblank.com/2009/06/18/epitaph-for-an-entrepreneur/" target="_blank">here</a>. 
   </p>
        <img width="0" height="0" src="http://www.eranachum.com/aggbug.ashx?id=89fb7980-f200-4d03-a95c-eecf5dfaba08" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Html Agility Pack</title>
    <link rel="alternate" type="text/html" href="http://www.eranachum.com/PermaLink,guid,99f2cc60-1579-477c-9814-5fcead0af6df.aspx" />
    <id>http://www.eranachum.com/PermaLink,guid,99f2cc60-1579-477c-9814-5fcead0af6df.aspx</id>
    <published>2009-06-09T23:59:00-07:00</published>
    <updated>2009-06-10T00:23:40.023-07:00</updated>
    <category term="Solutions" label="Solutions" scheme="dasBlog" />
    <category term="C#" label="C#" scheme="dasBlog" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
      I had a task at work to get a web page content (using System.Net.WebRequest) in order
      to send the data by demand by email or in other ways.
   </p>
        <p>
      The web page holds contents like images and more that need to be send by email in
      order to display the html content properly.
   </p>
        <p>
      In order to parse the html content and look out for the images in order to download
      them to the server manually (a thing that will cause a lot of regex work and parsing
      issues), I found a great open source module (by <strong>Sharon Djabnoun</strong>,
      my allrise.com teammate, recommendation) that called <strong>HTML Agility Pack. <em>“</em></strong><em>This
      is an agile HTML parser that builds a read/write DOM and supports plain XPATH or XSLT
      (you actually don't HAVE to understand XPATH nor XSLT to use it, don't worry...).
      It is a .NET code library that allows you to parse "out of the web" HTML
      files. The parser is very tolerant with "real world" malformed HTML. The
      object model is very similar to what proposes System.Xml, but for HTML documents (or
      streams).”</em></p>
        <p>
      Now, the work on the html content will be very easy and fast – the only thing that
      I’ll need to do is to fine the images node, download the images to the server, set
      the directive of the image’s source and send the email with the attachments and the
      fixed URL content to point the new location of the images.
   </p>
        <p>
      You can find it <a href="http://www.codeplex.com/htmlagilitypack" target="_blank">here</a>.
   </p>
        <img width="0" height="0" src="http://www.eranachum.com/aggbug.ashx?id=99f2cc60-1579-477c-9814-5fcead0af6df" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Is Entity Framework Ready for a SOA Environment</title>
    <link rel="alternate" type="text/html" href="http://www.eranachum.com/PermaLink,guid,2df8b2d7-f2f6-4da5-a813-6c8456a28499.aspx" />
    <id>http://www.eranachum.com/PermaLink,guid,2df8b2d7-f2f6-4da5-a813-6c8456a28499.aspx</id>
    <published>2009-05-24T02:30:00-07:00</published>
    <updated>2009-05-24T02:42:09.20875-07:00</updated>
    <category term="WCF" label="WCF" scheme="dasBlog" />
    <category term="Entity Framework" label="Entity Framework" scheme="dasBlog" />
    <category term="SOA" label="SOA" scheme="dasBlog" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
      After seeking the web for a good ORM mechanism in regards of developing scalable and
      generic DAL + BL tier (or service), I bumped into a great article that tested the
      EF (Entity Framework) hosted in WCF service (SOA architecture). 
   </p>
        <p>
      You can read it <a href="http://blogs.microsoft.co.il/blogs/davidbi/archive/2009/05/17/entity-framework-in-a-soa-environment.aspx" target="_blank">here</a>.
      A short summary of this post says that the EF is still premature and couldn’t perform
      complex actions (like updating multiple tables that doing some transactions).
   </p>
        <p>
      Performance and Scalability are also has been tested and the results weren’t so good!
   </p>
        <p>
      So, after getting some advices from friends and colleges I think I’ll use NHibernate
      in order to publish my ORM relations to the DB.
   </p>
        <p>
      Any suggestions or comments to this will be complimented to my email. 
   </p>
        <img width="0" height="0" src="http://www.eranachum.com/aggbug.ashx?id=2df8b2d7-f2f6-4da5-a813-6c8456a28499" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Silverlight 2 DataGrid Control by DevExpress &amp;ndash; and its FREE</title>
    <link rel="alternate" type="text/html" href="http://www.eranachum.com/PermaLink,guid,c640f3a2-da9f-47cd-b25f-88ccb93a8f82.aspx" />
    <id>http://www.eranachum.com/PermaLink,guid,c640f3a2-da9f-47cd-b25f-88ccb93a8f82.aspx</id>
    <published>2009-05-14T06:15:00-07:00</published>
    <updated>2009-05-13T23:19:20.832125-07:00</updated>
    <category term="Silverlight 2" label="Silverlight 2" scheme="dasBlog" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
      I was struggling the basic out-of-the-box datagrid control of Silverlight and it doesn’t
      do much…
   </p>
        <p>
      After reading the <a href="http://www.silverlightshow.net/" target="_blank">silverlightshow.net</a> site
      for some tutorials I revealed the amazing <a href="http://www.devexpress.com/Products/NET/Controls/Silverlight/Grid/" target="_blank">agDataGrid</a> of
      DevExpress that makes life easier.
   </p>
        <p>
      To read some more info about it go <a href="http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-2.aspx" target="_blank">here</a>.
   </p>
        <img width="0" height="0" src="http://www.eranachum.com/aggbug.ashx?id=c640f3a2-da9f-47cd-b25f-88ccb93a8f82" />
      </div>
    </content>
  </entry>
  <entry>
    <title>ADO.NET Data Services and Silverlight 2 Application Cross-domain Solution</title>
    <link rel="alternate" type="text/html" href="http://www.eranachum.com/PermaLink,guid,f11bff90-b37c-46f6-a4d2-0ecb1eeeeb22.aspx" />
    <id>http://www.eranachum.com/PermaLink,guid,f11bff90-b37c-46f6-a4d2-0ecb1eeeeb22.aspx</id>
    <published>2009-05-11T11:18:00-07:00</published>
    <updated>2009-05-11T04:37:30.9263196-07:00</updated>
    <category term="Silverlight 2" label="Silverlight 2" scheme="dasBlog" />
    <category term="ADO.NET Data Services (aka Astoria)" label="ADO.NET Data Services (aka Astoria)" scheme="dasBlog" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
      Hi, 
   </p>
        <p>
      as I posted in my previous email in regards Silverlight 2, I’ve decided to use ADO.NET
      Data Services (After consulting my mate Josh Reuben – senior SELA consultant) in order
      to consume the data in a very easy and light way (by using its linq notation and light
      weight data bandwidth using JSON).
   </p>
        <p>
      The only main issue that I encountered with the last few days I am exploring this
      (new for me) technologies is the issue of cross-domain preventing:
   </p>
        <p>
          <em>“ADO.NET Data Services does not currently support cross-domain communications.
      Cross-domain communications are supported with standard REST and SOAP services, but
      not with ADO.NET Data Services. …… </em>
          <em>This means that a Silverlight 2 client
      cannot talk to services exposed through ADO.NET Data Services if those services are
      hosted on a different domain than the domain that hosts the Silverlight client application.” </em>
        </p>
        <h6>Quoted from John Papa post <a href="http://msdn.microsoft.com/en-us/magazine/dd569758.aspx#id0080005" target="_blank">here</a>.
   </h6>
        <p>
      Recently I followed up the the Astoria blog team and found that they created a great
      workaround that comes to give a solution for this issue that holt me these days using
      these data services because my application is distributed and need to be separated
      for a client and server.
   </p>
        <p>
      Find it <a href="http://blogs.msdn.com/tom_laird-mcconnell/archive/2009/03/25/creating-an-ado-net-data-service-proxy-as-workaround-for-silverlight-ado-net-cross-domain-issue.aspx" target="_blank">here</a>. 
   </p>
        <p>
      The Astoria blog team is <a href="http://blogs.msdn.com/astoriateam/default.aspx" target="_blank">here</a>.
   </p>
        <img width="0" height="0" src="http://www.eranachum.com/aggbug.ashx?id=f11bff90-b37c-46f6-a4d2-0ecb1eeeeb22" />
      </div>
    </content>
  </entry>
</feed>