<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>kestrelblackmore.com</title>
	<link>http://www.kestrelblackmore.com</link>
	<description>Simple thoughts of a developer</description>
	<pubDate>Tue, 02 Dec 2008 22:56:02 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
	<language>en</language>
			<item>
		<title>Padding a String - VB.NET</title>
		<link>http://www.kestrelblackmore.com/padding-a-string-vbnet/</link>
		<comments>http://www.kestrelblackmore.com/padding-a-string-vbnet/#comments</comments>
		<pubDate>Fri, 29 Aug 2008 00:26:26 +0000</pubDate>
		<dc:creator>Kestrel</dc:creator>
		
		<category><![CDATA[.Net Tip]]></category>

		<guid isPermaLink="false">http://www.kestrelblackmore.com/padding-a-string-vbnet/</guid>
		<description><![CDATA[If you have a string, with some value in it, and you want to pad it out to a certain length, with another character you should check out the PadRight and PadLeft primitives of the String class.
The Functions take two parameters: totalWidth and paddingChar. Here are some examples:

Dim OurString As String = "thisistext"
Console.WriteLine(OurString.PadRight(15, "_")

' Result: [...]]]></description>
			<content:encoded><![CDATA[<p>If you have a string, with some value in it, and you want to pad it out to a certain length, with another character you should check out the PadRight and PadLeft primitives of the String class.</p>
<p>The Functions take two parameters: totalWidth and paddingChar. Here are some examples:</p>
<pre class="vb.net" name="code">
Dim OurString As String = "thisistext"
Console.WriteLine(OurString.PadRight(15, "_")

' Result: "thisistext_____"</pre>
<pre class="vb.net" name="code">
Dim OurInteger As Integer = 99
Console.WriteLine(OurInteger.ToString.PadLeft(10, "0")

' Result: "0000000099"</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.kestrelblackmore.com/padding-a-string-vbnet/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Reversing a String - VB.NET</title>
		<link>http://www.kestrelblackmore.com/reversing-a-string/</link>
		<comments>http://www.kestrelblackmore.com/reversing-a-string/#comments</comments>
		<pubDate>Sun, 29 Jun 2008 12:04:07 +0000</pubDate>
		<dc:creator>Kestrel</dc:creator>
		
		<category><![CDATA[.Net Tip]]></category>

		<guid isPermaLink="false">http://www.kestrelblackmore.com/reversing-a-string/</guid>
		<description><![CDATA[If you need to reverse the order of characters in a string, here is a simple way to do it:

Dim OurString As String = "thisistext"
Dim CharacterArray() As Char = OurString.ToCharArray()

Array.Reverse(CharacterArray)
OurString = CharacterArray

' Result: "txetsisiht"
Firstly we assign &#8220;thisistext&#8221; to OurString.  We then create an array, CharacterArray, of type Char.  This means each item of the array [...]]]></description>
			<content:encoded><![CDATA[<p>If you need to reverse the order of characters in a string, here is a simple way to do it:</p>
<pre name="code" class="vb.net">
Dim OurString As String = "thisistext"
Dim CharacterArray() As Char = OurString.ToCharArray()

Array.Reverse(CharacterArray)
OurString = CharacterArray

' Result: "txetsisiht"</pre>
<p>Firstly we assign &#8220;thisistext&#8221; to OurString.  We then create an array, CharacterArray, of type Char.  This means each item of the array will contain a single character value.</p>
<p>We then populate CharacterArray with the contents of OurString with the ToCharArray() method.  This takes each character in OurString and assigns it to it&#8217;s own item in CharacterArray.</p>
<p>Then we call the Array.Reverse function, passing to it CharacterArray.  This function takes an array as a parameter and reverses the order of the items.</p>
<p>We then re-assign OurString to equal the now reveresed values of CharacterArray!</p>
<p>This is probably not the most efficient way to reverse a string but it is simple and wrapped up in a function it is quick and easy.  If anyone has a more efficient way I&#8217;d be interested in hearing about it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kestrelblackmore.com/reversing-a-string/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Change the width of my blog</title>
		<link>http://www.kestrelblackmore.com/change-the-width-of-my-blog/</link>
		<comments>http://www.kestrelblackmore.com/change-the-width-of-my-blog/#comments</comments>
		<pubDate>Tue, 24 Jun 2008 20:27:45 +0000</pubDate>
		<dc:creator>Kestrel</dc:creator>
		
		<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://kestrelblackmore.com/?p=7</guid>
		<description><![CDATA[OK then, so that last post I made highlighted that I need to increase the width of my blog. I&#8217;ll get on that.UPDATE
So I fixed the width problem by changing my theme.  All is now good.
]]></description>
			<content:encoded><![CDATA[<p><del>OK then, so that last post I made highlighted that I need to <strike>increase the width</strike> of my blog. I&#8217;ll get on that.</del><strong>UPDATE<br />
</strong>So I fixed the width problem by changing my theme.  All is now good.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kestrelblackmore.com/change-the-width-of-my-blog/feed/</wfw:commentRss>
		</item>
		<item>
		<title>So it begins</title>
		<link>http://www.kestrelblackmore.com/so-it-begins/</link>
		<comments>http://www.kestrelblackmore.com/so-it-begins/#comments</comments>
		<pubDate>Tue, 24 Jun 2008 14:54:48 +0000</pubDate>
		<dc:creator>Kestrel</dc:creator>
		
		<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://kestrelblackmore.com/?p=3</guid>
		<description><![CDATA[Well I thought it was time to start up a blog, for several reasons.

A place to verbalise my thoughts. This will require that I write in a clear and precise manner which will improve my communication skills
A historical repository of all things cool that I find. If I blog about it, I won&#8217;t have to [...]]]></description>
			<content:encoded><![CDATA[<p>Well I thought it was time to start up a blog, for several reasons.</p>
<ol>
<li>A place to verbalise my thoughts. This will require that I write in a clear and precise manner which will improve my communication skills</li>
<li>A historical repository of all things cool that I find. If I blog about it, I won&#8217;t have to remember what that &#8216;cool&#8217; thing was in 6 months</li>
<li>An accountability mechanism. I&#8217;m looking to list some goals and accomplishments I want to achieve and having it up here will allow the whole world to see it. Kind of puts pressure on me to perform</li>
</ol>
<p>Anyway stay tuned!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kestrelblackmore.com/so-it-begins/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
