Nematolah's shared items

Friday, July 30, 2010

Your Questions Answered #11

Your Questions Answered #11: "

Doctor treating a patient illustration The clinic is busy as ever with more HTML5 ailments. This week, we’ll show you how (and whether) to store a <canvas> on the server, whether to use <progress> or <meter>, more on <header>, the placeholder attribute, and HTML5 minification.




Getting info from a canvas to the server


Stephen asked:



I want to use a canvas element as a layout plan and allow people to move things about and the like but I then want to be able to submit the changed layout to the server so it can be kept not just as a bitmap but as the various current layout of the plan. Is this possible?



You could call canvas.toDataURL() and store this output on the server. (Note that canvas is the DOM node and not the 2D context.) This will store the current state of your canvas, but it’s effectively a bitmap at this point. If you want to store the element for later editing, I’d suggest you use SVG instead. You can achieve the same graphical effect, but you’ll have access to the actual vector data since it’s XML.



Hope that helps,



Remy





Progress or meter?


Pierre asked:



Hello doctor,



I’m beginning with HTML5. I just wonder if I’m using the progress and meter elements correctly. Just imagine a player. Is it correct to use: the progress element to specify a load bar; the meter element to specify the volume set.



Thank you Doctor, have a good day. :-)



<progress> is spot on for a loading bar, yes.



<meter> is read only, however, so it’s not appropriate for a volume control. There are some examples in Tom’s article on <meter>. To create a volume control, you could use one of the new input types specified in HTML5, perhaps <input type="range">.



Cheers,



Rich





Headers


Brad asked:



Having read you can use the header tag within almost any other element, is it fair to say you no longer “design” the header but simply design the elements in each header? How does that work? Would you use header classes?



In the past you define your header with an image or text etc. You can no longer do that if you use multiple headers?



The <header> element should be used if you have any related information within the “header” of that section that needs to be grouped. This means, for example, it isn’t necessary to wrap a lone <h1> in a <header> element. Also remember that the header doesn’t have to appear at the top of a section of page.



Our articles on the <header> element and <hgroup> element explain this some more.



Whether you need to use classes depends on your site.



Ta,



Rich





The placeholder attribute


José asked:



I recall once having seen text inputs that had tips inside them. They didn’t need Javascript in order to manage those tips. Would you consider discussing that a little better? That’d be great! Thanks!



We’re publishing an article on forms shortly, so be sure to look out for it.



Meanwhile, you’re looking for the placeholder attribute. Currently, this is supported only on Webkit browsers, although Mozilla is also working on it. You can use placeholder like this:



<input placeholder="Search" title="Type your search here" ...>


We’ve also written a JavaScript solution using feature detection (i.e., it will check whether the browser supports placeholder and adds support if not). Just add this script to the end of your markup (note that it should be the end since it needs to run once the DOM is ready).



Hope that helps,



Bruce & Remy






HTML5 Minified


Grant asked:



Hello! Big fan of your website. I wanted to know about the so called “HTML Minified” feature that allows you to strip the html, head and body tags from your page.



The W3C Validator Conformance Checker for HTML5 says this is valid, but the Conformance Checker is beta and is supposedly unreliable. I haven’t heard from anywhere else that stripping these tags is a feature.



So is it really a feature? Or just a bug (A BIG one at that) in the experimental validator? I know that it works, but I would like to see any confirmation other than the validator that this is in fact an intended standard before I start using it on my websites. Thanks!



According to the spec, it is now explicitly permitted to omit all kinds of elements, including the ones you mention. Browsers are able to deduce the document structure based on context (e.g., some elements are only allowed within a <body> element) and will fix the DOM as they go. In fact, these have always been optional tags in HTML (but not XHTML).



Browsers are so good at this, though, because they’ve had to deal with the pants code out there on the interwebs. Going this route means you’re relying on browser error handling to render your document (although said error handling has admittedly been standardised in HTML5). I personally see it as a more extreme version of quoting element attributes. Of course you don’t have to, but being strict makes errors much easier to find, helps out parsers that may not be as sophisticated as a full-fledged browser (like text editor syntax highlighting), and makes it easier for beginners and veterans alike to learn and use HTML.



In general, machines understand you better when you’re explicit, so I’d advise against omitting these elements.



For more detailed articles on HTML5 minification, check out Remy’s HTML5 Boilerplates and Bruce’s A minimal HTML5 document.



Peace,



Oli



Got a question for us?


That wraps up this round of questions. If you’ve got a query about the HTML5 spec or how to implement it, you can get in touch with us and we’ll do our best to help.


Your Questions Answered #11 originally appeared on HTML5 Doctor on July 30, 2010.

Google - Tough times ahead

-- Very interesting article... I am not yet sure I believe it. More reading needs to be done but it start to make you think... hm.....

Google - Tough times ahead: " Google seem to be reaching a turning point. Their share price has gone down lately, but there's no real problems within Google - it's the world outside that's changing. Bing is chipping away a little but Google is still the main search engine and at the centre of their business. The Android OS brings in very little cash for Google in comparison, with the OS being dished out free in an effort to get more people using Google services and thus click on Google ads. Google are finding that people don't search as much now, with people instead asking questions on Facebook or Twitter, and advertisers realising that perhaps Facebook is a better place to advertise.


This CNN Money article states that 'the party is over' for Google, as record growth figures begin to dwindle and the company looks for new services and products to keep the figures pointing the right way. It's an interesting read, and shows how, despite the success of Android and the combined force of Google and YouTube, they're now seeing a 21% drop in shares since January.


Link - CNN.com

Read on and add your comments. Follow us on twitter too.

"

Samsung Still Loves Developers – Releases Captivate’s Source Code

Samsung Still Loves Developers – Releases Captivate’s Source Code: "


This image has no alt text

Samsung’s Open Source website has just officially distributed the source code for the Samsung Captivate to anyone willing (and understandably wanting) to download it. The 161MB source package will help developers in creating ROMs for the device for users in the root community to enjoy. This is nothing new for Samsung: the Samsung Vibrant’s (SGH-T959) source has also been available for some time, as well as the source for the international version of the phone. It won’t surprise us when the source for their other Galaxy S phones (the Samsung Fascinate and the Samsung Epic 4G) are released (after the phones themselves are released, of course).


samsung-captivate


Head over to Samsung’s Open Source site to download now (click the Mobile tab in the top bar and look for SGH-i897 to get started).


[via BriefMobile]

"

Wednesday, July 28, 2010

Mugtug offers beautiful, powerful sketching and image editing for the Web

Mugtug offers beautiful, powerful sketching and image editing for the Web: "

Filed under: , ,

mugtug

Mugtug is one name (and website) for two distinct, and equally impressive, image editing/creation applications:


Darkroom is a sophisticated, in-page photo 'adjustment' software. Note that I don't use the word 'editing.' That's because you can't really make selections (unless you want to crop or mirror). You can, however, adjust any image parameter (such as white balance, exposure, contrast, or saturation) and apply specific effects. There's a live histogram, and you can also look at just one channel of the histogram.


Sketchpad is a drawing application with a complete set of tools (except that I couldn't figure out how to draw a straight line!). It's also very fast, responsive, and solid. You get gradients, swatches, multiple options per tool, and a GIMP-like interface with a draggable panel that you can move around.


What's so striking about Mugtug is that it is usable. There are keyboard shortcuts, it's fast and responsive, it's not Flash, and it really doesn't feel like a toy. When I first messed up with the drawing application, I instinctively hit Ctrl-Z to undo; it worked! I then hit it again, and it rolled me another step back. Ctrl-Shift-Z brought me forward again, just like on the desktop. That feeling extends throughout both applications.



I don't know if Mugtug will catch on as an application suite (although I do hope so), but at any rate, I think this is a prime example of where the Web is headed.

Mugtug offers beautiful, powerful sketching and image editing for the Web originally appeared on Download Squad on Wed, 28 Jul 2010 10:30:00 EST. Please see our terms for use of feeds.


Tuesday, July 27, 2010

ShutterSnitch and Eye-Fi: Wireless Camera Tethering for iPad

ShutterSnitch and Eye-Fi: Wireless Camera Tethering for iPad: "


Back in May, we took a look at a ShutterSnitch, an iPad app that lets you receive photos wirelessly from your camera. Combined with an Eye-Fi wireless SD card, you can shoot away and have the photos pop up on the big screen in seconds. It’s like shooting tethered to a laptop, only about a zillion times more convenient.


So why are we revisiting the subject? Because it got a whole lot easier to use. Now, the tricky networking part has been simplified and you need only follow a few steps to get things up and running. The first time you do this, you’ll need to configure both the Eye-Fi card (using the Eye-Fi Center) if it is not already aware of your Wi-Fi network, and also the ShutterSnitch app (just enter the Eye-Fi username and password).


From there, you simply need to shoot, with one weird caveat: you need to create a “collection” in ShutterSnitch to receive the photos. That’s it. Now you can beam the photos across as you shoot.


There are plenty of things you can do within the application. As you shoot, the images are shown full-screen, with or without shutter-speed, aperture and histogram overlays. Once done, you can keep the photos in ShutterSnitch, mail them, organize them, upload to Flickr and pass them off to the iPad’s own photo-library, from where it can be sent off to any other photo-editing application you might have.


There is one big gotcha. You’ll need to have a Wi-Fi network running to make this all work: The Eye-Fi cannot beam direct to the iPad. That means you’ll need either a portable hotspot like the MiFi, be in a place where there is already a network, or create one using a laptop (which kind of defeats the point of this). I’m going to pick up an Eye-Fi card this afternoon and also investigate jailbreak solutions for ad-hoc network creation on the iPad. If it works, I’ll let you know.


From Eye-Fi to iPad [Eye-Fi blog]


Eye-Fi Card, iPad, and ShutterSnitch for Wireless Transfer [The Digital Story]

Invites for Google’s Android App Inventor Begin Rolling Out

-- I want access soooooooooooooooooo bad! lol =)

Invites for Google’s Android App Inventor Begin Rolling Out: "


This image has no alt text

Google announced its App Inventor a few weeks ago with the promise to usher in a new era of Android software creation through their simplified, visual programming interface. At the time of announcement those interested in testing their hand at Android app development were only able to sign up for the opportunity to receive an invite to the service, and it now seems those invites are beginning to roll out. A quick scan of Twitter shows that quite a few would-be Android programmers are reporting that they can now download and begin toying around with the full App Inventor software.


One of our readers was kind enough to send in the full text of the invitation e-mail going out:


Welcome to App Inventor for Android!


The Google account that you are receiving this email on has been given access to App Inventor.


We recommend you start your app building adventures by working through the Getting Started material. You might also want to read more about App Inventor and take a look at some sample apps. Finally, you can ask questions and get help by signing up for the App Inventor Google Group.


Thanks!

Google’s App Inventor Team


Any other Phandroid faithful receiving good tidings from Google today? For those unfamiliar with the App Inventor check out Google’s demo video below and prepare for an onslaught of “Hello World” and “Pet My Kitty” apps.



[thanks to Bas for tipping us off to this!]

"

Intel: Terabit & Beyond

Intel: Terabit & Beyond: "

Lasers will replace copper connections in everything from supercomputers to servers to PCs, according to Intel researchers who demonstrated 50-Gb/s optical transmitter and receiver chips that the company plans to scale up to terabit-per-second speeds prior to commercialization, reports EE Times.





“This is the first completed photonic link with integrated lasers,” said Justin Rattner, Intel’s chief technical officer, during a conference call. The optical fiber output on the receiver chip was filtered into separate colors, then diverted by waveguides into four separate photodiodes, each of which recovered one of the four separate 12.5-Gbit per second channels.


Intel said that its efforts were different from its “Light Peak” technology, which also uses a short length of optical cable combined with a transceiver at each end. Light Peak is designed to “bring a multi-protocol 10Gbps optical connection to Intel client platforms for nearer-term applications,” Intel said. In the case of the 10-Gbit/s transceiver, Intel said, the goal was to bring it to “an even broader set of high-volume applications”.





Intel’s announcement comes about 50 years after the introduction of the laser, Rattner noted. The laser was patented by Bell Labs in 1960.

"

Reviewing HTML5 for Web Designers

Reviewing HTML5 for Web Designers: "

HTML5 for Web Designers, written by Jeremy Keith, is the first book to be published under the A Book Apart brand, founded by Mandy Brown, Jason Santa Maria, and Jeffrey Zeldman.


When the book first landed on my doorstep, I was a bit let down by its meagre length of around 85 pages. I have to be honest, however, and admit I had not done my research before its arrival. From the book’s inception, the publishers stated that they intended to produce something to fill the gap between a blog post and book, something that people would be able to pick up, read quickly, and start implementing straight away.


So I set aside my disappointment and started reading this beautifully crafted book.


HTML5 for Web Designers Book — Image source — used with permission


After reading through it, my opinion has changed. I realise exactly what A Book Apart were aiming to create when they decided on a short format for the series. HTML5 for Designers is split up into six bite-size chapters:



  1. Chapter One: a brief history of markup

  2. Chapter Two: the design of HTML5

  3. Chapter Three: rich media

  4. Chapter Four: web forms 2.0

  5. Chapter Five: semantics

  6. Chapter Six: using HTML5 today


To give you some insight each chapter’s topics, I’ve described them each briefly.


Chapter One


The first chapter lays out the foundations of the book and explains how, as a community, we arrived at the latest iteration of our favorite markup language, HTML5. Keith discusses how HTML was born, the ill-fated transition from HTML to XML (which never happened), the suggestion of XHTML2, and why we write “HTML5″ instead of “HTML 5″.


You might be tempted to skip straight to the second chapter, but I firmly believe that you should read this. It’s vital material, and you’ll almost certainly learn something. (I sure did!)


Chapter Two


Chapter two discusses how to convert web pages from XHTML 1 to HTML5. It also touches on elements that changed in HTML5 and some elements that are absent from the specification.


Chapter Three


In chapter three, the book delves into the realms of rich media and what it means for designers and developers. Keith hints that this chapter could have a whole book dedicated to it (perhaps hinting at an upcoming A Book Apart title?). He does a good job describing the possibilities of <canvas> and showing a few examples of its capabilities. Although some readers may wish for more depth, this book is of course written for designers, so detail is kept to a minimum.


Keith goes on to explain the possibilities of the <audio> and <video> elements, something which many argue will change the way we work with the web. Keith gives great examples on how to introduce these elements into your client work with various fallback options for browsers that lag behind.


Chapter Four


In chapter one, it’s explained that HTML5 started life as Web Apps 1.0 and Web Forms 2.0, which were later merged. So as one might imagine, Web Forms were destined to become an integral part of the HTML5 specification.


Chapter four covers the new elements and attributes for use in forms, including placeholder, required, autocomplete, datalist, new input types, sliders/spinners, and dates and times.


Chapter Five


Chapter five covers semantics (although I feel that this should have been one of the first chapters in the book). Elements discussed include <mark>, <time>, <meter>, and <progress>, as well as the usual structural elements that get used in nearly every site.


Chapter Six


Finally, chapter six discusses the most important question about HTML5: Can we use it today? I trust, as you are on this website, that you will already know the answer to that question.


My opinion of HTML5 for Web Designers


After finishing this book, I discovered that it is in fact quite a gem for anyone starting on their HTML5 journey.


There are undoubtedly areas that could have been expanded further, but the limitations imposed by the authors meant merciless fat-trimming. This is the type of book that you would be happy to keep on your desk as a quick reference manual, a shortcut before diving into the full HTML5 specification.


I would definitely recommend buying this book if you haven’t already. It’s true that great things come in small packages!


Buy the book directly from A Book Apart



YUI 3.2.0 preview release 1 – touch events support, transitions and browser-specific loading

YUI 3.2.0 preview release 1 – touch events support, transitions and browser-specific loading: "

Over at the the YUI blog the team just announced the preview release of YUI 3.2.0. YUI3 now has some interesting new features that the team wants you to try and tell them if they work out for you. The changes to the already very powerful library are quite ambitious:



So check out what is on offer and give the YUI team feedback on what would be nice to have and what is broken. In their own words:


The goal of a preview release is to make it as easy as possible for all of us in the community to evaluate progress of the upcoming release and provide feedback. Please take some time to test 3.2.0pr1 and let us know what you find by filing tickets in the YUI 3 bug database marked as “Observed in version” 3.2.0pr1. We’ll do our best to address preview-release questions on the YUI 3 Forums, too.


There are three ways to get started with the preview release: YUI 3.2.0pr1 is available on the CDN via the 3.2.0pr1 version tag — so you can reference preview-release files like http://yui.yahooapis.com/combo?3.2.0pr1/build/yui/yui-min.js. If you switch to this seed file for the preview release, all subsequent use() statements will continue to load YUI 3.2.0pr1. Or You can download the full YUI 3.2.0pr1 from YUILibrary.com, including source code and examples for all components. Or you can simply explore the functioning examples roster.



Discover by Cooliris: Wikipedia Never Looked This Good

Discover by Cooliris: Wikipedia Never Looked This Good: "

discover_cooliris_logo.jpgWikipedia is one of the most popular sites on the Internet, but the sparse design of the service isn't likely to win awards. On the iPad, on the other hand, we are now seeing a trend towards beautiful apps like Flipboard, which combines design and functionality. With Discover, Cooliris is now launching a free Wikipedia app with a magazine-like interface that allows users to browse and search Wikipedia on the iPad in a whole new way.

Note: The app is currently still waiting for Apple's approval. Cooliris expects it to be available soon. For the time being, you can sign up here to receive an alert when Apple approves the app.

The first page users will see when opening the app features large images and links to Wikipedia's featured article and image of the day. From anywhere in the app, users can swipe down to bring up the search menu and swipe up to bring up their search history. In landscape mode, Cooliris generally uses the wider screen to display additional information like related articles or a more detailed list of your search history.



discover_cooliris_homepage.jpg



Articles are generally broken down by sections and currently come in three different layouts that the app chooses randomly. In later iterations, Cooliris hopes to offer more templates. The team behind the Discover app also told us that it hopes to get to the point where the app can choose themes that match the topic of a given article.



In order to focus on the reading experience, Cooliris decided to hide links. Instead of seeing underlined text, users can simply click on any word in the text. If the word isn't linked to another Wikipedia page, the app will bring up a dictionary definition and if the text was linked, users can choose to open up the respective Wikipedia article.



discover_cooliris_article.jpg



There are, of course, a few things that Cooliris could still do to improve the app. Currently, for example, you need to have an Internet connection as the app doesn't cache any content (pages are rendered on the fly). According to Cooliris, this is due to licensing issues. Also, while browsing articles, you can't quickly skip between sections. Instead of highlighting related articles, it would be more user-friendly to allow readers to see the different sections of an article. The app is also currently unable to render tables in Wikipedia articles, which is not a major problem in most cases, but becomes an issue when reading articles about highly technical subjects.

Booyah’s MyTown Stepping Up Its Game, Introduces Product Check-Ins

Booyah’s MyTown Stepping Up Its Game, Introduces Product Check-Ins: "

Now that location-based check-ins have more than proved their usefulness, LBS providers are coming up with new ways to expand the concept. One such provider, Booyah, has done just that by introducing product check-ins for its popular MyTown app.


Using your phone’s camera, you can now scan barcodes of real-world products to unlock points and earn exclusive virtual items, creating a game out of real life items. Of course, the real advantage is the product tie-ins that Booyah and its partners can now promote. This creates a powerful opportunity to build in a unique rewards program. MyTown’s location-based features attracted many retailers and consumer brands that wanted to weave their brands into the app, and with product check-ins, companies have a brand new channel to connect with consumers by creating campaigns that drive users to interact with real-world products.


“It’s a holy grail for marketers and brands to have their target audience actually hold their products in their hands,” said Keith Lee, CEO of Booyah. “It’s as close as you will get before point of sale. Not to mention that a consumer’s product check-in history is invaluable data.”


MyTown has long been one of the most innovative in terms of the LBS concept in my opinion. MyTown is actually the largest location-based app with more than two and a half million active users, yet doesn’t receive the recognition it deserves. While Foursquare and Gowalla seem to be the darlings of the media, MyTown is quietly cleaning up. With innovative new features like product check-ins, it’s easy to see why.



Monday, July 26, 2010

Video: IBM on Mapping the Human Brain and the Future of Cognitive Computing

Video: IBM on Mapping the Human Brain and the Future of Cognitive Computing: "

A few weeks ago, in June, I wandered over to IBM’s research facility in Almaden, Calif. to see what Big Blue was doing in the fields of materials research and semiconductor manufacturing. At that time I sat down with Dharmendra Modha, manager of cognitive computing at IBM Research Almaden to discuss his project, which is trying to simulate the way brains work in hopes of advancing the way our computers can process information in real-time by changing the basic architecture of the chip. Or as Modha says, offer up “a sense of how the brain gives rise to the mind.”



The research done today may never yield tangible changes in semiconductor architecture, and even if it does it’s decades into the future. But the issue of solving the ever-increasing demand for compute, without creating a similarly overwhelming demand for electrical power is at the heart of what Modha is trying to do. The work of visualizing how brains think could one day show IBM how to build better computers.



To eventually build those computers, IBM is building out a new lab for Modha, which will contain 16 monitors capable of representing 2.64 million neurons, with each pixel representing a neuron. Then researchers will use those neural maps to see how the brain reacts to stimuli. It’s no small task. For example, a cat brain, which Modha has simulated, contains 700,000 neurons with trillions of connection between them. Writing algorithms that show all of that is a daunting task.



But tomorrow Modha will publish a paper detailing their latest achievement – mapping a monkey’s brain, which is far more complicated, and gets the lab closer to mapping out a human’s mind. The goal of such visualizations is to help advance computing by changing the way they solve problems. It’s not a means to build artificial intelligence, so much as it’s a way of discovering how to architect new types of chips that can keep up with a barrage of real time information.



The video (see below) of our conversation gets fairly deep, but as Modha explains, the effort is an attempt to combine supercomputing, nanotechnology and neuroscience. He’s trying to apply the advances made in understanding the anatomy of the human brain by filtering it through a supercomputer, with the end goal of creating some type of computer built using new technologies that allow the future machine to be smarter and more power efficient. IBM isn’t the only entity interested in such work – the U.S. government has given IBM and Mohda DARPA grants worth more than $20 million to work with – and companies from Intel to HP are also pondering ways to push computing to the limits (GigaOM Pro sub req’d).

OpenGL 4.1 spec finalized, streamlines 3D graphics for web and phones

OpenGL 4.1 spec finalized, streamlines 3D graphics for web and phones: "

Only four months after OpenGL 4.0 hit the scene, the next revision of the cross-platform graphics API is here, bearing gifts of fancier math and more cribbed DirectX 11 features. Unless you're a graphics guru, though, we doubt you'll be that interested in '64-bit floating-point component vertex shader inputs,' so let's get to the meat of what you're after: impressive 3D gaming. OpenGL 4.1 promises to help deliver that to cellphones easier than ever before, by making OpenGL ES (used in iOS and Android, depending on your hardware) completely compatible with the desktop graphics version, and promises 'features to improve robustness' in WebGL 3D browser acceleration as well. There's also support for stencil values in fragment shaders, but we digress -- if you understood what we just said, hit up the source and more coverage links for the rest.

OpenGL 4.1 spec finalized, streamlines 3D graphics for web and phones originally appeared on Engadget on Mon, 26 Jul 2010 19:31:00 EST. Please see our terms for use of feeds.

iPhone jailbreaking allowed by federal ruling

iPhone jailbreaking allowed by federal ruling: "

Apple lost its bid today to criminalize 'jailbreaking,' the practice of hacking an iPhone to install unauthorized apps on the smartphone, according to a decision by the U.S. Copyright Office and the Library of Congress.

The decision, which was announced Monday by Librarian of Congress James Billington, adds jailbreaking to the list of practices that do not violate the Digital Millennium Copyright Act (DMCA).

"

Why fragmentation is a good sign for Android

Why fragmentation is a good sign for Android: "

Like every popular open source project, Android is dogged by the fragmentation threat. It's the nature of openness: the lack of a formal hierarchy means many different flavors of an operating system or package could appear on many different devices.



At OSCON, I asked 'Learning Android' author Marko Gargenta if fragmentation is a looming problem for Android. He doesn't see it that way. Fragmentation, to him, is a side effect of accomplishing a goal:




Keep in mind, when Google started the Android project, their goal wasn't a specific device. Their goal was many, many different devices, with many, many different companies adopting this platform. So, fragmentation is sort of built into the nature of the project. There are going to be different flavors of Android out there. That's not necessarily a bad thing. What's been bad is for a consumer not knowing what application is going to be able to run on what device. And to address that, recently the Android project has released a definition of what compatibility means. [Emphasis added; question asked at the 3:24 mark in this video.]


The full interview is embedded below.






You can find additional OSCON interviews and keynotes in O'Reilly's YouTube channel.

Play Pac-Man in HTML5

Play Pac-Man in HTML5: "


Programmer Dale Harvey has created a playable version of Pac-Man using only web standards.


To rebuild the same gameplay found in the arcade classic using browser-native code, he’s relying on local storage, HTML5 audio, Canvas and @font-face. Harvey is sharing all the code on Github as well, so you can run it locally.


Reminiscent of Google’s recent Pac-Man port, Harvey’s attempt is yet another example of web standards being used instead of Flash to create animated, interactive experiences in the browser.


The Flash plug-in is still the most popular platform choice for browser-based games, and it has some advantages over HTML5. Most notably, a Flash game would work in any browser that allows the plug-in, but to play Harvey’s game, you’ll need to use a browser that supports the elements he’s using — Firefox, Opera and Chrome work just fine, but IE8 is a no-go.


On his blog post about the project, he notes some of the other stumbling blocks he encountered when porting the game. For instance, there’s no easy way to loop HTML5 audio, there isn’t a convenient tool for drawing Canvas shapes, and using Canvas/HTML5 for a game even this simple still puts more strain on your CPU than using Flash.


[via Hacker News]

The Neuroscience of Inception

The Neuroscience of Inception: "

This entire post is a spoiler. Stop reading if you have not seen Inception, because 1) I will reveal major plot points and 2) It will make no sense.



The literary critic Frank Kermode famously argued that all successful works of art have the ability to inspire multiple interpretations. We read the classics, he said, because we believe they say more than the author meant. In other words, it is the ambiguity of art - this ability to inspire arguments and blog posts – that makes it so interesting.


Inception, of course, is all about the ambiguity. (Those who parse the wobbles of the spinning top in the final scene have missed the entire point of the scene.) This doesn’t mean the movie is a masterpiece – I personally thought it was a smart summer blockbuster but no Dark Knight. That said, I found this interpretation, by Devin Farci, to be mostly convincing:




Every single moment of Inception is a dream. I think that in a couple of years this will become the accepted reading of the film, and differing interpretations will have to be skillfully argued to be even remotely considered. The film makes this clear, and it never holds back the truth from audiences. Some find this idea to be narratively repugnant, since they think that a movie where everything is a dream is a movie without stakes, a movie where the audience is wasting their time.


Except that this is exactly what Nolan is arguing against. The film is a metaphor for the way that Nolan as a director works, and what he’s ultimately saying is that the catharsis found in a dream is as real as the catharsis found in a movie is as real as the catharsis found in life. Inception is about making movies, and cinema is the shared dream that truly interests the director.


I believe that Inception is a dream to the point where even the dream-sharing stuff is a dream. Dom Cobb isn’t an extractor. He can’t go into other people’s dreams. He isn’t on the run from the Cobol Corporation. At one point he tells himself this, through the voice of Mal, who is a projection of his own subconscious. She asks him how real he thinks his world is, where he’s being chased across the globe by faceless corporate goons.




What I like about this interpretation of Inception is that it also makes neurological sense. From the perspective of your brain, dreaming and movie-watching are strangely parallel experiences. In fact, one could argue that sitting in a darkened theater and staring at a thriller is the closest one can get to REM sleep with open eyes. Consider this study, led by Uri Hasson and Rafael Malach at Hebrew University. The experiment was simple: they showed subjects a vintage Clint Eastwood movie (“The Good, The Bad and the Ugly”) and watched what happened to the cortex in a scanner. The scientists found that when adults were watching the film their brains showed a peculiar pattern of activity, which was virtually universal. (The title of the study is “Intersubject Synchronization of Cortical Activity During Natural Vision”.) In particular, people showed a remarkable level of similarity when it came to the activation of areas including the visual cortex (no surprise there), fusiform gyrus (it was turned on when the camera zoomed in on a face), areas related to the processing of touch (they were activated during scenes involving physical contact) and so on. Here’s the nut graf from the paper:


This strong intersubject correlation shows that, despite the completely free viewing of dynamical, complex scenes, individual brains “tick together” in synchronized spatiotemporal patterns when exposed to the same visual environment.


But it’s also worth pointing out which brain areas didn’t “tick together” in the movie theater. The most notable of these “non-synchronous” regions is the prefrontal cortex, an area associated with logic, deliberative analysis, and self-awareness. Subsequent work by Malach and colleagues has found that, when we’re engaged in intense “sensorimotor processing” – and nothing is more intense for the senses than a big moving image and Dolby surround sound – we actually inhibit these prefrontal areas. The scientists argue that such “inactivation” allows us to lose ourself in the movie:


Our results show a clear segregation between regions engaged during self-related introspective processes and cortical regions involved in sensorimotor processing. Furthermore, self-related regions were inhibited during sensorimotor processing. Thus, the common idiom ”losing yourself in the act” receives here a clear neurophysiological underpinnings.


What these experiments reveal is the essential mental process of movie-watching. It’s a process in which your senses are hyperactive and yet your self-awareness is strangely diminished. Now here’s where things get interesting, at least for this interpretation of Inception. When we fall asleep, the brain undergoes a similar pattern of global activity, as the prefrontal cortex goes quiet and the visual cortex becomes even more active than usual. But this isn’t the usual excitement of reality: this activity is semirandom and unpredictable, unbound by the constraints of sensation. (This is usually blamed on those squirts of acetylcholine, an excitatory neurotransmitter, percolating upwards from the brain stem.) It’s as if our cortex is entertaining us with surreal cinema, filling our strange nighttime narratives with whatever spare details happen to be lying around. Furthermore, the dreaming state is accompanied by an increase in activation in a wide range of “limbic” areas, those chunks of the cortex associated with the production of emotion. This is why even the most absurd nightmares cause us to wake up in a cold sweat. We care about what happens in our dreams, even when what happens makes no sense.


I’d argue that Inception tries to collapse the already thin distinction between dreaming and movie-watching. It gives us a movie in which most of the major plot points are simultaneously nonsensical – Why are we suddenly watching a thriller set in the arctic? Why are all the subconscious mercenaries such bad shots? Why don’t Cobb’s kids ever age? – and strangely compelling, just like a dream. And so we bite our fingernails even though we “know” it’s just a silly movie. Thanks to the subdued activity of the frontal lobes and the excited visual cortex, we sit in our plush chairs munching on popcorn and confuse the fake with the real. We don’t question the non-sequiturs or complain about the imperfect special effects or the shallow characters. Instead, we just sit back and watch and lose track of the time together. It’s almost as if we’re being manipulated by Dom Cobb himself, as he effortlessly travels deep into our brain to plant an idea. But this Dom Cobb – we’ll call him Christopher Nolan – doesn’t need a specially formulated sedative. He just needs a big screen.


Image: Screengrab from the movie trailer.

"

onProximityFade jQuery Plugin

onProximityFade jQuery Plugin: "



Here is another experiment in the form of an open source jQuery plugin named onProximityFade. What it does is it fades tagged elements (requiring a CSS class of “fadeBox”) depending on their proximity to the mouse cursor. The idea emerged after a subtle irritation with long lists of repeating links which sometimes feel as they receive too much attention on a page. So the intention is twofold. First, to visually deemphasize repeating and predictable elements throughout a page and thus achieve greater simplicity. Secondly, use gradual feedback to invite users to find actionable elements by using ranged values (the closer you get, the greater visibility). Any thoughts? Would love to hear them.


Have a peek at the demo or fork the code at github.


Credits: Jakub Linowski


"

Augmented History

Augmented History: "

Superimposing historic photos on current locations is a neat way to bring history to life, using augmented reality, as the website History Pin and Museum of London demonstrate, says Engadget.





But you need to ensure it is taken from the same spot, and with the same zoom level. If you don’t, the combined picture ends up looking disjointed, with roofs, walls and roads poorly matched, explains New Scientist.


Perfectly matching current snapshots with a photo taken in the same spot a hundred years ago is an awesome idea. But it’s tricky business. Now MIT and Adobe researchers are using a technique called visual homing. The program compares your camera’s current view to known historical images.


It will give you positioning and zoom instructions so you can best match the scene, improving on the services offered by current apps like StreetMuseum and sites like History Pin.


Right now, the app runs on a laptop, but the idea is that it’ll work directly on digital cameras, letting you view the past while shooting the present.


The Portland CivicApps competition, held last week, was a contest where developers build interesting applications using open municipal data sets provided by the City of Portland.




Imagine listening to neighborhood oral history while taking the train, biking on a Radical History Tour, or traveling up the river viewing photographs from 100 years ago narrated by a Native American guide.

Canvas Color Cycling

Canvas Color Cycling: "


Interest in Canvas, as well as mobile apps, has led to a renaissance of old-school 8-bit graphics. Joe Huckaby of Effect Games has been playing around with color cycling, leading to some stunning effects.



Anyone remember Color cycling from the 90s? This was a technology often used in 8-bit video games of the era, to achieve interesting visual effects by cycling (shifting) the color palette. Back then video cards could only render 256 colors at a time, so a palette of selected colors was used. But the programmer could change this palette at will, and all the onscreen colors would instantly change to match. It was fast, and took virtually no memory.


There’s a neat optimization going on here too: instead of clearing and redrawing the entire scene with each frame, he only updates the pixels that change:



In order to achieve fast frame rates in the browser, I had to get a little crazy in the engine implementation. Rendering a 640×480 indexed image on a 32-bit RGB canvas means walking through and drawing 307,200 pixels per frame, in JavaScript. That’s a very big array to traverse, and some browsers just couldn’t keep up. To overcome this, I pre-process the images when they are first loaded, and grab the pixels that reference colors which are animated (i.e. are part of cycling sets in the palette). Those pixel X/Y offsets are stored in a separate, smaller array, and thus only the pixels that change are refreshed onscreen. This optimization trick works so well, that the thing actually runs at a pretty decent speed on my iPhone 3GS and iPad!

Sunday, July 25, 2010

MagicJack's femtocell misses its launch date, still hasn't been submitted to the FCC for approval

MagicJack's femtocell misses its launch date, still hasn't been submitted to the FCC for approval: "

Wondering about the fate of the MagicJack femtocell now that its promised second quarter launch window has passed? So was Computerworld, and what it found out isn't exactly promising for the as-seen-on-TV company. According to a MagicJack spokesperson, it's taken longer than expected to finish the software and patents associated with the product, which means it still hasn't even been able to submit the device to the FCC for approval. The company says the software should be done within two weeks, however, but that still means a wait time of several more months while the FCC does its thing. Of course, that's to say nothing of the many legal problems facing the device, which MagicJack is unsurprisingly not commenting on -- although it insists the device will be available 'this year.'

MagicJack's femtocell misses its launch date, still hasn't been submitted to the FCC for approval originally appeared on Engadget on Sun, 25 Jul 2010 06:04:00 EST. Please see our terms for use of feeds.

Saturday, July 24, 2010

7 Reasons Why Techies Love Inception

-- I really thought the movie was amazing, I would see it again, probably on DVD so I can watch it a few times.

7 Reasons Why Techies Love Inception: "

With opening weekend box office receipts of $62.8 million, it’s clear that the film “Inception” appeals to a broad audience, but Silicon Valley in particular is burning with love for this movie. And I can see why: I loved Inception because I am a geek and a techie at heart. Why does being a geek mean that this movie appeals to me? True to the spirit of the movie, let me address that question on multiple levels. (Don’t worry — I’ll try to do this in a way that doesn’t have too many spoilers).



First, and most superficially, this is a mashup of movie genres that resonate with geeks: The movie combines science fiction, espionage, con games and action movie elements, with requisite car chases and gun battles, spiced up by some excellent special effects (Paris folding in on itself is to die for).



Second, the hero is a good-looking geek — and so is his female colleague. Cobb (Leonardo DiCaprio) works with a team of hackers — including a really smart, beautiful female geek (I am officially in love with Ellen Page) — who together set out to hack wetware, rather than software. He is deeply passionate about his work and unable to draw a line between his personal and professional pursuits. That’s something geeks can all relate to. But it gets better.



Third, they are attempting a hack that no one else has done before — implanting an idea in someone’s brain so that the person truly feels it is his own idea. If you’re the kind of geek who yearns for detailed schematics of the technology behind all of this, you’ll be disappointed – there are none. This is a movie for the Dungeons-and-Dragon crowd, who are prepared to suspend disbelief in the interest of the game.



Fourth, this team of hackers creates designer dreams, defining elaborate settings and choreographing action so that the “players” end up doing things according to plan – well, at least most of the time. Many critics have put down the movie because the dreams are neat and orderly, not messy and chaotic — but that’s the point, these are geek dreams, carefully programmed in advance, like a video game. In fact, these aren’t even really dreams; they’re artificial constructs that have clear rules and complex labyrinths that must be explored in order to progress.



Fifth, these dreams have multiple layers, with clear protocols for moving from one level to the next. Sounds suspiciously like a technology stack. But like most technology stacks, even the best defined interfaces sometimes yield unexpected ripple effects across the layers – often something happening in one layer of this dream world results in some kind of disturbance in other layers of the stack. Damn it, can’t we eliminate those messy interdependencies?



Sixth, we have a doomed love story. Cobb spends a good part of the movie yearning for his lost wife, regretting and reliving the loss. A key message of the movie, underscored by the Edith Piaf song that repeatedly plays throughout, is that regret is a draining emotion that one must learn to let go. It is perhaps not coincidental that the lost love’s name is Mal – French for bad. What geek isn’t driven by regret over a lost love or at least a lost opportunity?



Finally, and perhaps most importantly, there are unresolved mysteries. The movie does not neatly wrap everything up in the end. We are left with major uncertainties that trigger some vigorous debates among those who have seen the movie, with evidence to support very different interpretations of the end. The end very likely may be just a beginning, true to the title of the film. There is much more to be learned. Nothing less would satisfy a geek.



John Hagel heads a research center in Silicon Valley and is the co-author of the recently released The Power of Pull. His website is www.johnhagel.com.

Friday, July 23, 2010

Microsoft becomes official ARM licensee, could an MS microprocessor be next?

Microsoft becomes official ARM licensee, could an MS microprocessor be next?:
Microsoft becomes official ARM licensee for greater glory in the mobile spaceARM processors are so hot right now, especially in the mobile space, where they power many of the greatest smartphones, tablets, and mobile devices coming down the turnpike. Microsoft is apparently looking to merge in on that action, becoming an official ARM licensee. It's unclear exactly what MS will be doing with its new found technical rights, but General Manager KD Hallman said 'With closer access to the ARM technology we will be able to enhance our research and development activities for ARM-based products.' This likely means Microsoft will be better optimizing Windows Embedded and Windows Phone for the processor architecture, but also opens the door for Ballmer & Co. to create their own magical microprocessor and, ultimately, use it to rule the world with an iron fist. Terms of the agreement were not given, but hopefully nobody in Redmond had to lose any appendages to seal the deal.

Continue reading Microsoft becomes official ARM licensee, could an MS microprocessor be next?

CalTech Awarded $122 Million to Create Fuel From Sunlight

CalTech Awarded $122 Million to Create Fuel From Sunlight:

The U.S. Department of Energy announced today that it will award up to $122 million to create a Fuels form Sunlight Energy Innovation Hub led by the California Institute of Technology. The Hub’s goal is to develop ways to convert solar energy into chemical fuels and scale the technology for commercial use.


The project is in part inspired by the way plants produce energy, and will use artificial photosynthesis to turn sunlight, water and carbon dioxide into clean fuel. Researchers will be charged with finding ways to use technologies like light absorbers, catalysts, molecular linkers and separation membranes to transform sunlight into fuel, and the DOE aims to quickly turn the research into a viable product in the form of fuel that can go directly into cars without any additional processing.


Artificial photosynthesis is not a new technology, and researchers at MIT and the University of Rochester have been seeking solutions for some time. The DOE hopes the Hub will spark collaborations to make more progress in the field.


The Hub will have two locations: One on CalTech’s campus in Pasadena and one at the Lawrence Berkeley National Laboratory in Berkeley. Several other California universities will participate as well, including UC Santa Barbara, UC Irvine and UC San Diego. Funding will be provided over five years, with $22 million awarded this year and up to $25 million per year thereafter.

Thursday, July 22, 2010

Four short links: 22 July 2010

Aris Games -- Over the last two years, a group of researchers here at the University of Wisconsin’s Games, Learning and Society research group have been experimenting with making mobile games that teach. Along the way, we have developed an open tool for creating these mobile games. Our goal is now is to provide educators who want to use place based / inquiry / narrative / gaming activities in their curriculum with a tool that can help them build it. The ARIS engine allows game designers to place virtual items, characters and pages in physical space using the iPhone’s GPS or a little barcode that can be placed on a wall or near an object. By giving the players a story and a number of quests, games can be built that involve a mix of physical and virtual activities.

Nokia CEO's Hairshirt: We've Suffered Pain, But Symbian^3's Our Antidote

-- Its kinda of sad for a great technology company to have lost is mind!!! They will need much more then Symbian^3 to save them now.

Nokia CEO's Hairshirt: We've Suffered Pain, But Symbian^3's Our Antidote: "



Nokia CEO Olli-Pekka Kallasvuo



With rumors his job’s on the line, Nokia (NYSE: NOK) CEO Olli-Pekka Kallasvuo went farther than ever to acknowledge Nokia’s travails, on the company’s call to discuss a big profit fall with investment analysts.



Kallasvuo referred continually to the “pain” he says Nokia has gone through lately—but says keenly that the N8 handset, coming in Q3, and the big Symbian^3 rewrite on which it is based will help Nokia compete.

And he talked up the team behind him, despite referring to the “orders” one such team is being given…



Nokia will make a comeback at the higher end of the smartphone market,” Kallasvuo emphasized to analysts. “We are approaching the end of this painful product transition at the high end of our product portfolio. Delivering the N8, with a high-quality user experience, will mark the beginning of our renewal. We will achieve our potential and regain high-end leadership in our industry.”



Nokia is not ditching Symbian—Kallasvuo expects to ship a “family” of 50 million Symbian^3 phones. But it’s also retaining the separate Meego OS for higher-end phones and has made the U.S. a priority for that team—a split that confuses many.



Nokia’s U.S. position...



Asked why Nokia doesn’t have a strong developer base there: “I very much agree—the Nokia team as a whole is of that opinion strongly, and has felt the pain also in that respect.



“Why have we not been successful in the U.S. smartphone market? We’ve been thinking about that a lot—we have to remember that the U.S. market is not similar to any other market. The operator testing you need to have in the U.S. is definitely far more than anywhere else, also time-wise. You need a situation where you are quick to the market in order to be able to have that benefit.



“Frankly, we have been trying many times, but it has turned out to be a painful experience; but the learning is here. Symbian earlier generations have not been, from a time-to-market point of view, fast enough in getting over that hurdle. It’s meant we have missed some time windows.



“Now, if you look at Symbian^3 overall and the massive rewriting of the codebase we have been doing over the last 24 months—this is a massive operation—we can, also from the U.S. market point of view, come to a situation where we can launch products based on Symbian early enough.”



A tale of two systems…



“We will also need Meego in the U.S.. The assault to be carried out by Symbian^3 as well as Meego. The Meego team has very much been instructed, or ordered if you like, to give priority to the U.S. market—that’s very much in the plans, in the roadmaps, in the thinking. The painful learning here has taken place.”



Nokia CFO Timo Ihamuotila: “We are planning to have more advanced features in Meego and will supply a richer set of APIs for Meego computers.”



While the likes of Apple (NSDQ: AAPL) and Google (NSDQ: GOOG) profit from single operating systems, iOS and Android, keeping back some of the best OS features from the vast majority of Nokia’s phones seems like a high-risk strategy—and when exactly are these Meego phones going to start showing their teeth?



Kallasvuo: “The operator response to Symbian^3 has been tremendous. So now it’s really a question of getting the quality right. This is why we postponed the Symbian^3 from Q2 to Q3.



Kallasvuo stressed that the whole team, and not just himself, was fully behind Symbian^3.

Google now awards bug hunters up to $3133.7 for Chrome bugs

Google now awards bug hunters up to $3133.7 for Chrome bugs: "

google

Mozilla has recently upped its bug bounty -- meaning that any critical security bug you found and disclosed to Mozilla could net you a cool $3000.


Not to be outdone, Google has just announced that it will be awarding up to $3133.7 for critical bugs. This is not only $133.7 over what Mozilla offers, but also an obvious play on the word 'elite' in h4x0r-speak. It's also a typical example of Google's nerdy sense of humor.


If you look at the bigger picture, as ThreatPost has done in their coverage of the issue, you will see that this actually represents the beginning of a paradigm shift in the security world. Up until now, 'security researchers' (which is, pretty much, a clean name for hackers) had a tough moral dilemma: Do I take this security hole to Microsoft (or Google, or Mozilla, or Apple) and quietly wait until they fix it while getting little to no pay and recognition? Or do I go to the black market and sell it to an evil group who will give me $50,000 and use it to publish a zero-day exploit that takes the world by storm?


This is a tough call for some to make, but fortunately, Google and Mozilla are making it a bit easier to be 'the good guy.' Hopefully, other companies will follow suit.

Google now awards bug hunters up to $3133.7 for Chrome bugs originally appeared on Download Squad on Wed, 21 Jul 2010 08:15:00 EST. Please see our terms for use of feeds.


Peppermint Ice is like Chrome OS without sacrificing local apps

Peppermint Ice is like Chrome OS without sacrificing local apps: "


Plenty of people scoffed at the original Google announcement about Chrome OS. It's just another minimalist Linux distro, they said -- but that's actually not quite true. Unlike most lightweight Linux distributions, there won't be any traditional local apps apart from the Chrome browser.



If you'd like a Chrome OS-like experience without having to give up apps like Transmission, VLC, or DropBox? Take a look at the new release from the developers behind Peppermint.



Dubbed Peppermint Ice, the new spin replaces Firefox with Chromium and includes the same selection of web app shortcuts (Facebook, Seesmic, Google Docs, Hulu, Pandora, etc.) and local apps (like DropBox, Tranmission, and XChat). Want to add your own web app shortcuts? It's a snap using the built in Ice tool. And since Peppermint is derived from Linux Mint, apt-get is available via the terminal -- meaning you can install boatloads of other apps if you want to.




Kendall Weaver, who heads up Peppermint development, told me that on his Core2 notebook with an OCZ Vertex SSD Peppermint Ice boots up in about 6 seconds. That's definitely speedy enough to compete with just about any 'instant-on' OS I've tried out. Even on my admittedly poorly-configured, Atom-powered Gateway netbook Peppermint boots in 10 seconds... Nice!



Peppermint is a solid Linux distribution for people who just want to surf but don't want to give up the flexibility which Linux distros typically provide. The interface is clean and simple, and should be familiar to anyone who's ever used Windows XP. Hey, if my 5-year-old can jump in and find his YouTube favorites on Peppermint, the learning curve can't be too steep (if it even exists).



Good news if you're a Firefox fan: Kendall also informed me that Peppermint One will be switching to Firefox 4.0 when the second beta arrives. The switch will provide a welcome performance boost, though you might have to deal with some broken extensions temporarily -- although if you're installing Firefox betas you're probably used to that by now...

Peppermint Ice is like Chrome OS without sacrificing local apps originally appeared on Download Squad on Wed, 21 Jul 2010 12:00:00 EST. Please see our terms for use of feeds.


The Numbers No One Wants to Talk About in the Android vs. iPhone Sales Battle

-- The other thing to say here is that most Android phone sales are new users while I read AT&T has said that as high as 73% of iPhone 4 sales are people who already had an iPhone. So there are is a much smaller amount of new iPhones in the market they just keep getting recycled. I have a friend who has had 5 of them.

The Numbers No One Wants to Talk About in the Android vs. iPhone Sales Battle: "

This image has no alt text

steve-jobs-android-animation

For all of those shocked and awed by the Apple’s announcement that as of last Friday they had sold 3 million iPhone 4 handsets, I’d like to take a moment to direct everyone’s attention over to John Battelle’s Searchblog. In his post he takes a rather bold stance, one much of the blogosphere hasn’t even entertained the idea of since Steve Jobs used the smoke and mirrors sales figure to distract our tech reporting peers from what has been dubbed “antennagate.” Kind of like shaking some shiny keys in front of a bunch of spoiled babies or dangling a ball on a string in front of a kitten. I can’t really put it any better than Mr. Battelle did, so take a gander at this excerpt from the full post that delves into a bit of simple arithmetic to show that the 3 million figure might not be that impressive after all:

“3 million phones in 23 days – that’s a pretty strong clip, the fastest sales of an Apple phone to date, Mashable reports. If I do the math, that’s more than 130,000 phones a day.

But did anyone in the press notice Google’s little announcement, the day before Apple launched its iPhone 4? This one? The one where Google said, and I quote: ’Every day 160,000 Android-powered devices are activated — that’s nearly two devices every second.’

Yep, that’d be 30K MORE phones a day than Apple. And my guess is that Android’s pace is accelerating, while the iPhone 4 is probably sliding downward, given how many folks bought it at launch (Mashable reports that 1.7 million were sold in first three days, so 1.3 million the next 20 days). In fact, if you do THAT math, and divide 1.3 million by 20 days, you get 65,000 iPhone 4s sold each day, which is nearly 100,000 less, PER DAY, than Android phones.”

Granted, there is no denying that for a single handset a sales number of 3 million is beyond astounding, but we’d also venture to say that if iOS was dropping on the same number of smartphones as Android and at the same frequency the figure would be spread out quite a bit more — just as is the case with Google’s platform. If anyone should be scared about the number of phones flying off the shelves it certainly shouldn’t be Google in this case.

Will Android ever topple the iPhone? There will at least come a time where the two are no longer separated by as wide a gap in market share. A time when Google’s platform sits at the same level. Only true innovation and the continued release of simply killer Android phones will prove if Google has what it takes to become the top dog in the handset world.

[thanks to Rob Isakson for sending this in!]
"

Dojo 1.5 is Out and it’s Feature Packed!

Dojo 1.5 is Out and it’s Feature Packed!:

The Dojo project continues to pump out goodness announcing version 1.5 of the Dojo Toolkit with a number of new and exciting features.


Dylan Schiemann had this to say about the release:


The JavaScript world is evolving at an intense pace. We’re very pleased with this release of Dojo, which offers the stability needed for existing apps and browsers, while introducing some of the capabilities of building great apps of the future.


Some of the biggest updates came to the Dijit UI library with the addition of the new Claro theme which helps provide a nice desktop look-and-feel to web applications as well as improvements to the charting and drawing components of the library.


And Dojo team lead Pete Higgins added:


If you haven’t seen the new theme Claro, you should. Julie Santilli and her awesome design team at IBM put some incredible design and style on top of an already stable and accessible UI library


The theme is incredibly clean. Check out some of the controls styled using Claro:









Other important updates include:



In addition, new initiatives are underway to provide solutions for the ever-growing and important mobile space:



This release continues the project’s philosophy of modularity allowing developers to leverage the library for anything from simple DOM manipulation to full-blown RIA development. Dojo 1.5 is immediately available for download and sports impressive, updated documentation to get you started quickly.

Tuesday, July 20, 2010

Google Font Preview lets you play with Web Fonts

Google Font Preview lets you play with Web Fonts:


googlefontpreview

Google Font Preview is a new way to play with Google's Web Fonts API. The API is already dead-easy to use: you just include a single line of text in your Web page source code, and you can use fonts in your CSS.


But that's 'ease of use' defined in web developer terms... What about the designer types who don't always feel like messing around with code just to see what stuff looks like on the screen? While they can always go for something fancy like Type Folly (which I really do like), sometimes that can be a bit of overkill. Type Folly pulls fonts from paid services as well as Google's free one, and gives you a ton of options.


For the times when you just want to play around with a couple of sliders and be sure you're working with freely available fonts only, Google Font Preview is just what the doctor ordered. As you can see, you can set whatever text you want to play with since your playing field is just a Firefox text area (spell check works, and apparently 'Hmm' is not a real word). You get sliders for playing with letter, word and line spacing, you can transform the text (capitalize, uppercase, lowercase), see what it looks like with a shadow, and apply most other CSS3 options. The tool is decidedly newbie-friendly, so you won't see terms like 'kerning' or 'leading' but only 'letter spacing' or 'line spacing'.



The code you've generated is always at the bottom of the window, so once you're happy with the results you can just copy and paste it into your own page.

Cassandra: Predicting the Future of NoSQL


Cassandra: Predicting the Future of NoSQL:

cassandra_ajax_bummer.jpgWhen Twitter announced a few weeks ago that it would not be using Cassandra for tweet storage, there was a flurry of 'I told you so's' from NoSQL skeptics. The folklorist in me found that rather amusing, as Cassandra in Greek mythology was cursed with the ability to see the future. But poor Cassandra could convince no one to believe her predictions, including a rather grim one about a Trojan Horse. The tech blogger in me figured, however, she should probably have a better grasp of Cassandra and NoSQL than just my knowledge of Homer.

SQL RDBMS BBQ

SQL and relational databases have long been the solution standard for data storage and retrieval. But new web applications that are being built today don't necessarily fit into this older schema. There are new demands on databases, not simply in terms of scalability, but also in terms of availability and unpredictability. In response, a number of new databases have been developed, loosely categorized as NoSQL.

Although the name sounds like a repudiation of SQL, it doesn't mean 'no SQL never ever.' It means 'not only SQL,' and offers a far more flexible and targeted response to database management.

NoSQL OMG


In a great summary of the NoSQL movement on Heroku's blog, Adam Wiggins gives the following examples of NoSQL usage:


  • Frequently-written, rarely read statistical data (for example, a web hit counter) should use an in-memory key/value store like Redis, or an update-in-place document store like MongoDB.
  • Big Data (like weather stats or business analytics) will work best in a freeform, distributed db system like Hadoop.
  • Binary assets (such as MP3s and PDFs) find a good home in a datastore that can serve directly to the user's browser, like Amazon S3.
  • Transient data (like web sessions, locks, or short-term stats) should be kept in a transient datastore like Memcache
  • If you need to be able to replicate your data set to multiple locations (such as syncing a music database between a web app and a mobile device), you'll want the replication features of CouchDB.
  • High availability apps, where minimizing downtime is critical, will find great utility in the automatically clustered, redundant setup of datastores like Cassandra and Riak.

  • Oh, Grow Up


    In a recent article on NoSQL in SD Times, Forrester analyst Mike Gualtieri says that NoSQL is 'not a substitute for a database; it can augment a database. For transaction types of processing, you still need a database. You need integrity for those transactions. For storing other data, we don't need that consistency. NoSQL is a great way to store all that extra data.' This cautious sort of approach - use NoSQL for 'extra data' but use SQL for the real stuff - is pretty common.


    It does allow people to take small steps towards NoSQL implementation. 'Don't migrate your existing production data,' suggests Wiggins, 'instead, use one of these new datastores as a supplementary tool.'


    This hesitation is understandable; the legacy of relational databases is substantial. In an interview with ReadWriteWeb, Nati Shalom, CTO of GigaSpaces spoke of the history of databases, with the financial sector being among the first to hit a wall, so to speak with scalability. The rise of social networking and the read/write web, alongside cloud technologies, has vastly reshaped our needs for and demands on database architecture as well as information retrieval.


    Shalom argues that the technology behind NoSQL is sound and will provide the solutions for addressing some of these issues. Nevertheless, he says, NoSQL still requires two things: better implementation and more maturity.

    What the future holds for NoSQL and for database management remains to be seen. There's a Cassandra joke to be made there, I'm sure.