orca

Stories kicked by orca

Papercut vs smtp4dev - Testing mail sending locally(www.improve.dk)

submitted by orcaorca(820) 1 year, 10 months ago

Testing mail functionality in code using external mail servers has always been a hassle. If the mail manages to dodge antispam and various other mischievous services, it'll probably take several minutes to receive. On our Exchange servers it'll typically take 10-15 minutes before a locally sent mail actually arrives back in my inbox. We can do better! read more...

add a comment |category: |Views: 39

tags: another

Bundling image requests for increased performance(www.improve.dk)

submitted by orcaorca(820) 1 year, 11 months ago

A common scenario in RIA's is to show a large amount of small pictures on a single page. Let's say we want to show 100 images in a grid. While the simplest approach is to just put in 100 image objects and load in the images one by one, I believe it can be done smarter... read more...

add a comment |category: |Views: 8

tags: another

Going Lazy<T> with System.Lazy(www.dimecasts.net)

submitted by dwhittakerdwhittaker(13.1k) 2 years ago

Taking a look at the how to use the System.Lazy namespace in .Net 4.0. One of the pretty cool new nuggets inside the .Net 4.0 framework is System.Lazy and System.Lazy. What System.Lazy brings to the table is a way to create objects which may need to perform intensive operations and defer the execution of the operation until it is 100% absolutely needed. read more...

add a comment |category: |Views: 609

tags: another

Writing a calculator in C# using SableCC(improve.dk)

submitted by orcaorca(820) 2 years, 7 months ago

Writing a calculator is a simple task - just add nine buttons labeled 1-9 and add a plus and minus button and we're almost good to go. In this entry I'm going to write a calculator called SimpleCalc that does not have a GUI, instead it'll take in an arbitrary expression and calculate the results of it. The input I'll use as my immediate goal is: 25-37+2*(1.22+cos(5))*sin(5)*2+5%2*3*sqrt(5+2) read more...

add a comment |category: |Views: 33

tags: another

Combining paths with multiple parts(improve.dk)

submitted by orcaorca(820) 2 years, 8 months ago

Improving on Path.Combine to more easily enable the combination of multiple path parts. read more...

add a comment |category: |Views: 2

tags: another

The cost of latent logging code(improve.dk)

submitted by orcaorca(820) 2 years, 8 months ago

Logging is an integral part of most applications, whether it's for logging performance metrics or causality data. Avoiding performance hits due to logging can be tricky though as we don't want to spend CPU cycles on the logging infrastructure when logging is disabled, while still keeping the full logging ability when required. read more...

add a comment |category: |Views: 8

tags: another

More ASP.NET MVC Best Practices(blog.maartenballiauw.be)

submitted by maartenbamaartenba(5845) 3 years ago

In this post, I’ll share some of the best practices and guidelines which I have come across while developing ASP.NET MVC web applications. I will not cover all best practices that are available, instead add some specific things that have not been mentioned in any blog post out there. Existing best practices can be found on Kazi Manzur Rashid’s blog and Simone Chiaretta’s blog. read more...

add a comment |category: |Views: 1837

tags: another

How to test your multi-threaded code (part 1 of 3)?(blog.decarufel.net)

submitted by decarufedecarufe(959) 3 years ago

CHESS is the answer. At least this is what we have best right now. read more...

add a comment |category: |Views: 480

tags: another

ASP.NET MVC Tip: Turn on compile-time View Checking(devermind.com)

submitted by pluggypluggy(284) 3 years ago

I like the compiler to catch as many errors as possible before I start debugging or release my application. This also applies to code nuggets in ASP.NET MVC views, especially since these are not unit-testable. This article shows how to enable compile-time View checking for ASP.NET MVC projects. read more...

add a comment |category: |Views: 310

tags: another

Implementing a simple genetic algorithm(improve.dk)

submitted by orcaorca(820) 3 years ago

In this blog post I'll give a quick introduction to what genetic algorithms are and what they can be used for. We'll implement a genetic algorithm that attempts to guess an RGB color by evolving upon a random set of initial guesses, until it at some point evolves into the correct RGB value. read more...

add a comment |category: |Views: 499

tags: another

NHibernate Unit Testing(ayende.com)

submitted by andrea.balducciandrea.balducci(60) 3 years ago

Good introduction to unit testing with NHibernate and SqlLite from Ayende. read more...

add a comment |category: |Views: 333

tags: another

Static Method Interception in .NET with C# and Mono.Cecil(codethinked.com)

submitted by justin_etheredgejustin_etheredge(8539) 3 years ago

Interested in Mono.Cecil? A very short introduction to a very cool and powerful tool. read more...

add a comment |category: |Views: 402

tags: another

Solving deadlocks through locking hints(improve.dk)

submitted by orcaorca(820) 3 years, 1 month ago

Deadlocks in any database can be a hard beast to weed out, especially since they may hide latently in your code, awaiting that specific moment when they explode. An API website, exposing a series of webservices, had been working fine for months, until I decided to run my client app with a lot more threads than usual. read more...

add a comment |category: |Views: 19

tags: another

Using Squid as a reverse proxy with a .NET url rewriter(improve.dk)

submitted by orcaorca(820) 3 years, 1 month ago

Once you start receiving visitors from all over the world, a new kind of scaling issue arise. This article looks at how we can use the open source Squid proxy to alleviate the problem. read more...

add a comment |category: |Views: 10

tags: another

Sorting projects and solution folders in VS 2008(whoknew.dk)

submitted by orcaorca(820) 3 years, 2 months ago

How to get projects & folders sorted correctly in VS2008! read more...

add a comment |category: |Views: 39

tags: another

Deciphering a SQL Server data page(improve.dk)

submitted by orcaorca(820) 3 years, 2 months ago

SQL Server stores all of it's data in what is basically a large array of "pages". Each page is exactly 8kb and can contain various kinds of data, depending on the page type. In this entry we'll explore how to decipher a data page. read more...

add a comment |category: |Views: 6

tags: another