CSharpFeeds - All your C# feeds in one place.

Thursday, February 02, 2012

Sponsor

Code Review Singleton Pattern Issues

by via Blog on 2/2/2012 2:22:02 AM

One of my applications relies on a singleton pattern to create a single instance of a server which processes requests from many different ASP.NET handlers.  It is created using pretty much standard Singleton code: public static Context CreateContext() { return CreateContext(new ConfigurationFileSettings()); } Recently, this server needed to be made aware of whether requests were coming into it via SSL or standard HTTP.  The solution that was checked in (and which worked and pa ...

[ read more ]

Thursday, January 19, 2012

Run Your Unit Tests in Parallel to Maximize Performance

by ssmith via Blog on 1/19/2012 7:04:00 PM

If you’re at all serious about testing, at some point you’re going to have a rather large suite of tests that need to run, and you’ll find that your builds are taking longer than you would like because of how long the tests run.  For example, consider this suite of 24 tests, each one of which looks like this one: If you run 24 of these, it’s going to take about 24 seconds, by default: Now of course it’s important to keep your unit tests and integration tests separate and to know which ...

[ read more ]

Wednesday, January 04, 2012

IE9 not rendering box-shadow Elements inside of Table Cells

by Rick Strahl via Rick Strahl's Web Log on 1/4/2012 2:44:15 AM

Ran into an annoying problem today with IE 9. Slowly updating some older sites with CSS 3 tags and for the most part IE9 does a reasonably decent job of working with the new CSS 3 features. Not all by a long shot but at least some of the more useful ones like border-radius and box-shadow are supported. Until today I was happy to see that IE supported box-shadow just fine, but I ran into a problem with some old markup that uses tables for its main layout sections. I found that inside of a table c ...

[ read more ]

Monday, January 02, 2012

XmlWriter and lower ASCII characters

by Rick Strahl via Rick Strahl's Web Log on 1/2/2012 10:36:44 AM

Ran into an interesting problem today on my CodePaste.net site: The main RSS and ATOM feeds on the site were broken because one code snippet on the site contained a lower ASCII character (CHR(3)). I don't think this was done on purpose but it was enough to make the feeds fail. After quite a bit of debugging and throwing in a custom error handler into my actual feed generation code that just spit out the raw error instead of running it through the ASP.NET MVC and my own error pipeline I found th ...

[ read more ]

Thursday, December 29, 2011

Shadowcasting in C#, Part Six

by Eric Lippert via Fabulous Adventures In Coding on 12/29/2011 3:05:00 PM

OK, let's finish up this year and this series. We have an algorithm that can compute what cells in the zero octant are in view to a viewer at the origin when given a function that determines whether a given cell is opaque or transparent. It marks the visible points by calling an action with the visible cells. We would like that to work in any octant, and for the viewer at any point, not just the origin. We can solve the "viewer at any point" problem by imposing a coordinate transformation on th ...

[ read more ]

ASP.NET Security Update Shipping Thursday, Dec 29th

by ScottGu via ScottGu's Blog on 12/29/2011 4:59:54 AM

A few minutes ago Microsoft released an advance notification security bulletin announcing that we are releasing an out-of-band security update to address an ASP.NET Security Vulnerability. Dec 29th Update: the security update (MS11-100) has now shipped and is available to install via Windows Update, the Windows Server Update Service and as a download from the Microsoft Download Center. The security update we are releasing resolves a publicly disclosed Denial of Service issue present in all ...

[ read more ]

Tuesday, December 27, 2011

Shadowcasting in C#, Part Five

by Eric Lippert via Fabulous Adventures In Coding on 12/27/2011 6:05:00 PM

I hope you all had a pleasant Christmas and Boxing Day; we chose to not travel to see family this year and had a delightful time visiting friends. We'll finish up 2011 here with a bit more on shadowcasting, and then pick up with more C# language design facts and opinions in January. OK, so we've found the top and bottom cells in a particular column portion, bounded by a top and bottom vector. Now we have two tasks. First, all cells in that portion that are in the radius need to be marked as v ...

[ read more ]

Friday, December 23, 2011

Changing the default HTML Templates to HTML5 in Visual Studio

by Rick Strahl via Rick Strahl's Web Log on 12/23/2011 12:19:34 PM

If you're using Visual Studio 2010 to create Web applications, you probably have found out that the default Web templates for ASP.NET Web Forms and Master pages and plain HTML pages all create HTML 4 XHTML headers like this:<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="$fileinputname$.aspx.cs" Inherits="$rootnamespace$.$classname$" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="h ...

[ read more ]

Thursday, December 22, 2011

Shadowcasting in C#, Part Four

by Eric Lippert via Fabulous Adventures In Coding on 12/22/2011 5:18:00 PM

Last time we saw how many different ways there were to get the calculation of the top cell based on the top vector wrong. Today we'll take a briefer look at determining the bottom cell. We know from our discussion of last time that the right way to determine what is the top-most visible cell in a column portion is to consider where the top vector leaves the column. By similar logic, the right way to determine where the bottom-most cell is in a column portion is to look at where the bottom vecto ...

[ read more ]

Monday, December 19, 2011

Shadowcasting in C#, Part Three

by Eric Lippert via Fabulous Adventures In Coding on 12/19/2011 4:06:00 PM

Before we get started, thanks for all the great comments to the previous couple of posts. I'll be updating the algorithm to try to make even better-looking circles of light based on the comments. Like I said, there's a lot of subtleties to these algorithms and I am just learning about them myself. To that end, in today's episode I am going to spend the entire prolix article analyzing a single division operation. You have been warned. Before we begin though, some jargon. A cell which is invisibl ...

[ read more ]

Subscribe

New Feed

Product Spotlight

Recently Updated Sources

Legal Note

The content of the postings is owned by the respective author. CSharpFeeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on CSharpFeeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.

Advertise with us