Rabu, 02 Desember 2009

Change Gmail's Default Text Style

If you like to use rich formatting when you compose Gmail's messages, but the default text style is too boring, you can change it. Go to Gmail Labs, enable "Default Text Styling" and change the style from the settings page. You can select a different font face (including Comic Sans), change the color, size and style.



"If you live and breathe code, now you can set your default text style to a monospace font. If your life is purple, your email can be, too. But remember: whatever you see is what your recipients will see, so be nice to them and try not to clog the intertubes with ginormous bold italicized red script," suggests Google.

The new text styling is only used when you type some text, so the signature will use Gmail's original settings.

Selasa, 01 Desember 2009

Optimized Google Analytics Code

A lot of web sites use Google Analytics to analyze traffic data, so the performance of Google's tracking code is very important. Google recommends to place the code just before closing the <body> tag to ensure "that the tracking code is executed as the last element of the DOM". Otherwise, the script would block the other elements from loading and visitors would have until the script is executed to see the rest of the page. Unfortunately, you can't place the script at the bottom of the page if you some advanced features like tracking events.

To improve the script's performance, Google decided to load it asynchronously. "Unlike a traditional installation, asynchronous tracking optimizes how browsers load ga.js so its impact on user experience is minimized. It also allows you to put your Analytics snippet higher in the page without delaying subsequent content from rendering."

Here's the new code for basic tracking, which uses some ideas from Steve Souders:

<script type="text/javascript">

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXX-X']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script');
ga.src = ('https:' == document.location.protocol ?
'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
ga.setAttribute('async', 'true');
document.documentElement.firstChild.appendChild(ga);
})();

</script>
Google Analytics Blog says that the new snippet is a beta feature and changing the code is optional.
The new tracking snippet offers the following benefits:

* Faster tracking code load times for your web pages due to improved browser execution
* Enhanced data collection and accuracy
* Elimination of tracking errors from dependencies when the JavaScript hasn't fully loaded

The Fastest Rising Google Queries in 2009

Google and other search engines publish every year a list of the most popular searches, but it's not always clear how it's compiled. This year, Google explained the methodology:

"To compile the 2009 Year-End Zeitgeist, we studied the aggregation of billions of queries people typed into Google search this year. We use data from multiple sources, including Insights for Search, Google Trends and internal data tools. We also filter out spam and repeat queries to build out lists that best reflect the spirit of the times. In some cases, we list the fastest rising queries, which means we found the most popular searches conducted in 2009 and then ranked them based on how much their popularity increased compared to 2008."

The fastest rising query was [Michael Jackson], followed by four social networks: [Facebook], [Tuenti], [Twitter], [Sanalika], a movie: [New Moon], a singer: [Lady Gaga], Microsoft Windows 7, a news site from Vietnam: [dantri.com.vn] and a free SMS service from Brazil: [torpedo gratis].

The only rising query from 2008 included in Google's 2009 list is [tuenti], a Spanish social network. If you take a look at the Google Trends chart for [tuenti], you'll notice that the site's popularity didn't grow in 2009.



Cem Sertoglu says that "Sanalika is a virtual world similar to IMVU or Popmundo. It has not made much of an impact in the Turkish internet scene so far, so I had to double check when I saw its name on the Google list."

Google Insights for Search provides another list of the fastest growing queries in 2009: twitter (+1,550%), michael jackson (+850%), facebook login (+750%), facebook.com (+300%), facebook (+250%), tuenti (+180%), youtube.com (+150%), face (+100%), yahoo mail (+80%), traductor (+50%).

Google Zeitgeist continues to be an enigma.

Minggu, 29 November 2009

Google Translation Bar

One of my favorite bookmarklets translates the current web page into English using Google Translate: you can find it here. Unfortunately, Google Translate doesn't handle properly web pages dynamically generated using JavaScript. For example, if you try to translate Google Pack's Chinese homepage, you'll notice that most of the text can't be translated.

Google has already solved this problem by adding real-time translation in Google Toolbar and by offering a translation bar that can be embedded into any web page.


If you don't want to use Google Toolbar, add the translation bar by bookmarking some Javascript code:

1. Make sure the bookmarks toolbar is visible in your browser. You can enable it if you go to the "View" menu in your browser, click on "Toolbars" and check: "Links" in Internet Explorer, "Bookmarks Toolbar" in Firefox and "Personal Bar" in Opera. In Google Chrome, you can enable the bookmarks toolbar by typing Ctrl+B.

2. In Google Chrome and Firefox, drag the bookmarklet below to the bookmarks toolbar. In IE, right-click on the bookmarklet, click on "Add to Favorites" and select "Favorites Bar" or "Links" from the list of folders. In Opera, right-click on the bookmarklet, click on "Bookmark Link", then click on "Details" and check "Show on Personal Bar".




{ Thanks, Rick Shide. }

Jumat, 27 November 2009

Google Calendar Sneak Preview

Google Calendar tests a new feature that lets you view your calendar and the calendars of your guests when you create a new event. "Sneak preview" can be enabled when you click on "create event".

"We're working a new feature that makes it easier to schedule events with guests. The new event page will include a calendar right next to your guest list, so you can see when people are free," explains Google.



"Sneak preview" helps you schedule events and it lets you find a better time for an event using drag and drop.

{ Thanks, Keith, Melle and Owen. }

Kamis, 26 November 2009

Google Bookmarks Promoted Search Results

If you are logged in to a Google account and you promote a search result using the SearchWiki icons, the web page is automatically saved to Google Bookmarks. For some reason, Google labels the web page using your query, so you'll end up with a long list of labels.


The list of SearchWiki annotations is already available at http://www.google.com/reviews/w, but it's not searchable. Now the list of annotations is more discoverable, but it makes it more difficult to find your bookmarks.

Some users customize Google's results using SearchWiki to associate searches with their favorite web pages. Marissa Mayer said that, on average, "40% of searches on any given day are repeat searches for that user".

Selasa, 24 November 2009

Show Favicons in Google Reader

If you'd like to see a favicon next to each Google Reader subscription, you can now add this feature: go to the settings page and check "Show favicons for subscriptions". Another way to enable the feature is to click on the arrow next to "Subcriptions" and select "use favicons".



The feature is disabled by default. "We realize that not everyone wants their subscription list to turn into a multi-colored extravaganza, so we've made it into a setting that you can access from your subscriptions menu," explains Mihai Parparita.

Google uses a special service for obtaining the favicons instead of loading the images directly. For example, Search Engine Land's favicon is generated like this:

http://s2.googleusercontent.com/s2/favicons?domain=searchengineland.com