• Random

    Posted on February 19th, 2008

    Written by Emad Ibrahim

    Tags

    , , , , ,

    Improve LINQ Query Performance

    I was writing a small utility for Outlook 2007 and was using LINQ to query Outlook Tasks.  This query was nested within another query.  While debugging, I realized that looping though the query results in my For Each loop was taking too long. If you have read anything about LINQ, I am sure you already [...]

  • Programming

    Posted on December 28th, 2007

    Written by Emad Ibrahim

    Tags

    , , , , , , ,

    Fame, Fortune and WCF

    I need your help to bring me fame and fortune. I wrote an article at code project which was entered for a competition.  The winner gets $10k.  Can you please check it out at http://www.codeproject.com/KB/WCF/myfeedreader.aspx and if you like it, please vote for it.  I can’t win if you don’t vote.  Voting will be closed [...]

  • Blogging, Programming

    Posted on July 31st, 2007

    Written by Emad Ibrahim

    Tags

    , , , ,

    Calling the WordPress XMLRPC API from VB.net

    As an example, I will call the getCategories API method. Add a reference to the XML-RPC.net library. Create a struct for the return result Public Structure category Public categoryId As Object Public parentId As Object Public description As Object Public categoryName As Object Public htmlUrl As Object Public rssUrl As Object End Structure Create the [...]

  • Programming

    Posted on May 22nd, 2007

    Written by Emad Ibrahim

    Tags

    , ,

    DataFormatString not working with date format in GridView

    I set the DataFormatString to {0:d} and also tried {0:MM-dd-yyyy} as several forums and articles suggested; but it still wouldn’t work and kept on displaying the entire string including the time. It turns out, all I had to do is add HtmlEncode=”false”. <asp:GridView ID=”gridItems” runat=”server” AutoGenerateColumns=”False” DataKeyNames=”ItemId” DataSourceID=”MyItemsDataSource” Width=”100%”> <Columns> <asp:BoundField DataField=”Title” HeaderText=”Title” SortExpression=”Title” /> [...]

  • Programming

    Posted on April 10th, 2007

    Written by Emad Ibrahim

    Tags

    , ,

    Flip a SQL table around

    I have a sql table that looks like this Id Name Value 1 First name Bob 1 Last name Johns 2 First name John 2 Last name Smith 3 First name Bill 3 Last name Gates I want to return the data like this: Id First name Last name 1 Bob Johns 2 John Smith [...]

  • Newer Posts Yeah! There are more posts, check them out.