Close
Glad You're Ready. Let's Get Started!

Let us know how we can contact you.

Thank you!

We'll respond shortly.

PIVOTAL LABS
Standup 9/9/10

Helps

“Has anyone experienced fuzzy PDF rendering at some zoom levels on iOS?”

One project was having trouble with their iOS app which shows a PDF file. When you zoom the view, the text becomes fuzzy looking. The text in the PDF is only fuzzy at certain, seemingly nondeterministic, zoom levels. They are drawing the PDFs with CGContextDrawPDFPage and scaling with CGContextScaleCTM. Does anyone know what could cause this?

Interesting Things

  • There doesn’t seem to be any reliable way to know if an HTML checkbox got checked by simply looking in the DOM. There’s an attribute on the INPUT called “checked”, but this is only read during page load to set the initial value of the checkbox.

  • Interesting Amazon EC2 announcement:

    “Micro instances provide 613 MB of memory and support 32-bit and 64-bit platforms on both Linux and Windows. Micro instance pricing for On-Demand instances starts at $0.02 per hour for Linux and $0.03 per hour for Windows.”

Comments
  1. Pat Nakajima says:

    jQuery lets you get at the checkbox’s checked state pretty easily with `input.is(‘:checked’)`

    See this gist for a sample: [https://gist.github.com/e927f7622fa53520959c](https://gist.github.com/e927f7622fa53520959c)

  2. thedarkone says:

    What you need to do is to directly test `checked` property on the DOM element like this: `input.checked`, note that this is different from doing `input.getAttribute(‘checked’)`.

    That’s how jQuery’s `input.is(‘:checked’)` works as well: http://github.com/jeresig/sizzle/blob/6c4df96281bd89fec3084daa7c896fd92830b50c/sizzle.js#L505

Post a Comment

Your Information (Name required. Email address will not be displayed with comment.)

* Copy This Password *

* Type Or Paste Password Here *