rmarley

Stories submitted by friends of rmarley

MemoryStream Multiplexer - Write and Read from many threads (omaralzabir.com)

submitted by oazabiroazabir(1805) 1 month, 23 days ago

Here’s an implementation of MemoryStream like buffer manager where one thread can write and many threads can read simultaneously. Each reading thread gets its own reader and can read from the shared stream on its own without blocking write operation or other parallel read operations. It supports blocking Read call so that reader threads can call Read(…) and wait until some data is available, exactly the same way you would expect a Stream to behave. read more...

add a comment |category: |Views: 8

tags: another

Cache WCF Javascript Proxy on Browser(omaralzabir.com)

submitted by oazabiroazabir(1805) 1 month, 23 days ago

When you use WCF services from Javascript, you have to generate the Javascript proxies by hitting the Service.svc/js. If you have five WCF services, then it means five javascripts to download. As browsers download javascripts synchronously, one after another, it adds latency to page load and slows down page rendering performance. Moreover, the same WCF service proxy is downloaded from every page, because the generated javascript file is not cached on browser. Here is a solution that will ensure the generated Javascript proxies are cached on browser and when there is a hit on the service, it will respond with HTTP 304 if the Service.svc file has not changed. read more...

add a comment |category: |Views: 5

tags: another

JSON.NET Strong Naming And NuGet Woes(coderjournal.com)

submitted by zigamorphzigamorph(3319) 1 month, 23 days ago

This post requires a little understanding about how strong naming works. It’s complicated, but basically here is the jist: When you compile a library against a strong named assembly, only that specific version of the assembly can be used with the assembly that you are compiling with out resorting to heroics. You may say what is the big deal that is how all libraries are compiled and linked. But that isn’t true in .NET, if you don’t have a strongly named assembly, you have for better terms a weakly named assembly. And with weakly named assemblies there is not enforcement of the version, just the library name. So this makes it possible for developers to update a referenced library without actually recompiling the original library that referenced it. This is very powerful in the right hands, and pretty much what makes services like NuGet function with references so many intermingling of references between projects. So once you understand that and it has sort of sunk in. Now consider what kind of monkey wrench would be thrown in to NuGet references process if libraries were strongly signed. Now consider the project that is strongly named is also the 5th most popular project on NuGet with over 125,000 downloads and is one of if not the most interreferenced library in NuGet. That is a monkey wrench of epic proportions that can cause some real damage isn’t it. Well you have probably guessed that this isn’t some hypothetical problem that I am posting about in this work item. This is an actual problem in NuGet and is causing the community great pains against this ever popular and wonderful library. I understand certain people like installing JSON.NET into the GAC and I have no problem with that, and I think it should continued to be signed for them. But why not stop signing just the assemblies that you push to NuGet. Because this problem is only going to get worse when the ASP.NET Web Stack starts building steam and this problem escalates out of control. read more...

add a comment |category: |Views: 2

tags: another

2 Important Things to Notice When Using Lock() Statement(www.dev102.com)

submitted by razamitrazamit(4566) 2 months, 20 days ago

2 Important Things to Notice When Using Lock() Statement read more...

2 comments |category: |Views: 19

tags: another

How to Suppress / Disable Script Errors in WPF WebBrowser Control(www.dev102.com)

submitted by razamitrazamit(4566) 3 months, 3 days ago

suppressing the script error on the new webbrowser control read more...

add a comment |category: |Views: 3

tags: another

C# Selections with SQL Syntax (Not LINQ!)(www.sharpregion.com)

submitted by AdrianAisembergAdrianAisemberg(2004) 3 months, 5 days ago

Select objects in C# with real SQL syntax. Give your users the ability to filter/select data during runtime. read more...

2 comments |category: |Views: 234

tags: another

Taking Toddler Steps with Node.js – Express Routing(elegantcode.com)

submitted by JanVanRyswyckJanVanRyswyck(2724) 4 months, 6 days ago

For this post we’ll dive into a couple of styles for dealing with routes in Express. read more...

add a comment |category: |Views: 141

tags: another

Cleaning Up Your Git Repository For NuGet 1.6(coderjournal.com)

submitted by zigamorphzigamorph(3319) 5 months, 13 days ago

Provides an article detailing how to clean up the packages directory to get your project and repository ready for NuGet 1.6. read more...

1 comment |category: |Views: 35

tags: another

Home Security with Kinect, Azure Service Bus, and SignalR(www.bradygaster.com)

submitted by bradygasterbradygaster(4897) 6 months, 1 day ago

Suppose you had a some scary-looking hoodlum walking around your house when you were out? You’d want to know about it, wouldn’t you? Take one Kinect, mix in a little Windows Azure Service Bus, sprinkle in some SignalR, and mix it all together with some elbow grease, and you could watch in near-real-time as sinewy folks romp through your living room. Here’s how. read more...

1 comment |category: |Views: 71

tags: another

JSON-based WCF in Windows Azure(www.bradygaster.com)

submitted by bradygasterbradygaster(4897) 6 months, 7 days ago

Developers need to grok Windows Azure, especially developers who want to distribute consumption of an application in a web-based API. A great use for Microsoft Azure, obviously, is to use it to host an application’s web service API layer. This post will demonstrate how to host WCF services in an Azure worker role in a manner that will offer REST-like JSON API support. read more...

2 comments |category: |Views: 54

tags: another

Andreas Håkansson and Steven Robbins on Nancy on 22 November 2011(europevan.blogspot.com)

submitted by JanVanRyswyckJanVanRyswyck(2724) 6 months, 19 days ago

We’re very happy to announce that Andreas Håkansson (aka The Code Junkie) and Steven Robbins (aka GrumpyDev)agreed to do a talk on Nancy, a lightweight, low-ceremony, framework for building HTTP based services on .Net and Mono. The goal of the framework is to stay out of the way as much as possible and provide a super-duper-happy-path to all interactions. With Nancy you can go from zero to website in a matter of minutes. read more...

add a comment |category: |Views: 0

tags: another

Command-Line Interception and Expression Validation with C#(www.sharpregion.com)

submitted by AdrianAisembergAdrianAisemberg(2004) 6 months, 24 days ago

CLAP v3 brings so much magic to command-line parsing, you'll want to go back to console apps having all this coolness! There is even a NuGet for that. read more...

1 comment |category: |Views: 5

tags: another

Recording of Jonathan Oliver on Event Sourcing and EventStore @ E-VAN (europevan.blogspot.com)

submitted by JanVanRyswyckJanVanRyswyck(2724) 7 months ago

Jonathan Oliver did a tremendous presentation yesterday on Event Sourcing and the open-source EventStore project. Jonathan is clearly very passionate about this topic as he shared some great real-world knowledge and insights. He started off by telling about his own CQRS journey, jumping over to event sourcing and describing the EventStore model, dispatchers, serialization, etc. … Jonathan also showed two particular implementations, one for SQL Server and another for RavenDB. read more...

add a comment |category: |Views: 4

tags: another

Testing SignalR Connections with NUnit(www.bradygaster.com)

submitted by bradygasterbradygaster(4897) 7 months, 1 day ago

The SignalR GitHub site has an example wherein a SignalR PersistentConnection instance is used from a non-HTML client. The idea of being able to use SignalR connections in applications other than those that run in a web browser raises some interesting challenges. Likewise, there aren’t too many examples on how to use SignalR connections. This post will demonstrate asynchronously testing a SignalR connection in an end-to-end scenario using NUnit. read more...

1 comment |category: |Views: 31

tags: another

From the Cloud to the Client(www.bradygaster.com)

submitted by bradygasterbradygaster(4897) 7 months, 10 days ago

That title sums up what this blog post will summarize and explain; how to get data instantly from the cloud – in this case, the Azure cloud platform – all the way down to an HTML 5.0 browser. The point of this exercise is to take a slightly deeper dive into using SignalR. Secondary to the SignalR deep dive, this article will explain how to use the Azure Service Bus. read more...

1 comment |category: |Views: 74

tags: another

CLAP v2 for .NET released with a new web-site(adrianaisemberg.github.com)

submitted by AdrianAisembergAdrianAisemberg(2004) 7 months, 10 days ago

CLAP (.NET Command Line Auto Parser) v2 was released along with a new web-site with full documentation and many examples. read more...

1 comment |category: |Views: 25

tags: another