First ever individual gold medal for india : Hats off to Abhinav Bindra

First ever individual gold medal for india : Hats off to Abhinav Bindra

August 11, 2008 05:27 by pradeep.mishra

India is thrilled with the news about winning gold medal in Olympic Beijing 2008. Mr Abhinav Bindra bagged gold medal in the men's 10m air rifle event at the Beijing Olympics. He has become first indian to win a gold medal in Olympic games. I am so excited and so the whole nation. Kudos to Abhinav for his excellent performance and making the whole nation proud.

More about the golden man can be found at

http://en.wikipedia.org/wiki/Abhinav_Bindra

His personal blog

http://abhinavbindra.blogspot.com/

 


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

10 Mantras for startup product presentation

10 Mantras for startup product presentation

August 9, 2008 11:19 by pradeep.mishra

Here is very nice article posted at techcrunch

http://www.techcrunch.com/2008/08/09/how-to-demo-your-startup

Here are the main bullet points

  • Show your product within the first 60 seconds
  • The best products take less than five minutes to demo 
  • Leave people wanting more.
  • Talk about what you’ve done, not what you’re going to do.
  • Understand your competitive landscape–current and historical.
  • Short answers are best.
  • PowerPoint bullet slides are death
  • How to use this new device called the phone.
  • How to handle questions you don’t know the answer to
  • Always confirm the time of your meeting/call, and always be 15
    minutes early.
It's worth going through the complete article just click and read on.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Revitalization

Revitalization

August 2, 2008 14:17 by pradeep.mishra

Almost after a month I am able to revitalize noesispedia. I just changed my host provider. I don't have words as how bad my experience with www.webhostasp.com was. Anyway so here is the latest update. The site has been moved to latest blogengine release i.e. 1.4.5. I have modified the code to support multiple instances of the application using same db. Ofcourse having different tables for different application is a solution but I personally don't like the idea. I will soon publish the modification to run BlogEngine in multiple environment mode. I hope the readers, I know there are very few, will find that the page loads faster now. Let me know if you still face some issues. 

Cheers! 



Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Homemade plastic

Homemade plastic

June 24, 2008 04:43 by pradeep.mishra

Today I came across a very interesting article and would like to share

http://www.instructables.com/id/Homemade-Plastic/

 How: milk contains a protein called casein, which, once reduced with a little vinegar, can be made into a homemade plastic . nice


Currently rated 4.0 by 2 people

  • Currently 4/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Dynamic Sorting IEnumerable, List

Dynamic Sorting IEnumerable, List

June 10, 2008 10:29 by pradeep.mishra

Earlier I posted about how to dynamically sort the data using extension method see this http://www.noesispedia.com/post/2008/03/21/Linq-to-Sql-Dynamic-Sorting-without-using-Complete-Dynamic-Linq-Libraries.aspx

In this post I will present a quick solution to sort a list of object based on a property of object.

Suppose you have an object like

   1:   
   2:  public class MockObj
   3:  {
   4:  prop a
   5:  prop b
   6:  prop c
   7:  prop d
   8:  }

 

If you are binding above object with gridview (List) and you want to enable sorting in gridview onsorted event use following code to sort

   1:   
   2:  protected void gv_OnSorting(object sender, GridViewSortEventArgs e)
   3:  {
   4:  if (SortDirection == SortDirection.Ascending)
   5:  ((GridView)sender).DataSource = List.OfType().OrderBy(mo=> mo.GetType().GetProperty(e.SortExpression).GetValue(mo, null));
   6:  else
   7:  ((GridView)sender).DataSource = List.OfType().OrderByDescending(mo=> mo.GetType().GetProperty(e.SortExpression).GetValue(mo, null));
   8:  SortDirection = SortDirection == SortDirection.Ascending ? SortDirection.Descending : SortDirection.Ascending;
   9:  ((GridView)sender).DataBind();
  10:  }

Note that sortExpression specified in gridview must match with one of the property on the object.

If you don't want to use this quick but dirty solution you can go for extension methods. For more information see following links

 http://mironabramson.com/blog/post/2008/05/Sorting-a-collection-using-sort-expression-string.aspx

http://www.singingeels.com/Articles/Self_Sorting_GridView_with_LINQ_Expression_Trees.aspx 

Thanks to my friend Joseph for giving this solution and saving time in writing case statements :-) 

Hope this helps! 


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5