Archive for February, 2011

File Under: Browsers

Firefox 4 Inches Toward Final Release with New Beta 12

It’s been a long time coming, but Firefox 4 has finally reached the end of its beta testing phase. Mozilla has released Firefox 4 beta 12, which, according to the Firefox 4 roadmap, will be the last beta release.

Sadly, that doesn’t mean Firefox 4 is done yet. Although Firefox 4 is already some months past its original release date, there will still be at least one release candidate before Firefox 4 is declared final later this year.

To download the latest Firefox 4 update, head over to the Firefox beta downloads page.

Beta 12 is primarily a bug fix release and clears most of the major remaining bugs that were blocking the release of Firefox 4. Aside from bug fixes, the most noticeable change in this release is the return of the status bar — sort of.

Early in the beta release cycle, Mozilla removed the status bar — the toolbar at the bottom of the browser window that shows you what the browser is doing — replacing it with an “add-ons bar.” Perhaps the most useful part of the status bar, link URL previews, were moved up to the URL bar. As we mentioned in a post about how to bring back the status bar, the change made Firefox the only web browser that didn’t show a URL preview at the bottom of the page when you hovered over a link.

Thankfully, someone at Mozilla has seen the light and returned the URL preview to its proper place. The status bar is still, technically, gone, but a new link preview bar appears whenever you hover over a link. Firefox’s new floating URL preview bar is identical to what you’ll see in Google Chrome and the coming Internet Explorer 9 — in this case copying the competition is a good thing.

Other minor tweaks in the new beta include better performance for Flash content and improved plugin compatibility with the new hardware acceleration features enabled.

Mozilla still has not set a final release date for Firefox 4, though the roadmap suggest a release candidate build will be coming soon. Assuming all is well with that release, it’s possible we’ll see the final release of Firefox 4 before the end of March.

See Also:

File Under: HTML5, Programming

Google Doubles Down on ‘Microdata’ With New Recipe Search

Google has rolled out a new recipe search tool to help you find delicious recipes on the web. Our friends at Epicenter have more details on Google’s announcement, but the real news for web developers is that Google’s recipe search is built almost entirely off microdata.

As we’ve pointed out before, microdata — little snippets of code that offer search engines additional information about your content — is one of the best-kept secrets in HTML5. Google’s recipe search tool not only highlights just how useful microdata is, it also may give developers the extra incentive they need to start using more microdata on the web.

While Google makes no guarantee that using microdata will raise your website’s standing in search results, the company is clearly using microdata when it finds it.

Google’s microdata support is format-agnostic, which means it can read Microdata, Microformats and RDFa. Google collectively refers to the three as “rich snippets.”

All three formats work in similar ways, extending HTML by adding custom vocabularies to your pages. The main difference between the three is the specific syntax used.

Which one should you use? In most cases one is not better than the other, just different. Because much of the inspiration behind HTML5 Microdata came from the efforts of the Microformats community, the two are very similar. The third option, RDFa, is somewhat more complex and in many situations it may be more difficult to implement.

If you’d like to add HTML5 Microdata to your site, check out our article on Microdata. Technically the Microdata spec has been removed from the W3C’s draft version of HTML5 and is now a standalone spec. Like HTML5, the W3C considers the Microdata spec to be a draft, which means it could change in the future. If that makes you nervous, Microformats, which have been around quite a bit longer and are more widely used, may be more to your liking. For more on adding Microformats to your site check out our write up on how to mix HTML5 and Microformats.

See Also:

File Under: Social

Bing Turns to Facebook for New Social Search Results

Microsoft has announced it will expand its effort to bring Facebook into Bing’s search results, displaying new annotations alongside any search result links your Facebook friends have liked. Bing first began integrating Facebook “likes” into its search results back in October 2010, but results from your friends were relegated to the bottom of the page. The new version promotes your friends up into the main search results listing.

Bing’s change mirrors a very similar announcement from Google earlier this month when the company announced it would add links, photos and relevant web pages from your friends to Google’s normal search results.

Microsoft’s Bing offering is roughly the same thing with one huge difference — Bing includes results from Facebook, Google does not.

That’s a huge blind spot for Google given that Bing now has some 500 million Facebook users to pull social data from. At the same time, Google is pulling data from your Twitter friends, which is something Bing does not, thus far, offer. However, given the relatively open nature of Twitter versus the closed nature of Facebook, it will likely be easier for Bing to add Twitter, than for Google to add Facebook.

The best search engine choice depends, for now, on which social networks you use. Facebook fans will find Bing a better match, while those using a wide variety of services will probably see more results from Google Social Search. For the new features to be useful you need a large social network, and your friends need to share your interests, otherwise the odds of your friends’ data showing up in either service are slim.

However, there’s a huge difference between liking something Facebook and posting a link to Twitter. Your friends may post a link to Twitter for just about any reason, perhaps even because the link leads to something so bad it’s funny. Liking something on Facebook is a more direct message: Your friends like it. That gives Microsoft’s social search effort a considerable advantage over Google’s, and much more valuable set of social data to fight off Google in the burgeoning social search war.

How much value Facebook’s status updates will add to Bing’s search results remains to be seen, but one thing is for sure, Bing is finally offering something Google doesn’t.

See Also:

File Under: HTML5, Web Standards

HTML5 for Web Developers

If you’ve ever tried to wrestled your way through the complexities of the HTML5 specification, we’ve got good news — there’s now a “web developer edition.”

The main HTML5 spec can be overwhelming for web developers trying to understand how to use HTML5 in their sites and web apps. Much of the spec is written for browser makers and other implementers, not web developers, and contains highly technical and very esoteric language.

If all you want to do is know when to use <section> and when to use <article>, the HTML5 spec isn’t very helpful. To eliminate the confusing nature of the spec, the WHATWG, one of the two groups that oversees the creation of HTML (see our overview of the difference between the WHATWG and HTMLWG) has released a version of the HTML5 spec written specifically for web developers.

The web developer version of HTML5 strips out all the elements that are only of interest to browser makers, and focuses on developers, making for a more readable, understandable document. In other words, it makes sense to mere mortals.

As an added bonus, the new website hosting the web developer version has a much cleaner, simpler design that doesn’t look like it crawled, zombie-style, out of 1994.

Now you’ve got no excuse for not reading up on HTML5.

See Also:

File Under: Humor, Programming

Cussing in Commits: Which Programming Language Inspires the Most Swearing?

C++ takes top honors for number of swearing developers on GitHub

As any programmer can tell you, programming will make you swear. But did you know that writing C++ will make you swear considerably more than PHP or Python?

Developer Andrew Vos was looking for a weekend project when he decided to grab some one million commit messages from GitHub and scan them for swear words. He limited the swearing to George Carlin’s seven dirty words and then broke down the results according to programming language. To make sure that the popularity of one language over another didn’t skew the results, Vos grabbed an equal number of commit messages per language.

C++ takes top honors, but just barely. Ruby and JavaScript are neck and neck behind C++. After that it drops off considerably with C, Java and C# placing in the middle. Python and PHP developers are either very happy about using those languages, or perhaps just very mild-mannered developers. Of course just because they don’t swear in commits doesn’t mean they don’t swear. As one commenter on Vos’s post says, “I program in Python, but all my cussing is related to IE.”

It’s impossible to know how many developers are swearing at their screens while writing code, but if you’re looking for a less swear-word-inducing programming language, PHP and Python seem to be the way to go.

Even more interesting than the statistics by language are the actual commits, which you can check out on Vos’s GitHub account. Our personal favorite: “fuck it. let’s release.” Indeed.

See Also:

File Under: Programming, Web Services

Amazon S3 Storage Now Handles Entire Websites

Cheap, cloud-hosted web servers are a key component of a distributed web. But sometimes you don’t need a server, you just need a cheap way to host your static files, like images and videos. That’s the gap Amazon’s S3 service has long filled — offering a simple and cheap way to serve up static files without paying for an always-on server.

Now, thanks to an update, you can host not just a few image files, but a complete static website on Amazon S3.

Previously, S3 wouldn’t work for an entire site because the root level of your Amazon S3 “bucket” (as storage containers are called in Amazon parlance) was an XML file. For entire websites you needed to use Amazon EC2, even if your site was purely static content.

But Amazon has changed the way S3 works. Now, an S3 bucket can be accessed as a website, making it possible to host static sites on the service. If an error occurs, your visitors will see an normal HTML error document instead of the old XML error message.

Amazon CTO Werner Vogels is eating his own dog food and has a helpful post on how he moved his blog to S3. Like most blogs, Vogels’ site is mainly static content, so serving it from S3 is simply a matter of uploading the files and changing the CNAME to point to the S3 bucket instance. Of course, for those elements of the site that aren’t static — editing posts, managing comments and searching — Vogels still relies on a web server.

For those using static publishing systems like Jekyll, the revamped S3 makes a cheap hosting option.

Amazon S3 still has some notable oversights — like the lack of support for gzip/deflate — but now that it can handle whole static websites there’s no need to pay for a server when you don’t need one.

See Also:

File Under: Browsers

Chrome 10 Beta Offers Faster JavaScript, Less CPU Usage

Google has released version 10 of its Chrome web browser to the beta release channel. Chrome 10 is a major overhaul, featuring a new version of the V8 JavaScript engine, which is 60 percent faster than the version of V8 found in Chrome 9. Faster JavaScript means faster web apps, and the Chrome 10 beta is definitely the speediest version of Chrome yet.

To get the update you’ll need to be using the Chrome beta release channel. Head over to the Google Chrome channels page to download the latest beta.

JavaScript isn’t the only speed improvement in Chrome 10, Google has also enabled experimental support for GPU-accelerated video. Provided you have a capable graphics card, HTML5 video should be considerably easier on your CPU. The Chrome blog says that, in fullscreen mode, CPU usage “may decrease by as much as 80 percent.” I didn’t see anything quite that dramatic, but it’s definitely an improvement over Chrome 9.

If you’re a fan of Chrome’s sync features, this release adds support for encrypting your passwords with your own secret sync passphrase. The new encryption setup works much like Firefox’s sync encryption — just create a passphrase and enter it on every machine that syncs to that account.

Although its been in the dev channel for some time, Chrome’s new tab-based settings panel has now made its way to the beta channel. Having settings appear in a tab rather than a separate window is mildly more convenient, but the real win is the new search box, which allows you to quickly find the setting you want without wading through every tab and menu item.

To go along with Chrome 10 moving to beta, the Chrome dev channel has also been updated to a new version of Chrome 11. The dev channel update is primarily a bug fix release, though for Mac OS X users their is one small change — the tab overview mode is now on by default.

If you’re not one to trust your daily web browsing to beta or dev channel releases, fear not, Chrome 10 should be headed for prime time just six weeks from now (and, for those keeping score, it’s only another year and four months until Chrome overtakes Emacs in version number).

See Also:

File Under: Social, Web Services

Google Taps Your Friends to Improve Search Results

Google has updated its Social Search tool to add links, photos and relevant web pages from your friends to Google’s normal search results. The changes build on Google’s earlier social-search efforts and help add a more familiar, human element to your search results.

Google Social Search, which debuted in 2009, taps your social network to find search results from people you know. Although your friend’s Flickr photos of Yosemite might not normally rank high in a Google search, Social Search adds another layer to the algorithm-based results and makes sure that you see your friend’s photos when you search for “Yosemite.” In order to use Social Search you must be signed in to a Google account.

Back when social Search first launched any results Google found within your social networks were relegated to the bottom of the page. Today’s update changes that, mixing social results in with regular search results. The change not only makes it easier to find results from within your social network, it also signals that Google is getting more serious about social search as a first class offering.

Facebook already uses similar social network connections to surface helpful links and even recently started using your friends to promote and advertise products within the site. Google, on the other hand, has been slow to embrace social searching. This is only the the second update to its social search tool in nearly two years.

The second major change in this update is that Social Search will now add notes for links your friends have shared on Twitter and other sites. For example, if you search for a video of a singer slapping his guitarist after a bad solo, and your friend happens to have posted the same video to Twitter, that result might show up higher in your results. You’ll also see a note beneath the link, mentioning that your friend tweeted the video.

The last change in this update to Social Search gives you a bit more control over how your various social network accounts are linked to Social Search. Previously accounts were connected publicly through your Google profile page. That still works, but you can now also connect accounts privately, so no one else will know that you masquerade as @voltronsuperfan on Twitter. Of course, Google will still know, so if you’re concerned about maintaining your privacy, Social Search probably isn’t for you.

For an overview of how Google Social Search works, check out this video:

Photo by Brynn Evans/Flickr/CC

See Also:

File Under: Browsers

Mozilla Makes Plans for Firefox 5

Mozilla's site-specific tabs mock-up

Firefox 4 was originally scheduled for release in November of last year, but bugs and last minute features have seen the next version of Firefox delayed several months. However, Firefox 4 has finally entered the home stretch and should be available in release candidate form on February 25, with the final release a few weeks after that.

Never one to rest, Mozilla has already set its sights on Firefox 5. The company is hoping to avoid the delays that plagued Firefox 4 by moving future releases to a rolling update schedule, which resembles Google’s approach for its Chrome web browser.

Mozilla’s goal is to deliver a total of four major releases in 2011, pushing Firefox to version 7 by the end of the year. Mozilla is hoping that faster development times will mean new features can be rolled out as they are completed. Among the priorities for Firefox 5 are 64 bit support on Windows, a revamped Account Manager and the usual performance and speed improvements.

Whether or not Mozilla can meet its rather ambitious goals for the future of Firefox remains to be seen, but work has already begun on Firefox 5.

The first mockups on Mozilla’s AreWePrettyYet design showcase show off what Mozilla calls “a site-specific browser.” Widely used websites, like Twitter and Facebook, would get drop-down menus within dedicated tabs. As shown in the mockup above, the tab would add a site’s top level menu links in a drop-down menu.

Other mockup ideas include changing the search bar to use colors instead of favicons, blocking automatically installed add-ons and promoting Firefox Sync on the default about:blank page.

Naturally these mockups and possible features are very much a work in progress and there’s no guarantee that Firefox 5 will actually incorporate these ideas. There are also, thus far, no firm release dates to go along with Firefox 5′s roadmap.

See Also:

File Under: Browsers, HTML5, Web Standards

Microsoft, Mozilla Battle Over What Makes a ‘Modern’ Web Browser

HTML5test.com scores for IE9 and Firefox

Microsoft and Mozilla are trading barbs over the coming Internet Explorer 9. Microsoft has been touting its HTML5 support in IE9, claiming that it renders HTML5 better than Firefox (and Chrome, Safari and Opera).

Mozilla then turned around and released an infographic that shows IE9 lagging well behind Firefox across the board — whether its HTML5 support, speed or CSS 3.

So who’s right? Well, both of them. IE9 is a huge leap forward for Microsoft. IE9 handles HTML5 and CSS 3 far better than its predecessors. As we said in our review of the release candidate IE9 is great news for web developers because it means the end of IE hacks and workarounds.

That said, IE9 offers nowhere near the level of HTML5 support found its competitors.

But what about Microsoft’s much-touted HTML5 compliance chart? Well, the tests used for that chart are the tests Microsoft developed for IE9 and submitted to the W3C. It should be no surprise that IE9 scores well in the tests it created, after all, those are the tests it was developed against.

IE9 does well on its own HTML5 tests

For something a bit less biased, grab a copy of the IE9 release candidate and point it any of the popular HTML5 test suites on the web — caniuse.com and HTML5tests.com are two good examples. Run IE9 RC1 and Firefox 4 through those tests and you’ll find that Firefox handy beats IE9 (as do Chrome, Opera and Safari). In fact, Firefox 3.5, which is over two years old, also handily beats IE9.

So how can Microsoft claim that IE9 is a “modern” browser with amazing HTML5 support? Well, Microsoft’s argument is that HTML5test and its ilk look for features that haven’t necessarily been finalized by the W3C. Microsoft’s rebuttal to Mozilla’s criticisms is that users don’t want experimental features, they want a fast browser that can handle HTML5 video, audio and canvas.

Microsoft’s Tim Sneath, director of Windows and Silverlight technical evangelism, says that “modern browsers implement features when they are ready, providing predictable patterns that developers can rely on rather than suddenly breaking or removing specifications.”

The problem with that claim is that, as we’ve often pointed out, the web doesn’t move at the speed of standards, it moves at the speed of innovative web browsers and developers. Sometimes there are hiccups along the way, but in taking the conservative track, IE9 is in danger of falling behind the web before it even makes it onto the web.

Internet Explorer’s market share has been in steady decline for several years now. IE has dropped from 68.5 percent world market share in July 2008 to 46 percent today (according to StatCounter).

Faced with dwindling market share and IE bashing in the web development community, many developers were hoping Microsoft would innovate, would build something amazingly far ahead of the competition. But that’s not the approach Microsoft has decided to pursue.

So while IE9 does an admirable job of catching up on web standards, it’s far from a leader when it comes to HTML5 and CSS 3 support. If you want a browser that works on today’s web, IE9 will make a fine choice. If you want a browser that’s already moving toward the web of the future then you might want to look elsewhere.

See Also: