Gears of War 2 Horde Mode Gameplay
Relatd javascript Articles
Dave Johnsoncalls PhoneGap"AIR for the iPhone" because this nice little hack, first created at an iPhone BarCamp, wraps the Web view with a container. This container gives the view access to APIs available on the device, that may not be available yet via WebKit alone. AIR provides a similar container for Flash and Ajax content on the desktop.
PhoneGap is a free open source development tool and framework that allows web developers to take advantage of the powerful features in the iPhone SDK from HTML and JavaScript. We're trying to make iPhone app development easy and open. For many applications a web application is the way to but in Safari you don't get access to the native iPhone APIs, and the that's the problem we're trying to solve.
It is written in Objective-C and allows developers to embed their web app (HTML, JavaScript, CSS) in Webkit within a native iPhone app. We're big advocates of the Open Web and want JavaScript developers to be able to get access iPhone features such as a spring board icon, background processing, push, geo location, camera, local sqlLite and accelerometers without the burden of learning Objective-C and Cocoa.
PhoneGap also has a web app that allows web developers to quickly package their web app into a native iPhone app by providing a URL, a name and icon graphic the web service with automagically create a native iPhone application. We haven't open sourced that code but we're going to soon.
PhoneGap was conceived at iPhoneDevCamp II by Nitobi developer Brock Whitten, Rob Ellis, freelance designer Colin Toomey and Eric Oesterle.
There are a few APIs available now, and others pending:
-
- // Location API
- // Feels a little ugly compared to passing in a closure. Using a hard coded name? :)
- getLocation ();
-
- //GAP will invoke this function once it has the location
- functiongotLocation (lat,lon){
- $ ('lat').innerHTML= "latitude: "+ lat;
- $ ('lon').innerHTML= "longitude: "+ lon;
- }
-
- // Accelerometer API
-
- functionupdateAccel (){
- $ ('accel').innerHTML= "accel: "+ accelX + " "+ accelY + " "+ accelZ;
- setTimeout (updateAccel,100);
- }
-
- // Camera (pending)
- functiontakePhoto (){
- varphoto = gap:takePhoto ();
- returnphoto;
- }
-
- // Vibration (pending)
-
- functionvibrate (){
- gap:vibrate ();
- return false;
- }
-
You can take a peak at the open source code on github. For example, here is the codethat wraps the iPhone location service:
[c]
@implementation Location
- (id)init{
NSLog(@"Gap::Location");
locationManager = [[CLLocationManager alloc] init];
[locationManager setDelegate:self];
return self;
}
+ (void)startTracking{
NSLog(@"starting location tracker");
[locationManager startUpdatingLocation];
}
+ (void)stopTracking{
NSLog(@"stopping location tracker");
[locationManager stopUpdatingLocation];
}
- (void)location{
NSLog(@"location is");
}
- (void)log{
NSLog(@"the location is...");
}
- (void)dealloc {
[locationManager release];
[super dealloc];
}
@end
[/c]
Related javascript Projects
What is XSTM?
XSTM is a n open sourcelibrary which enables high performance object replication between processes. It is an object oriented Distributed Shared Memory, or a Distributed Object Cache.
XSTMhas similarities with technologies like Adobe Flex Data Services , JBoss Cache, Terracotta, Tangosol Coherence , ScaleOut , or IBM's ObjectGrid .
Our model is based on object shares, which work like file shares. When an object is added to a share, it appears on the other machines which have the same share opened. Modifications done to the fields of the object are from this point replicated between machines.
Read more in the project overview.
XSTMis made of three projects. The Java implementation is called JSTMand is the base from which
the other versions are derived. An adapted version made with Luciano, the
author of GWM , is available for GWT . It allowsthis library to be used in a browser. NSTM is a .NET port based on IKVM.
All implementations are compatible with each other so object replication can take
place e.g. between a Java server and a .NET Smart Client.
- No plugins like Flash or Java required.
- Popup blockers are no problem. The content expands within the active browser window.
- Single click. After opening the image or HTML popup, the user can scroll further down or leave the page without closing it.
- Compatibility and safe fallback. If the user has disabled JavaScript or is using an old browser, the browser redirects directly to the image itself or to a fallback HTML page.
The Yahoo! User Interface (YUI) Library is a set of utilities and controls, written in JavaScript, for building richly interactive web applications using techniques such as DOM scripting, DHTML and AJAX. The YUI Library also includes several core CSS resources. All components in the YUI Library have been released as open source under a BSD license and are free for all uses.
Google Web Toolkit (GWT) is an open source Java software development framework that makes writing AJAX applications like Google Mapsand Gmaileasy for developers who don't speak browser quirks as a second language. Writing dynamic web applications today is a tedious and error-prone process; you spend 90% of your time working around subtle incompatibilities between web browsers and platforms, and JavaScript's lack of modularity makes sharing, testing, and reusing AJAX components difficult and fragile.
GWT lets you avoid many of these headaches while offering your users the same dynamic, standards-compliant experience. You write your front end in the Javaprogramming language, and the GWT compiler converts your Java classes to browser-compliant JavaScript and HTML.

![Gears of War 2 [BRAND RECENT LEAKED CONTENT]](http://i.ytimg.com/vi/WvgcUVINUSA/2.jpg)

