LessThanDot Site Logo

LessThanDot

A decade of helpful technical content

This is an archive of the posts published to LessThanDot from 2008 to 2018, over a decade of useful content. While we're no longer adding new content, we still receive a lot of visitors and wanted to make sure the content didn't disappear forever.

ASP.NET MVC Release Candidate 2 Has Been Released

ASP.NET MVC Release Candidate 2 is ready for download Changes Since RC 1 Anti-Forgery Helpers Support Setting Cookie Path DefaultModelBinder Validation Messages Are Now Localizable New ValidationSummary Method Overload Supports Header Message jQuery Updated to Version 1.3.1 Setup Requires .NET Framework 3.5 SP1 Download ASP.NET MVC Release Candidate 2 here: http://www.microsoft.com/downloads/details.aspx?FamilyID=ee4b2e97-8a72-449a-82d2-2f720d421031&displaylang=en Release Notes: http://go.microsoft.com/fwlink/?LinkId=137662 Overview The ASP.NET MVC RC2 release provides a new Model-View-Controller (MVC) framework on top of the existing ASP.

Read More...

Collection Of Puzzles For Programmers

Did you know that we have a nice collection of puzzles here on less than dot? Some are harder than others so there is something for everyone. You can pic any language you want, you will see that there are solutions in Ruby, Python, Visual Basic, SQL, JavaScript, C++ and other. Here is a partial list of what we have Friday the Thirteenths The goal is to identify all friday the thirteenths for a given timeframe

Read More...

FireFox, Chrome and Internet Explorer 8 Memory Usage, IE8 Uses More Memory Than Chrome and FireFox Combined

I decided to do a little test on one of my machines with the three browsers I use most. In each browser I opened up Gmail, Google Reader and CNNMoney. I did this on Friday and did not look at the memory usage until Monday. After a little less than 3 days, we get the following numbers Chromium 1.0.154.48 180,157k IE 8.00.6001.18372 362,223k Firefox 3.0.4 100,148k Looking at these numbers makes you think that Google wrote Gmail and Google Reader in such a way that it on purpose made Internet Explorer leak memory like a bucket without a bottom.

Read More...

SQL Friday, The Best SQL Server Links Of The Past Week Episode 13

Time for another episode of the SQL Friday, The Best SQL Server Links Of The Past Week show. Here is what I found interesting this past week in SQL Land: Is CHECKDB A Necessity? I’m often asked by professionals whether CheckDB is still recommended on SQL2k8. SQL is calculating a checksum to avoid physical page corruption since 2k5. However in my experience (starting with SQL 7.0) I’ve never been able to clearly say that CheckDB is not necessary .

Read More...

Learn Visual Studio 2010 now by watching these videos

Channel 9 has a bunch of videos showing all the new stuff in Visual Studio 2010. Below is a list of the videos and a little blurb telling you what the video is about. Episode 1: Working with the Visual Studio 2010 CTP VPC we’ll look at how to download and use the Virtual PC image of the Visual Studio 2010 September CTP. We’ll give you tips on how to download this massive (7GB+ compressed) VPC, show you how to get past some pesky expiration issues, and get you started with the CTP walkthroughs

Read More...

Podcasts I Listen To

I have been listening to podcasts for about 3 years now. The first podcast I have ever listened to was This Week In Tech and I have been hooked ever since. Podcasts are a great way to learn something while on the go. Here is a list of stuff I listen to This Week In Tech This is a weekly podcast about the tech news for the week. The best episodes are the ones with John C.

Read More...

Windows forms and structuremap the single instance form

So we have a windows forms application and some of these forms can only be used once. Like for instance a dashboard. Everytime we show the form we just want it to either show a new one, if it’s the first time opened, or we want to show the one that already exists. In essence, this would be good case for a singleton pattern. But the singleton pattern is evil. Why is it evil?

Read More...

SQL Friday, The Best SQL Server Links Of The Past Week Episode 12

Time for another episode of the SQL Friday, The Best SQL Server Links Of The Past Week show. Here is what I found interesting this past week in SQL Land: Understanding backups and log-related Trace Flags in SQL Server 2000⁄2005 and 2008 Kimberly Tripp is giving a play by play from 2000 to 2005⁄2008 to discuss the differences and what’s changed and why those changes were significant. The biggest changes were between 2000 and 2005.

Read More...

How To Name Default Constraints And How To Drop Default Constraint Without A Name In SQL Server

Take a look at this code create table Foo2(id int, id2 int constraint DefaultID2 default 1) As you can see it is a simple table with 2 columns, the second column has a constraint on it named DefaultID2. We can verify that the table has a default on that column by writing something like this select column_default from information_schema.columns where table_name = 'Foo2' and column_name = 'id2' this is the output

Read More...

SQL Server Distance Calculation Option 3 – Using the CLR

In 2005- Version and 2008 Version George and Denis have already shown a couple of great ways to calculate distance between two pairs of latitude/longitude coordinates in SQL Server. In SQL 2005 + there is a third option (Well, it was the second option until 2008 introduced the new Geography data type). SQL 2005 was the first version of SQL Server to offer CLR integration – giving developers the ability to write their own functions and stored procs as .

Read More...