Talk Funnel

Ramin Firoozye’s Public Whisperings

Archive for October, 2008

On 50

without comments

This came through the mail recently. I’m not quite there yet age-wise, but still found it funny:

Advantages of approaching (or passing) your 50th birthday:

  • Kidnappers are not very interested in you.
  • In a hostage situation you are likely to be released first.
  • No one expects you to run–anywhere.
  • People call at 9 pm and ask, did I wake you?
  • People no longer view you as a hypochondriac.
  • There is nothing left to learn the hard way.
  • Things you buy now won’t wear out.
  • You can eat dinner at 4 pm.
  • You can live without sex but not your glasses.
  • You get into heated arguments about pension plans.
  • You no longer think of speed limits as a challenge.
  • You quit trying to hold your stomach in no matter who walks into the room.
  • You sing along with elevator music.
  • Your eyes won’t get much worse.
  • Your investment in health insurance is finally beginning to pay off.
  • Your joints are more accurate meteorologists than the national weather service.
  • Your secrets are safe with your friends because they can’t remember them either.
  • Your supply of brain cells is finally down to manageable size.
  • You can’t remember who sent you this list.

Written by ramin

October 30th, 2008 at 2:09 pm

Posted in Fun

Tagged with

Notes from the iPhone Tech Talk

with one comment

I spent all yesterday at Apple’s first iPhone Tech Talk in San Francisco (technically, Paris was first because of time differences, but we won’t quibble). After seeing the schedule of events (and having attended WWDC) my expectations for getting new technical information were pretty low.

Boy, was I wrong.

The talk itself was under NDA so I won’t go into details. But I’ll point at a couple of items in current examples and documentation that everyone should be aware of:

  • If your app is using audio in any way, you’ll want to make sure you’ve read and understood the “Audio Sessions: Cooperating with Core Audio” section of the “Core Audio Overview” document (it’s part of your help document set in the SDK).

    Of special importance is making sure you declare the proper AudioSessionCategory for your app. Not doing it means that if your app uses sound (input or output) and gets interrupted — by an incoming phone call, or even by the user plugging and unplugging headphones — your app’s sound may not continue playing properly. There’s some example code in the SpeakHere example to help point the way.

    Here, by the way is what the documentation says:

    Ignoring Audio Session Services will not prevent your application from running, but your app may not behave the way you want it to. Never ship an iPhone or iPod touch application that uses audio without using this interface.

    You’ve been warned.

  • If you’re using the accelerometer, you’ve probably seen the low-pass filter code in the docs and examples. The point of the filter is to smooth the effect of motion ‘jitter.’

    The thing is, the basic low-pass filter formula is — to put it mildly — non-functional (aka brain-dead). Again, I can’t talk about the specifics, but the presenter had graphs that showed how bad that formula behaves.

    Actual color graphs, I tell you!!!

    If you manage to get your hands on a sample iPhone Apple application called Touch Fighter — you’ll want to use the smoothing function there (the app was handed out in WWDC and isn’t part of the standard SDK example set).

    If you can’t find it, I suggest looking around for source code that handles the Wii remote (they have to deal with similar issues). At some point, I might post a more detailed technical article on this.

  • Gesture management is still something that Apple leaves to individual developers, instead of including it in the SDK. I have a ’swipe’ detection library (but it’s only for one-finger swipes, not multi-touch). If there’s demand for it, I’ll post it up.

    But really, this should be something supported in the OS.

Most of the TechTalks are full now. If you happen to have gotten accepted, don’t skip them. If not, get on the waiting list. It’s worth it. The sessions on game development and performance tuning are massive info-dumps. Might want to take a lot of notes.

P.S. That mod-squad picture on the web site (excerpted above) features actual Apple evangelism group members strutting their stuff :-)

Written by ramin

October 23rd, 2008 at 6:34 pm

Posted in iphone

Tagged with ,

Re-launch

without comments

I totally blame my absence from this space on Twitter, for sucking away what little time and energy I have to write things. However, with the removal of the iPhone NDA, I’m going to re-focus on what I’ve been spending most of my working time these days: iPhone app development.

That is not to say that I’ll stop posting other meanderings. Just that I need a place (other than mailing lists) to post and where better than, you know, my own damn blog.

Written by ramin

October 7th, 2008 at 10:40 am

Posted in admin

Tagged with , ,