<?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>Hax by Jaku &#187; gps</title>
	<atom:link href="http://haxbyjaku.com/tag/gps/feed/" rel="self" type="application/rss+xml" />
	<link>http://haxbyjaku.com</link>
	<description>Don't tell me what to do.</description>
	<lastBuildDate>Sat, 03 Dec 2011 11:17:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>More GPS updates!</title>
		<link>http://haxbyjaku.com/haxs/more-gps-updates/</link>
		<comments>http://haxbyjaku.com/haxs/more-gps-updates/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 16:55:55 +0000</pubDate>
		<dc:creator>Jaku</dc:creator>
				<category><![CDATA[Haxs]]></category>
		<category><![CDATA[fireeagle]]></category>
		<category><![CDATA[flightstats]]></category>
		<category><![CDATA[foursquare]]></category>
		<category><![CDATA[gps]]></category>
		<category><![CDATA[playnice]]></category>

		<guid isPermaLink="false">http://haxbyjaku.com/?p=435</guid>
		<description><![CDATA[Didn&#8217;t think I&#8217;d have another update on the GPS software so soon. But on my way back from Utah I was informed that the plane had GPS tracking available online. Now because the flight also had WIFI I had to check it out. The site that did the tracking was http://www.flightstats.com and it did an [...]]]></description>
			<content:encoded><![CDATA[<p>Didn&#8217;t think I&#8217;d have another update on the GPS software so soon. But on my way back from Utah I was informed that the plane had GPS tracking available online. Now because the flight also had WIFI I had to check it out.</p>
<p>The site that did the tracking was <a href="http://www.flightstats.com">http://www.flightstats.com</a> and it did an amazing job with updating where we were in real-time. Now being me, I found a quick and easy way to grab the GPS coordinates from the site and import them into my database. It was a quick and dirty shell script that was all of 3 lines of code. So I won&#8217;t be sharing it, however I do think it is something that should be added to my overall GPS tracking suite. </p>
<p>I&#8217;m going to start looking into other GPS type location services, such as FourSquare, and FireEagle and try to build a framework around all of them that allows one to update all of them by updating one. So if anyone can think of any other apps or services out there that allow one to share their GPS location with friends or just track it, let me know and I&#8217;ll see what I can do. <img src='http://haxbyjaku.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Also, one last thing I&#8217;d like to share. With the flight tracker I decided to have my script run every minute to pull the information. It&#8217;s pretty amazing how far planes get in a single minute. Here is a screenshot of when I started the script.<br />
<div id="attachment_436" class="wp-caption aligncenter" style="width: 508px"><img src="http://haxbyjaku.com/wp-content/uploads/2009/09/Screen-shot-2009-09-24-at-1.43.38-AM.png" alt="gps points" title="Flight Tracking" width="498" height="183" class="size-full wp-image-436" /><p class="wp-caption-text">GPS Flight Points</p></div></p>
]]></content:encoded>
			<wfw:commentRss>http://haxbyjaku.com/haxs/more-gps-updates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GPS Code Update</title>
		<link>http://haxbyjaku.com/projects/gps-code-update/</link>
		<comments>http://haxbyjaku.com/projects/gps-code-update/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 04:35:14 +0000</pubDate>
		<dc:creator>Jaku</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[google latitude]]></category>
		<category><![CDATA[gps]]></category>
		<category><![CDATA[mobileme]]></category>
		<category><![CDATA[playnice]]></category>

		<guid isPermaLink="false">http://haxbyjaku.com/?p=431</guid>
		<description><![CDATA[So it seems I have to write this post again because my server crashed.. leaving everything alone but my sql databases&#8230; Oh well, could be a lot worst. So after my post yesterday about how I update my location on my site I got a reply from @andre_vans that told me about a project called [...]]]></description>
			<content:encoded><![CDATA[<p>So it seems I have to write this post again because my server crashed.. leaving everything alone but my sql databases&#8230; Oh well, could be a lot worst.</p>
<p>So after my post yesterday about how I update my location on my site I got a reply from <a href="http://twitter.com/andre_vans/status/4167563550">@andre_vans</a> that told me about a project called &#8220;PlayNice&#8221;. The GIThub source is at <a href="http://github.com/natfriedman/playnice">http://github.com/natfriedman/playnice</a> and the the creator of it has a blog post about it at <a href="http://nat.org/blog/2009/08/playnice-google-apple/">http://nat.org/blog/2009/08/playnice-google-apple/</a>.</p>
<p>Now I mentioned in my post yesterday that I wanted to be able to use some sort of push notification on the iPhone so that my site could ask for an update and the phone would comply. This would require a custom app on the iPhone to  automatically execute something when it has a push notification. Now I&#8217;m not even sure if that is possible at this stage as that would almost be like the app is running in the background, which apple does not allow yet. However, Apple has such a service built into the phone that allows anyone with a MobileMe account linked to their iPhone to get the location of the device. </p>
<p>So with that PlayNice will basically log in as you on your MobileMe account and launch the locate phone feature. Now the neat thing about this is that it also updates to your Google Latitude account. This make&#8217;s it pretty much perfect for what I want to do. With the source code freely available and easy to understand it was a breeze adding 3 lines of code to update my map backend whenever the PlayNice script is ran. If you wan&#8217;t to do the same with most of the code from my post yesterday then follow me past the break. Otherwise, ignore me. <img src='http://haxbyjaku.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<span id="more-431"></span><br />
Now that you are here we know who the true Jaku fans are. <img src='http://haxbyjaku.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Alright so the code that we used yesterday, we only need the mologogo part. So the &#8220;update.html&#8221; is pretty much useless but you could still certainly use it. What is important here is that you follow the steps in yesterdays post to get the database and mologogo backend software working. Once you do that you will need to make a change to the &#8220;submit_2343.php&#8221; file or whatever you renamed it to. All you need to do is uncomment lines 41 and 42. This will allow those variables to work again.</p>
<p>The next step is to download the PlayNice code from <a href="http://github.com/natfriedman/playnice">http://github.com/natfriedman/playnice</a> and follow the install instructions. After doing that you will want to edit the &#8220;playnice.php&#8221; file and add the following lines around line 91.<br />
<code><br />
$lat = "$iphoneLocation->latitude";<br />
$lon = "$iphoneLocation->longitude";<br />
system ("/usr/bin/curl LOCATION_OF_UPDATE.PHP?pointType=GPS'&#038;'name=Jaku'&#038;'lat=$lat'&#038;'lon=$lon");<br />
</code><br />
Now you don&#8217;t need to make those variables if you use the the full $iphoneLocation->latitude\longitude names in your system call, but it looks cleaner. </p>
<p>After you make that change your GPS updates should start getting populated in your GPS map backup.</p>
<p>Up next for me is the creation of a new backup now that I have the simplest update, it&#8217;s time to clean up that backend. <img src='http://haxbyjaku.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://haxbyjaku.com/projects/gps-code-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How I made the locate Jaku feature</title>
		<link>http://haxbyjaku.com/haxs/how-i-made-the-locate-jaku-feature/</link>
		<comments>http://haxbyjaku.com/haxs/how-i-made-the-locate-jaku-feature/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 22:05:40 +0000</pubDate>
		<dc:creator>Jaku</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Haxs]]></category>
		<category><![CDATA[google maps]]></category>
		<category><![CDATA[gps]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[jaku]]></category>
		<category><![CDATA[locate]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://haxbyjaku.com/?p=387</guid>
		<description><![CDATA[The 2 main parts of this software have changed over the years, however this post will describe each change and will include what I currently use to get my location on the site. The main part is the use of the Mologogo software. Which I used because I had a old boost mobile cell phone [...]]]></description>
			<content:encoded><![CDATA[<p>The 2 main parts of this software have changed over the years, however this post will describe each change and will include what I currently use to get my location on the site.</p>
<p>The main part is the use of the Mologogo software. Which I used because I had a old boost mobile cell phone and this was the easiest and fastest way to get my location up on the web. It was also the cheapest at $1 dollar a day. After the iPhone came out I developed my own application to get my location and update the mologogo software that way. This was awesome because I could get rid of the boost mobile phone and I only had to carry a single phone then. However after almost every update to the iPhone software, I had to wait for a new jailbreak and then I had to change my code to work. This became a huge hassle and I had to deal with it after every update.</p>
<p>When the iPhone 2.0 software came out I assumed I wouldn&#8217;t have to do that anymore. Except for the fact that in order to actually use any application that you wrote, you needed to pay the developer fee. So instead I decided to get my location another way. On many of the twitter iPhone apps it would allow you to update your location and this would then update the GPS coordinates shown on your twitter.com page. This was an easy way to get the location of myself without the need of writing a new custom app. So I wrote some code that would look on my twitter page and find the location of me and check to see if it had updated since the last time it checked. This solution was great because it would only update as much as I wanted, and wouldn&#8217;t drain my battery since my phone would do none of the work. However, a few months after this went live twitter decided to change their design and at first the location info was no longer shown. So I had to come up with a new idea.<br />
<span id="more-387"></span><br />
Now, so far I&#8217;ve had 3 different ways to update my location. The first being the boost mobile phone, that worked great except for the fact thatI would forget to charge the phone and it was an additional $30ish a month for me to tell people where I was at. If anything people should of paid me for that info. The second was developing an app that would work on the iPhone and update my location every now and then. What was great about that was, it did not cost anything additional because it was on my main phone, and I didn&#8217;t have to worry about the phone not being charged since I always charge my iPhone. Then the 3rd solution was to use a 3rd party site that happens to get my location from another 3rd party app and just parse the data that way. This failed because I had to rely on 2 3rd party companies and hope they don&#8217;t make any drastic changes.</p>
<p>Now out of all 3 of the ways I&#8217;ve updated my phone, I enjoyed the 2nd the most. Since it wasn&#8217;t hard to do, it was just either a pain to wait for the next jailbreak or to pay for the developer license. So with the new iPhone 3.0 update, they allowed you to do something quite magical. You can now get your GPS coordinates though Safari on the iPhone! This was perfect. So I made a page, that would do the geolocation call that Safari now supports. After some testing I was able to get the calls to update a URL by tricking the javascript code I used to into thinking it was going to call an image. I coded my first version of the software off of the code found at http://smithsrus.com/gps-geolocation-in-safari-on-iphone-os-3-0/ and the 2nd version I coded around the source code found on http://www.thecssninja.com/javascript/geolocation-iphone the 2nd version allowed me to<br />
view exactly where I was on the map and looked awesome so I only needed to make some specfic changes so that it could post the data to my site.</p>
<p>I have included the files I use for the Mologogo portion of the site as well as the 2nd version code that I use to find my iPhone&#8217;s location. The main plus side on using the webbrowser to update my location is that it can work on multiple platforms without any changes. As long as the device and webbrowser support the new location feature you could use this on anything. </p>
<p>Now, since all of this has happened. I became an iPhone Developer, or at least I paid to be one. So I&#8217;ve been toying around with the idea of developing a new app that will use the push feature. I&#8217;m not quite sure if it can be done, but basically when ever someone visited my site it would send a push notification to my phone to get the latest GPS coordinates. Now, incase I get a huge amount of traffic I would limit it so that it would only do so every 10 minutes or so after the first push is sent out since it could get rather annoying. </p>
<p>The thing is, I&#8217;m not sure if one is able to get information from the phone like that. Perhaps it should be called &#8220;Pull&#8221; but if I can somehow tie in push alerts to activate a certain function on my phone then I don&#8217;t need to worry about opening another app to update my location ever again. </p>
<p>You can download the files in one nice package at <a href="http://haxbyjaku.com/gps_code.tar.gz">http://haxbyjaku.com/gps_code.tar.gz</a></p>
<p>We are past the story time and so now I will describe how you can download and setup the software. There&#8217;s gonna be a few things that might be a bit complicated but it&#8217;s fairly easy to do if you&#8217;re able to read code.</p>
<p>Once you get the software downloaded you will need to modify a few things. In the molo_config.php file, you will want to update the nickname that it updates the location as, as well as the HTTP_HOST and google maps key labeled as GMAPS_KEY. And of course you&#8217;ll want to put in your own database settings. Now the cool thing about the mologogo code is that if the correct tables are not in the database it will create them for you, as long as you give the mysql user enough access to do so.</p>
<p>The 2nd file you&#8217;ll want to update is the update.html file. You will want to update  USER_NAME and the SITE_URL_REFRESHES_EVERY_30_SECONDS parts of this file. Now I also suggest re-naming this file and the submit.php file something randomish but still easy for you to remember. The reason is that if anyone can figure out what the file names are they could post their own GPS data as yours. So while it&#8217;s not the worst thing in the world, it could confuse you if you start to see other peoples locations on your map.</p>
<p>If you have any questions or comments please let me know and I&#8217;ll do what I can to help.</p>
]]></content:encoded>
			<wfw:commentRss>http://haxbyjaku.com/haxs/how-i-made-the-locate-jaku-feature/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

