RSS
 

Posts Tagged ‘pc’

PhoneGap – Detect if the application runs on mobile or browser using JavaScript before the “deviceready” and document “ready” events are triggered

05 Nov

I spent hours to find out how to do it. And believe me or not, I found nothing on the whole internet about how to solve it.

Actually there is a simple way to do that after the event “deviceready” has been triggered (as described on the PhoneGap’s API Docs), it is simple as:

1
2
3
4
5
6
7
document.addEventListener("deviceready", function(e){
if ( device ) {
alert("Running on PhoneGap!");
} else {
alert("Running NOT on PhoneGap!");
}
}, false);

Read the rest of this entry »

 

Synergy – Using same keyboard and mouse on 2 different PC/OS

21 Nov

As you know or don’t know, all my work (especially programming) is done from a laptop running Linux OS, or to be more specific, Fedora.
Except from programming, I’m also using Adobe products like Photoshop, Fireworks and more to design and style photos, picture and images.
As I know for now, there is no standard way to run Adobe products from Linux but only from Windows and Mac OS X.
Read the rest of this entry »

 
37 Comments

Posted in Software