rmarley

Stories kicked 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

A recipe for Dev to Production with ASP.NET MVC and RavenDB(devdirective.com)

submitted by RobertTheGreyRobertTheGrey(447) 1 month, 25 days ago

Been meaning to spend time looking into a NOSQL solution, but don't have time to do the research? Now is your chance! We've broken it down for you so you can get at this topic from dev to production. So, don't be tentative and let procrastination hold you back. Learn this stuff! You'll be happy you gave it the time it deserves... read more...

2 comments |category: |Views: 243

tags: another

5 things to learn about ASP.NET MVC 4(devdirective.com)

submitted by RobertTheGreyRobertTheGrey(447) 2 months, 1 day ago

MVC took 3 versions to become a stable and widely usable web application development framework, but still had you doing many things from the ground up. Version 4 now comes with plenty more in the box and it's looking more and more like a web framework to be reckoned with read more...

2 comments |category: |Views: 665

tags: another

5 things you never thought about doing with MVC 3(devdirective.com)

submitted by RobertTheGreyRobertTheGrey(447) 2 months, 1 day ago

Let's face it - there are a lot of sites out there now running MVC3, probably mostly using the same patterns. This is a taster of some of the creative ways that this versatile platform is being used. read more...

2 comments |category: |Views: 591

tags: another

Windows 8 Consumer Preview Roundup(blogs.dotnetkicks.com)

submitted by dpetersondpeterson(4397) 2 months, 18 days ago

In case you’ve been living under a rock, you should probably know that Microsoft released a Consumer Preview version of Windows 8 this week. We've dug through some of the more interesting links and digested them for you here. Check out the build and let us know what you think of it! read more...

add a comment |category: |Views: 179

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

Running your TeamCity builds from PowerShell for any Git branch(www.laurentkempe.com)

submitted by laurentkempelaurentkempe(317) 3 months, 21 days ago

I love TeamCity and use it since a while to automate my build/release processes. As human we should never do the work a machine can do, we have certainly better and more interesting things to do. The habit I saw in the different projects I worked for is to create new TeamCity builds for the branches you work on. It take quite some work to do, even with templates… So I came with another way of doing it. It is leverage Git, PowerShell and the possibility to run TeamCity builds by “Accessing Server by HTTP” read more...

add a comment |category: |Views: 102

tags: another

NCrunch, The Incredible TDD Tool!(www.ellogical.com)

submitted by elroydsilvaelroydsilva(100) 3 months, 21 days ago

A review of the TDD tool 'NCrunch'. read more...

add a comment |category: |Views: 502

tags: another

Web Essentials and CSSCop for Visual Studio 2010 (www.techbubbles.com)

submitted by kalyanms1kalyanms1(1789) 3 months, 21 days ago

This post discuss about new features in Web Essentials extension and Image optimizer which helps developers to write web applications faster. A new extension CSSCop which is a FXCop for style sheets. You can download the Web Essentials for Visual Studio 2010 here. The CSSCop can be download from here. Download link for Image Optimizer is here. You can read my previous post on Web Standards update here to refresh your memories. read more...

1 comment |category: |Views: 59

tags: another

Lucene.net - Ultra-fast search for MVC or Webforms(www.codeproject.com)

submitted by dpetersondpeterson(4397) 3 months, 25 days ago

Mikhail T. has put together an article showing how you can integrate the Java-based Apache Lucene project with your .Net based MVC or WebForms sites, giving you ultra-fast and slick search capabilities. read more...

add a comment |category: |Views: 432

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