Saturday, July 31, 2010

Welcome traveler!

Visit my technology blog at
http://justenoughtechnology.com/.

 

Dave's Blog Latest Posts

Just Enough Technology
Find a String Between 2 Strings
Here’s a way to return a substring of string that is between 2 strings in C#. There are other options for doing this, such as RegEx, but this is clean and simple. // This search returns the substring between two strings, so // the first index is moved to the character just after the first string. int [...] Related posts:
  1. Create Singleton in C#
  2. Restore SQL Database
  3. Title Case in C#
5/19/2010 7:18:00 PM
Just Enough Technology
Restore SQL Database
Restoring a SQL Server database from a backup is easy to accomplish in the SQL Server IDE. Well, sometimes. In the real world, I often need to restore a development database, but the restore fails because I cannot gain exclusive access to the database. Some developers will detach the database and reattach it to grab [...] Related posts:
  1. Find a String Between 2 Strings
  2. Create Singleton in C#
  3. Title Case in C#
5/17/2010 5:13:44 PM
Just Enough Technology
Snippet Designed for VS 2008 and VS 2010
I love code snippets. Way back in the early VB days, I created add-ins for the IDE that allowed me to create and save an array of short snippets of code and automatically insert them into the code window. I like to use snippets for things that I either don’t use often enough to remember, [...] Related posts:
  1. Create Singleton in C#
  2. Restore SQL Database
  3. Find a String Between 2 Strings
5/16/2010 5:42:07 PM
Just Enough Technology
Create Singleton in C#
One of the most basic and most useful object patterns is the Singleton design pattern. A Singleton is a class of which there will only be one instance created at any time. All users of the Singleton class will all use the same instance. This is great for a wide range of applications such as [...] Related posts:
  1. Find a String Between 2 Strings
  2. Restore SQL Database
  3. Title Case in C#
5/10/2010 11:02:57 PM
Just Enough Technology
Title Case in C#
Here a quick snippet to convert text to Title Case in C# that uses the TextInfo class. Note that strings with all caps will not be converted, so convert to lower case first. // Defines the string with mixed casing. string myString = "this iS a StrIng with MIXED CaSe"; // Create a TextInfo based on the "en-US" [...] Related posts:
  1. Find a String Between 2 Strings
5/5/2010 10:05:31 PM
Just Enough Technology
Eco-Friendly PC Disposal
What do you do with old PCs, cell phones and other e-devices? Staples has an eco-friendly disposal program. Dell products are free as are cell phones and some other devices. Other PCs, laptops cost about $10 US. They also destroy the data on the drives. Be friendly to the planet when you [...] Related posts:
  1. Another Security Breach
3/31/2010 9:47:45 AM
Just Enough Technology
What is an open web?
The following challenge was on my Firefox homepage today: Creating an open web is at the heart of the Mozilla project. And you’re a part of that. As one of thousands of people in the project, you have worked tirelessly to keep the Internet open, participatory and full of life. The question is: why? Why do you [...] Related posts:
  1. Why Just Enough Technology?
  2. Windows 7 God Mode
  3. Java vs. .Net – Another Blast From the Past
3/14/2010 2:46:00 PM
Just Enough Technology
Move User Profile to 2nd Drive in Win 7
Well, this was an interesting foray into Windows 7. I just purchased a new laptop and didn’t like the way the hard drive was partitioned. Why partition an NTFS drive at all? The manufacturer had created an 80 GB primary partition with a 420 GB extended partition. Of course the OS and user profiles are [...] Related posts:
  1. Windows 7 God Mode
  2. Risk Management in Requisite Pro
3/10/2010 2:46:48 PM
Just Enough Technology
Good Azure Video from PDC09
Here’s a great intro to Azure from PDC 09. If you have not looked at Azure or Cloud computing in general, take a look at this video for an introduction. Cloud Computing is here and in use. It will only grow in the near future. PDC Video on Cloud Computing with Azure J9SYRP3G9ZUC Related posts:Windows Azure Now Available Windows [...] Related posts:
  1. Windows Azure Now Available
  2. Windows Azure Videos
  3. Java vs. .Net – Another Blast From the Past
2/5/2010 9:04:30 PM
Just Enough Technology
Java vs. .Net – Another Blast From the Past
Here’s another ancient article I wrote that I recently reread. It is interesting to see what has changed since this was first published on SearchSOA almost 8 years ago (see link at end of article). There are also many things that have not changed in those years. Companies continue to be faced with the question [...] Related posts:
  1. Choosing Between Java and .Net
  2. Craftsmanship and Software Development
  3. Windows Azure Now Available
2/5/2010 1:28:10 PM
Copyright 2009 by Dave Ranck