Posts

Showing posts from July, 2009

secret lengths of OnBehalfReason

As I was setting up a custom SharePoint workflow to work with an external user outside of the domain, I noticed some quirky behavior and error messaging from SharePoint. e.g. it works if its a short piece of text like the MOSS 2007 SDK: createPartnerReviewTask_TaskProperties1.OnBehalfEmail = "null@void.com"; createPartnerReviewTask_TaskProperties1.OnBehalfReason = "This user does not have access to this Windows SharePoint Server site."; but dies like this when its too long: WinWF Internal Error, terminating workflow Id# 7c4d... System.ArgumentException: Value does not fall within the expected range. at Microsoft.SharePoint.Workflow.SPWorkflowTaskProperties.set_OnBehalfReason(String value) what range is specified in the reference? undocumented.

the lie: Workflow Error: System.InvalidOperationException and the Correlation Token

Whenever I get an error in the pile of logs that is SharePoint Workflow, I have to wonder how this made it through QA. Case and point: a message that returned when executing a CompleteTask activity within a workflow: System.InvalidOperationException: Correlation value specified does not match the already initialized correlation value on declaration for activity . This should equate to - check the correlation token you set, logically. It even seems like this is a logical conclusion from the top of procedure stack; at ..CorrelationService.ValidateCorrelation() at ..CorrelationService.InvalidateCorrelationToken() .. But no, what it actually means is check the Taskid properties . Figured out with the blog entry by Andy Burns .

nerd of the day

My nerd of the day vote goes to Dmitry Vostokov aka Dr. Debugalov. He is likely an inspiration to the Citrix dev team (where he works), and he seems to have the most thorough understanding of the inner bowels of Windows outside of Redmond. Also he has a really geeky sense of humor, take for example the famous quotations turned into bug-ese 'bugations' and the following poem: The new thread started To work through items It got an item Handled it to store To run delete requests Through Oh-Dee-Bee-See It tried to alloc But crashed in malloc While browsing the heap Exception was dispatched And handler called at once But couldn't find a filter And called default one That filter needed help And looked for its address But halted in suspense While entering crit sec. March 2009 (c) Dmitry Vostokov Inspired by the following stack trace (remeber to read from bottom to top): 0:01> ~8kL ChildEBP RetAddr 009ef258 7c827d0b ntdll!KiFastSystemCallRet 009ef25c 7c83d236 ntdll!NtWaitForSin...

pi anyone?

Image
In celebration of pi approximation day, I'm going to host the equivalent of porn for nerds; the first 10^6 million digits of Pi. A pretty modest approximation of this wonderfully giving number. Came across some other interesting things while getting to this number including: Other fractional approximations 22 / 7 ~= 3.14 2857142857 355 / 113 ~= 3.141592 9203539823 312689 / 99532 ~= 3.141592653 6189366233 21053343141 / 6701487259 ~= 3.141592653589793238462 3817427748 Euler's beautiful equation for pi is so with no futher adieu, the first million digits of pi from Geoff Cornwell and exploratorium.

tandoori chicken

Ingredients This makes it nice & spicy - reduce red chilly or green chilly if you can't take the heat 1 whole chicken 1.25c plain yogurt 2T lemon juice 1T vinegar 1T vegetable/olive oil 3T ginger, garlic, green chilly paste (= 1 large clove garlic, 1 green chilly, .25oz ginger ground together in pestle & mortar) .75T garam masala 1.5T tandoori masala 2T red chilly powder 1t ground coriander seeds Cooking instructions clean & wash & dry chicken. prick with a forkadd yogurt to the chicken and mix well. add ginger, garlic, chilly paste to the chickenadd all dry spices (coriander seeds, garam masala, red chilly pounds, tandoor masala, and salt)add lemon juice, vinegar and oil. cover chicken and marinate for 24h. Grill chicken on a BBQ, or broil chicken for 14 minutes per side (depending on oven, you'll likely need to leave the front oven door slightly ajar and rotate the broiling rack 90 degrees every 7 minutes to get a nice even tan) Serve with sliced red onions, f...