Archive for November, 2008

Optimizing distance calculations

Wednesday, November 26th, 2008

My brother wrote about calculating distances with PostGIS. I followed up with some suggestions, but WordPress seems to be eating my comments (strip_tags() is mutilating them, stripping anything after a “<”). So I’m following up here.
Most of my first comment got eaten; I went on to optimize the query significantly. It should have a WHERE [...]

Another undocumented iPhone 2.2 feature

Saturday, November 22nd, 2008

More improvements to app updates. When you update an app, the incomplete app icon immediately replaces the old app icon. It used to be that the old app would continue to exist, while a new icon was added for the updated version. When the update was finished, it replaced the old app.
This happens earlier, so [...]

More on the podcast audio playback

Friday, November 21st, 2008

As I mentioned earlier, I really liked the ability of 1.x iPhones to play back only the audio portion of a video podcast. Video podcasts appeared under both Podcasts and Videos. If playback was initiated from the former, only the audio would play, while the audio and video played when initiated from the latter. This [...]

Brief iPhone 2.2 notes

Friday, November 21st, 2008

I jailbroke my iPhone last week to see what was happening in the homebrew scene. Not all that much, really, so I upgraded to the official 2.2 this morning. Both times I’ve jailbroken (2.1 and 1.1.3), my iPhone has suffered from significantly degraded performance and stability.
One of the features of 2.2 I haven’t seen detailed [...]

More tough love from PHP

Monday, November 3rd, 2008

Consider the following:

class Foo
{
private $var = ‘avalue’;
private function doStuff()
{
}
}

As you might expect, you can’t access $var or doStuff() from outside Foo, which is well and good. However, things get strange when you throw overloading into the mix.

class Foo
{
[...]