<?xml version="1.0" encoding="UTF-8"?>
<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/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Realm of Jinan &#187; VB.NET</title>
	<atom:link href="http://www.jinanrealm.com/tag/vbnet/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jinanrealm.com</link>
	<description></description>
	<lastBuildDate>Mon, 13 Sep 2010 19:19:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Samsung Mobile SDK</title>
		<link>http://www.jinanrealm.com/20090630/samsung-mobile-sdk/</link>
		<comments>http://www.jinanrealm.com/20090630/samsung-mobile-sdk/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 23:01:44 +0000</pubDate>
		<dc:creator>Jinan</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Omnia]]></category>
		<category><![CDATA[Samsung]]></category>
		<category><![CDATA[SDK]]></category>
		<category><![CDATA[VB.NET]]></category>

		<guid isPermaLink="false">http://www.jinanrealm.com/?p=181</guid>
		<description><![CDATA[I recently got a Samsung Omnia phone and I love this thing.  Then I decided to play around with .NET programming for windows mobile and decided to write a small alarm app using the accelerometer.  The problem was, there was hardly any code about using the accelerometer.  That is until I stumbled upon the SDK [...]]]></description>
			<content:encoded><![CDATA[<p>I recently got a Samsung Omnia phone and I love this thing.  Then I decided to play around with .NET programming for windows mobile and decided to write a small alarm app using the accelerometer.  The problem was, there was hardly any code about using the accelerometer.  That is until I stumbled upon the SDK for Samsung Mobile Phones.  The one catch was, it is written in C++, with DLL wrappers written in C#, no VB.  So I took the C# wrapper code and converted it over to VB.NET and included it in my application.</p>
<p><a href="http://www.jinanrealm.com/wp-content/uploads/2009/06/shared.vb">shared.vb</a><br />
<a href="http://www.jinanrealm.com/wp-content/uploads/2009/06/acceleromoter.vb">acceleromoter.vb</a></p>
<p>In order to use these files, you will need to download the Samsung Mobile SDK from <a href="http://innovator.samsungmobile.com/">http://innovator.samsungmobile.com/</a></p>
<p>Here is an example on how to use the code:</p>
<div><code><br />
        Dim AccVec As New SamsungMobileSdk.Accelerometer.Vector()<br />
        Dim Accelerometer As New SamsungMobileSdk.Accelerometer</code></div>
<p><code>        If Accelerometer.GetVector(AccVec) = SamsungMobileSdk.SmiResultCode.Success Then<br />
                Dim x,y,z as integer<br />
                x = AccVec.x<br />
                y = AccVec.y<br />
                z = AccVec.z<br />
        end if</p>
<p> </p>
<p></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jinanrealm.com/20090630/samsung-mobile-sdk/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Jinan&#8217;s Function Library: Networking</title>
		<link>http://www.jinanrealm.com/20090208/jinans-function-library-networking/</link>
		<comments>http://www.jinanrealm.com/20090208/jinans-function-library-networking/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 02:16:43 +0000</pubDate>
		<dc:creator>Jinan</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Functions]]></category>
		<category><![CDATA[Jinan]]></category>
		<category><![CDATA[Library]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[VB.NET]]></category>

		<guid isPermaLink="false">http://www.jinanrealm.com/?p=93</guid>
		<description><![CDATA[This is my first attempt at a custom function library. I find myself using some of the same functions through out my apps that I just decided to put it in just one small package. Here is the networking side of it: IsIP(IPAddress as String)   IPAddress: A String with an IP address in it. [...]]]></description>
			<content:encoded><![CDATA[<p>This is my first attempt at a custom function library. I find myself using some of the same functions through out my apps that I just decided to put it in just one small package.</p>
<p>Here is the networking side of it:</p>
<p>IsIP(IPAddress as String)<br />
  IPAddress: A String with an IP address in it.<br />
  Returns: True or False</p>
<p>IsSubnet(SubnetMask as String)<br />
  SubnetMask: Takes a string with a valid SubnetMask or CIDR Notation.<br />
  Returns: True or False</p>
<p>CIDRtoSubnet(CIDRNotation as String)<br />
  CIDRNotation: A string with a valid CIDR notation.<br />
  Returns: Returns a SubnetMask, or false if invalid.</p>
<p>GetIPRanges(NetworkAddress as String)<br />
  NetworkAddress: Takes a string with a valid IP address and SubnetMask.<br />
  Returns: An array with the beginning and ending IP address range. Returns false if its invalid.</p>
<p>IsInIPRange(IPAddress as String, SubnetMask as String, IPtoCheck as String)<br />
  IPAddress: String with a valid IP address.<br />
  SubnetMask: String with a valid IP address.<br />
  IPtoCheck: String of the IP address to check.<br />
  Returns: True or False</p>
<p>IPIncrement(IPAddress as String, Increment as Double, <em>Optional</em> SubnetMask as String)<br />
  IPAddress: A String with a valid IP address.<br />
  Increment: A positive numeric value to increase the IP address.<br />
  SubnetMask (optional): To check if the incremented IP address is in a valid network range.<br />
  Returns: Returns a valid IP address. (Returns False if SubnetMask is used and the IP address is out of range.)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jinanrealm.com/20090208/jinans-function-library-networking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

