It’s a Panda’s Life

A recent Google search reveals that there isn't much discussion about the recently introduced region monitoring feature on the iPhone. A couple of us were looking into how it could be used, and I created a toy project which creates and monitors regions. The project itself is really simple, it just tracks the iPhones current location using the significant location change APIs, and allows you to create a region of constant radius. It then monitors this region, and notifies one when one enter or exits this region.

At some point, once I am done actually getting things to work correctly, I'll post more information, my current intention was to merely provide a starting point. So far my observations with the current code are

  • Region boundary crossings seem to be pretty fuzzy. In some case I get notified very close to where I would have expected, while in other cases it can be some distance from my expected boundary.
  • For some reason when crossing a particular location causes the iPhone to generate a exiting region event, walking back through that region won't necessarily generate an entering region event.

These defects could be because of how the code is written (if you happen to notice something wrong, please leave a comment), as stated above I'll post more when I figure more of this out.

§315 · June 29, 2010 · CS, CoreLocation, article, iPhone · (No comments) ·


This is where I bitch about serialization in C++. If you do not understand what that previous statement was about, you might want to skip all of this entry. Really, skip this entry, it does not help you with much. Yes, I am home for the winter, I am leaving in a couple of days. [...]

Read more...

§300 · January 16, 2008 · CS, Hacks, article, rant, turing machine · 24 comments ·


I believed I had this beautiful set of numbers. Then reality struck and they weren’t actually there. On one hand, having fake but nice numbers is bad, on the other hand, those numbers were really pretty. And now I sit around reading and thinking about Haskell and hating on C++. Who would have known that [...]

Read more...

§293 · September 22, 2007 · CS, Hacks · 11 comments ·


This semester as a part of TAing 167/9 we are making use of Mercurial for SCM. Itay liked Hg so much that he actually started using it for nearly everything on his computer and came up with a good reason for doing this. I am not organized enough to put all of my files into [...]

Read more...

§290 · September 11, 2007 · CS, systems · 135 comments ·


Earlier today, thanks to Itay, I was introduced to the idea of parser combinators in conjunction with a discussion we were having. From what I understood (hence not misrepresenting anyone), he knew of parser combinators from Scala, where they are a part of the standard library, of course my customary Google search of new terms [...]

Read more...

§288 · August 13, 2007 · CS, haskell, monads, parser combinators, scala · 33 comments ·