Monday, November 18, 2019

Test Post

Hey! Is this thing still on? OMHFTRE

Monday, September 26, 2011

Live SkyDrive API: Get List of Folder's Files

The new Live Connect SkyDrive API, which was released in prelimary form at Build 2011, finally delivers an "official" way to manipulate files and folders on SkyDrive. For being a preview release, the docs look reasonably complete.

However, one thing that wasn't clear to me (from the docs) was how to iterate through the contents of a folder while, for example, searching for a particular file.

So...here's a bare-bones code snippet that shows how to search the root folder of the signed-in user's SkyDrive for the file "test.txt".


private void FindFileTestDotTxt()
{
    client.GetCompleted += 
        new EventHandler<LiveOperationCompletedEventArgs>(client_GetCompleted);
    client.GetAsync("me/skydrive/files");
}

void client_GetCompleted(object sender, LiveOperationCompletedEventArgs e)
{
    Dictionary<string, object> resultDict = 
        (Dictionary<string, object>) e.Result;

    List<object> items = (List<object>)resultDict["data"];

    foreach (object o in items)
    {
        Dictionary<string, object> item = (Dictionary<string, object>)o;

        if (item["name"].ToString() == "test.txt")
        {
            // found it 
            Console.WriteLine("File URL: {0}", item["source"].ToString());
            break;
        }
    }
}

Wednesday, June 1, 2011

Windows Phone 7 Emulator Saved-State Corrupted

This morning, quite out of the blue, the Windows Phone 7 emulator (Mango release) refused to initialize. The error message complained about a corrupted saved-state file and recommended that I delete a particular file named SOME_LONG_GUID.DES in C:\ProgramData\Microsoft\XDE.

After some poking around, I found the file (which actually ends in DESS, not DES), deleted it and restarted the emulator. No dice. Now I'm getting some sort of "internal error" message.

Next I deleted the SS file also found in C:\ProgramData\Microsoft\XDE. Still broken.

Restored the DESS file, but not the SS file. (SS == Shared State?). Now we have some progress, but the emulator is clearly booting from scratch and takes several minutes to initialize. Deploying apps from VS doesn't appear to work either.

As a hail mary, I restored the SS file and tried again. All's well!

Hope this helps someone else with the same issue.

Monday, July 12, 2010

503 Service Unavailable Errors

I was going through the same pain as this guy. In my case, I was trying to create a simple webapp on port 8080. But try as I may, I couldn't get around the 503 Service Unavailable response.

Luckily, the same guy also posted a response to his original blog entry.

Turns out the command netsh http show urlacl saves the day. In my case, another user on the same server had just happened to reserve port 8080 while doing some other work.

All's well...

Thursday, January 29, 2009

Check For SharePoint Dispose Leaks

If I ever start back doing SharePoint development, I will need this:

http://code.msdn.microsoft.com/SPDisposeCheck

Wednesday, October 22, 2008

Lots of SharePoint Storage Resources

I'm sure I'll need this link in the future.

Thursday, September 18, 2008

SharePoint List Scalability

One-stop shopping for all things related to SharePoint list scalability and scalability in general.

Link saved for future use.

http://www.sharepointjoel.com/Lists/Posts/Post.aspx?ID=84