var sortedDates = dates.OrderByDescending(x => x);
or else Don't want to use, or don't know Linq then you can go for following..
static List SortAscending(List list)
{
list.Sort((a, b) => a.CompareTo(b));
return list;
}
static List SortDescending(List list)
{
list.Sort((a, b) => b.CompareTo(a));
return list;
}
Friday, December 6, 2013
Sort DateTime List c#
Wednesday, December 4, 2013
Directory does not exist. Parameter name: directoryVirtualPath
I had the same problem and found out that I had some bundles that pointed to non-exisiting files using {version} and * wildcards such as
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
"~/Scripts/jquery-{version}.js"));
I removed all of those and the error went away.
Code to Randomize data in a list
Random rand = new Random();
latestdata = latestdata.OrderBy(c => rand.Next()).ToList();
latestdata = latestdata.OrderBy(c => rand.Next()).ToList();
Structure data for Movie & review
<div itemtype="http://schema.org/Movie">
<ul>
<li>Title : <a itemprop="name" style="color: black;" title=""></a></li>
<li>Star Cast :<a itemprop="actor" itemscope="" itemtype="http://schema.org/Person" title=""><span itemprop="name">Sundeep Kishan</span></a>
<a itemprop="actor" itemscope="" itemtype="http://schema.org/Person" title=""><span itemprop="name">Rakul Preet Singh</span></a>
</li>
<li>Director : <a itemprop="director" itemscope="" itemtype="http://schema.org/Person" title=""><span itemprop="name"></span></a></li>
<li>Producer : <a itemprop="producer" itemscope="" itemtype="http://schema.org/Person" title=""><span itemprop="name"></span></a></li>
<li>Music : </li>
<li>Released on : Nov 29, 2013.</li>
</ul>
<a itemprop="author" itemscope="" itemtype="http://schema.org/Person"><span itemprop="name"></span></a>
<a itemprop="creator" itemscope="" itemtype="http://schema.org/Person"><span itemprop="name"></span></a>
<a itemprop="publisher"></a>
<span itemprop="description"></span>
<span itemprop="keywords"></span>
<div itemprop="review" itemscope itemtype="http://schema.org/Review">
<span itemprop="name"></span>
<span itemprop="author"></span>
<meta itemprop="datePublished" content="" />
<span itemprop="description"> </span>
<span itemprop="keywords"></span>
</div>
</div>
<ul>
<li>Title : <a itemprop="name" style="color: black;" title=""></a></li>
<li>Star Cast :<a itemprop="actor" itemscope="" itemtype="http://schema.org/Person" title=""><span itemprop="name">Sundeep Kishan</span></a>
<a itemprop="actor" itemscope="" itemtype="http://schema.org/Person" title=""><span itemprop="name">Rakul Preet Singh</span></a>
</li>
<li>Director : <a itemprop="director" itemscope="" itemtype="http://schema.org/Person" title=""><span itemprop="name"></span></a></li>
<li>Producer : <a itemprop="producer" itemscope="" itemtype="http://schema.org/Person" title=""><span itemprop="name"></span></a></li>
<li>Music : </li>
<li>Released on : Nov 29, 2013.</li>
</ul>
<a itemprop="author" itemscope="" itemtype="http://schema.org/Person"><span itemprop="name"></span></a>
<a itemprop="creator" itemscope="" itemtype="http://schema.org/Person"><span itemprop="name"></span></a>
<a itemprop="publisher"></a>
<span itemprop="description"></span>
<span itemprop="keywords"></span>
<div itemprop="review" itemscope itemtype="http://schema.org/Review">
<span itemprop="name"></span>
<span itemprop="author"></span>
<meta itemprop="datePublished" content="" />
<span itemprop="description"> </span>
<span itemprop="keywords"></span>
</div>
</div>
Wednesday, October 23, 2013
Xcode 5 - SpringBoard failed to launch application with error: -3
options
1.) Deleting the app from simulator solved this.
2.) Quitting simulator seems to help.
3.) Restart simulator, if it wont solve your problem and then delete all content. theres a option for resetting simulator.. use that ...
1.) Deleting the app from simulator solved this.
2.) Quitting simulator seems to help.
3.) Restart simulator, if it wont solve your problem and then delete all content. theres a option for resetting simulator.. use that ...
Monday, September 30, 2013
enabling Settings for IOS applications,
http://conceptdev.blogspot.in/2009/08/monotouch-settingsbundle.html
Friday, August 16, 2013
http://www.infragistics.com/community/blogs/stevez/archive/2013/01/28/how-to-use-tfs-on-a-mac.aspx
http://www.infragistics.com/community/blogs/stevez/archive/2013/01/28/how-to-use-tfs-on-a-mac.aspx
Subscribe to:
Posts (Atom)