<?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>JimBergman.net &#187; website development</title>
	<atom:link href="http://jimbergman.net/category/website-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://jimbergman.net</link>
	<description>startups &#124; technology &#124; design &#124; software development</description>
	<lastBuildDate>Sun, 11 Jul 2010 22:54:59 +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>WebSocket NOT supported in iPhone OS 4</title>
		<link>http://jimbergman.net/websocket-iphone-os-4/</link>
		<comments>http://jimbergman.net/websocket-iphone-os-4/#comments</comments>
		<pubDate>Mon, 26 Apr 2010 09:58:36 +0000</pubDate>
		<dc:creator>Jim Bergman</dc:creator>
				<category><![CDATA[technology]]></category>
		<category><![CDATA[website development]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[iOS4]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[iphone os 4]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[websocket]]></category>
		<category><![CDATA[websocket example]]></category>
		<category><![CDATA[websocket test]]></category>
		<category><![CDATA[websockets]]></category>

		<guid isPermaLink="false">http://jimbergman.net/?p=181</guid>
		<description><![CDATA[UPDATE July 2010: since the beta 2 release of iOS4, Apple has disabled websocket support. A few readers pointed this out, so I made a trip to an Apple Store it run a few tests. Confirmed: iOS4 as it is released reports it does NOT have websocket support. ORIGINAL POST: Since the Safari web browser [...]]]></description>
			<content:encoded><![CDATA[<p><font style="background-color: yellow;">UPDATE July 2010:</font> since the beta 2 release of iOS4, Apple has disabled websocket support. A few readers pointed this out, so I made a trip to an Apple Store it run a few tests.</p>
<p><a href="http://jimbergman.net/wp-content/uploads/2010/07/iPhone4_iOSv4_WebSocket_test.png"><img src="http://jimbergman.net/wp-content/uploads/2010/07/iPhone4_iOSv4_WebSocket_test_sm.png" title="iPhone4 iOS v4 WebSocket test" width="320" height="480" class="aligncenter size-full wp-image-187" /></a></p>
<p>Confirmed: iOS4 as it is released reports it does NOT have websocket support.</p>
<p>
ORIGINAL POST:</p>
<p>Since the Safari web browser on the iPhone is based on WebKit, it makes sense that at some point support for WebSocket would make it to the iPhone.</p>
<p>Safari on iPhone OS 4 does support WebSocket.</p>
<p><img src="http://jimbergman.net/wp-content/images/WebSocketTest_iPhone_4.0b2.png"></p>
<p>Once OS 4 is available for the iPad, support should be there as well.</p>
<p>Thanks to reader <a href="http://tech.element77.com/2010/04/safari-on-iphone-os-40-supports.html">Arun for pointing this out</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://jimbergman.net/websocket-iphone-os-4/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Test your web browser for Web Socket support</title>
		<link>http://jimbergman.net/websocket-web-browser-test/</link>
		<comments>http://jimbergman.net/websocket-web-browser-test/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 02:34:50 +0000</pubDate>
		<dc:creator>Jim Bergman</dc:creator>
				<category><![CDATA[website development]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[websocket]]></category>
		<category><![CDATA[websocket example]]></category>
		<category><![CDATA[websocket test]]></category>
		<category><![CDATA[websockets]]></category>

		<guid isPermaLink="false">http://jimbergman.net/?p=102</guid>
		<description><![CDATA[Google announced an improved way for a web application to communicate with a server. The new method is called Web Sockets. You can read more info here on Web Sockets. Here is a quick test to see if your web browser supports Web Sockets. At the time this post was published Google Chrome developer channel [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript" src="http://jimbergman.net/scripts/WebSocketTest.js"></script>Google announced an improved way for a web application to communicate with a server. The new method is called Web Sockets. You can <a href="http://blog.chromium.org/2009/12/web-sockets-now-available-in-google.html" target="_new">read more info here on Web Sockets</a>.</p>
<p>Here is a quick test to see if your web browser supports Web Sockets. At the time this post was published Google Chrome developer channel release 4.0.249.0 is the only browser to support Web Sockets.</p>
<p><center><a href="javascript:WebSocketTest()" title="Click here to run Web Socket test"><img src="http://jimbergman.net/wp-content/images/WebSocketTest.png" border=0></a></center></p>
<p>
<p>Here is the JavaScript code (<a href="http://jimbergman.net/scripts/WebSocketTest.js">or right click and save file as <code>WebSocketTest.js</code></a>):<code>
<pre>
function WebSocketTest()
{
  if ("WebSocket" in window)
  {
    // Google example code
    //  var ws = new WebSocket("ws://example.com/service");
    //  ws.onopen = function()
    //  {
    //    // Web Socket is connected. You can send data by send() method
    //    ws.send("message to send"); ....
    //  };
    //  ws.onmessage = function (evt) { var received_msg = evt.data; ... };
    //  ws.onclose = function() { // websocket is closed. };
    alert("WebSocket supported here!\r\n\r\nBrowser: " + navigator.appName + " " + navigator.appVersion + "\r\n\r\ntest by jimbergman.net (based on Google sample code)");
  }
  else
  {
    // the browser doesn't support WebSocket
    alert("WebSocket NOT supported here!\r\n\r\nBrowser: " + navigator.appName + " " + navigator.appVersion + "\r\n\r\ntest by jimbergman.net (based on Google sample code)");
  }
}
</pre>
<p></code></p>
<p>Sample HTML code (save file as <code>WebSocketTest.html</code> in same folder as <code>.js</code> file above):<code>
<pre>
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;JimBergman.net - JavaScript: WebSocketTest&lt;/title&gt;
&lt;script type="text/javascript" src="WebSocketTest.js"&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body bgcolor="#FFFFFF"&gt;
&lt;a href="javascript:WebSocketTest()"&gt;Run WebSocket test&lt;/a&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p></code></p>
<p><center><br />
<hr width=75%>UPDATE:<br />
<hr width=75%>
<p>Result of this test on an Windows 7 PC in Google Chrome v4.0.249.0</p>
<p><img src="http://jimbergman.net/wp-content/images/WebSocketTest_Chrome_4.0.249.0.png"></p>
<hr width=75%>
<p>Result of this test on an Windows 7 PC in Mozilla Firefox v3.5.5</p>
<p><img src="http://jimbergman.net/wp-content/images/WebSocketTest_Firefox_3.5.5.png"></p>
<hr width=75%>
<p>Result of this test on an Windows 7 PC in Microsoft Internet Explorer v8.0.7100.0</p>
<p><img src="http://jimbergman.net/wp-content/images/WebSocketTest_IE8_0.7100.0.png"></p>
<hr width=75%>
<p>Result of this test on an Apple iPhone in OS 3.1.2</p>
<p><img src="http://jimbergman.net/wp-content/images/WebSocketTest_iPhone_IMG_0981.png"></p>
<p></center></p>
]]></content:encoded>
			<wfw:commentRss>http://jimbergman.net/websocket-web-browser-test/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>Adding Costco Gas Stations to Google Maps</title>
		<link>http://jimbergman.net/adding-costco-gas-stations-to-google-maps/</link>
		<comments>http://jimbergman.net/adding-costco-gas-stations-to-google-maps/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 10:37:59 +0000</pubDate>
		<dc:creator>Jim Bergman</dc:creator>
				<category><![CDATA[website development]]></category>
		<category><![CDATA[costco]]></category>
		<category><![CDATA[google maps]]></category>

		<guid isPermaLink="false">http://jimbergman.net/?p=16</guid>
		<description><![CDATA[How many time have you gone to search for something on the Internet, and it just wasn&#8217;t there? Many times travelling over the last few years, I&#8217;ve wanted to know where there was a Costco gas station along my route. Their gas prices are usually the most competitive in a particular area. Finding a location [...]]]></description>
			<content:encoded><![CDATA[<p>How many time have you gone to search for something on the Internet, and it just wasn&#8217;t there?</p>
<p>Many times travelling over the last few years, I&#8217;ve wanted to know where there was a Costco gas station along my route. Their gas prices are usually the most competitive in a particular area. Finding a location along your route is hard to do when all you have is a list sorted alphabetically by State and City.</p>
<p>So I took the <a href="http://www.costcoconnection.com/connection/gas_stations/" target="_new">PDF of Costco Gas Stations from the Costco website</a>, extracted it, massaged the data to import it into a database, converted it into KML, and added it to Google Maps.</p>
<p><iframe width="550" height="600" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps/ms?ie=UTF8&amp;hl=en&amp;msa=0&amp;msid=116228428954942756678.0004577569302bcbdd873&amp;ll=37.300275,-97.03125&amp;spn=90,113.203125&amp;output=embed&amp;s=AARTsJpBYMbYE861vKC55VNVS3CR0CaTag"></iframe><br /><small><a href="http://maps.google.com/maps/ms?ie=UTF8&amp;hl=en&amp;msa=0&amp;msid=116228428954942756678.0004577569302bcbdd873&amp;ll=37.300275,-97.03125&amp;spn=90,113.203125&amp;source=embed" style="color:#0000FF;text-align:left">View Larger Map</a></small></p>
<p>I discovered after importing the data, that Google Maps paginates your data set after 200 entries. Since the original data was sorted by State and the City, all the locations are not shown at once. There are 300 Costco Gas Stations in the list.</p>
<p>A more useful arrangement would be to sort the data by ZIP code, and break it into two sets: East and West. I&#8217;ll try to find some time for that in the next week.</p>
<p>There were some data validation problems with the original data set also, mainly having to do with non-plain text characters in the data. For example, 1001 Boul. Jean-Baptiste-Rolland, Saint-Jérôme, Quebec J7Y 4Y7 failed validation. The é and ô had to be changed to e and o.</p>
<p>Disclaimer: I was not asked by Costco to do this, and have no ties other than a common membership.</p>
<p>In what way could this map be improved? Leave your suggestions in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://jimbergman.net/adding-costco-gas-stations-to-google-maps/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
