iPhone

Screen shot 2010-03-16 at 6.26.10 PM

Having trouble traversing a document

I’m using JavaScript to hunt and peck around the dom (using element.nodeType, mainly) and I’ve come across the following problem:

I have a document that I’m traversing that has a “B” (bold) element, containing both text and an image “IMG.”

When I search the document, I’m not coming up with the text within the B as a match, and I’m wondering if it’s because the element.nodeType isn’t responding to type “3″ (which should be a text node) properly (as the text node also contains an image).

Any ideas on how I can traverse to find the text within that “B” as a matching string, excluding the img in my result?

(Note: I’m doing this as an update to searchy in order to make it more robust for both the iPhone and iPad).

sh_0000_Layer 6

Can you tell the more compressed version?

So I’ve been watching the various endings to Paranormal Activity (yes, I own the film – digital copy while on the go is a godsend).

While I don’t mind watching the film on DVD, I do like to watch movies while using my iPhone, and therefore the movies need to be seriously compressed.

I usually use VisualHub (now defunct, unfortunately), but sometimes dip into Compressor for the final encoding.

Today, I started to use Evom and I’m quite happy with the results.
While Evom did take much longer to re-compress my 1.6GB file (about 2 hours, compared to about 60-70 minutes with VisualHub), the resulting file size is a shocking 250MB less than what VisualHub gave me.

Here are the two compressed files, side-by-side. Can you tell which is VisualHub’s reduction and which is Evom’s?

Final note: if you CAN tell which is more compressed, do you really think it matters on the iPhone screen? I don’t.






accept-payments

Square: God I love it

Square has been on my radar for a few months – mostly for tinkering project ideas. Here’s some things I’ve been thinking:

  1. Human ATM (swipe card, give cash) for places like Dick’s in Seattle
  2. Buy tickets even easier from scalpers (ha!)
  3. Sell your merchandise easier at live events (hello, OSNAP.net!)
  4. Be the coolest lemonade stand on the block
books

Going broke with books

I’ve been working on some iPhone applications as a licensed iPhone developer.

Doing so has really made my brain hurt as I’m not too familiar with Obj-C or CocoaTouch.

It’s been a fun ride, and learning in the method I usually do I’ve purchased books to help me along.

Thankfully I’m a member of both Barnes and Noble and Borders, so the discounts on these books was substantial. That and I bought a couple over the holidays at a really steep discount from Amazon and SitePoint.