<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://aspxwizard.net/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><title type="html">.net Wand</title><subtitle type="html">.net used for magic </subtitle><id>http://aspxwizard.net/blogs/wand/atom.aspx</id><link rel="alternate" type="text/html" href="http://aspxwizard.net/blogs/wand/default.aspx" /><link rel="self" type="application/atom+xml" href="http://aspxwizard.net/blogs/wand/atom.aspx" /><generator uri="http://communityserver.org" version="3.1.20917.1142">Community Server</generator><updated>2007-12-24T02:23:00Z</updated><entry><title>Dynamically Resize an IFrame According to its contents</title><link rel="alternate" type="text/html" href="http://aspxwizard.net/blogs/wand/archive/2008/11/25/dynamically-resize-an-iframe-according-to-its-contents.aspx" /><id>http://aspxwizard.net/blogs/wand/archive/2008/11/25/dynamically-resize-an-iframe-according-to-its-contents.aspx</id><published>2008-11-25T12:30:49Z</published><updated>2008-11-25T12:30:49Z</updated><content type="html">problem with iframe is that you can&amp;#39;t always predict the size of the content and eventually you&amp;#39;d end up with a scrollbar or even less convenient: a hidden part of the Iframe content this is a straight forward, easy way to make sure that the IFrame is properly resized according to the contents of the page loaded inside the Iframe. this will rely on the browser itself measuring the content width and height this can be done by using the document.body.scrollHeight and document.body.scrollWidth...(&lt;a href="http://aspxwizard.net/blogs/wand/archive/2008/11/25/dynamically-resize-an-iframe-according-to-its-contents.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://aspxwizard.net/aggbug.aspx?PostID=7955" width="1" height="1"&gt;</content><author><name>amir.magdy</name><uri>http://aspxwizard.net/members/amir.magdy.aspx</uri></author><category term="tips" scheme="http://aspxwizard.net/blogs/wand/archive/tags/tips/default.aspx" /><category term="javascript" scheme="http://aspxwizard.net/blogs/wand/archive/tags/javascript/default.aspx" /></entry><entry><title>Google Browser Chrome</title><link rel="alternate" type="text/html" href="http://aspxwizard.net/blogs/wand/archive/2008/09/01/google-browser-chrome.aspx" /><id>http://aspxwizard.net/blogs/wand/archive/2008/09/01/google-browser-chrome.aspx</id><published>2008-09-01T21:12:58Z</published><updated>2008-09-01T21:12:58Z</updated><content type="html">Google have disclosed that they&amp;#39;re going to release a new browser called Chrome. this is big news here is the link ,these are comics that google released to explain about the browser....(&lt;a href="http://aspxwizard.net/blogs/wand/archive/2008/09/01/google-browser-chrome.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://aspxwizard.net/aggbug.aspx?PostID=1641" width="1" height="1"&gt;</content><author><name>amir.magdy</name><uri>http://aspxwizard.net/members/amir.magdy.aspx</uri></author><category term="industry news" scheme="http://aspxwizard.net/blogs/wand/archive/tags/industry+news/default.aspx" /></entry><entry><title>Most Used Javascript Date functions</title><link rel="alternate" type="text/html" href="http://aspxwizard.net/blogs/wand/archive/2008/08/21/most-used-javascript-functions.aspx" /><id>http://aspxwizard.net/blogs/wand/archive/2008/08/21/most-used-javascript-functions.aspx</id><published>2008-08-21T19:16:32Z</published><updated>2008-08-21T19:16:32Z</updated><content type="html">var OneDay = 1000*60*60*24; function subtractDates (firstDate,secondDate){ return Math.ceil(( new Date(firstDate).getTime() - new Date(secondDate).getTime())/(OneDay)); } function addDays (dateToAdd,amountInDays){ return new Date(dateToAdd.valueOf() + this .OneDay * amountInDays); } function daysInMonth (year,month){ var m = [31,28,31,30,31,30,31,31,30,31,30,31]; if (month != 2) return m[month - 1]; if (year%4 != 0) return m[1]; if (year%100 == 0 &amp;amp;&amp;amp; year%400 != 0) return m[1] return m[1]...(&lt;a href="http://aspxwizard.net/blogs/wand/archive/2008/08/21/most-used-javascript-functions.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://aspxwizard.net/aggbug.aspx?PostID=1445" width="1" height="1"&gt;</content><author><name>amir.magdy</name><uri>http://aspxwizard.net/members/amir.magdy.aspx</uri></author><category term="javascript" scheme="http://aspxwizard.net/blogs/wand/archive/tags/javascript/default.aspx" /></entry><entry><title>Android 0.9</title><link rel="alternate" type="text/html" href="http://aspxwizard.net/blogs/wand/archive/2008/08/18/android-0-9.aspx" /><id>http://aspxwizard.net/blogs/wand/archive/2008/08/18/android-0-9.aspx</id><published>2008-08-19T06:17:55Z</published><updated>2008-08-19T06:17:55Z</updated><content type="html">Android 0.9 has just launched it has major UI updates Download it here http://code.google.com/android/download_list.html...(&lt;a href="http://aspxwizard.net/blogs/wand/archive/2008/08/18/android-0-9.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://aspxwizard.net/aggbug.aspx?PostID=1409" width="1" height="1"&gt;</content><author><name>amir.magdy</name><uri>http://aspxwizard.net/members/amir.magdy.aspx</uri></author><category term="industry news" scheme="http://aspxwizard.net/blogs/wand/archive/tags/industry+news/default.aspx" /></entry><entry><title>Windows Fake URL test [hosts file]</title><link rel="alternate" type="text/html" href="http://aspxwizard.net/blogs/wand/archive/2008/03/09/windows-fake-url-test-hosts-file.aspx" /><id>http://aspxwizard.net/blogs/wand/archive/2008/03/09/windows-fake-url-test-hosts-file.aspx</id><published>2008-03-09T12:33:42Z</published><updated>2008-03-09T12:33:42Z</updated><content type="html">you can make your application respond with a different behavior based on requested URL, This can be as simple as showing a different logo or as sophisticated as filtering data by that requested domain this is not such a big implementation problem, but it seems hard to test that is if you don&amp;#39;t know how to fake that URL request on your localhost well there&amp;#39;s a file in this path on a windows environment %windir%\system32\drivers\etc\hosts this file contains the definition of the keyword &amp;quot;localhost&amp;quot;...(&lt;a href="http://aspxwizard.net/blogs/wand/archive/2008/03/09/windows-fake-url-test-hosts-file.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://aspxwizard.net/aggbug.aspx?PostID=139" width="1" height="1"&gt;</content><author><name>amir.magdy</name><uri>http://aspxwizard.net/members/amir.magdy.aspx</uri></author><category term="tips" scheme="http://aspxwizard.net/blogs/wand/archive/tags/tips/default.aspx" /></entry><entry><title>2008 Launch Event in Egypt [heroes happen here]</title><link rel="alternate" type="text/html" href="http://aspxwizard.net/blogs/wand/archive/2008/03/06/2008-launch-event-in-egypt-heroes-happen-here.aspx" /><id>http://aspxwizard.net/blogs/wand/archive/2008/03/06/2008-launch-event-in-egypt-heroes-happen-here.aspx</id><published>2008-03-06T11:31:35Z</published><updated>2008-03-06T11:31:35Z</updated><content type="html">on the 24th of march in Egypt register here...(&lt;a href="http://aspxwizard.net/blogs/wand/archive/2008/03/06/2008-launch-event-in-egypt-heroes-happen-here.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://aspxwizard.net/aggbug.aspx?PostID=133" width="1" height="1"&gt;</content><author><name>amir.magdy</name><uri>http://aspxwizard.net/members/amir.magdy.aspx</uri></author><category term="industry news" scheme="http://aspxwizard.net/blogs/wand/archive/tags/industry+news/default.aspx" /></entry><entry><title>Internet Explorer Beta1 available for Download Now</title><link rel="alternate" type="text/html" href="http://aspxwizard.net/blogs/wand/archive/2008/03/06/internet-explorer-beta1-available-for-download-now.aspx" /><id>http://aspxwizard.net/blogs/wand/archive/2008/03/06/internet-explorer-beta1-available-for-download-now.aspx</id><published>2008-03-06T11:28:40Z</published><updated>2008-03-06T11:28:40Z</updated><content type="html">here is the link download it if u need to do testing on ur web applications, be ready....(&lt;a href="http://aspxwizard.net/blogs/wand/archive/2008/03/06/internet-explorer-beta1-available-for-download-now.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://aspxwizard.net/aggbug.aspx?PostID=132" width="1" height="1"&gt;</content><author><name>amir.magdy</name><uri>http://aspxwizard.net/members/amir.magdy.aspx</uri></author><category term="industry news" scheme="http://aspxwizard.net/blogs/wand/archive/tags/industry+news/default.aspx" /></entry><entry><title>Measurement of Code Quality</title><link rel="alternate" type="text/html" href="http://aspxwizard.net/blogs/wand/archive/2008/03/01/measurement-of-code-quality.aspx" /><id>http://aspxwizard.net/blogs/wand/archive/2008/03/01/measurement-of-code-quality.aspx</id><published>2008-03-01T10:11:43Z</published><updated>2008-03-01T10:11:43Z</updated><content type="html">there&amp;#39;s a lot of ways to measure size of code, and Complexity of code, but up till this post there&amp;#39;s nothing to measure the qualit of the code it was always subjective to meaure the quality of code but after this. sorry i had to post it, immediately after stumbling on it just now :D...(&lt;a href="http://aspxwizard.net/blogs/wand/archive/2008/03/01/measurement-of-code-quality.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://aspxwizard.net/aggbug.aspx?PostID=118" width="1" height="1"&gt;</content><author><name>amir.magdy</name><uri>http://aspxwizard.net/members/amir.magdy.aspx</uri></author><category term="fun" scheme="http://aspxwizard.net/blogs/wand/archive/tags/fun/default.aspx" /></entry><entry><title>Yield in c#</title><link rel="alternate" type="text/html" href="http://aspxwizard.net/blogs/wand/archive/2008/02/25/yield-in-c.aspx" /><id>http://aspxwizard.net/blogs/wand/archive/2008/02/25/yield-in-c.aspx</id><published>2008-02-25T11:47:36Z</published><updated>2008-02-25T11:47:36Z</updated><content type="html">i&amp;#39;ve been trying to explain the keyword yield to a friend of mine for more than an hour and he did not get it. but finally when i typed in this example he finally did 1: class enu :IEnumerable 2: { 3: public IEnumerator GetEnumerator() 4: { 5: yield return 1; 6: yield return 2; 7: yield return 3; 8: } 9: } it actually means that when you are enumerating this object it will return a different value/object on every iteration so the next time i revised this sample it was way easier to grasp the...(&lt;a href="http://aspxwizard.net/blogs/wand/archive/2008/02/25/yield-in-c.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://aspxwizard.net/aggbug.aspx?PostID=111" width="1" height="1"&gt;</content><author><name>amir.magdy</name><uri>http://aspxwizard.net/members/amir.magdy.aspx</uri></author><category term="tips" scheme="http://aspxwizard.net/blogs/wand/archive/tags/tips/default.aspx" /><category term="C#" scheme="http://aspxwizard.net/blogs/wand/archive/tags/C_2300_/default.aspx" /></entry><entry><title>Delegates to LINQ [passing logic as a parameter] (part I)</title><link rel="alternate" type="text/html" href="http://aspxwizard.net/blogs/wand/archive/2008/02/08/delegates-to-linq-passing-logic-as-a-parameter-part-i.aspx" /><id>http://aspxwizard.net/blogs/wand/archive/2008/02/08/delegates-to-linq-passing-logic-as-a-parameter-part-i.aspx</id><published>2008-02-08T17:03:22Z</published><updated>2008-02-08T17:03:22Z</updated><content type="html">it&amp;#39;s normal to pass data to a function just thow in a parameter of the type of data you want to pass and ur set public int add ( int i, int u ){ return i+u; } now think in a different way, u now want to build a set of operations that the user can choose from now what you need is to build a function that would take the user&amp;#39;s input and the operation as parameters and put them together... for instance he has a set of .. customers if you will and he wants to have them filtered in predefined...(&lt;a href="http://aspxwizard.net/blogs/wand/archive/2008/02/08/delegates-to-linq-passing-logic-as-a-parameter-part-i.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://aspxwizard.net/aggbug.aspx?PostID=107" width="1" height="1"&gt;</content><author><name>amir.magdy</name><uri>http://aspxwizard.net/members/amir.magdy.aspx</uri></author><category term=".net" scheme="http://aspxwizard.net/blogs/wand/archive/tags/.net/default.aspx" /><category term="C#" scheme="http://aspxwizard.net/blogs/wand/archive/tags/C_2300_/default.aspx" /></entry><entry><title>DotnetKicks on CommunityServer.org [in 24 seconds]</title><link rel="alternate" type="text/html" href="http://aspxwizard.net/blogs/wand/archive/2007/12/31/dotnetkicks-on-communityserver-org-in-24-seconds.aspx" /><id>http://aspxwizard.net/blogs/wand/archive/2007/12/31/dotnetkicks-on-communityserver-org-in-24-seconds.aspx</id><published>2007-12-31T09:10:54Z</published><updated>2007-12-31T09:10:54Z</updated><content type="html">i didn&amp;#39;t do this the right way i didn&amp;#39;t go through documentation or consult with forums, i just wanted to do this the quick and easy way, what i do is i keep a sepparate theme for my blog sepparate from other bloggers so i can change whatever i like without hurting anyone&amp;#39;s blogs so what i really did is i edited to theme pages to show the dotnetkicks button first the post.aspx page &amp;lt; csblog:weblogpostdata Property =&amp;quot;FormattedBody&amp;quot; IncrementViewCount =&amp;quot;true&amp;quot; runat...(&lt;a href="http://aspxwizard.net/blogs/wand/archive/2007/12/31/dotnetkicks-on-communityserver-org-in-24-seconds.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://aspxwizard.net/aggbug.aspx?PostID=74" width="1" height="1"&gt;</content><author><name>amir.magdy</name><uri>http://aspxwizard.net/members/amir.magdy.aspx</uri></author><category term="tips" scheme="http://aspxwizard.net/blogs/wand/archive/tags/tips/default.aspx" /><category term="tools" scheme="http://aspxwizard.net/blogs/wand/archive/tags/tools/default.aspx" /></entry><entry><title>Have u ever needed to extend a string? [Extension Methods]</title><link rel="alternate" type="text/html" href="http://aspxwizard.net/blogs/wand/archive/2007/12/27/have-u-ever-needed-to-extend-a-string-extension-methods.aspx" /><id>http://aspxwizard.net/blogs/wand/archive/2007/12/27/have-u-ever-needed-to-extend-a-string-extension-methods.aspx</id><published>2007-12-27T14:34:00Z</published><updated>2007-12-27T14:34:00Z</updated><content type="html">well it&amp;#39;s not inheritable by default so you can not extend it. that used to be the case before c# 3.0 now you can specify all the functionality that you need in an Extension Method. problem lies in that the extension method needs to access the instance of the object you are extending well, it goes like this 1- first you declare a static class with ur static extension method an extension method is defined by the first parameter refering to the instance of the object it&amp;#39;s going to extend using...(&lt;a href="http://aspxwizard.net/blogs/wand/archive/2007/12/27/have-u-ever-needed-to-extend-a-string-extension-methods.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://aspxwizard.net/aggbug.aspx?PostID=64" width="1" height="1"&gt;</content><author><name>amir.magdy</name><uri>http://aspxwizard.net/members/amir.magdy.aspx</uri></author><category term=".net" scheme="http://aspxwizard.net/blogs/wand/archive/tags/.net/default.aspx" /><category term="C#" scheme="http://aspxwizard.net/blogs/wand/archive/tags/C_2300_/default.aspx" /></entry><entry><title>Terminal server has exceeded maximum number of allowed connection [override maximum]</title><link rel="alternate" type="text/html" href="http://aspxwizard.net/blogs/wand/archive/2007/12/27/terminal-server-has-exceeded-maximum-number-of-allowed-connection-override-maximum.aspx" /><id>http://aspxwizard.net/blogs/wand/archive/2007/12/27/terminal-server-has-exceeded-maximum-number-of-allowed-connection-override-maximum.aspx</id><published>2007-12-27T10:55:06Z</published><updated>2007-12-27T10:55:06Z</updated><content type="html">well there&amp;#39;s an easy solution if need something urgently and u need to kick someone (close his session) mstsc -v:[UrServerNameOrIP] /console...(&lt;a href="http://aspxwizard.net/blogs/wand/archive/2007/12/27/terminal-server-has-exceeded-maximum-number-of-allowed-connection-override-maximum.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://aspxwizard.net/aggbug.aspx?PostID=63" width="1" height="1"&gt;</content><author><name>amir.magdy</name><uri>http://aspxwizard.net/members/amir.magdy.aspx</uri></author><category term="tips" scheme="http://aspxwizard.net/blogs/wand/archive/tags/tips/default.aspx" /></entry><entry><title>Object and Collection Initializers</title><link rel="alternate" type="text/html" href="http://aspxwizard.net/blogs/wand/archive/2007/12/26/object-and-collection-initializers.aspx" /><id>http://aspxwizard.net/blogs/wand/archive/2007/12/26/object-and-collection-initializers.aspx</id><published>2007-12-26T13:03:00Z</published><updated>2007-12-26T13:03:00Z</updated><content type="html">well also one of the nicest features in c# 3.0 is the object initializers well we used to do this 1: Employee emp = new Employee(); 2: emp.FirstName= &amp;quot;Amir&amp;quot; ; 3: emp.LastName= &amp;quot;Magdy&amp;quot; ; 4: emp.Title = &amp;quot;Mr.&amp;quot; ; i actually hated writing this previous snippet now in c# 3.0 we do this 1: var emp = new Employee {FirstName= &amp;quot;Amir&amp;quot; ,LastName= &amp;quot;Magdy&amp;quot; ,Title= &amp;quot;Mr.&amp;quot; }; u c that&amp;#39;s just one line it&amp;#39;s really nicer now that u don&amp;#39;t have to...(&lt;a href="http://aspxwizard.net/blogs/wand/archive/2007/12/26/object-and-collection-initializers.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://aspxwizard.net/aggbug.aspx?PostID=62" width="1" height="1"&gt;</content><author><name>amir.magdy</name><uri>http://aspxwizard.net/members/amir.magdy.aspx</uri></author><category term=".net" scheme="http://aspxwizard.net/blogs/wand/archive/tags/.net/default.aspx" /><category term="C#" scheme="http://aspxwizard.net/blogs/wand/archive/tags/C_2300_/default.aspx" /></entry><entry><title>Auto Implemented Properties</title><link rel="alternate" type="text/html" href="http://aspxwizard.net/blogs/wand/archive/2007/12/24/auto-implemented-properties.aspx" /><id>http://aspxwizard.net/blogs/wand/archive/2007/12/24/auto-implemented-properties.aspx</id><published>2007-12-24T10:23:00Z</published><updated>2007-12-24T10:23:00Z</updated><content type="html">C# 3 comes with a very nice feature (not undermining the power of lambda expressions and Linq), just this one shows how nice the language has evolved into 1: class Employee 2: { 3: public string firstName { get; set; } 4: } you see the previous code will act as a full blown property that maintains its instance value internally the compiler creates a member and maintains the value for the property and u can use it in the usual way 1: var emp = new Employee(); 2: emp.firstName = &amp;quot;Amir&amp;quot; ;...(&lt;a href="http://aspxwizard.net/blogs/wand/archive/2007/12/24/auto-implemented-properties.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://aspxwizard.net/aggbug.aspx?PostID=60" width="1" height="1"&gt;</content><author><name>amir.magdy</name><uri>http://aspxwizard.net/members/amir.magdy.aspx</uri></author><category term=".net" scheme="http://aspxwizard.net/blogs/wand/archive/tags/.net/default.aspx" /><category term="C#" scheme="http://aspxwizard.net/blogs/wand/archive/tags/C_2300_/default.aspx" /></entry></feed>