August 2005 - Posts

HELP: Where is the solution explorer? (VS.NET 2005 beta 2)

Today I installed Visual Studio 2005 Beta 2 without Team System. The first thing I did was creating a web project. But when the project was created I couldn't  see the solution explorer.

What the heck? I search for it in every menu but I still can't find it. Can somebody give me a hint? Right now I feel like i'm a total noob.

Posted by Chi Wai Man | 12 comment(s)
Filed under:

DotNed meeting: Team System Source Control

Thursday I attended the DotNed meeting at Avanade. They showed us some features of Team System Source Control and the differences between visual source safe 2005.

Here is a summary of the presentation:

  • Visual Studio Team System is extensible by using web services. It is fully customizable and you can build your own tools to plug into Team System;
  • You can checkin at transaction level. This is called Atomic checkin;
  • Sometimes to fix a bug you need to change several files. You can associate these several files as a pakacge called changeset;
  • It is possible to perform a multiple checkout on one file. For example, you and your collegue can checkout the same file (branching) but the last one who checks in, will have to merge the file;
  • Distributed development  is supported. To support low latency networks you can use the Caching proxy feature. When using this feature it will locally store the source control data to speed up the source control process.
  • The source control system stores only the latest file version. The previous file version  will be deleted and only the delta version will be stored. To get the delta version the system will calculate the difference between the latest and the previous file version;
  • You can add validating policies to the checkin process to enforce several rules.
  • The new Visual Source Safe is still crap. Use Team System Source control!

 

Posted by Chi Wai Man | with no comments
Filed under:

Retro stuff found on my vacation in barcalona

In barcalona I didn't found many computer shops. So it suprised me when I found some brand new dreamcast controllers, memory cards and gameparks! Nowadays it really hard to find these stuff.

 

 

Posted by Chi Wai Man | with no comments
Filed under:

HOWTO: Get rid of Source Control files

 A lot of times I had to send my sources to an another team. And ofcourse ... the other team uses an another source control application. Thus I had to clean up my sources manually.
But today I finally found two applications that will clean up my sources automatically:) Isn't that great?

Clean sources

This Application does one thing. It adds an explorer shell menu to folders that when selected will recursively delete the contents of the bin, obj and setup folders. If you have a .NET project that you wish to share with some one, this is useful to remove the unnecessary stuff from the folder before you zip it up and send it off. This Application does one thing. It adds an explorer shell menu to folders that when selected will recursively delete the contents of the bin, obj and setup folders. If you have a .NET project that you wish to share with some one, this is useful to remove the unnecessary stuff from the folder before you zip it up and send it off.

http://wiki.shahine.com/default.aspx/MyWiki/CleanSources.html



Source Safe Bindings Remover

After you added a solution to source control in Visual Studio there is no easy way to completely remove the source control from that project. You can detach the project, or work in offline mode, but if you were moving to another source control system (CVS, Subversion, etc) or wanted to distribute your code the first thing you should do is remove all the sourcesafe bindings from that project. A quick and easy way to do this is using the SourceSafe Binding Remover tool.

http://visualstudiohacks.com/SCBRemover

Caution: Place the tool on your local drive and not on the network drive. Otherwise the application will raise a policy exception.


Posted by Chi Wai Man | with no comments
Filed under:

C# Coding Guidelines

Some links about C# coding standards from: Philips Medical SystemsIDesign and microsoft.

Posted by Chi Wai Man | with no comments
Filed under:

Optimize Firefox with Firetune

FireTune for Mozilla Firefox v1.x was developed for an easy and fast optimization of your browsing experience with Firefox. It is based on a collection of popular and well working optimization settings used and tested by the experts. Usually you have to optimize Firefox manually, which can be time consuming and difficult for the novice user. FireTune helps you here - it includes all the performance optimizations. The only thing you must do is: make your selection. FireTune does the work for you.

Go to : http://www.totalidea.com/freestuff4.htm for more information.


How to tell whether Firefox is faster after optimizing it with FireTune
There's a simple way to tell whether Firefox works faster after optimizing it with FireTune. Just follow these instructions:

- Clear the cache of Firefox from the Firefox settings dialog - this is very important!
- Before you optimize Firefox, navigate to http://www.numion.com/stopwatch/ and do a speed test on http://www.mozilla.org/products/firefox/
- The time needed to load the site completely will be displayed to you in the browser window. Write down the time
- Clear the cache of Firefox from the Firefox settings dialog again - this is very important!
- Now, close Firefox, and optimize it with FireTune
- Start Firefox again, and repeat the speed test on http://www.mozilla.org/products/firefox/
- Compare the displayed result with the result from the test before the optimization


Posted by Chi Wai Man | with no comments
Filed under:

ASP.NET Development Helper

The ASP.NET development helper is a very cool plugin for IE & Firefox. Check the screenshots on the nikhil.net website.

A quote from Nikhil Kothari:

 ASP.NET Development Helper is a utility for ASP.NET page and control developers that plugs into Internet Explorer. It allows viewing information about the current page such as view state and trace, perform some operations on the server in the context of the running application to aid testing, and also allows monitoring requests and responses for diagnostic scenarios.

The tool requires beta 2 of the .NET framework v2.0. All features except the HTTP logs feature only work when the application is on http://localhost, in other words, it does not allow a remote user to interact with the server application.

Posted by Chi Wai Man | with no comments
Filed under:

Yes! A removal tool to remove previous beta versions of VS.NET 2005

A long time ago I Installed VS.2005 beta 1 on my laptop and it was a pain in the *** to get rid it.

While surfing the net I found some information about removing beta1 of  visual studio 2005. Here are some links:

Posted by Chi Wai Man | with no comments

Implement a back button in ASP.NET

I have a survey webapplication which has several pages. When the user clicked on the next button the next page will be displayed. In fact, the next button triggers a postback to the same page everytime. On the same page I have a html hyperlink to an another aspx. When the user clicks on the hyperlink it will redirected to another aspx. To go back, the user clicks on a button that will trigger a javascript onclick = "javascript history.go(-1)"  Sadly this don't work everytime. Sometimes the user stays in the same page instead of going back to the original aspx. To solve this problem I found an article about a back button in ASP.NET: http://codebetter.com/blogs/peter.van.ooijen/archive/2005/07/19/129384.aspx

Thanx to Peter van Ooien.

But there is a downside using this solution. You'll have to use viewstate on every page and the referer object will be used. Hmm I don't think this sounds nice. Maybe I'll have to look for an another solution.
Posted by Chi Wai Man | 6 comment(s)
Filed under:

Manage application settings using EntLib 1.1 in 4 simple steps

I found an article at http://blog.hishambaz.com/archive/2005/01/30/197.aspx to manage your application settings using EntLib. Here is my short version.

1. Create a new solution and a project with the name WebCrawler.Configuration and open the Web.config with the Enterprise Library Configuration Tool. Add a Configuration Application Block en name it as  webCrawlerConfiguration.

2. Create a config file named WebCrawler.config and add this to the solution.

 In the WebCrawler.config write the following code:

<?xml version="1.0" encoding="utf-8"?>

   <webCrawlerConfiguration>

        <xmlSerializerSection type="WebCrawler.Configuration.WebCrawlerSettings,WebCrawler.Configuration">

        <WebCrawlerSettings xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

             <timeout>30</timeout>

             <Retries>5</Retries>

             <Proxy>myproxy:8080</Proxy>

</WebCrawlerSettings>

</xmlSerializerSection>

</webCrawlerConfiguration>

 3. Add  a class file named WebCrawlerSettings.cs.

Add  a class file named WebCrawlerSettings.cs.
In the WebCrawlerSettings.cs write the following code:

namespace WebCrawler.Configuration

{

 

 

public class WebCrawlerSettings

{

public static string SectionName = "webCrawlerConfiguration";

private int _timeout;

private int _retries;

private string _proxy;

 

 

 

 

public WebCrawlerSettings(){}

 

 

public int Timeout

{

get { return _timeout; }

set { _timeout = value; }

}

 

 

 

public int Retries

{

get { return _retries; }

set { _retries = value; }

}

 

public string Proxy

{

get { return _proxy; }

set { _proxy = value; }

}

}

}

 

 4. In the WebForm1.cs  write the following code:


using System;

using System.Diagnostics;

using Microsoft.Practices.EnterpriseLibrary.Configuration;

namespace WebCrawler.Configuration

{

 public class WebForm1 : System.Web.UI.Page

{

private void Page_Load(object sender, System.EventArgs e)

{

WebCrawlerSettings settings = (WebCrawlerSettings)ConfigurationManager.GetConfiguration("webCrawlerConfiguration");

Debug.WriteLine(settings.Timeout);

Debug.WriteLine(settings.Retries);

Debug.WriteLine(settings.Proxy);

}

 

 

}

}

 


 

Posted by Chi Wai Man | with no comments
Filed under:

DotNed meeting 25 August

The dutch .NET usergroup DotNed will have a meeting on 25th August in Barneveld. Pieter de Bruin and Dennis Mulder from Avanade will tell you more about Source Control in VS.NET Team system.

I will be there. What about you?

For more information go to http://www.dotned.nl/meeting.aspx

Posted by Chi Wai Man | 2 comment(s)
Filed under:

Free MSDN magazines

It's nice to get things for free. You can download or view the MSDN magazines for nothing.
Just go to http://msdn.net/msdnmag/backissues.aspx and have fun:)


 

Posted by Chi Wai Man | with no comments
Filed under:

Useful Links

.Net General

A nice article about Viewstate: : http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/viewstate.asp

Getting the most out of Visual Studio .Net: http://aspnet.4guysfromrolla.com/articles/032704-1.aspx  

Conditional compilation:  http://www.lhotka.net/WeBlog/PermaLink.aspx?guid=7f2f9bba-efbb-46f4-9394-3168994b28bb

EntLib

Manage Application Settings Using Enterprise Library Configuration: http://blog.hishambaz.com/archive/2005/01/30/197.aspx

Columns, Articles and Magazines

Online MSDN magazine: http://msdn.net/msdnmag/default.aspx

The Dutch MSDN Columns: http://www.microsoft.com/netherlands/msdn/columns/default.aspx

Refactoring article by Andrew Troelsen's: http://msdn.microsoft.com/vcsharp/default.aspx?pull=/library/en-us/dnvs05/html/vs05_refac.asp

Managed DirectX

Some tutorials from Pieter Germishuys

Tutorials from pluralsight.com

DirectX using c#

Coding for fun

DirectX tutorial index

Xml

Utf-8 Unicode character set

Visual Studio 2005

Must have tools for Visual Studio 2005.

WinFX

Expression Designer Weblog http://blogs.msdn.com/expression

Posted by Chi Wai Man | with no comments
Filed under:

Determining Browser Capabilities in ASP.NET

My collegue reported that he had some problems with his browser. He updated with a new version of firefox, but suddenly the html page rendering was not correct.
The page rendered tables instead of div's. After a search with google. We found out that it has to do with Browser capabilities in ASP.NET.

ASP.NET detected the new firefox version as a low level browser. And a low level browser doesn't know about divs!

When ASP.NET gets a request, it examines the TagWriter property of the HttpBrowserCapabilities class and uses either HtmlTextWriter or Html32TextWriter (Html32TextWriter derives from HtmlTextWriter). For example, tables render slightly differently in HTML 3.2 than they do in HTML 4.0.

See http://aspnet.4guysfromrolla.com/articles/050504-1.aspx or 

http://msdn.net/msdnmag/issues/05/01/ASPColumn/default.aspx for more information.

Posted by Chi Wai Man | 4 comment(s)
Filed under:
More Posts Next page »