korayem

Stories kicked by friends of korayem

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

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

Prevent ASP.NET cookies from being sent on every css, js, img request(omaralzabir.com)

submitted by oazabiroazabir(1805) 7 months, 12 days ago

ASP.NET generates some large cookies if you are using ASP.NET membership provider. Especially if you are using the Anonymous provider, then a typical site will send 517 bytes of cookie on every css, js, image request. That's 60 GB worth useless upload for 1M page view. See how to prevent this. read more...

2 comments |category: |Views: 30

tags: another

Tweaking WCF to build highly scalable async REST API(www.codeproject.com)

submitted by oazabiroazabir(1805) 9 months, 26 days ago

You can build async REST API using WCF but due to some bug in WCF implementation it does not scale as you would want it to. Here's my journey with Microsoft's WCF team to explore the problem and find the right fix. read more...

add a comment |category: |Views: 6

tags: another

Build truly RESTful API and website using same ASP.NET MVC code(www.codeproject.com)

submitted by oazabiroazabir(1805) 9 months, 27 days ago

Usually we create separate controllers or WCF service layer to deal with API part of the website but I will show you how you can create both RESTful website and API using the same controller code working over the exact same URL that a browser can use to browse through the website and a client application can do CRUD over. read more...

add a comment |category: |Views: 6

tags: another

How to Securely Verify and Validate Image Uploads in ASP.NET and ASP.N(www.aaronstannard.com)

submitted by AarononthewebAaronontheweb(1140) 11 months, 2 days ago

How do you verify that content that your users are uploading to your ASP.NET site are just harmless images and not something malicious? Use GDI+ to validate that images are images and nothing else! read more...

add a comment |category: |Views: 23

tags: another

Automatic JS, CSS versioning to force update browser cache(omaralzabir.com)

submitted by oazabiroazabir(1805) 11 months, 28 days ago

When you update javascript or css files that are already cached in users’ browsers, most likely many users won’t get that for some time because of the caching at the browser or intermediate proxy(s). You need some way to force browser and proxy(s) to download latest files. Here's an HttpFilter that will automatically generate new URL for changed files. read more...

add a comment |category: |Views: 37

tags: another

WCF does not support compression out of the box, so fix it(omaralzabir.com)

submitted by oazabiroazabir(1805) 1 year, 3 months ago

WCF does not support compression over IIS. Even IIS does not support compression of SOAP messages by default. Learn how to fix both. read more...

add a comment |category: |Views: 1

tags: another

Safely deploying changes to production server(omaralzabir.com)

submitted by oazabiroazabir(1805) 1 year, 3 months ago

When you deploy incremental changes on a production server, which is running and live all the time, you some times see error messages like “Compiler Error Message: The Type ‘XXX’ exists in both…”. Sometimes you find Application_Start event not firing although you shipped a new class, dll or web.config. Sometimes you find static variables not getting initialized and so on. There are so many weird things happen on webservers when you incrementally deploy changes to the server and the server has been up and running for several weeks. Learn how to safely deploy and automate server restart, cleanup, start, warmup procedures. read more...

add a comment |category: |Views: 4

tags: another

Getting Started with AppHarbor – Heroku for .NET(www.aaronstannard.com)

submitted by runesoerensenrunesoerensen(30) 1 year, 4 months ago

Nice guide to setting up an ASP.NET MVC3 app on Appharbor (http://appharbor.com) read more...

add a comment |category: |Views: 112

tags: another

Creating Missing Index and Improve SQL Server Performance(blog.sqlauthority.com)

submitted by pinaldavepinaldave(9662) 1 year, 4 months ago

A Quick Script which you can right away run and improve SQL Server Performance. read more...

add a comment |category: |Views: 516

tags: another

Building an HTML5 App with ASP.NET(stephenwalther.com)

submitted by Stephen.WaltherStephen.Walther(180) 1 year, 4 months ago

Describes how to create a JavaScript Reference by taking advantage of HTML5 features such as local storage, and offline manifests. Also demonstrates how to build server-side JavaScript unit tests for an Ajax application. read more...

1 comment |category: |Views: 661

tags: another

Book Review: Programming Entity Framework(mosesofegypt.net)

submitted by mosessaurmosessaur(5424) 1 year, 4 months ago

A Review on Programming Entity Framework Book. read more...

add a comment |category: |Views: 7

tags: another

How to Use Remote Validation in ASP.NET MVC3(www.aaronstannard.com)

submitted by AarononthewebAaronontheweb(1140) 1 year, 5 months ago

Remote validation is brand new as of ASP.NET MVC3 RC, and it's a powerful feature for remotely validating user input against your data repositories in real-time, and it doesn't require developers to program ANY jQuery whatsoever. read more...

add a comment |category: |Views: 31

tags: another

Quick ways to boost performance and scalability of ASP.NET, WCF and De(omaralzabir.com)

submitted by oazabiroazabir(1805) 1 year, 5 months ago

By tweaking system.net changes, you can increase the number of parallel calls that can be made from the services hosted on your servers as well as on desktop computers and thus increase scalability. By changing WCF throttling config you can increase number of simultaneous calls WCF can accept and thus make most use of your hardware power. By changing ASP.NET process model, you can increase number of concurrent requests that can be served by your website. And finally by turning on IIS caching and dynamic compression, you can dramatically increase the page download speed on browsers and and overall responsiveness of your applications. read more...

add a comment |category: |Views: 10

tags: another