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.

Django 1.0 Released

Yes it is true, Django 1.0 has been released today. Here is a part of the announcement: No, you’re not hallucinating, it’s really here. Around three years ago, Adrian, Simon, Wilson and I released some code to the world. Our plan was to hack quietly on it for a bit, release a solid 1.0 release, and then really get the ball rolling. Well. What happened, of course, was that an amazing community sprung up literally overnight — our IRC channel had over a hundred people in it the day after release, and it’s never been that “empty” since.

Read More...

Google chrome the new browser, my first impressions.

So I got it installed at home on a windows XP machine. It installed really quickly but you have to close Firefox so it can import all the settings from that. I’m not even sure it asked me if it could do that. I’m actually writing this blogpost in chrome. So it loads the pages really fast and it renders the pages mainly in one go. I think it loads those pieces from the same server in one go.

Read More...

VB.Net: Resharper New version 4.1

I don’t know when they released it, but it has a huge amount of fixes and improvements. The Release notes page says it all. Edit: Apparently they did it yesterday. Today, we’re excited to announce the release of ReSharper 4.1! This minor version is highlighted by: Support for Microsoft Visual Studio 2008 SP1 Enhanced ASP.NET experience Improved performance and usability: quicker solution load, optimized Unit Test Explorer behavior, and more

Read More...

VB.Net: Resharper SurroundTemplate for Try Catch

Apparently someone at JetBrains forgot to add a surround template for Try catch in VB.Net. It is there for C#. So I created it for myself. This is the xml. Just save it in a file and import it in resharper. xml <TemplatesExport family="Surround Templates"> <Template uid="febffd83-d964-4b7d-96fe-abd071be9c50" text="Try
 $SELECTION$
Catch ex As Exception

End Try" shortcut="" description="Try...Catch" reformat="true" shortenQualifiedReferences="true"> <Context> <VBContext context="Expression" /> </Context> <Categories /> <Variables /> <CustomProperties /> </Template> </TemplatesExport>

Read More...

Google chrome in Beta

First, I would like to ask myself why do we need another browser? Well, because competition is a good thing. But is it really competition and from who will it steal the market share? I’m pretty sure it will steal from Firefox and the other lesser used browsers, because those are the people that actually take the effort to install something different than Internet Explorer. The IE users either don’t have a choice or they just aren’t computer savvy enough to know there are other things out there (like aliens).

Read More...

Stats For The Last Three Months

I have decided to do a little blogpost with some stats. These stats are from June 1st until August 31st 2008 Browsers First we will take a look at the browsers. as you can see FireFox is the most used browser with 55%. I wonder how Google Chrome will do, will it take market share from Internet Explorer or from Firefox(or both)? Browser %visits Firefox 55.41% Internet Explorer 39.04%

Read More...

VB.Net: Print a DataGridView with RustemSoft’s Print Class and an Extension method

Today I also needed to print the datagridview that was filled with the resutls of my queries. Instead of using a report engine, I used a tool already in my toolbox, namely Rustemsoft’s datagridviewprint class. I made another extension method (I really like those things). You can find the code on our wiki. And here is an example. I obfuscated the results just so it looks a bit more important ;-).

Read More...

VB.Net: Printing the content of a RichtextBox

Today, I was looking for a method to Print the text that is in a RichTextbox. The printing of the text is no problem but keeping the formatting is a little more troublesome. The first solutions you find use VB6 to accomplish this (by using an ActiveX control. But that was just not happening in my project. Then, helped by an article on MSDN, I found the solution, which is actually just a com call and the same as what the others are doing.

Read More...

WPF Performance Profiling Tools

If you have done windows forms development in the past and now you are using Windows Presentation Foundation, then you cannot help but notice that Windows Presentation Foundation uses more resources. This is why you need Performance Profiling Tools for WPF. Below is a list of 5 five performance profiling tools that are included in the Windows SDK tool, WPFPerf: ** Perforator** Use for analyzing rendering behavior. Visual Profiler Use for profiling the use of WPF services, such as layout and event handling, by elements in the visual tree.

Read More...

Find Out The Recovery Model For Your Database

You want to quickly find out what the recovery model is for your database but you don’t want to start clicking and right-clicking in SSMS/Enterprise Manager to get that information. This is what you can do, you can use databasepropertyex to get that info. Replace ‘msdb’ with your database name select databasepropertyex('msdb','Recovery') What if you want it for all databases in one shot? No problem here is how, this will work on SQL Server version 2000

Read More...