<?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>Ed &#34;Over&#34; Ip &#187; Tech</title>
	<atom:link href="http://www.edoverip.com/edoverip/index.php/tag/tech/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.edoverip.com/edoverip</link>
	<description>Frequently geeky, mostly dorky...</description>
	<lastBuildDate>Fri, 26 Mar 2010 15:38:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>ZipCode Radius</title>
		<link>http://www.edoverip.com/edoverip/index.php/2009/01/08/zipcode-radius/</link>
		<comments>http://www.edoverip.com/edoverip/index.php/2009/01/08/zipcode-radius/#comments</comments>
		<pubDate>Thu, 08 Jan 2009 15:41:34 +0000</pubDate>
		<dc:creator>eip</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.edoverip.com/edoverip/?p=246</guid>
		<description><![CDATA[I am working on a personal project that needed a list of US City, State and Zip and the ability to get a list of nearby Zips by radius. For awhile there, I thought I was going to have to pay for a list of ZipCodes but thank goodness I found Gabe Summer&#8217;s blog.  To [...]]]></description>
			<content:encoded><![CDATA[<p>I am working on a personal project that needed a list of US City, State and Zip and the ability to get a list of nearby Zips by radius. For awhile there, I thought I was going to have to pay for a list of ZipCodes but thank goodness I found <a href="http://www.goondocks.com/blog/08-01-22/zip_code_radius_search_using_mysql.aspx" target="_blank">Gabe Summer&#8217;s</a> blog.  To pay it forward, so to speak, I have adapted Gabe&#8217;s code to SQL Server.  </p>
<p>CityStateZip Table</p>
<p><code> </code></p>
<p style="padding-left: 30px;"><code>CREATE TABLE [dbo].[CityStateZip](<br />
[ZipCode] [char](5) NOT NULL,<br />
[Latitude] [numeric](18, 6) NULL,<br />
[Longitude] [numeric](18, 6) NULL,<br />
[City] [varchar](50) NOT NULL,<br />
[State] [char](2) NOT NULL,<br />
[County] [varchar](50) NOT NULL,<br />
[Zip_Class] [varchar](50) NOT NULL,<br />
CONSTRAINT [PK_CityStateZip] PRIMARY KEY CLUSTERED<br />
(<br />
[ZipCode] ASC<br />
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]<br />
) ON [PRIMARY]</code></p>
<p>GetDistance Function</p>
<p style="padding-left: 30px;"><code>CREATE  FUNCTION GetDistance(<br />
     @lat1  numeric (9,6),<br />
     @lon1  numeric (9,6),<br />
     @lat2  numeric (9,6),<br />
     @lon2  numeric (9,6)<br />
     )  RETURNS decimal (10,5)<br />
BEGIN </code></p>
<p style="padding-left: 60px;"><code>DECLARE  @x  decimal (20,10);</code></p>
<p><code> </code></p>
<p style="padding-left: 60px;"><span style="font-family: -webkit-monospace;">SET  @x = sin( @lat1 * pi()/180 ) * sin( @lat2 * pi()/180  ) + cos(@lat1 * pi()/180 ) * cos( @lat2 * pi()/180 ) * cos(  abs ( (@lon2 * pi()/180) &#8211;  (@lon1 * pi()/180) ) );</span></p>
<p style="padding-left: 60px;"><code> SET  @x = atan( ( sqrt( 1- power( @x, 2 ) ) ) / @x );</code></p>
<p style="padding-left: 60px;"><code> RETURN  ( 1.852 * 60.0 * ((@x/pi())*180) ) / 1.609344;</code></p>
<p style="padding-left: 30px;"><code>END</code></p>
<p>GetNearbyZipCodes Stored Procedure</p>
<p style="padding-left: 30px; "><code>CREATE  PROCEDURE usp_GetNearbyZipCodes<br />
     @zipbase  varchar (6),<br />
     @range  numeric (15)<br />
AS<br />
BEGIN</code></p>
<p style="padding-left: 30px; "><code>     SET NOCOUNT ON</code></p>
<p><code> </code></p>
<p> </p>
<p><code></p>
<p style="padding-left: 60px; ">DECLARE  @lat1  decimal (5,2);<br />
DECLARE  @long1  decimal (5,2);<br />
DECLARE  @rangeFactor  decimal (7,6);</p>
<p style="padding-left: 60px; ">SET  @rangeFactor = 0.014457;</p>
<p style="padding-left: 60px; ">SELECT  @lat1=latitude, @long1=longitude<br />
  FROM  CityStateZip<br />
 WHERE  zipcode = @zipbase;</p>
<p style="padding-left: 60px; ">SELECT  B.zipcode, dbo.GetDistance(@lat1,@long1,B.latitude,B.longitude) Distance<br />
  FROM  CityStateZip AS  B<br />
 WHERE  B.latitude  BETWEEN  @lat1-(@range*@rangeFactor) AND  @lat1+(@range*@rangeFactor)<br />
   AND  B.longitude  BETWEEN  @long1-(@range*@rangeFactor) AND @long1+(@range*@rangeFactor)<br />
   AND  dbo.GetDistance(@lat1,@long1,B.latitude,B.longitude) &lt;= @range;</p>
<p></code></p>
<p> </p>
<p> </p>
<p style="padding-left: 30px; "><code>END</code></p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.edoverip.com/edoverip/index.php/2009/01/08/zipcode-radius/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google App and 3rd party web host</title>
		<link>http://www.edoverip.com/edoverip/index.php/2008/12/29/google-app-and-3rd-party-web-host/</link>
		<comments>http://www.edoverip.com/edoverip/index.php/2008/12/29/google-app-and-3rd-party-web-host/#comments</comments>
		<pubDate>Tue, 30 Dec 2008 01:07:04 +0000</pubDate>
		<dc:creator>eip</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://www.edoverip.com/edoverip/?p=230</guid>
		<description><![CDATA[In the recent months, anytime I am asked to help a client to set up domain purchase, email and web hosting, I&#8217;ve been using a combination of Google App and 3rd party web hosts such as GoDaddy.com. I prefer to register the domain via Google App for $10/yr which include private registration and everything Google [...]]]></description>
			<content:encoded><![CDATA[<p>In the recent months, anytime I am asked to help a client to set up domain purchase, email and web hosting, I&#8217;ve been using a combination of <a href="www.google.com/apps" target="_blank">Google App</a> and 3rd party web hosts such as <a href="http://www.godaddy.com" target="_blank">GoDaddy.com</a>.  I prefer to register the domain via Google App for <strong>$10/yr</strong> which include private registration and everything Google has to offer. The same purchase will cost twice to three times as much elsewhere.  For example, at GoDaddy, the cost of any given domain might look something like this:</p>
<p>- Domain: $14.99/yr<br />
- <a href="http://www.godaddy.com/gdshop/dbp/landing.asp" target="_blank">Private Domain Registration</a>: $8.99/yr<br />
- Email: $19.99/yr (which reduces your domain to just $1.99)</p>
<p>Total: $30.99/yr</p>
<p>The tricky part (while not really tricky at all) is configuring thr DNS of the Google App to point web hosting to the 3rd party while retaining email and everything else on Google.  </p>
<p>To configure DNS for your Google App to work with a 3rd party web host:</p>
<ol>
<li>Go to the admin dashboard for your domain</li>
<li>Click Domain Settings in the top navigation bar</li>
<li>Click the Domain Names tab under Domain Settings</li>
<li>Click Advanced DNS Settings and following the instructions on the next page</li>
<li>Once you&#8217;re logged in, click on your domain name</li>
<li>Click &#8220;Total DNS Control and MX Records&#8221; in the middle column of the top box</li>
<li>Once you&#8217;re in Total DNS Control, remove all the A Records and put in a single A record with @ as the host and IP pointing to your 3rd party web host.</li>
<li>In CNAMES, modify the www record from being pointed to ghs.google.com to @.</li>
</ol>
<p>That&#8217;s it! The changes might take up to 48 hours to propagate but your job is done.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.edoverip.com/edoverip/index.php/2008/12/29/google-app-and-3rd-party-web-host/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Patient Account vs. Patient Visit</title>
		<link>http://www.edoverip.com/edoverip/index.php/2008/09/12/patient-accoun-vs-patient-visit/</link>
		<comments>http://www.edoverip.com/edoverip/index.php/2008/09/12/patient-accoun-vs-patient-visit/#comments</comments>
		<pubDate>Fri, 12 Sep 2008 19:20:25 +0000</pubDate>
		<dc:creator>eip</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[BizTalk]]></category>

		<guid isPermaLink="false">http://www.edoverip.com/edoverip/?p=74</guid>
		<description><![CDATA[I&#8217;ve been working on a patient data management system for my client based on inbound HL7 messages. An issue I struggled trying to figure out which identifier, as assigned by the hospital, represents the unique patient and which identifier represents the unique visit. I was initially thrown off by the name of PID.18 (Patient Account [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working on a patient data management system for my client based on inbound HL7 messages.  An issue I struggled trying to figure out which identifier, as assigned by the hospital, represents the unique patient and which identifier represents the unique visit.   I was initially thrown off by the name of PID.18 (Patient Account Number) to think it represents the unique patient.  But as it turns out, it identifies a unique visit.   </p>
<p>PID.3_PatientIdInternalId identifies the unique patient<br />
PID.18_PatientAccountNumber identifies the unique visit</p>
]]></content:encoded>
			<wfw:commentRss>http://www.edoverip.com/edoverip/index.php/2008/09/12/patient-accoun-vs-patient-visit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

