Sunday, February 26, 2012

About Facebook JavaScript SDK

Facebook JavaScript SDK
The JavaScript SDK provides a rich set of client-side functionality for accessing Facebook's server-side API calls. These include all of the features of the REST API, Graph API, and Dialogs. Further, it provides a mechanism for rendering of the XFBML versions of our Social Plugins, and a way for Canvas pages to communicate with Facebook.

reference: http://developers.facebook.com/docs/reference/javascript/

Saturday, February 25, 2012

EPUBReader : Read ePub just in Firefox

EPUBReader is a Firefox addon which lets you read ePub-files just in the browser. You don't need to install additional software!

If you click on a link to an ePub-file, you are normally prompted by the Firefox "save as" dialog. With EPUBReader installed, the ePub-file is downloaded, processed and directly displayed ready to read.

It runs on every operating system Firefox does (Windows, MacOS X, Linux).

Website: http://www.epubread.com/


Watch EPUBReader in action: Watch how it looks like reading an ePub-file with the Firefox add-on EPUBReader.


Friday, February 24, 2012

Last year at Mobile World Congress



SynWrite Editor: A free source code editor

SynWrite is a free source code editor and notepad replacement for Microsoft Windows Operating Systems.

Web site: http://www.uvviewsoft.com/synwrite/index.html

Features
  • Syntax highlighting for lots of languages
  • Fully customizable highlightings
  • Code folding, determined text ranges may be collapsed
  • Tree structure view for source code
  • Autocompletion
  • Source code templates
  • Clipboard history panel
  • Search, replace with regular expressions
  • Search, replace in multiple files
  • External tools (capture of console output, errors navigation)
  • Strings extraction feature
  • Zen Coding (HTML + CSS + XSL high speed coding engine)
  • Customizable hotkeys
  • "Sync-Edit" feature allows to edit identical identifiers (see image)
  • Portable mode
  • Live spell checking
  • Plugin support for file manager "Total Commander"
  • Multilingual user interface
  • Bookmarks
  • Export to RTF/HTML with syntax highlighting
  • and more...

SynWrite Editor: A free source code editor

Tech preview of Chromium with Dart VM

Chromium with the Dart VM for Linux and Mac is now available. his technology preview allows you to run your Dart programs directly on the Dart VM in Chromium and avoid a separate compilation step.

This release of Chromium with Dart VM integration is a technology preview, and should not be used for day-to-day browsing. After more testing and developer feedback, it will be eventually included the Dart VM in Chrome.

Link: http://www.dartlang.org/dartium/

Important: This browser is a technical preview, and it might have security and stability issues. Do not use Dartium as your primary browser!

Related: DART: new programming language for web applications

DART: new programming language for web applications


Dart is a new class-based programming language for creating structured web applications. Developed with the goals of simplicity, efficiency, and scalability, the Dart language combines powerful new language features with familiar language constructs into a clear, readable syntax.

Web Site: http://www.dartlang.org/

Related:
- Tech preview of Chromium with Dart VM

Thursday, February 23, 2012

Display Map on webpage to track location

In the previous article "Display Map of current location", we load current map of current using window.navigator.geolocation.getCurrentPosition() when page loaded. That means the map show the location when page load only, will not update when the user(or device) moved. We are going to replace it with window.navigator.geolocation.watchPosition() to get repeated position updates, to track the updated location.
Display Map on webpage to track location
<!DOCTYPE html>
<html>
<head>
<title>Mobile-Web-App: geolocation</title>
<script src="http://maps.google.com/maps/api/js?sensor=false"></script>

<style>#mapcanvas { height: 360px; width: 100%}</style>

<script type="text/javascript">

if (window.navigator.geolocation) {
window.navigator.geolocation.watchPosition(
successCallback, errorCallback);
} else {
alert("!!!Browser doesn't support Geolocation API.");
}

function successCallback(position){
loadmap();
var mylatitude = position.coords.latitude;
var mylongitude = position.coords.longitude;
document.getElementById("latitude").innerHTML
= "latitude: " + mylatitude;
document.getElementById("longitude").innerHTML
= "longitude: " + mylongitude;
document.getElementById("accuracy").innerHTML
= "accuracy: " + position.coords.accuracy;
loadmap(mylatitude, mylongitude);
}

function errorCallback(error) {
alert(error);
}

var map;

function loadmap(mylat, mylong){
var options = {
zoom: 15,
center: new google.maps.LatLng(mylat, mylong),
mapTypeId: google.maps.MapTypeId.SATELLITE,
};

map = new google.maps.Map(document.getElementById("mapcanvas"), options);
}

</script>

</head>
<body>
<h1>Mobile-Web-App: geolocation</h1>
<div id="mapcanvas"></div>
<div>
<p id="latitude"></p>
<p id="longitude"></p>
<p id="accuracy"></p>
</div>
</body>
</html>