javascript

Latest

  • Atari ports classic games to HTML5 for web and Windows 8, lets developers craft their own (video)

    by 
    Jon Fingas
    Jon Fingas
    08.30.2012

    Atari is big on nostalgia this year, but it hasn't had much in the way of software to reflect the trip down memory lane beyond the existing mobile apps. Its remedy to that shortfall is full of 2012 buzzwords. The new Atari Arcade includes modern takes on eight classic Atari 2600 games, all built entirely with HTML5 and free to play. As fun as that promises to be, our interest is most piqued by the game library's open-ended nature; this isn't just an alternative to firing up a smartphone. A new Javascript kit lets developers not only build their own games but make money as they see fit, whether it's through ads or in-app purchases. Whether they're new or old, titles work in multiple contemporary browsers, although Microsoft would really, really like you to know that the games are ad-free and touch-optimized for both Windows 8 tablets as well as Internet Explorer 10. We'll try to remember that when we look to relive our Combat memories on a Surface.

  • Google Octane benchmark tests JavaScript in the real world, scales to mobile sizes

    by 
    Jon Fingas
    Jon Fingas
    08.22.2012

    We're all too familiar with JavaScript tests like Sunspider -- we use them all the time to gauge browser speeds on phones and tablets. Most of these have little direct correlation to the sites we're visiting on our devices, however, and seldom acknowledge that we're testing with anything but a desktop. Google wants to drag the experience into this decade with its new Octane benchmark. The collection of tests uses real-life examples of JavaScript code -- who knew web-based Game Boy emulators were so popular? -- to generate results for a simple, more-is-better scoring system. Its interface also scales dynamically and should fit just about any screen size. While we can't guarantee that Octane will find a place within our own battery of tests, both the benchmark itself and the source code are available for anyone to investigate. Feel free to post and compare your results in the comments.

  • Microsoft advises nuking Windows Gadgets after security hole discovery, we mourn our stock widgets

    by 
    Jon Fingas
    Jon Fingas
    07.11.2012

    Whether you see Windows Vista and Windows 7 Gadgets as handy tools or a blight upon a pristine desktop, you might want to shut them off for safety's sake. Mickey Shkatov and Toby Kohlenberg have found that the desktop widgets' web-based code have flaws that would allow malicious Gadgets, or even hijacked legitimate Gadgets, to compromise a PC without having to go through the usual avenues of attack. Microsoft's short-term answer to the vulnerability is a drastic one, though: a stopgap patch disables Gadgets entirely, leaving just a barren desktop in its wake. There's no word on a Gadget-friendly solution arriving before Kohlenberg and Shkatov present at the Black Hat Conference on July 26th, but we suspect Microsoft's ultimate answer is to move everyone to Windows 8, where Gadgets aren't even an option. We understand the importance of preventing breaches, of course -- we're just disappointed that we'll have to forgo miniature stock tickers and weather forecasts a little sooner than expected.

  • BitTorrent Torque alpha puts file seeds on the web, makes desktop apps look stale

    by 
    Jon Fingas
    Jon Fingas
    07.07.2012

    Almost without fail, BitTorrent downloads have had to spread through a dedicated client, whether it's on the desktop or a router. Thankfully, BitTorrent Torque has just come in alpha form to liberate the peer download service from its software chains. All that's needed now is a web browser that can parse a JavaScript app. Going the new route gives some freedom to enable sharing that hasn't always been practical: among the tricks in the company's Torque Labs are drag-and-drop sharing, conversion of torrents into traditional downloads and easing the burden on a server for video streaming. The alpha stage leaves Torque with awhile to go before it's ready for the limelight, but experimenters can hit the source link to start tinkering with distributed file sharing today.

  • Augmented reality browser Junaio offers less 'clunky' apps, new API for developers (video)

    by 
    Sharif Sakr
    Sharif Sakr
    06.20.2012

    Remember Metaio? Back in February we reported on the company's rather neat brand of markerless augmented reality, and now it has some fresh news: a major revamp to its Junaio AR browser for iOS and Android, which incorporates the markerless algorithms and a lot more besides. The browser is an open platform for a myriad of smaller AR apps coded by independent developers, and the new version includes both a new UI and API to give those devs additional tools in HTML5 and JavaScript. Right now, the app is worth a peek for the various curiosities demo'd after the break -- such as the ability to see other people's Instagram photos overlaid on the view from your rear camera, showing the direction and distance to the point where they were snapped. In time, though, we're really hoping that developers will latch on to platforms like this and take AR to where it needs to be: something that let's us recognize and augment people and objects naturally and instantaneously, without pre-conceived markers. In fact, Junaio really needs to have coffee with Project Glass. Update: looks like the Android version has jammed in a pipe somewhere and won't hit Google Play til June 25th.

  • Microsoft posts Windows 8 app porting guide roundup, forgets to include BASIC

    by 
    Jon Fingas
    Jon Fingas
    05.27.2012

    Let's say you're a developer eager to convert your apps for Windows 8 as soon as possible. Where do you start? Microsoft Developer Evangelist Jennifer Marsman is very much aware that you might be at a loss, so she has done the rather large favor of rounding up every porting guide the company has to offer in one handy place. Some of these are pure design guides, like a previously spotted iPad-to-Metro layout article, but others dig deep into converting code for the land of home tiles and charms. The focus is on porting from the web and Windows Phone 7, so we wouldn't work up hopes of bringing your high school computer class project to Metro. Still, Marsman is looking for more guides from readers; if you've developed just the technique to convert 10 PRINT "HELLO WORLD" 20 GOTO 10 into a tablet-native Windows 8 app, return the generosity and leave pointers at the source link.

  • Google snags the webOS Enyo team, HP says open source plans are still on schedule (Update)

    by 
    Richard Lawler
    Richard Lawler
    05.25.2012

    At one time the Enyo app framework was supposed to help webOS run faster and on a wider variety of devices, but as HP continues to struggle, reports have surfaced from The Verge and AllThingsD that much of the team behind it, including leader Matthew McNulty, has been hired away by Google. Numbering a half dozen or so, the immediate danger is the effect this might have on HP's efforts to open source webOS, but in a statement the company indicated it remains on track and will stick to the roadmap it announced in January. Less clear is what these employees might end up working on for Google, although Enyo's focus on web apps and HTML5 suggests the possibility they'll end up working on ChromeOS projects. Update: The remaining members of the Enyo team have also chimed in now, with a blog post indicating yes, some "key members" have left, but that "the majority of the engineering and leadership team remains." Of course, while it continues work on the product there are some job openings now, so interested coders are encouraged to toss an application HP's way.

  • Google bots learning to read webpages like humans, one step closer to knowing everything

    by 
    Sarah Silbert
    Sarah Silbert
    05.17.2012

    Google just launched its Knowledge Graph, a tool intended to deliver more accurate information by analyzing the way users search. Of course, with a desire to provide better search results comes a need for improved site-reading capabilities. JavaScript and AJAX have traditionally put a wrench in Google bots' journey through a webpage, but it looks like the search engine has developed some smarter specimens. While digging through Apache logs, a developer spotted evidence that bots now execute the JavaScript they encounter -- and rather than just mining for URLS, the crawlers seem to be mimicking how users click on objects to activate them. That means bots can dig deeper into the web, accessing databases and other content that wasn't previously indexable. Looks like Google is one step closer to success on its quest to know everything.

  • Mozilla demos WebRTC integration, browser-powered video chat (video)

    by 
    Terrence O'Brien
    Terrence O'Brien
    04.09.2012

    Last week at IETF 83 in Paris Mozilla gave a little demo that went almost completely unnoticed. The team behind Firefox showed off an experimental built of its flagship browser with integrated WebRTC support. To showcase the real-time communication plug-in's capabilities, the foundation built a simple video chat client based around Persona and SocialAPI. Whether or not such a feature will ever make it into an official build of the browser remains to be seen, but for now you can check out the simple, yet impressive, HTML and Javascript demo after the break.

  • Mozilla releases BrowserQuest for HTML5 gamers and warriors (video)

    by 
    Amar Toor
    Amar Toor
    03.28.2012

    Mozilla is flexing its HTML5 muscles today, with a new game called BrowserQuest. Designed specifically for browser-based gaming, BrowserQuest brands itself as a "tribute to classic video games with a multiplayer twist." The game's plot is relatively routine -- warriors, hidden treasure, etc. -- but what's most interesting is its underlying architecture. Its 2D tile graphics engine is powered by HTML5 Canvas, with browser-to-server communications handled by WebSockets. Sound effects, meanwhile, are powered by HTML5 audio APIs, and each player's progress is saved using localStorage. The game also supports lots of simultaneous players, thanks to a JavaScript-coded backend that runs on Node.js. You can keep track of the player load in real-time at the BrowserQuest Dashboard (linked below). For more details, check out the source link at the bottom of the page, or click past the break for a brief demo video.

  • Marvell launches Kinoma Play app platform for Android

    by 
    Michael Gorman
    Michael Gorman
    03.13.2012

    Almost a year has passed since we last saw Marvell's Kinoma platform in person, but the time has finally arrived for its release. We got the chance to sit down with Peter Hoddie, VP of the Kinoma Platform, to learn a little bit more about his software and what Kinoma can bring to your smartphone experience. First, a quick refresher. Kinoma Play is technically an app, but in reality it serves as an entirely new UI for your Android device running versions 2.1 and up. The platform currently has 50 of its own apps -- written in Kinoma Play Script, a Javascript language -- that are obtained through the Kinoma store, and these apps can be accessed on their own or through Play's unique dashboard system.There are currently five dashboards: Play, Search, Places, Music, and Send, with more to come as users ask for them. These dashboards group related apps and allow you to access them simultaneously in a truncated, list form -- for instance, the search dashboard returns results from Google, Yahoo, Wikipedia, Bing, and any other Kinoma app you choose to add. In addition to those useful dashboards, the software improves the UX by simply speeding things up. It's a lightweight platform with small apps (many are only 100 - 150KB in size) that launch quickly and run smoothly. Still not sold? Head on past the break to see Peter walk us through a little bit of what Kinoma can do, and read on to learn more about the platform.

  • Mozilla Labs Apps set to allow developer submissions for Mozilla Marketplace at MWC

    by 
    Joe Pollicino
    Joe Pollicino
    02.22.2012

    Been keeping up with Mozilla Labs' Apps project? Today the company's focused on developers, with pleasing news if you've been looking to get your app's feet wet in it. In the coming weeks at Mobile World Congress, the Firefox maker will finally open its self-titled Marketplace's doors for app submissions. If you're unfamiliar, Mozilla's been working to create an "operating system- and device-independent market," which will rely on the likes of HTML5, CSS and other open source materials -- Mozilla also plans to introduce its own APIs for apps, pending W3C approval. The end result will be the ability to use said apps without being locked down by your devices and their respective app stores. The store is set to open up for consumer consumption later in the year, so now's your chance to reserve your software's spot and name on the list. More details await in press release after the break and at source link below, while you get your code ready.

  • Google's Dart lands in Chromium tech preview

    by 
    James Trew
    James Trew
    02.17.2012

    Leaves weren't the only things flying around Mountain View last Autumn if you remember, Google also unleashed its Dart programming language. Now, developers can get their hands on a tech preview version of Chromium, with the Dart virtual machine baked right in. There are Mac and Linux binaries available today, but no details about other platforms (ahem Windows) at this time. The preview lets you run your programs directly on the Dart VM, skipping the separate compilation stage. While it's just for developers at the minute, there are plans to include this in standard Chrome releases in the future. Aim at the source link after the break for the full details.

  • iBooks Author Challenge: Adding spelling quizzes to iBooks

    by 
    Erica Sadun
    Erica Sadun
    02.03.2012

    Dave Caolo and I were chatting this morning about iBooks and spelling. "It's not my daughter's favorite subject," he said, "and I'm looking for a way to make it more appealing to her." He asked if there could there be any way to incorporate spelling quizzes into iBooks via Author. The answer is, unfortunately, not clearly yes. That's because iBooks Author assumes that all interaction will be by multiple choice. That means you can create interactions to choose from common misspellings and from homonyms, but can't solicit freeform text entry. That gives rise to the kind of interaction you see below. The shortcomings are apparent. For example, you cannot define any item that isn't tied to a specific location (so you can't create a pool of misspellings without destinations). If the reader switches the order of the two misspelled words (here Tale and Flour) those are marked wrong as well. So I hopped into Dashcode and built a widget that would solicit a correctly spelled word and embedded it into an Author project as follows. This turned out to be a failure. Although the embedded audio prompt worked fine (albeit in a separate interactive element), widgets do not run in-line and iBook's interpretation of the widget hid my embedded checker button. This might be due to my subpar Widget construction, or I may simply be running into iBooks 2 limitations. So how can you expand iBooks for spelling? This post tells you where I am to date. If you have a better solution, drop a note into the comments. And if you are an expert Dashboard widget engineer, please ping me offline. I'd really love to test out the possibilities and limitations of this tech.

  • Cut the Rope gets ported to HTML5, gets chronicled on the way

    by 
    Mat Smith
    Mat Smith
    01.12.2012

    Outlined during Microsoft's CES keynote earlier this week, gaming app Cut The Rope has had its journey to the world of HTML5 published for the masses. Tying together features like CSS3 styling and canvas-rendered graphics, the blog post details in cheery technical detail how creators ZeptoLab and Pixel Lab (not related) transferred the game from Objective-C to Javascript. Check the game for yourself down at the source and expect to see some extra levels designed especially for the browser platform. We'd love to play through those new levels, but we're all a little busy here...

  • PhoneGap v1.3 brings better cross-platform app coding to Windows Phone

    by 
    Sharif Sakr
    Sharif Sakr
    12.20.2011

    Nitobi's PhoneGap project helps app developers to code for multiple mobile OSs simultaneously, thanks to the open standard wonders of HTML5, JavaScript and CSS. It's supported Windows Phone since the beginning, but v1.3 builds on that friendliness by opening up the API's full feature set and hence every limb and organ of a Mango handset, from the compass right through to storage and notifications. New plug-ins yield extra goodies, like Live Tile updates, BingMaps Search and social networking integration. Plus, in the interests of fairness, the full list of improvements (at the source link) contains some nuggets for Android, iOS and BlackBerry coders too.

  • Firefox 9 now available, boasts speedier JavaScript handling, Lion optimizations

    by 
    Sean Buckley
    Sean Buckley
    12.20.2011

    Internet feeling a bit sluggish recently? Yeah, we get that -- but before you sail the malware-laden sea of software that promises to "speed up" your computer, you may want to check out Firefox 9. Mozilla's latest browser update features a tweak in its Javascript engine that boosts its benchmark performance by over 30 percent -- meaning that the new Firefox ought to give script heavy websites a run for their money. In addition to the new Javascript trick, which is called Type Inference, Firefox 9 improves theme integration and swipe navigation for Mac OS X users. Have a need for (javascript) speed? Hit the source links below to get your fix, or simply wait for your browser to auto-update.

  • Yifan Lu jailbreaks Kindle Touch, uses a special MP3 file to do so (video)

    by 
    Joe Pollicino
    Joe Pollicino
    12.12.2011

    We've seen a fair share of Kindle Jailbreaks over the past few years, but Yifan Lu's (evidently the first) for the Kindle Touch is certainly novel in its approach. As The Digital Reader points out, a sizeable chunk of the Touch's software is essentially a string of pseudo HTML5 and JavaScript webpages -- differentiating it from Kindles prior -- which led Lu to notice an exploit rooted in its browser. It's there where he found a function titled nativeBridge.dbgCmd(), which'll run any ol' shell command as root. Armed with that knowledge, Lu crafted the jailbreak by cramming his payload of HTML and JavaScript into the ID3 tags of an easily downloadable MP3 file. There isn't much to be gained from "playing" that MP3 just yet, but Lu's looking forward to developers using the tools needed to write programs for the device. Full details about the jailbreak can be found at source link below, but before you head off, you can catch the video proof after the break.

  • Google's Native Client focuses on apps and games, brings Bastion to the browser (video)

    by 
    Sean Buckley
    Sean Buckley
    12.12.2011

    In case you missed it, Google's Native Client launched at the end of the summer, promising to ease cross-OS deployment by letting developers run x86 code natively in Chrome. Early adopters have had a few months to tinker with Google's new trick, and now the outfit is eager to show off their best work. Supergiant Games, for instance, has ported Bastion to the Native Client, opening up the Xbox Live hit to Mac, Linux and Chrome OS users. Google's Christian Stefansen says Native Client makes porting existing code bases written C, C++ or C# easy, citing Spacetime Studio's Star Legends -- an MMO with over half a million lines of code -- as an example of a large project that was ported in as little as two weeks. Google touts application middleware ports (such as Unity, Moai, Mono, fmod and more) and easy distribution to the Chrome Web Store as a major boon to developers, and encourages interested studios to check out its new Native Client site to help them get started. Interested? Hit up the links below, or simply skip past the break to hear Mr. Stefansen's spiel for yourself.

  • Sony's latest Xperia update brings WebGL support to 2011 smartphone lineup (video)

    by 
    Zachary Lutz
    Zachary Lutz
    11.29.2011

    Why Sony chose to sit on this one, we have no idea, but the company just revealed that its software update for the 2011 lineup of Xperia phones -- which was released last month -- also adds browser support for WebGL. This means that if you're holding an Xperia Arc, Mini, Neo, Play, Ray... or any other of its most recent handsets, then there's a good chance you're wielding one of the first Android phones to support this modern graphics platform. Designed to bring advanced visuals and gaming to the web, the API holds roots in JavaScript and has been used to develop everything from Angry Birds to far-out music videos. Sony Ericsson first previewed its WebGL efforts back in February, and after all these months, its official arrival is a welcome one, indeed. For a quick demo video, be sure to hop the break.