| |
browse.develop.com
Browse.develop.com is a community that was established to collect and
organize valuable web information. Our technical staff have selected and
indexed information and courses that they feel will help you stay
current on best practices across the SDLC.
|
4 Articles match "Sample"
See all articles with
"Sample"
| The Latest from Handwaving | MORE | | Distributed Performance Tracing And if you run a high-performance site, then just trace 1 out of every 100 or 1000 calls (sampling). I stumbled on this paper from Google describing Dapper, a distributed performance monitoring system (aka profiler) for their entire infrastructure. For any distributed system, even simple client/server systems, it is useful to measure performance across services & tiers. For example, in a distributed system service A may call B and C, B calls D and E, C calls F. All these calls form an acyclic graph. The basic idea is quite simple. The root service will not have a parent id. Handwaving - Tuesday, July 5, 2011 OCR on Demand My one sample document was recognized perfectly, and it put the result in a perfectly formatted Excel document. Someone gave me a 16 page printed specification document for the format of a data file. m too slow and lazy to type all that in manually. tried a few free OCR (optical character recognition) programs ( Gocr and SimpleOCR ) but the results were absolutely terrible. High error rates and the formatting was all wrong. Commercial OCR programs are too expensive for occasional use. Microsoft removed their OCR program from Office. And the results are delivered in seconds. Handwaving - Tuesday, March 30, 2010 Actors prototype in C# can probably implement most of the Erlang samples with this class. Attached is a rough outline of actors, or message passing concurrency, for C#. It is similar in spirit to Erlang. The basic idea is that each actor is a thread that blocks on a queue. It simply grabs an element from the queue, processes it and sends messages to other actors, and then waits for another message. This code uses threads but I’d rather use Tasks in.NET 4.0, which would likely scale much better. The signature of the handler is not good. There is no error handling anywhere. Handwaving - Wednesday, March 3, 2010 | | The Best from Handwaving | MORE | | OCR on Demand My one sample document was recognized perfectly, and it put the result in a perfectly formatted Excel document. Someone gave me a 16 page printed specification document for the format of a data file. m too slow and lazy to type all that in manually. tried a few free OCR (optical character recognition) programs ( Gocr and SimpleOCR ) but the results were absolutely terrible. High error rates and the formatting was all wrong. Commercial OCR programs are too expensive for occasional use. Microsoft removed their OCR program from Office. And the results are delivered in seconds. Handwaving - Tuesday, March 30, 2010 Distributed Performance Tracing And if you run a high-performance site, then just trace 1 out of every 100 or 1000 calls (sampling). I stumbled on this paper from Google describing Dapper, a distributed performance monitoring system (aka profiler) for their entire infrastructure. For any distributed system, even simple client/server systems, it is useful to measure performance across services & tiers. For example, in a distributed system service A may call B and C, B calls D and E, C calls F. All these calls form an acyclic graph. The basic idea is quite simple. The root service will not have a parent id. Handwaving - Tuesday, July 5, 2011 Actors prototype in C# can probably implement most of the Erlang samples with this class. Attached is a rough outline of actors, or message passing concurrency, for C#. It is similar in spirit to Erlang. The basic idea is that each actor is a thread that blocks on a queue. It simply grabs an element from the queue, processes it and sends messages to other actors, and then waits for another message. This code uses threads but I’d rather use Tasks in.NET 4.0, which would likely scale much better. The signature of the handler is not good. There is no error handling anywhere. Handwaving - Wednesday, March 3, 2010 | - Concurrent Skip List issues
A commenter on my code sample for a concurrent skiplist correctly pointed out two errors in the program. attempted to fix both, but further testing revealed another problem in Release mode (optimized, no debug). One of the thread would suddenly stop. After much screwing around, I discovered that the program was stuck in a spin wait: “while (!goAhead) goAhead) ;. added a volatile declaration to that variable and then the program worked. It turns out the loop keeps reusing the value in the register, rather than reloading the variable when another thread says it’s OK to go. Handwaving - Wednesday, August 26, 2009 %>
216 Articles match "Sample"
See all articles with
"Sample"
| The Latest from DevelopMentor | MORE | | Optimistic concurrency in MongoDB using.NET and C# Here’s the download for the source, library with the concurrent data context, and the sample app: MongoDB.Kennedy.zip. 'This article demonstrates a technique and supporting library for adding optimistic concurrency control to NoSQL databases and MongoDB in particular. Quickly, what is optimistic concurrency control? Ideally, all databases that allow concurrent access or disconnected access need to implement some form of concurrency control. This usually comes in two flavors: Pessimistic concurrency control. Optimistic concurrency control. Edit in memory. Nice huh? Conclusion. Michael C. Kennedy's Weblog - Monday, April 8, 2013 Understanding Map - Reduce Running the sample code produces output like this. Quite a few people seem to be intimidated by the concept of Map-Reduce. As it turns out Map-Reduce is actually quite simple and straightforward when you get to understand the basic principle. Basic principle The basic Map-Reduce consists of two steps. guess you are not going to be very surprised when I tell you that these steps are called Map and Reduce. Simple right? And the Reduce process takes the output of the Map process and combines/discards data to produce the result. Again pretty simple right? simple example. 3: public Order(). The Problem Solver - Monday, December 3, 2012 Understanding Map - Reduce Running the sample code produces output like this. Quite a few people seem to be intimidated by the concept of Map-Reduce. As it turns out Map-Reduce is actually quite simple and straightforward when you get to understand the basic principle. Basic principle The basic Map-Reduce consists of two steps. guess you are not going to be very surprised when I tell you that these steps are called Map and Reduce. Simple right? And the Reduce process takes the output of the Map process and combines/discards data to produce the result. Again pretty simple right? simple example. 3: public Order(). The Problem Solver - Monday, December 3, 2012 | -
| The Best from DevelopMentor | MORE | - Access Control Service: Passive/Active Transition Sample
Here you can find my updated ACS2 sample. In addition to the existing front ends (web [WS-Federation], console [SOAP & REST], Silverlight [REST]) and error handling , it now also includes a WPF client that shows the passive/active transition with a SOAP service as illustrated here. All the ACS interaction is encapsulated in a WPF user control that: retrieves the JSON feed. displays a list of supported identity providers. triggers the sign in via a browser control. retrieves the token response. All you need to supply is the ACS namespace and the realm. Have fun! Azure IdentityModel www.leastprivilege.com - Thursday, June 23, 2011 - HTML5 Slides and Samples
The slides and samples from the HTML5 talk I did yesterday at the DevelopMentor office in London. HTML5 from Maurice Beijer Enjoy! Futures HTML5 Modernizr WebSockets WebWorkers Video IE The Problem Solver - Thursday, October 18, 2012 - Download My Web Apps Have HotKeys Too Sample App
and a sample application. I recently blogged about how web apps have hotkeys too. To encourage more developers to add hotkeys to their web applications, I created a jQuery plugin called jQuery.hotKeyMap.js just added a download link for the source code: WebAppsHaveHotKeysTooSample-MichaelKennedy-v1.zip. It’s an ASP.NET MVC 3 web app. Hope you find it useful! Cheers, @mkennedy. Filed under: jQuery Tagged: NET , ASP.NET , MVC , Open Source , Plugins , web. jQuery.NET ASP.NET MVC Open Source Plugins web Michael C. Kennedy's Weblog - Thursday, August 30, 2012 - Simple MVVM Toolkit Improvements: Documentation, Features, Sample Apps
I’ve released a new version of my Simple MVVM Toolkit for Silverlight that has improved documentation, a bunch of new features and additional sample applications. And many of those other toolkits are woefully lacking in the way of documentation and code samples. Sample applications with step-by-step instructions. have spent quite a bit of time fleshing out documentation for the toolkit, and the download includes several sample applications. Other sample apps demonstrate features such as enum lists, associated properties, and async support. Tony and Zuzana's World - Sunday, January 23, 2011 - Online Workflow 4 presentation
Attached are the PowerPoint sheets and samples from my online Window Workflow Foundation 4 presentation today. Let me know if you have any questions. WF4Demo.zip www.TheProblemSolver.nl Wiki.WindowsWorkflowFoundation.eu. The Problem Solver - Tuesday, December 1, 2009 %>
| | |