<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://spellcoder.com/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>SpellCoder</title><link>http://spellcoder.com/blogs/default.aspx</link><description>C# 4.0 and beyond</description><dc:language>en-US</dc:language><generator>CommunityServer 2.0 (Build: 60217.2664)</generator><item><title>Automatic Admin interface for SQL Server using Django</title><link>http://spellcoder.com/blogs/tayseer/archive/2008/11/20/Automatic_Admin_interface_for_SQL_Server_using_Django.aspx</link><pubDate>Thu, 20 Nov 2008 12:51:00 GMT</pubDate><guid isPermaLink="false">a16baff4-3230-4c5e-a3c8-9de643cdfe45:17575</guid><dc:creator>tayseer</dc:creator><slash:comments>0</slash:comments><description>A problem that we face everyday is creating CRUD interfaced for our databases. Creating a CRUD interface is always a boring and tedious job. Even if you want to initialize your data, you may break something by mistake if you use SQL Server Management Studio, because it doesn't know anything about your business rules.
Django - A web framework for Python - gives you the solution. It has an application called "Django Admin" that provides a customizable, production-ready, nice-looking UI on top of your...(&lt;a href="http://spellcoder.com/blogs/tayseer/archive/2008/11/20/Automatic_Admin_interface_for_SQL_Server_using_Django.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://spellcoder.com/aggbug.aspx?PostID=17575" width="1" height="1"&gt;</description><category domain="http://spellcoder.com/blogs/tayseer/archive/category/1045.aspx">Python</category><category domain="http://spellcoder.com/blogs/tayseer/archive/category/1070.aspx">Django</category></item><item><title>Snake oil and development methodology</title><link>http://spellcoder.com/blogs/dodyg/archive/2008/11/18/17438.aspx</link><pubDate>Tue, 18 Nov 2008 08:11:18 GMT</pubDate><guid isPermaLink="false">a16baff4-3230-4c5e-a3c8-9de643cdfe45:17438</guid><dc:creator>admin</dc:creator><slash:comments>1</slash:comments><description>For the past 5 years agile development mantra have been drilled into programmers heads and great, now the meme says “no, it’s not working” (read: Decline and Fall of Agile Development)  Do you know what this means?     A new round of books written why Agile wasn’t that good anyway.    A replacement for Agile Development is imminent. How about Kaizen for software development?    A new round of books about how Kaizen is different from Agile development methodology and why the authors used it and it...(&lt;a href="http://spellcoder.com/blogs/dodyg/archive/2008/11/18/17438.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://spellcoder.com/aggbug.aspx?PostID=17438" width="1" height="1"&gt;</description></item><item><title>JQuery Magic Continues --&amp;gt; Enable Searching and sorting in GridView at the client side.</title><link>http://spellcoder.com/blogs/beckham/archive/2008/11/16/17348.aspx</link><pubDate>Sun, 16 Nov 2008 17:24:00 GMT</pubDate><guid isPermaLink="false">a16baff4-3230-4c5e-a3c8-9de643cdfe45:17348</guid><dc:creator>beckham</dc:creator><slash:comments>1</slash:comments><description>I geuss you heared about JQuery, Which is an amazing JavaScript library that makes it easy to create wonderful web effects in just a few lines of code. As the website says:&lt;br /&gt;

“jQuery is a JavaScript library that takes this motto to heart: Writing JavaScript code should be fun. jQuery achieves this goal by taking common, repetitive, tasks, stripping out all the unnecessary markup, and leaving them short, smart and understandable.”
&lt;br /&gt;
there are a lot of jQuery plugins such as facebox. &lt;br /&gt;
there is also a 2 plugins that are very cute and neat:&lt;br /&gt;
1- The Table Sorter Plugin&lt;br /&gt;
2- The table search plugin.
&lt;br /&gt;&lt;br /&gt;
today i'm gonna use these plugins to allow sorting and searching for the grid view control at the client side ( No Postback)
&lt;br /&gt;
okay, Let's start,
&lt;br /&gt;
first of all you need to download the&lt;a href="http://docs.jquery.com/"&gt; jQuery&lt;/a&gt;, &lt;a href="http://rikrikrik.com/jquery/quicksearch/"&gt;Quick Search&lt;/a&gt; &amp;amp; &lt;a href="http://tablesorter.com/docs/"&gt;Table Sorter&lt;/a&gt; plugins.
&lt;br /&gt;&lt;br /&gt;
1- Create a webpage and put in a GridView control.&lt;br&gt;
2- bind your gridview to a data source. in my case i'll use a SQL Data source, that connects to the northwind db and get some information from the [Customers] table.
&lt;br /&gt;&lt;br /&gt;
&lt;img src="http://img394.imageshack.us/img394/1446/grdpv2.jpg" alt="gridAndDataSource"&gt;
&lt;br /&gt;&lt;br /&gt;
3- Now the cool part to enable the search into the grid view just add this nice piece of js code
&lt;br /&gt;&lt;br /&gt;
&lt;img src="http://img58.imageshack.us/img58/4792/searchxm1.jpg" alt="quicksearch"&gt;
&lt;br /&gt;&lt;br /&gt;
just make sure to add the js files that you downloaded
&lt;br /&gt;&lt;br /&gt;
&lt;img src="http://img58.imageshack.us/img58/338/refcc2.jpg" alt="refrences"&gt;    
&lt;br /&gt; &lt;br /&gt;       
4- To enable sorting is a bit tricky as the table sorter plugin is working with the standard HTML table with  and  tags  but the grid view renders only  without  tag.
&lt;br /&gt;&lt;br /&gt;
&lt;img src="http://img87.imageshack.us/img87/5466/tbodyonlytv2.jpg" alt="nothead"&gt;
&lt;br /&gt;&lt;br /&gt;
Okaay, how can we make the gridview renders the  tag ??? We can do that by this line of code which tells the grid view to render the header row as  tag.
&lt;br /&gt;&lt;br /&gt;
&lt;img src="http://img204.imageshack.us/img204/2650/theadut6.jpg" alt="addthead"&gt;
&lt;br /&gt;&lt;br /&gt;
Now to make your grid sortable at the client side just add this line
&lt;br /&gt;&lt;br /&gt;
&lt;img src="http://img394.imageshack.us/img394/9848/sortvi3.jpg" alt="sortable"&gt;
&lt;br /&gt;
&lt;br /&gt;
now you can search and sort your grid at the client.
&lt;br /&gt;
&lt;br /&gt;
&lt;img src="http://img55.imageshack.us/img55/3458/finalda7.jpg" alt="finalgrid"&gt;
&lt;br&gt;
&lt;br&gt;
Beckham&lt;img src="http://spellcoder.com/aggbug.aspx?PostID=17348" width="1" height="1"&gt;</description><enclosure url="http://spellcoder.com/blogs/beckham/attachment/17348.ashx" length="326970" type="application/zip" /></item><item><title>Windows Azure Overview</title><link>http://spellcoder.com/blogs/dodyg/archive/2008/11/03/16331.aspx</link><pubDate>Mon, 03 Nov 2008 10:47:30 GMT</pubDate><guid isPermaLink="false">a16baff4-3230-4c5e-a3c8-9de643cdfe45:16331</guid><dc:creator>admin</dc:creator><slash:comments>0</slash:comments><description>Check out this excellent Windows Azure overview by Dare.  &amp;#160;  The infrastructure looks nice and it makes available a lot of stuff that needed to be configured by hand. But still, the biggest work in making RESTful oriented application in .NET (cloud or no cloud)&amp;#160; is still the mind numbing work required to properly provide support for REST APIs&amp;#160; via proper error messages etc. Right now the work for parsing XML messages will have to be done by hand (LINQ for XML helps) if you care about...(&lt;a href="http://spellcoder.com/blogs/dodyg/archive/2008/11/03/16331.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://spellcoder.com/aggbug.aspx?PostID=16331" width="1" height="1"&gt;</description></item><item><title>Day 2: A Developer Case for M</title><link>http://spellcoder.com/blogs/dodyg/archive/2008/11/01/16328.aspx</link><pubDate>Sat, 01 Nov 2008 14:47:41 GMT</pubDate><guid isPermaLink="false">a16baff4-3230-4c5e-a3c8-9de643cdfe45:16328</guid><dc:creator>admin</dc:creator><slash:comments>1</slash:comments><description>I am excited about two things in Microsoft PDC 2008, no it’s not Windows Azure or Windows 7. The cloud infrastructure is nice but cloud is just an infrastructure architecture problem – and frankly I trust Amazon to get this right than Microsoft.&amp;#160; I am more interested in technologies that helps making software construction faster and more reliable, either in the way of libraries that bring useful capabilities or new languages that implement concepts that makes programming more fun and productive....(&lt;a href="http://spellcoder.com/blogs/dodyg/archive/2008/11/01/16328.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://spellcoder.com/aggbug.aspx?PostID=16328" width="1" height="1"&gt;</description></item><item><title>Here’s some “great news”</title><link>http://spellcoder.com/blogs/dodyg/archive/2008/10/31/16326.aspx</link><pubDate>Fri, 31 Oct 2008 13:20:51 GMT</pubDate><guid isPermaLink="false">a16baff4-3230-4c5e-a3c8-9de643cdfe45:16326</guid><dc:creator>admin</dc:creator><slash:comments>1</slash:comments><description>Microsoft is killing LINQ To SQL and apparently WF 4.0 will not be compatible with WF 1.0.  Here’s a rule of thumb of using Microsoft technologies.   Trust the language guys and run time guys,&amp;#160; be wary of everybody else especially the bloody data access team.  Man, Matt Warren must be pissed. This is his second or third ORM effort got cancelled for the past 7 years....(&lt;a href="http://spellcoder.com/blogs/dodyg/archive/2008/10/31/16326.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://spellcoder.com/aggbug.aspx?PostID=16326" width="1" height="1"&gt;</description></item><item><title>Introducing M Language</title><link>http://spellcoder.com/blogs/dodyg/archive/2008/10/31/16325.aspx</link><pubDate>Fri, 31 Oct 2008 11:50:48 GMT</pubDate><guid isPermaLink="false">a16baff4-3230-4c5e-a3c8-9de643cdfe45:16325</guid><dc:creator>admin</dc:creator><slash:comments>0</slash:comments><description>Download this video of Don Box and Chris Anderson running through M language (mp4)  They discussed the high level concepts behind M. This is a must watch to get a traction in understanding the M language. ...(&lt;a href="http://spellcoder.com/blogs/dodyg/archive/2008/10/31/16325.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://spellcoder.com/aggbug.aspx?PostID=16325" width="1" height="1"&gt;</description></item><item><title>M Enumerator : Day 1</title><link>http://spellcoder.com/blogs/dodyg/archive/2008/10/30/16320.aspx</link><pubDate>Thu, 30 Oct 2008 23:39:31 GMT</pubDate><guid isPermaLink="false">a16baff4-3230-4c5e-a3c8-9de643cdfe45:16320</guid><dc:creator>admin</dc:creator><slash:comments>1</slash:comments><description>  So you have your OSLO SDK installed and your Intellipad running smoothing on your screen.&amp;#160; Well, let’s get busy.  Let’s remember a simple factoid: module is the basic organization structure in M language. The following code is the smallest unit of M language  module Commerce  {  &amp;#160;  }  In your Intellipad, press ctrl \ and type SetMode(“MMode”) to start your model mode.  Off course right now it does nothing. In M, you define a type by using the type keyword and in this example, we are going...(&lt;a href="http://spellcoder.com/blogs/dodyg/archive/2008/10/30/16320.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://spellcoder.com/aggbug.aspx?PostID=16320" width="1" height="1"&gt;</description></item><item><title>C# 4.0 Tuple</title><link>http://spellcoder.com/blogs/dodyg/archive/2008/10/30/16319.aspx</link><pubDate>Thu, 30 Oct 2008 23:01:06 GMT</pubDate><guid isPermaLink="false">a16baff4-3230-4c5e-a3c8-9de643cdfe45:16319</guid><dc:creator>admin</dc:creator><slash:comments>4</slash:comments><description>Finally there is a way on how to use tuple as it ought to be.   In C# 4.0, you can do the following     dynamic GetTuple()
{
   return new { FirstName : “John”, LastName : “Adams” };
}

dynamic myTuple = GetTuple();

Console.WriteLine (myTuple.FirstName); //Look at this beauty


&amp;#160;

Update:

Remember that anonymous type is an immutable type. Once you set the value at creation, they cannot be changed. ...(&lt;a href="http://spellcoder.com/blogs/dodyg/archive/2008/10/30/16319.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://spellcoder.com/aggbug.aspx?PostID=16319" width="1" height="1"&gt;</description></item><item><title>C# 4.0 Dynamic</title><link>http://spellcoder.com/blogs/dodyg/archive/2008/10/29/16274.aspx</link><pubDate>Wed, 29 Oct 2008 22:28:00 GMT</pubDate><guid isPermaLink="false">a16baff4-3230-4c5e-a3c8-9de643cdfe45:16274</guid><dc:creator>admin</dc:creator><slash:comments>0</slash:comments><description>One word, wow.   &amp;#160;     class C 

{ 

  public dynamic myField;      

  public dynamic MyProp { get; set; } 

  public dynamic MyMethod(dynamic d) { return d.Foo(); } 

   public delegate dynamic MyDelegate(dynamic d); 

} 


&amp;#160; 

You can find more https://blogs.msdn.com/cburrows/archive/2008/10/27/c-dynamic.aspx, https://blogs.msdn.com/cburrows/archive/2008/10/28/c-dynamic-part-ii.aspx and https://blogs.msdn.com/cburrows/archive/2008/10/29/c-dynamic-part-iii.aspx...(&lt;a href="http://spellcoder.com/blogs/dodyg/archive/2008/10/29/16274.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://spellcoder.com/aggbug.aspx?PostID=16274" width="1" height="1"&gt;</description></item><item><title>Join the group</title><link>http://spellcoder.com/blogs/dodyg/archive/2008/10/29/16257.aspx</link><pubDate>Wed, 29 Oct 2008 16:37:00 GMT</pubDate><guid isPermaLink="false">a16baff4-3230-4c5e-a3c8-9de643cdfe45:16257</guid><dc:creator>admin</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Join Mdsls group for in depth discussion about Microsoft M language (as part of Oslo technology), including mgrammar, mschema and mgraph. We'll talk smack about Intellipad there as well. &lt;/p&gt; &lt;p&gt;&lt;a href="http://groups.google.com/group/MDSLs/"&gt;http://groups.google.com/group/MDSLs/&lt;/a&gt; &lt;/p&gt; &lt;p&gt;M Language team blog is located here http://blogs.msdn.com/mlanguage&lt;/p&gt;&lt;img src="http://spellcoder.com/aggbug.aspx?PostID=16257" width="1" height="1"&gt;</description></item><item><title>M for Mind Boggling</title><link>http://spellcoder.com/blogs/dodyg/archive/2008/10/28/16150.aspx</link><pubDate>Tue, 28 Oct 2008 20:16:00 GMT</pubDate><guid isPermaLink="false">a16baff4-3230-4c5e-a3c8-9de643cdfe45:16150</guid><dc:creator>admin</dc:creator><slash:comments>0</slash:comments><description>The Oslo technology is revolutionary. 

There I said it.

I will dedicate the next four weeks dissecting the capabilities of the M language and the MGrammar languge for DSL buildling. I have been reading through the early language specification furiously and man, this is a real deal.

For now, check out the marketing kids' word at http://www.modelsremixed.com/.

Download the SDK (a tiny 15MB download) at http://code.msdn.microsoft.com/oslo
&lt;img src="http://spellcoder.com/aggbug.aspx?PostID=16150" width="1" height="1"&gt;</description></item><item><title>C# 4.0 New Features</title><link>http://spellcoder.com/blogs/dodyg/archive/2008/10/27/16062.aspx</link><pubDate>Mon, 27 Oct 2008 22:09:00 GMT</pubDate><guid isPermaLink="false">a16baff4-3230-4c5e-a3c8-9de643cdfe45:16062</guid><dc:creator>dodyg</dc:creator><slash:comments>0</slash:comments><description>Check out the new C# 4.0 language features &lt;a href="http://code.msdn.microsoft.com/Release/ProjectReleases.aspx?ProjectName=csharpfuture&amp;amp;ReleaseId=1686"&gt;here&lt;/a&gt;.&lt;br&gt;&lt;br&gt;They are dynamic type keyword, optional and named parameters, dynamic import and variance.&lt;br&gt;&lt;br&gt;They are nice but the biggest surprise maybe the IDynamicObject which allows an object to respond to dynamic properties/methods like &lt;span class="Apple-style-span"&gt;method_missing in Ruby.&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/span&gt;&lt;span class="Apple-style-span"&gt;&lt;/span&gt;&lt;span class="Apple-style-span"&gt;&lt;/span&gt;&lt;img src="http://spellcoder.com/aggbug.aspx?PostID=16062" width="1" height="1"&gt;</description></item><item><title>PLINQO: Professional LINQ to Objects</title><link>http://spellcoder.com/blogs/beckham/archive/2008/07/07/14480.aspx</link><pubDate>Mon, 07 Jul 2008 14:07:00 GMT</pubDate><guid isPermaLink="false">a16baff4-3230-4c5e-a3c8-9de643cdfe45:14480</guid><dc:creator>beckham</dc:creator><slash:comments>0</slash:comments><description>


&lt;p class="MsoNormal"&gt;&lt;span&gt;&lt;font face="Times New Roman" size="4"&gt;&lt;u&gt;&lt;b&gt;PLINQO&lt;/b&gt;&lt;/u&gt;, &lt;/font&gt;which stands for Professional LINQ to Objects, is a
collection of &lt;a href="http://www.codesmithtools.com/"&gt;Code Smith&lt;/a&gt; templates that are meant to replace and extend the
LINQ to SQL designers that are included with Visual Studio 2008.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;h1&gt;&lt;font size="2"&gt;&lt;span&gt;For more information about PLINQO
Check out &lt;a href="http://community.codesmithtools.com/blogs/pwelter/"&gt;Paul welter's&lt;/a&gt; post &lt;a href="http://community.codesmithtools.com/blogs/pwelter/archive/2007/08/08/plinqo.aspx"&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/font&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h1&gt;

Beckham&lt;img src="http://spellcoder.com/aggbug.aspx?PostID=14480" width="1" height="1"&gt;</description><category domain="http://spellcoder.com/blogs/beckham/archive/category/1066.aspx">LINQ</category><category domain="http://spellcoder.com/blogs/beckham/archive/category/1068.aspx">C#</category></item><item><title>Bashmohandes Blogs has moved!</title><link>http://spellcoder.com/blogs/bashmohandes/archive/2008/06/29/14371.aspx</link><pubDate>Sun, 29 Jun 2008 08:27:00 GMT</pubDate><guid isPermaLink="false">a16baff4-3230-4c5e-a3c8-9de643cdfe45:14371</guid><dc:creator>Mohammed Hossam</dc:creator><slash:comments>0</slash:comments><description>Hey,&lt;br&gt;I have moved my blogs to MSDN blogs, so if you are interested in following up, update your address book, RSS reader or anything else with the new address&lt;br&gt;&lt;font size="4"&gt;&lt;a href="http://blogs.msdn.com/bashmohandes"&gt;http://blogs.msdn.com/bashmohandes&lt;/a&gt;&lt;/font&gt;&lt;br&gt;Or you can use &lt;br&gt;&lt;font size="4"&gt;&lt;a href="http://www.Bashmohandes.com"&gt;http://www.Bashmohandes.com&lt;/a&gt;&lt;/font&gt;&lt;br&gt;&lt;br&gt;Thanks for spellcoder for hosting my blogs for the last 2 years :)&lt;br&gt;&lt;img src="http://spellcoder.com/aggbug.aspx?PostID=14371" width="1" height="1"&gt;</description></item><item><title>Python Arabic Book</title><link>http://spellcoder.com/blogs/tayseer/archive/2008/06/23/Python_Arabic_Book.aspx</link><pubDate>Mon, 23 Jun 2008 14:53:00 GMT</pubDate><guid isPermaLink="false">a16baff4-3230-4c5e-a3c8-9de643cdfe45:14354</guid><dc:creator>tayseer</dc:creator><slash:comments>0</slash:comments><description>A friend told me that there is an arabic book for Python, which is a translation of "Byte of Python", one of the most popular Python books.This is a good step toward popularizing Python, specially among children.Please go and download the arabic version. Read it, and tell the author about any enhancements that the book needs....(&lt;a href="http://spellcoder.com/blogs/tayseer/archive/2008/06/23/Python_Arabic_Book.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://spellcoder.com/aggbug.aspx?PostID=14354" width="1" height="1"&gt;</description><category domain="http://spellcoder.com/blogs/tayseer/archive/category/1045.aspx">Python</category></item><item><title>Help spread Firefox</title><link>http://spellcoder.com/blogs/tayseer/archive/2008/06/17/Help_spread_Firefox.aspx</link><pubDate>Tue, 17 Jun 2008 10:44:00 GMT</pubDate><guid isPermaLink="false">a16baff4-3230-4c5e-a3c8-9de643cdfe45:14299</guid><dc:creator>tayseer</dc:creator><slash:comments>1</slash:comments><description>

...(&lt;a href="http://spellcoder.com/blogs/tayseer/archive/2008/06/17/Help_spread_Firefox.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://spellcoder.com/aggbug.aspx?PostID=14299" width="1" height="1"&gt;</description><category domain="http://spellcoder.com/blogs/tayseer/archive/category/1043.aspx">Nice web</category></item><item><title>Funny bug in ASP.NET MVC While creating a new project</title><link>http://spellcoder.com/blogs/beckham/archive/2008/06/06/14188.aspx</link><pubDate>Fri, 06 Jun 2008 11:36:00 GMT</pubDate><guid isPermaLink="false">a16baff4-3230-4c5e-a3c8-9de643cdfe45:14188</guid><dc:creator>beckham</dc:creator><slash:comments>4</slash:comments><description>While i was playing with ASP.NET MVC CTP3 i met this funny bug while creating a new MVC project in visual studio 2008: &lt;BR&gt;&lt;BR&gt;1- Create a new mvc project and choose to have a test project. &lt;BR&gt;&lt;BR&gt;2- In the project name put "-". &lt;BR&gt;&lt;BR&gt;&lt;IMG src="http://img260.imageshack.us/img260/5576/newprojectva8.png"&gt; &lt;BR&gt;&lt;BR&gt;3- Hit ok, The project will be created succefully, That's great but try to build. &lt;BR&gt;&lt;BR&gt;&lt;IMG src="http://img133.imageshack.us/img133/8917/nobuilddz9.png"&gt; &lt;BR&gt;&lt;BR&gt;Apperantly the "-" has been replaced With "_" in the namespace name but the odd thing they didn't use the right name in the test project :) &lt;BR&gt;&lt;BR&gt;&lt;IMG src="http://img133.imageshack.us/img133/2803/replacingdashwithundersvv4.png"&gt; &lt;BR&gt;&lt;BR&gt;&lt;B&gt;And here is the bug:&lt;/B&gt; &lt;BR&gt;&lt;BR&gt;&lt;IMG src="http://img210.imageshack.us/img210/5106/thebugwz6.png"&gt; &lt;BR&gt;&lt;BR&gt;Beckham &lt;img src="http://spellcoder.com/aggbug.aspx?PostID=14188" width="1" height="1"&gt;</description><category domain="http://spellcoder.com/blogs/beckham/archive/category/1065.aspx">Asp.Net MVC</category></item><item><title>My longest two weeks ever</title><link>http://spellcoder.com/blogs/bashmohandes/archive/2008/05/19/13688.aspx</link><pubDate>Mon, 19 May 2008 07:44:38 GMT</pubDate><guid isPermaLink="false">a16baff4-3230-4c5e-a3c8-9de643cdfe45:13688</guid><dc:creator>Mohammed Hossam</dc:creator><slash:comments>13</slash:comments><description>&lt;p&gt;Hey, It's been a while since my last blog post, I was somehow busy getting married, moving to another country, dealing with tons of paper work, however finally I had a weekend, and I am back to blogging, I have a lot to say, and I think it will be interesting enough for you to keep reading till the end&lt;/p&gt; &lt;p&gt;So basically this is what I am going to blog about today&lt;/p&gt; &lt;ol&gt; &lt;li&gt;Last days in Cairo  &lt;li&gt;Moving to Canada &amp;amp; Vancouver City  &lt;li&gt;Microsoft Canada Development Center (MCDC)  &lt;ol&gt; &lt;li&gt;First Days  &lt;li&gt;MCDC Cares Day&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;/ol&gt; &lt;h2&gt;Last days in Cairo&lt;/h2&gt; &lt;p&gt;The past two weeks started with my wedding arrangement and God, this is very exhausting, lots of stuff to deal with, writing a guest list, however Thanks to Facebook I didn't have to call everybody, and the result I came out of the wedding experience is, my kids whatever their IQ will be, they will have one of two options in their career life, either being a wedding planner or a hair dresser and/or make up artist.&lt;/p&gt; &lt;p&gt;The wedding was nice, it was a very nice opportunity for me to see everybody before being relocated to Canada, I really thank everyone for showing up that night, I was really proud of my friends.&lt;/p&gt; &lt;h2&gt;Moving to Canada &amp;amp; Vancouver City&lt;/h2&gt; &lt;p&gt;Couple of days after my wedding I was in the plane with my wife heading to Vancouver, we had a 20 hours journey from Cairo, we had a connection in London, the flight went smooth and very nice, however my back hurts when I recall sitting for 10 hours from London to Vancouver.&lt;/p&gt; &lt;p&gt;Once we arrived to Vancouver, we took a cab to our temp house, the first thing I noticed the high-tech cabs, the cab has a GPS with maps for the city, and also a very interesting fare counter, the counter was moving like a stop watch, even when the cab wasn't moving, the counter continues to move, the ride from the Airport to the temp house, which took around 15 mins cost about 27 CAD.&lt;/p&gt; &lt;p&gt;The city is wonderful, the streets are clean, nice and easy to learn, people are extra friendly, both cars and people are moving according to traffic rules, &lt;em&gt;this is quite interesting for anyone coming from a country like Egypt :)&lt;/em&gt;&lt;/p&gt; &lt;p&gt;The temp house is in a very nice area, &lt;a href="http://maps.google.com/maps/ms?ie=UTF8&amp;amp;hl=en&amp;amp;msa=0&amp;amp;msid=106452306885848120539.00044c4615cc3b99f6258&amp;amp;t=h&amp;amp;z=17" target="_blank"&gt;Map&lt;/a&gt;, I am in the 29th floor, so I have an amazing view of the sea and the mountains.&lt;/p&gt; &lt;p&gt;My first couple of days were very hard, because of the electricity here in Vancouver, the problem that the voltage range here is 100~110, while Egypt is 200~220 so many devices I had didn't work, also I found the strange outlet in the wall, which is different from the Egyptian outlets, so all devices like Laptops, Mobiles ... etc went out of charge during the first couple of days, I had to find a store where I can buy some adapters, in these days I felt like stone age, no mobile phones, no computers, no Internet, how could we live 15 years before today, Once I got the adapters I could communicate with my friends who arrived in Vancouver city couple of days before me (Haytham, Mustafa and Abdullah)&lt;/p&gt; &lt;p&gt;&lt;em&gt;Also a nice tip, when I was changing money from Egypt, CAD was cheaper than USD, in Vancouver, CAD is higher than USD, so I lost some money when I exchanged some USD to CAD here in Vancouver.&lt;/em&gt;&lt;/p&gt; &lt;p&gt;Live/Google maps works great in Vancouver, and all Canada area, providing great help for directions and finding addresses, Google Maps though has a nice feature to give direction in public transit, so you can see which busses you'll need to take and at what time.&lt;/p&gt; &lt;h2&gt;Microsoft Canada Development Center&lt;/h2&gt; &lt;p align="center"&gt;&lt;img src="http://farm3.static.flickr.com/2385/2504083019_40386a892d.jpg?v=0"&gt; &lt;br&gt;&lt;em&gt;In the picture from left, Abdullah, Mostafa and Me&lt;/em&gt;&lt;/p&gt; &lt;p align="center"&gt;&lt;img src="http://farm3.static.flickr.com/2261/2504080939_364a88f51a.jpg?v=0"&gt;&lt;br&gt;&lt;em&gt;In the picture from left, Abdullah, Mustafa and Haytham&lt;/em&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;Here comes the first day @ Microsoft, the first day started in a park nearby Microsoft, the day started with some introductory sessions about Microsoft Canada, and Microsoft future of Computing, and the future vision of MS.&lt;/p&gt; &lt;p&gt;After couple of hours we went to MCDC, we had a nice tour around the facility, the place is very amazing, simple and fun, some parts still under construction.&lt;/p&gt; &lt;p&gt;People there are from everywhere, it is like a small united nations, Egyptians are all over the place and we are increasing, in our batch there was 7 Egyptians out 31 new hires, this is quite nice number.&lt;/p&gt; &lt;p&gt;Then after the tour we had another session about the needed paperwork, lots of forms to fill, I had to write my name about 50 times later this night when filling in the forms, then we head to our offices.&lt;/p&gt; &lt;p&gt;My office is in Building 3, Office 1077B, I am sharing the same office room with Mostafa, every dev is using two machines, one for web surfing, email, IM, ... etc and the other for development, the machines are GREAT, I even found people working in triple machine setup according to their work needs.&lt;/p&gt; &lt;p&gt;&lt;img src="http://farm3.static.flickr.com/2091/2504913060_b113fbfa0d.jpg?v=0"&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;In the first day my manager called me from Redmond, I IMed the other team mates, I found out that I am the only dev outside Redmond in my team.&lt;/p&gt; &lt;p&gt;During the first days, we were all busy finishing the paperwork, we didn't start working yet, however in the forth day we had a great experience.&lt;/p&gt; &lt;h4&gt;MCDC Cares&lt;/h4&gt; &lt;p&gt;Since our first day, we were asked to join this event, the event called MCDC Cares, is a community work program that Microsoft will help the Richmond city in building a 700ft long boardwalk in Richmond Park, the idea is that this part of the park is very muddy that no visitors can get inside, so Microsoft decided to help in building this boardwalk by providing manpower (150 computer geeks) for a whole day.&lt;/p&gt; &lt;p&gt;So early on May 15th, all Microsoft Canada Development Center gathered in the cafeteria where Parminder (Par) Singh, the Managing Director of MCDC gave a short speech to everybody&lt;/p&gt; &lt;p align="center"&gt;&lt;img src="http://farm4.static.flickr.com/3112/2504913600_e498f05925.jpg?v=0"&gt; &lt;br&gt;&lt;em&gt;In the picture Parminder Singh&lt;/em&gt;&lt;/p&gt; &lt;p align="left"&gt;After this we all moved to the park, the park is quite big, it was my first time to actually feel being in the woods, were the trees are very high and land is either very green or very muddy.&lt;/p&gt; &lt;p align="left"&gt;&lt;img src="http://farm3.static.flickr.com/2415/2504082181_b8d44c7a28.jpg?v=0"&gt; &lt;/p&gt; &lt;p align="left"&gt;In this picture the completed part of the boardwalk we were about to complete, the&amp;nbsp; boardwalk goes very deep into the woods.&lt;/p&gt; &lt;p align="left"&gt;So first things first, we had to move 1500 pieces of wood from the parking area outside the park to the working place deep into the woods, about 800m distance, this part of the job took around 4~5 hours.&lt;/p&gt; &lt;p align="left"&gt;After this phase we had a lunch break and during this break&lt;/p&gt; &lt;p align="left"&gt;&lt;img src="http://farm3.static.flickr.com/2240/2504914480_b4e4f17d19.jpg?v=0"&gt;&lt;/p&gt; &lt;p align="left"&gt;Then phase 2 started, the phase 2 was to nail the 1500 pieces of wood we moved in phase 1 with 6 nails per piece, so in a period of 3 hours we had to hummer about 9000 nails manually.&lt;/p&gt; &lt;p align="left"&gt;Then we head back to MCDC, very exhausted but very happy with the work we've done, this boardwalk will be there for ages, and this was a very nice opportunity to do something useful.&lt;/p&gt; &lt;p align="left"&gt;In MCDC we had a BBQ party for everyone so the day ended pretty much after the BBQ, then I believe that everybody slept like a baby for more than 9 hours :)&lt;/p&gt; &lt;p align="left"&gt;&lt;a href="http://www.ctvbc.ctv.ca/servlet/an/local/CTVNews/20080107/WhereWeLive/20080107" target="_blank"&gt;Here you can find the TV coverage of MCDC Cares day&lt;/a&gt;&lt;/p&gt; &lt;p align="left"&gt;If you read this line so you survived the whole blog post, thank you for reading this, I will be blogging again &amp;amp; again, so keep in touch :)&lt;/p&gt;&lt;img src="http://spellcoder.com/aggbug.aspx?PostID=13688" width="1" height="1"&gt;</description><category domain="http://spellcoder.com/blogs/bashmohandes/archive/category/1008.aspx">News</category></item><item><title>Stupid Type Systems - Innecessary Casting in C#</title><link>http://spellcoder.com/blogs/tayseer/archive/2008/05/13/Stupid_Type_Systems.aspx</link><pubDate>Tue, 13 May 2008 17:22:00 GMT</pubDate><guid isPermaLink="false">a16baff4-3230-4c5e-a3c8-9de643cdfe45:13488</guid><dc:creator>tayseer</dc:creator><slash:comments>2</slash:comments><description>If List&amp;lt;&amp;gt; inherits IList&amp;lt;&amp;gt;, and MyIdentity inherits IIdentity, then why the heck the C# compiler cannot cast from List&amp;lt;MyIdentity&amp;gt; to IList&amp;lt;IIdentity&amp;gt;??????It is the same, the compiler is not smart enough to know this.So to satisfy the compiler - acting as a good compiler slave - I have to write thisIList&amp;lt;IIdentity&amp;gt; returnList = new List&amp;lt;IIdentity&amp;gt;(); // A variable name cannot be stupiderforeach (var item in originalList){&amp;nbsp;&amp;nbsp;&amp;nbsp; returnList.Add(item);}return...(&lt;a href="http://spellcoder.com/blogs/tayseer/archive/2008/05/13/Stupid_Type_Systems.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://spellcoder.com/aggbug.aspx?PostID=13488" width="1" height="1"&gt;</description><category domain="http://spellcoder.com/blogs/tayseer/archive/category/1044.aspx">.net</category><category domain="http://spellcoder.com/blogs/tayseer/archive/category/1046.aspx">Criticism</category></item><item><title>Silverlight and WCF</title><link>http://spellcoder.com/blogs/hossam/archive/2008/05/12/13475.aspx</link><pubDate>Mon, 12 May 2008 14:54:00 GMT</pubDate><guid isPermaLink="false">a16baff4-3230-4c5e-a3c8-9de643cdfe45:13475</guid><dc:creator>Hossam</dc:creator><slash:comments>0</slash:comments><description>today i had to make silverlight call WCF service so i made a normal wcf service and try to consume it with silverlight and it didn't work ,so i start the debug jury and it lead to no where ,then i serve the forums , blogs ,and documentation but no solution&lt;br&gt;you can check on silverlight forum.&lt;br&gt;&lt;a href="http://silverlight.net/forums/p/1119/2597.aspx"&gt;http://silverlight.net/forums/p/1119/2597.aspx&lt;/a&gt;&lt;br&gt;then i suspected that maybe silverlight client access policy is a must to connect to web service even in debug mode&amp;nbsp; so i added&amp;nbsp; clientaccesspolicy.xml&amp;nbsp; to my wcf&amp;nbsp; service and it works fine now&lt;br&gt;&lt;br&gt;the code for clientaccesspolicy.xml :&lt;br&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&lt;br&gt;&amp;lt;access-policy&amp;gt;&lt;br&gt;&amp;nbsp; &amp;lt;cross-domain-access&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;policy&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;allow-from&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;domain uri="*"/&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/allow-from&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;grant-to&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;resource path="/" include-subpaths="true"/&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/grant-to&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/policy&amp;gt;&lt;br&gt;&amp;nbsp; &amp;lt;/cross-domain-access&amp;gt;&lt;br&gt;&amp;lt;/access-policy&amp;gt;&lt;img src="http://spellcoder.com/aggbug.aspx?PostID=13475" width="1" height="1"&gt;</description></item><item><title>Windows Live Mesh</title><link>http://spellcoder.com/blogs/bashmohandes/archive/2008/04/23/12901.aspx</link><pubDate>Wed, 23 Apr 2008 09:23:50 GMT</pubDate><guid isPermaLink="false">a16baff4-3230-4c5e-a3c8-9de643cdfe45:12901</guid><dc:creator>Mohammed Hossam</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;&lt;a href="http://www.mesh.com" target="_blank"&gt;&lt;img border="0" align="left" src="https://a1.mesh.com/0.9.2815.4/images/LiveMeshLogo60.png"&gt;&lt;/a&gt; Microsoft has just launched a new Windows Live service called Live Mesh, the service is still in Tech Preview, which means a limited number of users (10,000) and a waiting list for the extra users, the whole concept of this service is synchronizing all devices (PC's, Laptop, Mobiles, ... etc) as long as all of them are running any version of Windows.&lt;/p&gt; &lt;p&gt;If you watched &lt;a href="http://sessions.visitmix.com/?selectedSearch=KYN0801" target="_blank"&gt;Ray Ozzie keynote in Mix&lt;/a&gt; last March, he pointed to the Live experience, and I think this product is one a new series of products in this direction.&lt;/p&gt; &lt;p&gt;This strategy shift was also mentioned on &lt;a href="http://www.techcrunch.com/2008/04/22/the-ozzie-memo%e2%80%94software-is-dead-long-live-the-web/" target="_blank"&gt;TechCrunch from Ray Ozzie memo to employees&lt;/a&gt;&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;&lt;em&gt;Central to this strategy is our embrace of both a world of the web and a world of devices. Over the past ten years, the PC era has given way to an era in which the web is at the center of our experiences – experiences delivered not just through the browser but also through many different devices including PCs, phones, media players, game consoles, set-top boxes and televisions, cars, and more.&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;&lt;a href="http://www.scribd.com/word/full/2603500?access_key=key-15o38nqxcf0mbhrre6x4" target="_blank"&gt;Read the whole memo here&lt;/a&gt;&lt;/p&gt;&lt;img src="http://spellcoder.com/aggbug.aspx?PostID=12901" width="1" height="1"&gt;</description></item><item><title>DLR Hosting Examples for IronPython Beta 1 on C# 3.0</title><link>http://spellcoder.com/blogs/dodyg/archive/2008/04/15/12273.aspx</link><pubDate>Tue, 15 Apr 2008 08:08:44 GMT</pubDate><guid isPermaLink="false">a16baff4-3230-4c5e-a3c8-9de643cdfe45:12273</guid><dc:creator>dodyg</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;Well, DLR hosting API has been all over the place and some of the obvious convenient methods in IronPython 1.1 such as CreateMethod disappears. The latest DLR hosting spec was released on Jan 3, 2008 and it was out of sync from the latest IronPython 2 Beta 1.&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;I spent a couple of hours yesterday to investigate the new DLR hosting implementation in IronPython 2 Beta 1 and have successfully figured out the "new ways" of DLR hosting API.&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;Copy these codes and run it in your environment. Replace the "X2" or "2" suffix in some of the namespace. I had to do this because I am working on a CMS that works on ASP.Net Futures 2007 release with IronPython 2 Alpha 1 as the implemenation for the asp.net support&amp;nbsp; and I have a code execution engine that I want to upgrade from IronPython 1.1 to the latest beta. Naturally those two IronPython runtime clashed and I have to recompile the IronPython Beta 2 with new namespace and assembly name.&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;The following codes demonstrate of the capabilities for the "hosting scenario level 2" (per DLR hosting spec). Enjoy.&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;&lt;font face="Courier New"&gt;using System;&lt;br&gt;using System.Collections.Generic;&lt;br&gt;using System.Linq;&lt;br&gt;using System.Text;&lt;br&gt;using Microsoft.Scripting2.Hosting;&lt;br&gt;using IronPythonX2.Hosting;&lt;br&gt;using IronPythonX2.Modules;&lt;br&gt;using IronPythonX2.Runtime;&lt;br&gt;using IronPythonX2.Runtime.Exceptions;&lt;br&gt;using MbUnit.Framework;&lt;br&gt;using Microsoft.Scripting2;&lt;br&gt;using Microsoft.Scripting2.Runtime; &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;namespace HostingRunner&lt;br&gt;{ &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public class Simple&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ScriptEngine _engine;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ScriptScope _scope;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public Simple()&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _engine = ScriptRuntime.Create().GetEngine("py"); &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var sy = new SymbolDictionary()&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { SymbolTable.StringToId("n"), 10}&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _scope = _engine.CreateScope(sy);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public string ExecuteBLOCKED EXPRESSION&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _scope.SetVariable("n", 10); &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var code = @"&lt;br&gt;x = 1 + 1 &lt;br&gt;";&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var compiledCode = _engine.CreateScriptSourceFromString(code, Microsoft.Scripting2.SourceCodeKind.Statements); &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; compiledCode.Execute(_scope);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return _scope.GetVariable&amp;lt;int&amp;gt;("x").ToString();&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch (Microsoft.Scripting2.SyntaxErrorException e)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return e.Line + " : " + e.Column + " : " + e.Message;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch (Exception e)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return e.Message;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public string CreateMethod()&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var code = @"&lt;br&gt;def function():&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 1 + 1 + 200 &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;";&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var sourceCode = _engine.CreateScriptSourceFromString(code, Microsoft.Scripting2.SourceCodeKind.Statements); &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sourceCode.Execute(_scope); &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return _engine.GetVariable&amp;lt;Func&amp;lt;int&amp;gt;&amp;gt;(_scope, "function")().ToString(); &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public string CallOneCodeMultipleScope()&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _scope.SetVariable("n", 16); &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var code = @"&lt;br&gt;def function():&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 1 + n &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;";&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var compiledCode = _engine.CreateScriptSourceFromString(code, Microsoft.Scripting2.SourceCodeKind.Statements).Compile();&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; compiledCode.Execute(_scope); &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var firstResult = _engine.GetVariable&amp;lt;Func&amp;lt;int&amp;gt;&amp;gt;(_scope, "function")(); &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var secondScope = _engine.CreateScope();&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; secondScope.SetVariable("n", 10); &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var secondResult = _engine.GetVariable&amp;lt;Func&amp;lt;int&amp;gt;&amp;gt;(_scope, "function")(); &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return (firstResult + secondResult).ToString();&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public string CallMultipleExecutionOverASingleScope()&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var code = @"&lt;br&gt;def function():&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 1 + 1"; &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _engine.CreateScriptSourceFromString(code, Microsoft.Scripting2.SourceCodeKind.Statements).Execute(_scope); &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var code2 = @"&lt;br&gt;def function2():&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 10 + function()&lt;br&gt;";&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var compiledCode = _engine.CreateScriptSourceFromString(code2, SourceCodeKind.Statements).Compile(); &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; compiledCode.Execute(_scope); &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return _engine.GetVariable&amp;lt;Func&amp;lt;int&amp;gt;&amp;gt;(_scope, "function2")().ToString();&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public string CallLoadExternalAssembly()&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _engine.Runtime.LoadAssembly(System.Reflection.Assembly.LoadWithPartialName("SK.Framework")); &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var code = @"&lt;br&gt;import clr&lt;br&gt;clr.AddReference(""SK.Framework"")&lt;br&gt;from SK.Framework import Unique&lt;br&gt;"; &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _engine.CreateScriptSourceFromString(code, Microsoft.Scripting2.SourceCodeKind.Statements).Execute(_scope); &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var code2 = @"&lt;br&gt;def function2():&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return Unique.Empty.Value&lt;br&gt;";&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var compiledCode = _engine.CreateScriptSourceFromString(code2, SourceCodeKind.Statements).Compile(); &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; compiledCode.Execute(_scope); &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return _engine.GetVariable&amp;lt;Func&amp;lt;int&amp;gt;&amp;gt;(_scope, "function2")().ToString();&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;} &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;namespace HostingRunner&lt;br&gt;{&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [TestFixture]&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public class SimpleTest&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Simple _simple;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [SetUp]&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void Setup()&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _simple = new Simple();&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Test]&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void TestScope()&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var value = _simple.ExecuteBLOCKED EXPRESSION; &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Assert.IsTrue(value == "2", "value must be equal 1 + 1 instead of " + value);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Test]&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void TestDelegate()&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var value = _simple.CreateMethod(); &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Assert.IsTrue(value == "2", "value must be equal 1 + 1 instead of " + value);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Test]&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void TestCompiledCode()&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var value = _simple.CallOneCodeMultipleScope(); &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Assert.IsTrue(value == "34", "value must be equal 1 + 1 instead of " + value);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Test]&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void TestMultipleExecution()&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var value = _simple.CallMultipleExecutionOverASingleScope(); &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Assert.IsTrue(value == "12", "value must be equal 55 instead of " + value);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Test]&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void TestReference()&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var value = _simple.CallLoadExternalAssembly(); &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Assert.IsTrue(value == "-12", "value must be equal 12 instead of " + value);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;}&lt;/font&gt;&lt;/p&gt;&lt;img src="http://spellcoder.com/aggbug.aspx?PostID=12273" width="1" height="1"&gt;</description></item><item><title>SOA via WCF in CuttingEdgeClub (ITWorx)</title><link>http://spellcoder.com/blogs/bashmohandes/archive/2008/04/11/11980.aspx</link><pubDate>Fri, 11 Apr 2008 20:55:00 GMT</pubDate><guid isPermaLink="false">a16baff4-3230-4c5e-a3c8-9de643cdfe45:11980</guid><dc:creator>Mohammed Hossam</dc:creator><slash:comments>0</slash:comments><description>&lt;P&gt;Hey, I will be giving a presentation in ITWorx CuttingEdgeClub, the presentation is similar to the one I did in SKDD II (SOA via WCF), however I will add to it more slides about REST, ROA and WCF Restful services, I wish it becomes more exciting and interesting.&lt;/P&gt;
&lt;P&gt;Here is the poster Thanks to &lt;A href="http://www.designrific.com/" target=_blank&gt;Mostafa Mourad&lt;/A&gt; :)&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://farm4.static.flickr.com/3207/2405585097_2810078f44_o.jpg"&gt; &lt;/P&gt;
&lt;DIV id=scid:0767317B-992E-4b12-91E0-4F059A8CECA8:bda9f54f-97c2-48c2-bcd0-0f7acc35b8d1 class=wlWriterSmartContent&gt;Technorati Tags: &lt;A href="http://technorati.com/tags/WCF" rel=tag&gt;WCF&lt;/A&gt;,&lt;A href="http://technorati.com/tags/SOA" rel=tag&gt;SOA&lt;/A&gt;,&lt;A href="http://technorati.com/tags/REST" rel=tag&gt;REST&lt;/A&gt;,&lt;A href="http://technorati.com/tags/ROA" rel=tag&gt;ROA&lt;/A&gt;&lt;/DIV&gt;&lt;img src="http://spellcoder.com/aggbug.aspx?PostID=11980" width="1" height="1"&gt;</description><category domain="http://spellcoder.com/blogs/bashmohandes/archive/category/1017.aspx">WCF (Indigo)</category><category domain="http://spellcoder.com/blogs/bashmohandes/archive/category/1064.aspx">Architecture</category></item><item><title>Wrap ContinuousText Inside Label</title><link>http://spellcoder.com/blogs/beckham/archive/2008/04/11/11916.aspx</link><pubDate>Fri, 11 Apr 2008 12:37:00 GMT</pubDate><guid isPermaLink="false">a16baff4-3230-4c5e-a3c8-9de643cdfe45:11916</guid><dc:creator>beckham</dc:creator><slash:comments>1</slash:comments><description>&lt;P&gt;Hey guys, I was wondering if any of you has the situation of displaying a text in a label?? sure you&amp;nbsp;did. but imagine the text is tooooo long that it's displayed in a long line, Now if you put it in the label it will be displayed in a long line too, to solve this problem there is a lot of solutions you will find if you &lt;A href="http://www.google.com.eg/search?sourceid=navclient&amp;amp;ie=UTF-8&amp;amp;rlz=1T4AMSA_enEG259EG259&amp;amp;q=wrap+text+inside+label"&gt;google it&lt;/A&gt;. you can use a textbox and give it the look of&amp;nbsp;a label and set the wrap property to true this will do the trick. but what if you have a devil user or actually&amp;nbsp;" QE Teammate ", and the text he entered is continuous as it was one word in this case it will not be wrapped. so here is a littel extension string helper&amp;nbsp;method that warps the string into lines of length given as a parameter.&lt;BR&gt;The idea here is to devide the string&amp;nbsp;into lines and put a line break tag at the end of the line.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;IMG src="http://img142.imageshack.us/img142/3077/wrapextensionmethodhy2.jpg"&gt; 
&lt;P&gt;Ofcourse it has some drawback such as the last word of the line might be splitted.but you can put "-" or something like this at the end of the line.&lt;/P&gt;
&lt;P&gt;Hope this is helpfu, The source code is attached.&lt;/P&gt;
&lt;P&gt;Beckham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://spellcoder.com/aggbug.aspx?PostID=11916" width="1" height="1"&gt;</description><enclosure url="http://spellcoder.com/blogs/beckham/attachment/11916.ashx" length="4570" type="application/x-zip-compressed" /><category domain="http://spellcoder.com/blogs/beckham/archive/category/1067.aspx">Tips &amp;amp; Tricks</category><category domain="http://spellcoder.com/blogs/beckham/archive/category/1068.aspx">C#</category></item></channel></rss>