Standing on the shoulders of giants. RSS 2.0
# Wednesday, December 07, 2005

The lowest level useful description of the goal of any software is probably best put as "elicit a positive emotional response
in a human".

2005 – DJ Mort

Wednesday, December 07, 2005 5:13:51 PM (W. Europe Standard Time, UTC+01:00)  #    Comments [0] - Trackback
Development

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

<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">

<CodeSnippet Format="1.0.0">

<Header>

<Title>sourcesafe header</Title>

<Shortcut>header</Shortcut>

<Description>Code snippet for sourcesafe header.</Description>

<Author>Paul van Brenk</Author>

<SnippetTypes>

<SnippetType>Expansion</SnippetType>

</SnippetTypes>

</Header>

<Snippet>

<Declarations>

<Literal />

</Declarations>

<Code Language="csharp" Kind="file" Delimiter="*">

<![CDATA[#region SourceSafe header

// $Author: $

// $Modtime: $

// $Workfile: $

// $Revision: 1 $

#endregion

*end*]]>

</Code>

</Snippet>

</CodeSnippet>

</CodeSnippets>

File Attachment: sourcesafe_header.zip (550 bytes)

Wednesday, December 07, 2005 2:27:25 PM (W. Europe Standard Time, UTC+01:00)  #    Comments [0] - Trackback
Codesnippet | Visual Studio 2005
# Tuesday, December 06, 2005
Stef wrote an extension to NDoc, which can be used to create XmlDoc files for your database.
Tuesday, December 06, 2005 8:47:33 PM (W. Europe Standard Time, UTC+01:00)  #    Comments [0] - Trackback
Development
# Sunday, November 27, 2005

Update: Still haven't found what is causing the exception, but I think the message of the exception is incorrect. For now I'm sticking with the Knuth Shuffle algorithm from the PowerCollections. As suggested by Cyrus.

int[] ints = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 };

System.Random rand = new System.Random((int)DateTime.Now.Ticks);

Array.Sort(ints, delegate(int x, int y){

// since you’re not allowed to return anything else than 0 for x.CompareTo(x)

if (x == y) {

return 0;

}

return rand.Next(-1,2);

}

);

note: This still throws an exception sometimes, claiming x.CompareTo(x) didn't return 0. I haven't found out why this happens or a pattern when this is happening, but I'll keep looking.

Sunday, November 27, 2005 1:10:40 PM (W. Europe Standard Time, UTC+01:00)  #    Comments [0] - Trackback
Codesnippet
# Saturday, November 19, 2005

Off course it was released the day after I built a new virtual machine for running the September CTP. Anyway, this release does support Visual Studio 2005 RTM, including the express editions.

Download here:

WinFX Runtime Components November CTP

SDK for WinFX Runtime Components November CTP

Visual Studio 2005 Extensions for WinFX

Visual Studio 2005 Extensions for Windows WorkFlow Foundation

Remember to remove all the old versions of WinFX, VS 2005 and .Net 2.0. Or start with a clean virtual machine.

The installation order is:

From Rob Relyea’s install guide for the September CTP.

 

Saturday, November 19, 2005 9:35:50 PM (W. Europe Standard Time, UTC+01:00)  #    Comments [0] - Trackback
Visual Studio 2005 | WinFX
# Thursday, October 13, 2005

public static string GeneratePassword(int length) {

string allowedChars = "abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNOPQRSTUVWXYZ0123456789!@$?";

Random rnd = new Random( (int)DateTime.Now.Ticks );
            
char[] chars = new char[length];


for(int i = 0;i<length;i++) {
chars[i] = allowedChars[ rnd.Next( allowedChars.Length ) ];
}

return new string(chars);
}

When running in a tight loop, you're better of pulling the initialisation of the randomGenerator outside the method, or not use DateTime.Now.TickCount as the seed.

Thursday, October 13, 2005 3:12:54 PM (W. Europe Daylight Time, UTC+02:00)  #    Comments [0] - Trackback
Codesnippet
# Wednesday, September 21, 2005

My highlights of the PDC 05:

  • Linq and the associated C# 3.0 features
  • IIS 7.0, plugable modules and xcopy deployment of configurations.
  • Windows Workflow Foundation

Expect more indepth articles in the coming weeks, when I’ve had some time to experiment with everything.

Wednesday, September 21, 2005 10:56:42 AM (W. Europe Daylight Time, UTC+02:00)  #    Comments [0] - Trackback
Development | PDC
# Wednesday, September 07, 2005

I'm sure this will change a couple of times during the next week, but for now this is my schedule. If you can't make it, but would like to have my notes on a session, let me know (paul(dot)van(dot)brenk(at)tamtam(dot)nl).

 

Schedule for Paul van Brenk

Tuesday, September 13

1:00 PM - 2:15 PM  
DAT301 High Performance Computing with the Windows Server Compute Cluster Solution   406 AB    
2:45 PM - 4:00 PM  
FUN302 Programming with Concurrency (Part 1): Concepts, Patterns, and Best Practices   515 AB    
4:15 PM - 5:30 PM  
DAT405 SQL Server 2005: Deep Dive on XML and XQuery   502 AB    
FUN405 Programming with Concurrency (Part 2): Multithreaded Programming with Shared Memory   403 AB    
PRS404 ASP.NET: Developing Advanced Custom Providers for Membership and Role Manager   404 AB    

Wednesday, September 14

11:00 AM - 12:15 PM  
COM406 IIS 7 Extensibility (Part 1): Building New Core Server Modules   406 AB    
1:45 PM - 3:00 PM  
COM301 MSN Messenger: Extending MSN Messenger with Multi-Person Instant Messaging Applications   406 AB    
COM303 IIS 7: Building More Powerful ASP.NET Applications with IIS 7   152/153 (Hall F)    
TLN306 The .NET Language Integrated Query Framework: An Overview   Halls C & D (Petree Hall)    
3:15 PM - 4:30 PM  
DAT411 Advanced ETL: Embedding Integration Services   411    
OFF325 Microsoft CRM: Extending and Customizing Microsoft CRM Solutions   402 AB    
5:00 PM - 6:15 PM  
COM416 Windows Communications Foundation ("Indigo"): Under the Hood of the Windows Communications Foundation Channel Layer   406 AB    
DAT313 SQL Server BI: Adding Reporting and Analysis to Smart Client Applications   502 AB    
PRS312 ASP.NET: Future Directions for Developing Rich Web Applications with Atlas (Part 1)   Halls C & D (Petree Hall)    
TLN402 MSBuild: Architecting a Customized Build System   408 AB    

Thursday, September 15

10:00 AM - 11:15 AM  
DAT315 Building Portals and Dashboards for Business Intelligence and Reporting Applications   408 AB    
FUN412 Five Things Every Win32 Developer Should Know   150/151 (Hall E)    
OFF313 Web Content Management Application Development and Engine Extensibility   404 AB    
PRS418 ASP.NET: Developing Portal UI Architectures with Web Parts   403 AB    
11:30 AM - 12:45 PM  
COM320 IIS 7: Instrumenting, Diagnosing, and Debugging Web Applications   515 AB    
PRS420 ASP.NET: Future Directions for Developing Rich Web Applications with Atlas (Part 2)   Halls C & D (Petree Hall)    
TLN312 VSTS: Building More Reliable and Better Performing Web Applications with Visual Studio 2005 Team System   403 AB    
1:00 PM - 1:45 PM  
DATL02 SQL Server 2005: BI Power Hour   515 AB    
2:15 PM - 3:30 PM  
COM322 Developing Event Driven State Machine Workflows   515 AB    
DAT323 Using the .NET Language Integrated Query Framework with Relational Data   152/153 (Hall F)    
DAT418 SQL Server 2005 CLR: Under the Hood on How We Host the CLR   150/151 (Hall E)    
TLN315 ASP.NET: A Sneak Peek at Future Directions in Web Development and Designer Tools   Halls C & D (Petree Hall)    
3:45 PM - 5:00 PM  
TLN317 CLR: Leveraging Dynamic Language Features   408 AB    
5:15 PM - 6:30 PM  
OFF321 Surfacing Your Application's Line-of-Business Data and Actions within Enterprise Portals   502 AB    
PRS426 ASP.NET: Deep Dive into the ObjectDataSource Control   515 AB    

Friday, September 16

8:30 AM - 10:00 AM  
PNL05 Venture Capital Workshop: Incubating New Ideas   409 AB    
PNL06 What’s Next for Microsoft’s Web Platform   152/153 (Hall F)    
8:30 AM - 9:45 AM  
FUN323 Microsoft Research: Future Possibilities in Concurrency   406 AB    
10:30 AM - 11:45 AM  
DAT324 Using the .NET Language Integrated Query Framework with XML Data   408 AB    
10:30 AM - 12:00 PM  
PNL04 Looking Ahead to the Future of the CLR   515 AB    
PNL13 Improving Software Reliability   411    
SECSYM02 Security Symposium, continued: The What, Why and How of the Microsoft Security Development Lifecycle—and Why You Should Care (continued)   502 AB    
1:00 PM - 2:15 PM  
COM413 IIS and Windows Communications Foundation ("Indigo"): Hosting Services   408 AB    
COM431 IIS 7 Extensibility (Part 2): Building Configuration and UI Modules   404 AB    
FUN421 CLR: Garbage Collection Inside Out   150/151 (Hall E)    
1:00 PM - 2:30 PM  
PNL07 Future Directions for Windows Internals   515 AB    
PNL11 .NET Language Integrated Query End-to-End   152/153 (Hall F)  

Wednesday, September 07, 2005 9:36:00 AM (W. Europe Daylight Time, UTC+02:00)  #    Comments [0] - Trackback
PDC
# Tuesday, August 23, 2005

The easiest way on sql server 2000 is to change the collation on the column you want to do the search on:

ALTER TABLE dbo.Customers ALTER COLUMN CustID char(8) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL

Tuesday, August 23, 2005 6:32:39 PM (W. Europe Daylight Time, UTC+02:00)  #    Comments [1] - Trackback
Codesnippet | SQL
About
© Copyright 2008
Paul van Brenk
Sign In
newtelligence dasBlog 2.3.8275.16006
All Content © 2008, Paul van Brenk
DasBlog theme 'Business' created by Christoph De Baene (delarou)