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.

How a profiler can help resolve performance problems.

Today I finaly had some time to sacrifice to finding why my application was slow at startup (around 30 seconds). So I opened up JetBrains’s dotTrace and went to work. In less then half an hour I shaved at least 10 seconds of the startup time. So here is the first profiler screenshot. Here we can see that the main method takes 20 seconds to run and that resolve<T> takes the most time.

Read More...

An Aha moment and NUnit categories

Life can be so simple sometimes but you just have to think about it. I found it very cool when Sean Feldman posted this CategoryAttribute. Yeah I know the title doesn’t say everything and the post iskinda short but very sweet to me. More DRYness to play with. Now let me translate his post into VB.Net. How not to do it. &lt;Category("Integration")&gt; _ How to do it. vbnet &lt;Category(Categories.Integration)&gt; _ where Categories is a sealed class with constants

Read More...

Some PostgreSQL Announcements

Today there were some PostgreSQL announcements, these announcements are below pgAdmin v1.10.0 Beta 3 is now available pgAdmin v1.10.0 Beta 3 is now available for testing in source, Windows and Mac OS X distributions from: http://www.postgresql.org/ftp/pgadmin3/release/v1.10.0-beta3/ New version of PostgreSQL 8.3 Live CD released PostgreSQL live CD, which is based on Fedora 10. The major change is PostgreSQL 8.3.7 . It includes the PostgreSQL related packages that built on http://yum.pgsqlrpms.org .

Read More...

Disaster/Recovery for Reporting Services objects (rdl, rds etc..)

One of the must have tools for any DBA that has one or multiple SSRS instances of SSRS running, is the RSScripter tool written by Jasper Smith. I can’t say enough about how critical this tool has been to my success in administrating and successfully providing a 100% report uptime goal. There are several key tasks this tool accomplishes for me without much more time consuming scripting projects. Without them it would be a painstaking task to accomplish backing up SSRS and shipping offsite.

Read More...

NHProf, bags, the select N+1 problem and solving it

Ok so here is how NHProf has helped me solve a problem. This one in particular is a Select N+1 problem which means is that you are executing the same select several times in one session which usualy means you are doing something wrong. First up the code. When doing a find all on a class called Fibergroup I get this as a result from NHProf. What we see is that there is one select tbl_fibergroup and then then a select on fiberclass and several selects on fibersubclass.

Read More...

Using Windows Server 2008 as a Desktop OS

I recently built a new PC, and I needed to get a 64 bit operating system. I had a copy of Server 2008 sitting around from MSDN, so I thought why not use that? If I did, I could run Hyper-V and some of the other cool server gadgets, and the tradeoff in user experience would be minimal. With some guidance from a friend I soon realized that I could do this with no sacrifice in the user experience at all.

Read More...

Microsoft Enterprise Developer Conference Overview

This is the second time that I went to the Enterprise Developer Conference. Due to the downturn Microsoft merged the financial and health/live sciences conferences into one. Last years main focus was High Computing, this years main focus was……tada…..drumroll…..Cloud Computing. No big surprise of course. There were always 5 sessions at the same time so I can only report on the ones that I attended. The SQL Server Data Services session was in my opinion the best one but then again I am biased.

Read More...

Me and NHProf: the beginning

As a user of nHibernate it was about time I got to check out NHProf. NHProf is a profiler for nHibernate applications. In other words you can see what SQL nHinernate is producing and it also gives alerts for parts that have suspect code in it. First of course I had to download the package you can have a 30 day trail to go so you can test it on your application.

Read More...

nhibernate, nunit 2.4.6 and log4net

Today I noticed that my integration tests with nhibernate were runnning very slow on the build server. Very slow meaning 1 hour to run while they run for 6 minutes on my dev machine all 840 of them. Something was different. I am using Finalbuilder 5.5 on my build machine and that uses the nunit console to do the dirty work for it. So I tried running it in the nuint gui tool and there too it was slow.

Read More...

How to make your VMware VM crash

Time for a short post. A couple of weeks ago I made A windows server 2003 VM for VMWare on my VMWare Workstation 6.5. Nothing very difficult, jst download the image from MSDN mount the image in something lik Virutal clonedrive and start installing. Everything worked just fine, installing was a breeze. But it kept crashing on me. SOmetimes it would run for a day sometimes for a few hours other times for a couple of days.

Read More...