ppi

Detecting the system DPI/PPI from JS/CSS?

I'm working on a kind of unique app which needs to generate images at specific resolutions according to the device they are displayed on. So the output is different on a regular Windows browser (96ppi), iPhone (163ppi), Android G1 (180ppi), and other devices. I'm wondering if there's a way to detect this automatically. My initial resear...

iPhone Screen Resolution. 160 vs 163 vs. the future

I'm trying to make an app that displays something in real-world units. It's not a ruler app, but it wants that kind of precision. It already looks like the iPhone and iPod touch have different screen resolutions (160 & 163 respectively) I've found this http://stackoverflow.com/questions/610193/calculating-pixel-size-on-an-iphone and th...

asio sctp library support for PPI (Protocol Payload Identifier)

Hi I'm using the experimental asio sctp library. (code.halssoftware.com/index.php/p/boostasiosctp/source) It's pretty easy to use like the other networking stuff in asio. The one problem I have is that I want to use the PPI field in SCTP data chunks - but I can't figure out how to get that information from the asio sctp interface. It ...

How do I find a comment with PPI and then insert code before it?

I'm trying to find the comment # VERSION in a perl source file. I then want to insert the version before the comment (or in place of doesn't matter). Could anyone tell me the right way to do this with PPI? before use strict; use warnings; package My::Package; # VERSION ... after use strict; use warnings; package My::Package; our $VE...