June 22, 2012

GPS and the iPad 3G

I'm taking a trip to Kalibo, Aklan soon and I was thinking of borrowing a handheld GPS device for some task. I was about to post the request online when I remembered that the iPad had some location capability. So after some google searches, I ended up surprised at what this device can do. It does have GPS and A-GPS. Note: GPS is only available on models with 3G/4G chips.

After enabling most of the Location Settings and downloading the "WhereAmIAt?" app, I think I'm ready to track GPS coordinates.

(Numbers and street names intentionally mosaic'ed for my safety :P

With the default Maps App, the accelerometers and such show what direction I'm facing:

June 16, 2012

Problematic Yahoo Pingbox [Solved]

A friend of mine was having problems with her Yahoo! Messenger Pingbox since it's Flash(swf) file only loads if the user has visited other yahoo! sites. Yahoo! failed on this one by requiring a cookie that is not guaranteed to be there.

Looking around the interwebz, I found a couple of suggestions, but the best one only worked after loading the page again. This solution requires jQuery to be included. Using some jQuery fu, I cooked up some code to:

1. Load yahoo! terms page in an iFrame. This will load the cookie that pingbox requires.
2. After that page completes, writes the Pingbox code.

<script type="text/javascript">
   $(document.body).append('<iframe id="myId" style="visiblity:hidden;display:none;" src="http://info.yahoo.com/legal/us/yahoo/"></iframe>');
      $('#pingboxhere').append('<object data="http://wgweb.msg.yahoo.com/badge/Pingbox.swf" height="420" id="ZZZZZZZ" type="application/x-shockwave-flash" width="240"><param name="movie" value="http://wgweb.msg.yahoo.com/badge/Pingbox.swf" /><param name="allowScriptAccess" value="always" /><param name="flashvars" value="YYYYYYY" /></object>');
<div id="pingboxhere"></div>

I'm not sure if this solution is the best practice, but it works for me. Any thoughts?

June 13, 2012

Best Combo Jutsu... Evar

Neji + Rock Lee = Jet Lee!