Click here to Skip to main content
6,630,289 members and growing! (21,793 online)
Email Password   helpLost your password?
Announcements
BullFrog Power
 
Search    
Add to IE Search

Member Profile: Daniel Vaughan


Friendly Url http://www.codeproject.com/Members/DanielVaughan
Status Gold. Member No. 187345     

blog View Member's Blog


Awards 26 Oct 2009: Best VB.NET article of Sep 2009
22 Jun 2009: Best C# article of May 2009
20 Apr 2009: Best overall article of March 2009
11 Feb 2008: Best C# article of December 2007
31 Dec 2007: CodeProject MVP 2008
29 Nov 2007: Best ASP.NET article of November 2007
Questions/Answers Posted
Messages Posted 518 - Regular
Articles Posted 14 - Writer
Biography Daniel Vaughan is a software developer with 9 years’ commercial experience across a wide range of industries including e-commerce, multimedia, and finance. While originally from Australia and the UK, Daniel is currently based in Geneva Switzerland; working with WPF, WCF, WF, and LINQ within the finance industry. In his spare time Daniel likes to spend time thinking up novel ideas, such as employing neural networks to predict user navigation behaviour in WPF applications, and a grid computing framework for Silverlight.

Daniel's Blog

Follow me on Twitter

Open source projects: Calcium SDK, Clog
Organization: outcoder a business unit of PebbleAge

Would you like Daniel to bring value to your organisation? Please contact



Location Switzerland Switzerland
Job Title Software Developer (Senior)
Company outcoder.com
Member since Monday, January 20, 2003
(6 years, 10 months)
Homepage http://danielvaughan.orpius.com/
The Reputation graph is a beta-only release. Read the FAQ for more information.

Membership status calculated as follows:

1-4 articles posted = Bronze. 5-14 articles = Silver. 15-24 articles = Gold. 25+ articles = Platinum. Each 500 messages posted adds one level, and if a member has posted a message then each year of membership adds 1 level until the member hits Silver. Bronze is awarded at the beginning of the first 500 messages posted instead of the end.
You must Sign In to use this message board.
FAQ FAQ 
 
 Msgs 1 to 16 of 16 (Total in Forum: 16) (Refresh)FirstPrevNext
GeneralNew blog Pin
Monday, January 7, 2008 8:47 PM
Please see my new blog for more recent posts.


Sign In·View Thread·PermaLink
 
GeneralLegion released Pin
Tuesday, December 25, 2007 9:07 PM
Well, after some initial problems with the Article Submission Wizard, I have published a new article about a project that I have named Legion. Overall I am pretty pleased with this one.
The article can be found here.


Sign In·View Thread·PermaLink5.00/5 (2 votes)
 
GeneralCreating a Class Diagram in a Silverlight 1.1 Project Pin
Tuesday, December 18, 2007 5:52 PM
While writing up a new article I noticed that there isn't a 'create new' Class Diagram option in the add new item dialog for a Silverlight project.

But, as I soon discovered, it's easy to create one. First create it in a regular Desktop CLR project e.g. a regular class library project. Then, simply drag it into the Silverlight project. Type may then be happily dragged from the Solution Explorer.

Now sharing types... no, we can't do that yet unfortunately.

Sign In·View Thread·PermaLink
GeneralRe: Creating a Class Diagram in a Silverlight 1.1 Project PinmvpDustin Metzgar10:44 26 Dec '07  
GeneralRe: Creating a Class Diagram in a Silverlight 1.1 Project PinmemberDaniel Vaughan15:28 26 Dec '07  
 
GeneralMore on the Silverlight 1.1 September refresh BCL HtmlTimer Pin
Tuesday, December 18, 2007 12:55 AM
I've noticed that the HtmlTimer is a funny ol' thing. A static instance, present in different browsers shares state. No wonder it's deprecated eh. I'm really looking forward to SL 2.


try
{
timer.Interval = 1;
timer.Tick += timer_Tick;
timer.Start();
}
catch (AccessViolationException)
{
/* Some strangeness ensues when one
* opens another browser window.
* It appears that the underlying native
* timer code uses shared memory. */

}


Sign In·View Thread·PermaLink
 
GeneralDisable obsolete warning in Visual Studio with pragma Pin
Thursday, December 6, 2007 5:47 PM
I've been using an HtmlTimer for synchronizing threads in Silverlight.
That class is deprecated, and the warnings were filling up my VS Error List.
To suppress them, do this:


#pragma warning disable 618
static readonly HtmlTimer timer = new HtmlTimer();
#pragma warning restore 618

Sign In·View Thread·PermaLink5.00/5 (1 vote)
 
GeneralClog WPF edition released Pin
Sunday, December 2, 2007 1:24 AM
I've just release Clog - WPF edition. here.
Only one left in the Clog series is Clog - Ajax edition.

Should be good. Smile



Sign In·View Thread·PermaLink
GeneralRe: Clog WPF edition released PinmemberDaniel Vaughan15:28 3 Dec '07  
 
GeneralPowerShell script to clean solution for article submission Pin
Sunday, December 2, 2007 1:20 AM
Here's a little powershell script to clean a solution before you submit it to CodeProject.


get-childitem .\SilverlightEdition\Source -include *.dll -recurse | foreach ($_) {remove-item $_.fullname}
get-childitem .\SilverlightEdition\Source -include *.pdb -recurse | foreach ($_) {remove-item $_.fullname}
get-childitem .\SilverlightEdition\Source -include *.suo -force -recurse | foreach ($_) {remove-item -force $_.fullname}
get-childitem .\SilverlightEdition\Source -include *.user -recurse | foreach ($_) {remove-item $_.fullname}
get-childitem .\SilverlightEdition\Source -include *.resharper -recurse | foreach ($_) {remove-item $_.fullname}



Sign In·View Thread·PermaLink
 
GeneralVisual Studio jump to file and line Pin
Sunday, November 25, 2007 4:48 PM
For the demo app in the Clog WPF edition project that I'm working on, I've enhanced the CodeLocation class as you can see below.
By printing out the File location in the format (line number)
Visual Studio will happily jump there for you. I trace the CodeLocation instance, and Visual Studio recognizes the string format, and provides visual recognition of it in the output window. Not a big deal, but I thought it worth mentioning.

I'll probably include this in the WPF edition article.


///
/// Specifies a place in the source code or class,
/// where an logging event occurred.
///

[DataContract]
public class CodeLocation : ICodeLocation
{
///
/// Gets or sets the name of the class.
///

/// The name of the class.
[DataMember]
public string ClassName
{
get;
set;
}

///
/// Gets or sets the name of the method.
///

/// The name of the method.
[DataMember]
public string MethodName
{
get;
set;
}

///
/// Gets or sets the name of the file.
///

/// The name of the file.
[DataMember]
public string FileName
{
get;
set;
}

///
/// Gets or sets the line number of the location.
///

/// The line number.
[DataMember]
public int LineNumber
{
get;
set;
}

public override string ToString()
{
return string.Format("{0}({1}): {2}.{3}",
FileName, LineNumber, ClassName, MethodName);
}
}



Sign In·View Thread·PermaLink5.00/5 (1 vote)
 
GeneralWPF, get URL of browser page Pin
Saturday, November 24, 2007 6:19 PM
Here's a tip.

To get the URL of the current page from within a WPF Browser application do this:

reference System.Deployment.dll
then

if (System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed)
{
Uri uri = System.Deployment.Application.ApplicationDeployment.CurrentDeployment.ActivationUri;
}



Sign In·View Thread·PermaLink2.00/5 (1 vote)
 
GeneralIP Address of Client in WCF Pin
Saturday, November 24, 2007 5:45 PM
I've been looking for a means to retrieve the IP Address of the client in a WCF service. Unfortunately, in .NET 3.5 Beta 2, it looks like it can't be done without using a custom channel. I did find a post though:
See here for info.

			
MessageProperties properties = OperationContext.Current.IncomingMessageProperties;
RemoteEndpointMessageProperty endpoint
= (RemoteEndpointMessageProperty)properties[RemoteEndpointMessageProperty.Name];
IPAddress address = endpoint.Address;


I will open this up later in Clog WPF edition.




Sign In·View Thread·PermaLink2.00/5 (2 votes)
 
NewsClog initial release Pin
Friday, November 23, 2007 4:24 PM
I’m extremely excited about the release of Clog – Silverlight edition today.
I’ve already started work on Clog for WPF and can’t wait to get it out there. I like Clog’s extensibility. I just hope I can drum up some community support for it. It would be great to get some more Log Strategies implemented.



Sign In·View Thread·PermaLink2.50/5 (6 votes)
GeneralRe: Clog initial release PinmemberDaniel Vaughan2:01 19 Dec '07  
RantRe: Clog initial release Pinmemberanakonda346:27 25 Feb '09  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Last Updated 21 Nov 2009
Web21 | 2.2.0175 | Advertise | Privacy
Copyright © CodeProject, 1999-2009
All Rights Reserved. Terms of Use