adamjcooper.com/blog

Enterprise Software Development in C#

How to Quickly Connect and Disconnect from a VPN by Leveraging the Command Line

One of the things I dislike about Windows Vista is how many clicks it takes to connect to a VPN, and how I must wait for the connection to be completely established just to dismiss window when it is successful. I do most of my work remotely and connecting and disconnecting to and from a VPN is a p... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Another Look at FireFox's Keyboard Shortcuts - A Lesson in How to Choose Your Shortcuts Wisely

When first learning keyboard shortcuts, I typically look for a English relationship between the letter of the shortcut and the function I need to accomplish. But for some shortcuts, the letter chosen seems to have no connection with a word that's related to what you're trying to do. That&#... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Ninja-Speed Browsing With FireFox Keyboard Shortcuts

FireFox is full of keyboard shortcuts that can dramatically increase your web browsing productivity if you spend a little bit of time learning them. As an example to whet your appetite, consider the following workflow: You need to execute a web search and place the results in... [More]

Currently rated 4.0 by 1 people

  • Currently 4/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Silverlight ListBox SelectedItem/SelectedIndex Visual State Bug Workaround

There is a UI bug in Silverlight 2 Beta 2's ListBox that has become a problem for me recently: When you set the SelectedItem or SelectedIndex property to programatically alter the current selection, the internal state of the ListBox is correctly updated, but the visual representation is not. F... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Snippets for Boilerplate Code When Overriding Equality and Hash Code

Overriding Equals and GetHashCode is easy, but implementing them correctly is not. As Jonathan Allen says in his excellent article A Detailed look at Overriding the Equality Operator, "It is surprisingly easy to make a mistake when overriding the equality operator. Not only does the equality operato... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

The Quest for Quick-and-Easy Immutable Value Objects in C#

Definition of Terms In the following discussion I will use the term Value Object to refer to an object which: expresses only a value, or set of related values has no identity is typically immutable This is a standard description of a Value Object as given by Domain Driven Design ... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Microsoft's T4: A Free Alternative to CodeSmith

I've long been a fan of CodeSmith, an easy-to-use templating engine for creating code of any kind, though I've been a fan from the sidelines, never having purchased a license. My code generation needs are simply too infrequent to justify myself or my company purchasing a commercial code generator. A... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

IntelliSense Support for LINQ to SQL Mapping with External XML Files

Introduction The fastest way to get database objects with LINQ to SQL is to simply build your objects and associated mappings using a tool like the LINQ to SQL designer in Visual Studio or a command-line tool like sqlmetal. However, both of these approaches assume a database-first development phi... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
 
Powered by BlogEngine.NET 1.4.5.0 | Design by adamjcooper