Wednesday 21 March 2012

Why Windows 8 says that your Password is Incorrect?

Windows 8 and Microsoft Account (or Windows Live ID)

Microsoft has made one important change in Windows 8 around user accounts. You can sign into Windows 8 using your online Microsoft Account (the new name for Windows Live ID) instead of creating a local user account. There are two advantages here:
  1. If you work across multiple computers that are connected to the same Microsoft Account, your various Windows settings, themes, passwords and app purchases will automatically sync* across all these computers.
  2. This is good from security point of view as well. When someone logs into a new Windows 8 computer using your Microsoft Account, the system will send you an instant email notification to confirm the same. You can easily disable that connection by following a a link available in the same email message.
[*] If you have used the Google Chrome browser that is connected to your Google Account, you know how the browser can sync your bookmarks, extensions and installed apps across multiple computers where you have logged in with the same Google Account. Microsoft is taking a similar approach but at the larger OS level.

Why Windows 8 thinks that your Password in Wrong?

I encountered a strange issue yesterday. I connected my Windows 8 machine to my Windows Live account but whenever I tried logging into the machine, the system would say that the password is wrong though I was entering the correct password (I could still sign-in to my Hotmail and SkyDrive account using the same Windows Live credentials).
window 8 login screen
It turned out that the problem was related to the length of the password that I was using with my Windows Live ID.
The password field on the Windows 8 login screen can only accept 15 characters so if you are using a long password, the system won’t let you in. It looks like a UI bug to me or they could have set 15-characters as the new maximum length of passwords in Windows 8.
In either case, if you have the habit of using “really” long passwords, you might have to visit your Windows Live profile and change your password to a shorter less-secure password to get inside Windows 8.

Use Email to Convert Files into Different Formats

There exist quite a few online services that let you convert files from one format to another. You upload the source file, specify the output format and within seconds, the converted file in the desired format becomes available for download. That’s easy but there are somes limitations with this approach:
  1. When you want to convert a file, you have to upload it to the file conversion service. This is not an issue when you are converting files from the desktop but how do you upload files from iPhone, Android or any other mobile browser.
  2. Sometimes clients will send you files in obscure formats as email attachments. In order to convert those files in a format that your apps can understand, you will download the attachments to your desktop and then upload them to the file conversion service. That’s work.
Zamzar, a popular tool for converting files online, has added a new option that lets you convert files by email itself. You can forward your email attachments directly to Zamzar, without downloading them to the desktop, and they’ll be converted in no time.
convert files by email

Convert Email attachment into Different File Formats

To get started, you need to forward the input (source) files to a specific email address like format@zamzar.com where format represents the file type of the desired output format.
For instance, if you have a Word document that you want to convert to PDF, you can send the file as an email attachment to pdf@zamzar.com. If you have a PDF file that you want to convert into an ebook, the corresponding conversion address would be epub@zamzar.com or mobi@zamzar.com depending on your ebook reader.
Here’s a complete list of input-output file formats that are currently supported by Zamzar. You can convert documents, presentations, ebooks, videos, audio files, archives and more.
In my test, the converted files were delivered quickly and the quality of the converted files was impressive. There’s no need to create any account at Zamzar and you can convert files up to 1 MB in a single batch. You may go for a pro account to convert bigger files that starts from $7 per month.
One more thing. You can only upload files by email and initiate the conversion process but you’ll still have to visit the Zamzar website to download the converted file. It stays on Zamzar servers for about a day and their download page is actually very confusing when accessed on a mobile phone.

You Can’t Escape the Facebook News Ticker Anymore

New Facebook Ticker
The Facebook News Ticker displays updates from Facebook Pages that you have "liked" and activity of your Facebook friends in real time. Going forward, Facebook also plans to display ads and sponsored stories in the ticker alongside regular updates.
The news ticker (screenshot) is integrated with the Facebook Chat window and, until now, the ticker was only visible if your browser width was greater than 1200 pixels. If you were accessing Facebook on, say, a netbook with a small screen, the News Ticker may not be shown to you.
That seems to have changed now. If the width of your desktop screen (or the browser window) isn’t large enough to accommodate the News Ticker, it detaches itself from the Chat window and becomes part of Facebook’s right sidebar.

Send Personalized Emails using Mail Merge in Gmail [Video Tutorial]

Cet’s say you work for the PR department of a company and you have been asked to invite a couple of journalists for a private briefing with company executives. Or you are having a birthday party at your home and need to invite all your friends over email.
In either of the above scenarios, you would like to send personalized email messages to all the recipients and that’s where a Mail Merge program can come in handy. Now Mail Merge is a built-in feature of Microsoft Outlook and Word but if you are no Office user, no worries as you can also use Gmail and Google Docs to perform mail merge in the browser.
Before we get started, watch this video demo to know what’s in store for you:

Mail Merge with Gmail – Step by Step

Open your Gmail mailbox and compose a new message. This will be just like any other email message except that you need to mark text that will vary in different messages. For instance, the first line of your messages could read Dear First-Name and you need a way to tell Gmail that First-Name is a variable field.
That’s easy. You just need to replace First-Name in the message with $%First-Name% as shown in the following screenshot. Similarly, replace all the variable fields that are either in the body or the subject line of your Gmail message.
Save the draft message in Gmail and then make a copy of this spreadsheet in your Google Docs account. This is where the magic will happen.
Gmail Mail Merge
Open the Mail Merge HD spreadsheet that you just copied and you’ll find some dummy data here to help you get started. You just need to change the column names such that they match the various variable fields that you marked in your Gmail draft message.
You can add (or remove) any number of columns but the one mandatory column that should exist in your spreadsheet is labeled Email Address. Just ensure that the column names in the spreadsheet and the variable fields in the Gmail messages are exactly same and that every Gmail variable to mapped to a column in Google Docs.
You need to have one row of data in Google Docs for every recipient and the values of that row will be used to send a personalized message to that recipient.
Once you’ve filled the rows with the necessary data, go to the Mail Merge menu in Google Docs and hit Start Mail Merge. It may require authorization the first time you run this program so just click Grant Access. Don’t worry, you are just granting access to your Gmail to your own Google Docs account – nobody else will have access to your data.
start mail merge

Start Mail Merge in Google Docs

Now that you have granted access to Google Docs, click “Start Mail Merge” again, choose the Gmail template you earlier created from the dropdown, enter the Sender’s name (this will show in the FROM field of your outgoing messages), tick the BCC option (if you want to get a copy of the outgoing emails) and hit Start Mail Merge. That’ it.

Points to Remember

  • Once the mail merge is complete, a new column “EMAIL_SENT” will be added to every row indicating that the row need not be processed should you run Mail Merge again on the same set of data. If you wish otherwise, just set that EMAIL_SENT value on that row to blank.
  • It’s always a good idea to test your Gmail templates before sending the email blast to dozens of people. For that, just have one or two data rows in your spreadsheet and put your own email addresses in the Email fields to ensure that your outgoing emails will look as expected.
  • Gmail has a daily sending limit and you can send a maximum of 500 messages in a day. Make sure that you don’t exceed that number else Google can temporarily lock your Gmail account.

Credits

The first version of Gmail Mail Merge program used HTML Mail as the editor (this one uses Gmail’s built-in editor) and it required just too many steps to attach files and document to the outgoing messages.
Romain Vialard recently shared a vastly improved version of Mail Merge in Google Groups and it is his code that now powers most of the Mail Merge functionality while the new Mail Merge GUI is forked from github so all credit to them for make our lives easier.

Google Drops Auto-Publishing to Twitter Feature from FeedBurner; Alternatives

Back in December 2009, Google added a new Socialize option in FeedBurner to help web publishers automatically publish their RSS feeds to Twitter. You simply had to connect your Twitter account to FeedBurner and a tweet would be sent out as soon as any new article became available in your feed.
Two years later, it looks like Google has silently dropped Twitter integration from FeedBurner as the Socialize option is no longer available in your FeedBurner dashboard. This was noticed by Suman De and several other FeedBurner users in this thread.
FeedBurner was a much-loved product among bloggers back in the days when RSS was “hot” but the product got little love ever since it became part of Google. The FeedBurner blog doesn’t exist anymore, their Twitter account @feedburner has been left abandoned and same is the story with the official help group – it does exist but, unlike other official Google groups, it rarely gets any attention from FeedBurner team members.

Getting Twitter back into FeedBurner

While the Social option is no longer available in FeedBurner, you can still get it back though a URL based hack.
  1. Log into your your Feedburner dashboard at feedburner.google.com and open any of your feeds.
  2. Now go to the browser address bar and replace the word “dashboard” with “socialize” and hit Enter.
This should enable the Socialize option in your FeedBurner dashboard again. While you are here, you may want to remove your Twitter accounts that are configured to auto-publish your FeedBurner Feeds.

Publish RSS Feeds to Twitter – Alternatives

If you have been using FeedBurner to publish your RSS Feed to Twitter, it’s now time to make a switch. You have a couple of good options to choose from:
  1. Twitter Feed – You can use Twitter Feed to publish your blog feed to Facebook, Twitter, and LinkedIn simultaneously. It even lets you publish the same RSS feed to multiple Twitter accounts in one go. Twitter Feed is part of Bitly, the popular URL shortener service, but you can also use other URL shortening services as well.
  2. Dlvr.it  – This is short for Deliver It. Dlvr.it supports blog publishing to all the popular social networks – including Twitter – and you can also route your post to different social networks based on keywords or tags associated with that post. They have a workaround to publish RSS feed to Google Plus as well though it’s not officially supported.
  3. IFTTT – This is the newest kid in the block that can do much more than just publishing your blog to Twitter. You create “recipes” around your RSS feed and then trigger tasks based on content of your feed items. Not as straightforward as Twitter Feed or Dlvr.it but extremely powerful.
What do I use?
In my previous WSJ story on blogging, the first point I suggested was to stop auto-posting. That’s because the engagement levels on social networks are always higher if you “craft these status messages manually instead of resorting to the help of a bot.”
What I have done is linked my Facebook Page to my blog’s Twitter account with the help of this app. I publish stories on my Facebook page manually and as soon as I do that, a tweet is sent out automatically. This arrangement seems to be working well so far.

The Proper Way to Cite Tweets in your Paper

When Twitter launched in early 2006, it was meant to be place where people would share “what they were doing” in 140 characters or less.
That quickly changed and Twitter transformed into a communication channel where people would go to discover breaking news, companies would offer customer support or share product roadmaps, celebrities connected with fans and political activists living under oppressive regimes used Twitter to reach a global audience.
No wonder these tweets, though still limited to 140 characters, regularly inspire news stories in traditional media, researchers cite tweets in their academic papers and authors have written complete books using curated tweets – see Tweets from Tahrir and The World According to Twitter.

How to Cite Tweets – APA & MLA Style

Cite Twitter
Citation Guidelines for Tweets
The education and research community follows a set of guidelines and formatting rules – like the MLA Style and the APA Style – to properly cite original sources in their writing and these style guides do offer guidance on citing tweets as well.
The APA Style recommends the following format (everything in CAPS should be replaced with corresponding values available in the original tweet):
TWITTER_HANDLE. (TWEET_DATE) . TWEET_TEXT [Twitter post]. Retrieved from TWEET_URL
The MLA Style recommends a slightly different format:
USER_FULL_NAME (TWITTER_HANDLE). "TWEET_TEXT" TWEET_DATE, TWEET_TIME. Tweet.
There are a couple of important differences in the two formats.
The APA Style recommends including the Tweet URL (or permalink) and only the date (and not the time) of the tweet in the citation.
The MLA Style recommends adding the author’s real name in the citation as well as their Twitter handle. It also suggests including the date and time of the tweet in the citation and it should “reflect the reader’s time zone.” The idea is that using a consistent time-zone will help future researchers “to precisely compare the timing of tweets as long as the tweets are all read in a single time zone.”
I do however find it strange that the MLA style neither includes the Tweet URL nor the Tweet ID in the citation. Without this information, it will be difficult for researchers to fetch the original tweet from Twitter as search engines like Google aren’t very good at digging old tweets.

Windows 8 Installation Guides

I spent almost the entire day playing around with Windows 8 and finally installed it on all the three machines that I have – two of them were previously running Windows 7 while the third one is an iMac running Mac OS X Lion. Everything just worked without any issues.
The first Windows machine is sort of test machine and I therefore installed Windows 8 as the primary OS on that machine overwriting Windows 7. All my previous files, Windows settings and programs were preserved and it was quite an effortless installation.
The second Windows machine is my primary computer, the one that I am using to write this story inside Windows Live Writer, and I therefore installed Windows 8 on another partition (dual-boot setup). Thus my existing Windows 7 installation is not modified in any way while I can switch to Windows 8 anytime with a simple restart.
In the case of iMac, I created a new NTFS partition and installed Windows 8 using Boot Camp. The metro tiles of Windows 8 on the 27” iMac look absolutely gorgeous and the Apple keyboard and Magic Mouse also work inside Windows 8.
Finally, I installed Windows 8 as a Virtual Machine inside Windows 8 itself just for the purpose of recording the Windows 8 installation procedure.

Windows 8 Installation Guides

If you haven’t tried Windows 8 yet, you should consider doing that now because Windows 8 looks fresh, beautiful and definitely brings that “wow” effect. It’s a beta version but after using it for about a day, I found it stable though the new UI might involve a bit of learning curve.
The best part is that setting up Windows 8 is extremely easy and the installation procedure won’t take more than 15-20 minutes. Should you be interested, I have written several detailed guides that will walk you through the installation steps in either of the above scenarios – pick one that best fits your workflow and get going.
Windows 8 Logo

Easily Add Shortcuts in Windows 8 for Shutdown and Restart

I have been using Windows 8 as my primary OS since the past week and am overall quite happy with the various UI improvements. The Metro Tiles interface is primarily designed for the touch screen but it’s equally easy to navigate with a mouse and keyboard.
They got rid of the Start Menu in Windows 8 and as a side-result, there’s no dedicated menu option available to quickly shut-down or restart your Windows 8 computer.
shutdown windows 8

How to Shutdown, Restart or Log Off in Windows 8

The regular approach I this. As there are no “shutdown” buttons in Windows 8, you can switch to the desktop view and press Alt+F4 to bring the Shut Down menu or the other option is that you press the shortcut key Win+C, go to Settings –> Power –> Shut down.
That’s too many steps especially when you are in a dual-boot environment and need to switch from one OS to another.
Wouldn’t it more convenient if you could create simple tiles – like any other metro app – and place them on the Windows 8 desktop so that you can Shut down, Log off or Restart your Windows 8 computer with a simple click (or tap).
Enter createButtons.vbs – this is a simple utility (or rather a script) that will automatically add Shut Down and other related buttons to your Windows 8 screen. There’s no installation required – just download the file to your desktop and double-click to create the various buttons.
Here’s a video demo of the script in action:
Also, here’s the full source code of the VB script in case you are curious to know what it does behind the scenes. It may not be the most efficient piece of code but it will do the trick.
'
' This script will create shortcuts in the Start Menu
' Written by Amit Agarwal - 06/03/2012
' Web: http://labnol.org/?p=20989
' Version: 0.1
'
set WshShell = WScript.CreateObject("WScript.Shell")
strStartMenu = WshShell.SpecialFolders("StartMenu")
set oShellLink = WshShell.CreateShortcut(strStartMenu & "\Shutdown.lnk")
oShellLink.TargetPath = "%systemroot%\System32\shutdown.exe"
oShellLink.Arguments = "-s -t 0"
oShellLink.WindowStyle = 1
oShellLink.IconLocation = "%systemroot%\System32\shell32.dll,27"
oShellLink.Description = "Shutdown Computer (Power Off)"
oShellLink.WorkingDirectory = "%systemroot%\System32\"
oShellLink.Save
Set oShellLink = Nothing
set oShellLink = WshShell.CreateShortcut(strStartMenu & "\Log Off.lnk")
oShellLink.TargetPath = "%systemroot%\System32\shutdown.exe"
oShellLink.Arguments = "-l"
oShellLink.WindowStyle = 1
oShellLink.IconLocation = "%systemroot%\System32\shell32.dll,44"
oShellLink.Description = "Log Off (Switch User)"
oShellLink.WorkingDirectory = "%systemroot%\System32\"
oShellLink.Save
Set oShellLink = Nothing
set oShellLink = WshShell.CreateShortcut(strStartMenu & "\Restart.lnk")
oShellLink.TargetPath = "%systemroot%\System32\shutdown.exe"
oShellLink.Arguments = "-r -t 0"
oShellLink.WindowStyle = 1
oShellLink.IconLocation = "%systemroot%\System32\shell32.dll,176"
oShellLink.Description = "Restart Computer (Reboot)"
oShellLink.WorkingDirectory = "%systemroot%\System32\"
oShellLink.Save
Set oShellLink = Nothing
Wscript.Echo "Created Shutdown, Restart and Log Off buttons"

Listen to Pandora Anywhere Without Using a Proxy

beatles music
Pandora Radio is a popular online radio station and music discovery service where you can type the name of your favorite song (or artist) and the service will automatically create a station playing similar music. The Pandora service is free (supported by ads) though there’s a premium version as well that carries no advertising.
Pandora’s music streaming service is currently available only inside the United States, possibly due to licensing agreements, and anyone accessing Pandora outside the U.S. is redirected to the restricted page.

How to Listen to Pandora Outside United States

There are workarounds though. Since Pandora uses the IP address of a use to determine their physical (geographic) location, a person outside the U.S. can use some sort of a proxy server or a VPN to fake a US IP address and get around the block.
That involves some work and it is not always easy to find reliable proxy servers so here’s a much simpler workaround:
  1. If you are on Firefox, install the HTTPS Everywhere extension developed by EFF and restart the browser.
  2. If you are on Google Chrome, install the HTTPS Enforcer extension. Then click the extension’s icon in the Chrome address bar and set the status to enable.
  3. Now open the Pandora website in your browser and you should be able to use Pandora just like any other user inside the United States.
The music will stream as long as the HTTPS extension is enabled in your browser. Also, if you are on Firefox, the default settings of the extension are good enough to enjoy Pandora.
pandora music
These HTTPS related extensions enable secure browsing (HTTPS) on sites that support it (including Pandora) so if you are using http://pandora.com, they will automatically redirect you to https://pandora.com. And as it turns out, the IP address based filtering is probably not active for sites that access Pandora using the secure protocol.
This workaround was originally shared on reddit.com. Picture Credit: @Tsevis.

Smileys & Symbols are just a tap away in Windows 8

smiley keyboard
Windows 8 includes a new touch keyboard that will help you quickly insert smileys in your chat conversations. The keyboard also contains an extensive collection of symbols that you can add to your documents and tweets with a single tap (or click).
This touch keyboard of Windows 8 is optimized for the tablet screen but you can also easily use it on a regular desktop as well with your mouse.

Adding Smileys & Symbols in Windows 8

To get started, press the Windows Key + R shortcut to open the Run box in Windows 8, type the command tabtip and hit Enter. Alternatively, switch to the desktop view in Windows 8 (press the Windows Key), right-click any empty area in the task bar and choose Toolbars -> Touch Keyboard.

Once the Touch Keyboard is visible on your screen, just tap (or click) the Smiley key on the virtual keyboard and the different alphabet keys will be replaced with emoticons. Tap the arrow keys on the keyboard  to further navigate to the other screens of emoticons and symbols.

Here’s a little video of the new Touch Keyboard of Windows 8 in action. The is much better than the confusing layout of the Character Map utility that currently ships with Windows.

Google’s own Font ‘Roboto’ is Available for Free Download

download roboto font
Roboto is a beautiful sans-serif font that was specially designed by Google for Android mobile phones and tablets.
The previous Android phones shipped with the Droid Sans family of fonts but with the release of Ice Cream Sandwich, or Android 4.0, Google made Roboto the default system font powering the entire Android UI from menus to buttons to on-screen text.

Download Roboto Font from Google

The .ttf (True Type Font) files of Roboto have been available on various file sharing sites for a while but, like all the other Google Web Fonts, Roboto is now “officially” available as a free download on android.com. The font is released under the Apache Software License so you can use the font in pretty much any project.
This brings two possibilities. You can now use Roboto with various Microsoft Office programs and graphic design tools like Photoshop. Or if you have an older Android phone, you can grab an app like Font Changer and set Robot as your default font without upgrading to Ice Cream Sandwich. You’ll however have to “root” your Android device to change the system font which may not be worth the risk for most people.

Google Roboto vs Helvetica Neue

Helvetica Neue is the default typeface of Apple iPhone and some typographers were quick to notice visual similarities between Roboto and Helvetica. [via LA Times]
roboto vs helvetica

The Online Edition of Encyclopedia Britannica is Free for a Week

Encyclopædia Britannica - First Edition
Photograph of the first edition of the Encyclopædia Britannica
The big news of the day is that Encyclopedia Britannica, the world’s best-known and most-reliable reference encyclopedia that was first published more than two centuries ago, will no longer be available in print.
If your budget permits and your bookshelf has enough space to accommodate the 32-volume set, you can still grab the classic printed edition of the Britannica set from Amazon.com but once their existing stock is finished, the encyclopedia will only be available in digital format.

The editors also announced that the online edition of Britannica, available at britannica.com, will be “entirely free for a full week beginning today.” For instance, here’s a detailed entry on Encyclopaedia Britannica about Encyclopaedia Britannica.

The Britannica website follows the WSJ model – you can read the first few paragraphs of any article for free but the full content is only available to subscribers. If you haven’t explored Britannica earlier because of the pay-wall, now be a good time as they have opened the entire archive to non-subscribers for the full week.

Unlike Wikipedia which is ad-free, the online edition of Britannica uses Google Ads to monetize their content. And in case you haven’t seen it before, here’s a TV commercial for Encyclopedia Britannica from the pre-Internet days.

Apps to Manipulate PDF Files on your iOS Device

edit PDF on iPad
Your iPad or the iPhone are excellent devices for reading PDF files but if you are also looking for a way to manipulate PDF documents on your iOS device itself, do check out PDF splicer.

With PDF Splicer, you can easily delete pages from a PDF document, combine multiple PDFs into one file or you can move pages from one PDF file into another using copy and paste.

The app can also be used to create PDF documents from scratch using the various images available in your Photo Gallery. While you are in the Photo Gallery app, just copy an image to the clipboard, switch to PDF Splicer and choose Insert External Clipboard Image to put that image into a PDF document.

If you have a scanned PDF file (like a fax) where the the orientation of images is not proper, you can easily rotate those pages in either direction using PDF Splicer and export the changes into another PDF file.

The PDF Splicer app is $4.99 but it’s currently available for free so this is something you should not miss.
Also, if you want to edit PDF files on your iPad /iPhone, an app like Good Reader may be a better choice. Here you have an option to type text directly on PDF pages, you can highlight paragraphs like a yellow marker or annotate pages using the various freehand drawing tools. This is one of my favorite apps for the iPad.

Let Others Contact You Through Your Own Wi-Fi Network

The Wi-Fi network at your home has a public name, also known as SSID, that will often show up on your neighbor’s computer or any other mobile device that is within the range of your wireless network.
The name of a wireless network (or SSID) rarely says anything about the owner of that network and that’s good because most people won’t like the idea of sharing their Wi-Fi network with others. Some have even suggested using scary and unusual names for SSIDs (like “Police Van”) to discourage Wi-Fi theft.

borrow wifi

Change SSID to Advertise your Wi-Fi Network

However, if you are on the other side and want people to actually use your Wireless connection – maybe for a monthly fee – a free service like Wifis.org can be of some help.

WiFis.org provides you a unique URL like www.wifis.org/labnol. You need to change your network’s name (SSID) to that URL and it will then show up under “Available Wireless Networks” on other computers that are within your wireless range.

If your neighbors happen to type that URL in the browser, they’ll see a contact form which they can use (“Hi, Can I borrow your Wi-Fi for an hour?”) to directly get in touch with you but without knowing your real email address.

You can also write your WiFis.org SSIDs as wif.is/<username> or <username>.wifis.org.
This is definitely a neat idea though there’s an alternative as well. You can create a special email address to advertise your Wi-Fi network in the neighborhood and then set it as your SSID – something like BorrowMyWifiATgmailDOTcom. In either case, do make sure that your Wi-Fi is secured with WPA2.

Geo Notepad Brings Location-based Alerts to your Laptop

“When my car is passing the shopping center, remind me to pick some toys for kids. When I am at home, remind me to charge the mobile phone.”

Location-based reminders are now integrated into your iPhone and iPad while there are third-party apps like Location Alert and Geo Reminder that can bring similar functionality to Android and Windows Phones respectively.

Well that was about smartphones but are you looking for similar location-aware apps for your laptop computer? If yes, try GeoNotepad – this is simple Google Chrome app that runs in the background and will automatically alert you whenever it finds tasks associated with your current geolocation.
location alerts
The Chrome app works something like this. You first need to define a set of locations on a Google Map – it automatically detects your current location but you can also add other locations by dragging the pin on the Google Map.

Once the locations have been defined, you can attach notes to these locations and the app will show them as alerts whenever you are near a particular location (see the above screenshot).

Geo Notepad probably uses local storage to store your tasks and location data as it doesn’t require you create any online account. Also, Geo Notepad can be used on Windows, Mac and Linux machines as long as you have Google Chrome.

Monday 19 March 2012

Use Google Analytics to Track When People Print your Web Pages


Say you have a website that is printer-friendly but you are not too sure if people are actually printing your web pages. And if they are, you are interested to know how often they print pages and what is the kind of content that users are most likely to print on your site.
print webpage
There are basically three ways to print any standard web page (see above screenshot):
  1. Experienced users may press the Ctrl + P keyboard shortcut (or Command-P on a Mac) to send the current web page to the printer.
  2. Some web pages have a dedicated PRINT button on the page itself.
  3. Other users may prefer to print web pages from the File Menu that is standard across all browsers.
Because there are multiple ways to print the same web page, it is difficult to use JavaScript based event tracking in Google Analytics to track print usage.
A simple workaround is that you add an invisible tracking image (like the ones used for read receipts in email) only in the printed version of a web page. Thus when a user prints a web page, through any route, that tracking image will download on his / her computer and you can easily track the print (and print preview) action.

Track Print Usage with Google Analytics

That was the boring theory but you can safely skip the technical details and get right into implementing the actual tracking code.
All you have to do is copy-paste the following code above the closing </body> tag in your website template. If you are on WordPress, you can simple paste it in your footer.php file.
Please remember to replace REPLACE_ME in the code with your actual Google Analytics Profile ID which looks something like this – UA-12345-89.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<script type="text/javascript">
  var ga  = "REPLACE_ME";
  var css = document.createElement('style');
 
  if (css && ga != "REPLACE_ME") {
  var gimg  = "http://ctrlq.org/urchin/?";
      gimg += "id=" + ga;
      gimg += "&d=" + document.location.hostname;
      gimg += "&i=" + document.location.pathname;
 
  var cstr  = "@media print {body:after";
      cstr += "{content:url(" + gimg + ")}}";
  var node = document.createTextNode(cstr);
 
  if (css.styleSheet) {
      css.styleSheet.cssText = node.nodeValue;
  } else {
      css.appendChild(node);
  }
 
  var head = document.getElementsByTagName('head')[0];
  if (head) {
      head.appendChild(css);
  }
 }
</script>
Once the tracking code is live, wait for a day or two as as Google Analytics may take time to process usage data. Then log in to your Google Analytics dashboard, go to Content –> Site Content –> Pages and set /print/ as the search filter.
You’ll get a complete list of web pages that have been printed in this duration while the Pageview column will reflect the the number of times a particular page has been printed . Set the Secondary Dimension in the report as Browser or Operating System or Country and you’ll get additional details about the users who are using the Print function on your web site.
Here’s a sample print usage report generated with Google Analytics.
print usage report

How Print Tracking Works?

Should you be interested in the technical details, here they are. The JavaScript code adds the following CSS rule to your HTML webpage while it is rendering in the browser.
1
2
3
4
5
6
7
<style type="text/css">
  @media print {
      body:after {
        content:url("GOOGLE_ANALYTICS_TRACKING_IMAGE")
      }
  }
</style>
This is simple print only rule that will add an invisible tracking image to the printer-friendly version of your page (body:after). When a user prints the page, the tracking image downloads on the user’s computer and this is registered as a page view in Google Analytics as shown in the above report.
The above CSS rule is only activated when the users invokes the print or print preview command. Some PDF writing programs also use the Print stylesheet when saving web pages to PDFs and thus, the same tracking code will work in those cases as well.
PS: If you have a PHP enabled web server,  you can simple copy this PHP file on to your own server as index.php and  replace ctrlq.org/urchin in the above JavaScript code with your own web server’s address.