<?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>Local First Media</title>
	<atom:link href="http://localfirstmedia.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://localfirstmedia.com</link>
	<description>Tools &#38; technology to help your community thrive</description>
	<lastBuildDate>Thu, 09 Feb 2012 18:13:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Beware of stray apostrophes</title>
		<link>http://localfirstmedia.com/blog/beware-of-stray-apostrophes/</link>
		<comments>http://localfirstmedia.com/blog/beware-of-stray-apostrophes/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 21:40:29 +0000</pubDate>
		<dc:creator>Helen Triolo</dc:creator>
				<category><![CDATA[web dev notes]]></category>
		<category><![CDATA[encoding]]></category>

		<guid isPermaLink="false">http://localfirstmedia.com/?p=90</guid>
		<description><![CDATA[One stray apostrophe or double quote in a string of javascript variables can keep everything after it from working. One way to get rid of them: $row['title'] = str_replace("'", "&#38;#39;", $row['title']) $row['title'] = str_replace('"', '&#38;#34;', $row['title']) Other replacement entity numbers &#8230; <a href="http://localfirstmedia.com/blog/beware-of-stray-apostrophes/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>One stray apostrophe or double quote in a string of javascript variables can keep everything after it from working. One way to get rid of them:</p>
<pre>$row['title'] = str_replace("'", "&amp;#39;", $row['title'])

$row['title'] = str_replace('"', '&amp;#34;', $row['title'])</pre>
<p>Other replacement entity numbers can be found <a href="http://www.w3schools.com/tags/ref_entities.asp">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://localfirstmedia.com/blog/beware-of-stray-apostrophes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert GPX to KML file</title>
		<link>http://localfirstmedia.com/blog/convert-gpx-to-kml-file/</link>
		<comments>http://localfirstmedia.com/blog/convert-gpx-to-kml-file/#comments</comments>
		<pubDate>Sat, 14 Jan 2012 22:58:47 +0000</pubDate>
		<dc:creator>Helen Triolo</dc:creator>
				<category><![CDATA[web dev notes]]></category>
		<category><![CDATA[google maps]]></category>
		<category><![CDATA[gpx]]></category>
		<category><![CDATA[kml]]></category>

		<guid isPermaLink="false">http://localfirstmedia.com/?p=86</guid>
		<description><![CDATA[Used this to convert gpx files from my Android Move! Bike Computer app to kml files (which the app will also do if the track is still on your phone) To create a string for the kml coordinates tag from &#8230; <a href="http://localfirstmedia.com/blog/convert-gpx-to-kml-file/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Used <a href="http://www.gpsvisualizer.com/map_input?form=googleearth">this</a> to convert gpx files from my Android Move! Bike Computer app to kml files (which the app will also do if the track is still on your phone)</p>
<p>To create a string for the kml coordinates tag from gpx file contents (using <a href="http://phpgpx.sourceforge.net/">PHPGPX</a> to read the file, and assuming only one track with one segment in the file):</p>
<pre>$gpx = new GPX();
$gpx-&gt;XMLin(base_url() . 'routes/millenium_trail.gpx');

foreach ($gpx-&gt;tracks[0]-&gt;segments[0]-&gt;trkpts as $trkpt) {
  echo $trkpt-&gt;longitude . ',' . $trkpt-&gt;latitude . ',' . trim($trkpt-&gt;elevation) . ' ';
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://localfirstmedia.com/blog/convert-gpx-to-kml-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google maps marker depth is zIndex</title>
		<link>http://localfirstmedia.com/blog/google-maps-marker-depth-is-zindex/</link>
		<comments>http://localfirstmedia.com/blog/google-maps-marker-depth-is-zindex/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 20:49:29 +0000</pubDate>
		<dc:creator>Helen Triolo</dc:creator>
				<category><![CDATA[web dev notes]]></category>
		<category><![CDATA[google maps js v3]]></category>

		<guid isPermaLink="false">http://localfirstmedia.com/?p=74</guid>
		<description><![CDATA[From the Google Maps API docs for MarkerOptions: &#8220;All markers are displayed on the map in order of their zIndex, with higher values displaying in front of markers with lower values. By default, markers are displayed according to their vertical &#8230; <a href="http://localfirstmedia.com/blog/google-maps-marker-depth-is-zindex/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>From the <a href="http://code.google.com/apis/maps/documentation/javascript/reference.html#MarkerOptions">Google Maps API docs</a> for MarkerOptions:</p>
<p>&#8220;All markers are displayed on the map in order of their zIndex, with higher values displaying in front of markers with lower values. By default, markers are displayed according to their vertical position on screen, with lower markers appearing in front of markers further up the screen.&#8221;</p>
<p>Example at <a href="http://stackoverflow.com/questions/2818984/google-map-api-v3-center-zoom-on-displayed-markers">StackOverflow</a></p>
<p>gmap3 code to add a flag marker at the next highest level (stored in var ilevel):</p>
<pre>
{ action: 'addMarker',
    latLng: [clat, clng],
    marker: {
        options: {
            zIndex:++ilevel,
            icon:"http://code.google.com/intl/fr/apis/maps/documentation/javascript/examples/images/beachflag.png"
        }
    }
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://localfirstmedia.com/blog/google-maps-marker-depth-is-zindex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Welcome to Local First Media</title>
		<link>http://localfirstmedia.com/blog/welcome-to-local-first-media/</link>
		<comments>http://localfirstmedia.com/blog/welcome-to-local-first-media/#comments</comments>
		<pubDate>Mon, 09 Jan 2012 22:29:43 +0000</pubDate>
		<dc:creator>Helen Triolo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://localfirstmedia.com/?p=1</guid>
		<description><![CDATA[Located in the suburbs of Washington DC, we specialize in the development of online tools to help local communities thrive.  Our passion is finding innovative and effective ways to combine data, maps, video and images to create interesting and informative websites &#8230; <a href="http://localfirstmedia.com/blog/welcome-to-local-first-media/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Located in the suburbs of Washington DC, we specialize in the development of online tools to help local communities thrive.  Our passion is finding innovative and effective ways to combine data, maps, video and images to create interesting and informative websites and applications.</p>
<p>We&#8217;ve recently updated our local community information-sharing site, <a href="http://rockvilleliving.com">Rockville Living</a>.  Find out about other <a title="work we've done here" href="portfolio">work we&#8217;ve done here</a>.  We <a title="welcome inquiries" href="contact">welcome inquiries</a> regarding your web development or training needs.</p>
]]></content:encoded>
			<wfw:commentRss>http://localfirstmedia.com/blog/welcome-to-local-first-media/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

