"We live in an exciting time. The Internet has become almost ubiquitous throughout much of the world, bringing with it freedom of information and an unprecedented power to all. My passion is seeing businesses leverage that power effectively and economically." - Dave Ranck

Archive for Help and Info

May
19

Find a String Between 2 Strings

Posted by: Dave Ranck | Comments (0)

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 first = str.IndexOf("$string1$") + "$string1$".Length;
int last = str.LastIndexOf("$string2$");
string str2 = str.Substring(first, last - first);
 
Technorati Tags: ,,,

Technorati Tags: C#, Code, Code Sample, Visual Studio

Mar
31

Eco-Friendly PC Disposal

Posted by: Dave Ranck | Comments (0)

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 dispose of old PCs!

http://www.staples.com/sbd/cre/marketing/ecoeasy/index2.html

 

What do you do with old PCs, cell phones and other e-devices? Staples has a 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 dispose of old PCs!

Technorati Tags: Ecology, Help, Resources

Categories : Help and Info, Resources
Comments (0)

Sponsored By :

 

 

Material in this site unless otherwise noted is Copyright David Ranck 2009, 2010