<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Joe Mele's Weblog</title>
	<atom:link href="http://joemele.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://joemele.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Sat, 24 Sep 2011 12:38:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='joemele.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Joe Mele's Weblog</title>
		<link>http://joemele.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://joemele.wordpress.com/osd.xml" title="Joe Mele&#039;s Weblog" />
	<atom:link rel='hub' href='http://joemele.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Monotouch and Lion</title>
		<link>http://joemele.wordpress.com/2011/07/29/monotouch-and-lion/</link>
		<comments>http://joemele.wordpress.com/2011/07/29/monotouch-and-lion/#comments</comments>
		<pubDate>Fri, 29 Jul 2011 15:26:02 +0000</pubDate>
		<dc:creator>joemele</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[iPAD]]></category>
		<category><![CDATA[IPhone]]></category>
		<category><![CDATA[MAC OS X]]></category>
		<category><![CDATA[Mono]]></category>
		<category><![CDATA[Monotouch]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[iPAD Monotouch Lion iPhone Xcode Mono]]></category>

		<guid isPermaLink="false">http://joemele.wordpress.com/?p=22</guid>
		<description><![CDATA[I have been like many developers following the progress of mono. Mono is the open source implementation of Microsoft&#8217;s proprietary .NET Framework.  There has been a lot of buzz on a recent development name Monotouch. Monotouch gives  you the developer the ability to program in C# for the iOS platform. The iOS platform consists of 3 products [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=joemele.wordpress.com&amp;blog=2260454&amp;post=22&amp;subd=joemele&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have been like many developers following the progress of <a href="http://go-mono.com" target="_blank">mono</a>. Mono is the open source implementation of Microsoft&#8217;s proprietary .NET Framework.  There has been a lot of buzz on a recent development name <a href="http://ios.xamarin.com/" target="_blank">Monotouch</a>. Monotouch gives  you the developer the ability to program in C# for the iOS platform.</p>
<p>The iOS platform consists of 3 products currently &#8211; <a href="http://www.apple.com/iphone/" target="_blank">iPhone</a>, <a href="http://www.apple.com/ipodtouch/" target="_blank">iPOD Touch</a> and the<a href="http://www.apple.com/ipad/" target="_blank"> iPAD</a>. All 3 products have been commercially great successes. So I decided to develop on this platform. I have been a c# developer since the beta of the .NET Framework. I still somewhere have the cds Microsoft sent out.</p>
<p>So once I made up my mind &#8211; I bought the latest <a href="http://www.apple.com/macmini/" target="_blank">Mac Mini</a>. The system was the 599 USD version with Lion and Xcode 4.  I then followed the <a href="http://ios.xamarin.com/Documentation/Installation" target="_blank">directions</a> setting up my machine.  In hind sight I wish I did  the set up slightly different.  The current version of  Monotouch does not , I repeat, does not work well with Xcode 4. But if you are like me you would want xcode 4 as well.  In fact I got a number of errors. Partial list of examples below.</p>
<p><a href="http://stackoverflow.com/questions/6785520/is-it-safe-to-upgrade-to-os-x-lion-for-monotouch-developers">http://stackoverflow.com/questions/6785520/is-it-safe-to-upgrade-to-os-x-lion-for-monotouch-developers</a></p>
<p><a href="http://stackoverflow.com/questions/4466740/error-merging-info-plist-in-monodevelop-monotouch/6850877#6850877">http://stackoverflow.com/questions/4466740/error-merging-info-plist-in-monodevelop-monotouch</a></p>
<p>The solution was to roughly- ( see below for the exact steps)</p>
<ol>
<li>Install Xcode 3.2.6 to /Applications/Developer.</li>
<li>Copy the developer folder to Developer3.</li>
<li>install Xcode 4 to /Applications/Developer.</li>
</ol>
<p>So what I did ultimately and it seems to work</p>
<ol>
<li>Install Mono</li>
<li>Install MonoDevelop</li>
<li>Install Xcode 4</li>
<li>Install Monotouch</li>
<li>Copy Developer Folder  (containing Xcode 4) to Developer4</li>
<li><a href="http://www.danielemargutti.com/2011/07/22/how-to-install-xcode-3-on-lion/" target="_blank">Install XCode 3.2.6</a>     (please follow these directions from daniele! So Click that link!)</li>
<li>Install Monotouch (yet again)</li>
<li>Copy Developer Folder  (containing Xcode 3) to Developer3</li>
<li>Copy Developer4 Folder  (containing Xcode4) to Developer</li>
<li>Now In order to use IB (interface Builder) I used the <a href="http://blog.sublimeintervention.com/archive/2011/Apr-25.html" target="_blank">excellent advice from Geoff Norton</a></li>
</ol>
<div>  I am compiling and runing iPhone Monotouch apps in the simulator on Lion with the current version of Monotouch.</div>
<div>So I can work in Xcode 4 and because I chose the right options while install xcode 3 make app for earlier version of MAC OS X and universal binaries as well.</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/joemele.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/joemele.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/joemele.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/joemele.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/joemele.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/joemele.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/joemele.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/joemele.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/joemele.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/joemele.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/joemele.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/joemele.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/joemele.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/joemele.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=joemele.wordpress.com&amp;blog=2260454&amp;post=22&amp;subd=joemele&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://joemele.wordpress.com/2011/07/29/monotouch-and-lion/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f592bc3ecb25732eb2c11547186cf458?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Joe Mele</media:title>
		</media:content>
	</item>
		<item>
		<title>Specific First Record via LinQ</title>
		<link>http://joemele.wordpress.com/2010/09/09/specific-first-record-via-linq/</link>
		<comments>http://joemele.wordpress.com/2010/09/09/specific-first-record-via-linq/#comments</comments>
		<pubDate>Thu, 09 Sep 2010 11:37:02 +0000</pubDate>
		<dc:creator>joemele</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[LinQ]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Exression]]></category>
		<category><![CDATA[Lamda]]></category>

		<guid isPermaLink="false">http://joemele.wordpress.com/?p=10</guid>
		<description><![CDATA[I have not written to this blog in a while. But I will try to more often. I was looking for  a way in Linq to bring certain records in focus by being first in the sort. After Looking around  and see this post. I came up with the following. I wrote this 6 in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=joemele.wordpress.com&amp;blog=2260454&amp;post=10&amp;subd=joemele&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have not written to this blog in a while. But I will try to more often.</p>
<p>I was looking for  a way in Linq to bring certain records in focus by being first in the sort. After Looking around  and see this <a href="http://weblogs.asp.net/ricardoperes/archive/2010/06/29/dynamic-linq-methods.aspx" target="_blank">post</a>. I came up with the following.<br />
<pre class="brush: csharp;">
public static class linqExtentions
{
  public static IEnumerable SpecificRecordFirst(this IQueryable query, string PropertyToTest,object PropertyValue)
  {
   Type propertyType = query.GetType().GetGenericArguments()[0];
   PropertyInfo property = propertyType.GetProperty(PropertyToTest, BindingFlags.Instance | BindingFlags.Public);
MethodInfo whereMethod = typeof(Queryable).GetMethods(BindingFlags.Public | BindingFlags.Static).Where(m =&amp;gt; m.Name == &quot;Where&quot;).ToArray()[0].MakeGenericMethod(propertyType);

ParameterExpression parameter = Expression.Parameter(propertyType,&quot;m&quot;);
MemberExpression member = Expression.MakeMemberAccess(parameter,propertyType.GetProperty(PropertyToTest));
BinaryExpression equal = ParameterExpression.Equal
(
member,
(PropertyValue != null) ? Expression.Constant(PropertyValue, PropertyValue.GetType()) : null
);
LambdaExpression lambda = Expression.Lambda(typeof(Func&amp;lt;,&amp;gt;).MakeGenericType(propertyType, typeof(Boolean)), equal, member.Expression as ParameterExpression);
IQueryable query2 = whereMethod.Invoke(null, new Object[] { query, lambda }) as IQueryable;
if (query2.Count() &lt; 1)                 throw new Exception(&quot;SpecificRecordFirst- First Record Doesnt Exist&quot;);
if (query2.Count() &gt; 1)
throw new Exception(&quot;SpecificRecordFirst- First Record is not unique&quot;);
yield return query2.First();
BinaryExpression Notequal = ParameterExpression.NotEqual
(
member,
(PropertyValue != null) ? Expression.Constant(PropertyValue, PropertyValue.GetType()) : null
);
LambdaExpression lambda2 = Expression.Lambda(typeof(Func&amp;lt;,&amp;gt;)
.MakeGenericType(propertyType, typeof(Boolean)), Notequal, member.Expression as ParameterExpression);
IQueryable query3 = whereMethod.Invoke(null, new Object[] { query, lambda2 }) as IQueryable;
foreach (var elem in query3)
{
yield return elem;
}
}
}
</pre><br />
I wrote this 6 in the morning. I am wondering If this could be done differently.</p>
<p><strong>EDIT</strong></p>
<p>I thought about this a little more . Here<br />
<pre class="brush: csharp;">
public static IEnumerable SpecificRecordsFirst(this IQueryable query, Expression&lt;Func&gt; expression)
{
   Func func = expression.Compile();
   var firstRecords = query.Where(func.Invoke);
  foreach (var firstRecord in firstRecords)
  {
     yield return firstRecord;
  }
  var secondRecords = query.Except(firstRecords.AsEnumerable());
  foreach (var secondRecord in secondRecords)
  {
     yield return secondRecord;
  }
}
</pre><br />
Much better IMHO</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/joemele.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/joemele.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/joemele.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/joemele.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/joemele.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/joemele.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/joemele.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/joemele.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/joemele.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/joemele.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/joemele.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/joemele.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/joemele.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/joemele.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=joemele.wordpress.com&amp;blog=2260454&amp;post=10&amp;subd=joemele&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://joemele.wordpress.com/2010/09/09/specific-first-record-via-linq/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f592bc3ecb25732eb2c11547186cf458?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Joe Mele</media:title>
		</media:content>
	</item>
		<item>
		<title>Entrepreneurship Program</title>
		<link>http://joemele.wordpress.com/2008/01/22/entrepreneurship-program/</link>
		<comments>http://joemele.wordpress.com/2008/01/22/entrepreneurship-program/#comments</comments>
		<pubDate>Tue, 22 Jan 2008 23:56:09 +0000</pubDate>
		<dc:creator>joemele</dc:creator>
				<category><![CDATA[ISV]]></category>

		<guid isPermaLink="false">http://joemele.wordpress.com/2008/01/22/entrepreneurship-program/</guid>
		<description><![CDATA[Despite what one what may think of Donald Trump, he deserves respect as a business man. He has established Trump University to pass on some of this expertise. Right now there are a couple of classes being offered, some free on being an entrepreneur. I have seen of the material now. I think it is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=joemele.wordpress.com&amp;blog=2260454&amp;post=4&amp;subd=joemele&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Despite what one what may think of Donald Trump, he deserves respect as a business man. He has established Trump University to pass on some of this expertise.  Right now there are a couple of  <a href="http://www.trumpuniversity.com/entrepreneurship/index.cfm" target="_blank">classes being offered</a>, some free on being an entrepreneur.</p>
<p>I have seen of the material now. I think it is worth the look. Enjoy!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/joemele.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/joemele.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/joemele.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/joemele.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/joemele.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/joemele.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/joemele.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/joemele.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/joemele.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/joemele.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/joemele.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/joemele.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/joemele.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/joemele.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/joemele.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/joemele.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=joemele.wordpress.com&amp;blog=2260454&amp;post=4&amp;subd=joemele&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://joemele.wordpress.com/2008/01/22/entrepreneurship-program/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f592bc3ecb25732eb2c11547186cf458?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Joe Mele</media:title>
		</media:content>
	</item>
	</channel>
</rss>
