Snipper

Version 1.2

The Free Pocket PC News Retriever for...

   

November 29, 2004

Snipper is an application designed for the Pocket PC that retrieves the latest news from three of the Internet's most popular news web sites - CNN, MSNBC and the Jerusalem Post - and presents it in a format that is easy to view and navigate.  It can also will retrieve the latest weather from CNN.com and show a 5 day forecast. Snipper is extremely light on graphics and data transmission and was exclusively designed for mobile users.

Currently CNN and the Jerusalem Post do not provide their news in any format other than what is available directly from their main web site.  Viewing these web sites on a PDA device is not practical due to both the layout of the web page and the amount of data that gets transferred. The "front page" of these web sites use a considerable amount of graphics including those for advertisements. MSNBC does provide their content in RSS format but there are limitations on this.

In case you have never heard of the RSS  format, it stands for Really Simple Syndication. It is a format used for viewing headlines and summaries of information from web sites. It is not used exclusively by news providers but is used for accessing summary information from various types of web sites. There are utility programs on the Internet that you can use to view RSS formats. Most news providers prefer to not use RSS because it avoids users from seeing advertisements which results in a loss of income. RSS is also void of graphics. The RSS feeds from MSNBC do not always match with what is displayed on their main msnbc.com web site. The news on their web site is generally more up-to-date while the RSS feeds can lag by hours or even a day.

Another problem with using RSS is that no utility currently exists on the Internet that allows you to download all the selected articles for viewing offline. You either need a live Internet connection with your PDA or the articles must be downloaded to your PC and transferred to your PDA. Snipper gets around these problems by accessing the news directly from the news provider's main web site and allows you to download all articles for offline reading. In addition, you do have the option of viewing the main news graphic which can look quite nice on a PDA and gives the reading a more pleasant look.

Snipper will retrieve the front page of its supported web sites without ever downloading any graphics (save a few small ones), then it extracts the news columns and finally it recreates a brand new web page that can be viewed on a PDA. So what you end up seeing are well layed out sections containing the news headlines for Top News, World News, Sports, Business, etc.. 

Snipper then takes it one step further. When you click on a link to a news article, your browser does not retrieve the normal web page that you would otherwise see when you use a normal desktop browser viewing the full blown page. Instead, Snipper retrieves the print version of the article. The print version has virtually no graphics and is therefore lightweight in content. The end result is that you are able to easily read the article using a PDA and you save on transmission time and costs.

Now for the best part. Snipper tries to remain as faithful to presenting the front page as closely to the original, in terms of style, as much as possible. In fact, Snipper modifies very little of the original web page's style. Its main job is simply to extract the news portions and lay them out in a readable format.

Snipper even gives you the option of viewing the main news picture that is shown on the web site. Normally you will not want to have it downloaded because even for a 20k graphic, this does amount to transmission time using a GPRS connection which would result in chargeable data. You can decide when you want to have it downloaded. Even if you choose not to have it downloaded, Snipper will still show the picture's caption. This will often give you a hint as to what the picture would contain and if you find it interesting, you can then have it downloaded.

One of the nicest and most useful features of Snipper is the ability to download all the articles from selected news sections to your PC and have them automatically transferred to your PDA at a time interval or specific times of the day. This is great if you travel each day by bus or train and want to take your news with you before leaving home. You can then read the news offline without your PDA requiring an Internet connection. 

So how much does Snipper save you on transmission? A typical download of a CNN front page using your normal desktop browser like Internet Explorer amounts to about 70k in compressed format as it is received from CNN. This includes all graphics, style sheets, javascript and whatever. When Snipper retrieves the page, it retrieves only the pure HTML of the page without any graphics, javascript or style sheets. This amounts to about 20k.  That is about one third the amount. Aside from saving on the amount of data, you also save on the amount of time.

 

Requirements

Snipper requires a Pocket PC (PPC) device running the Compact Framework (CF). This is normally part of the operating system for PPC 2003, Windows Mobile 2003 and later versions. If you are using an earlier version of the PPC, check with Microsoft's web site on obtaining the CF for your device. The current version can be downloaded at:

http://www.microsoft.com/downloads/details.aspx?familyid=359ea6da-fc5d-41cc-ac04-7bb50a134556&displaylang=en

If you have had a previous version of Snipper installed, remove it and make sure to delete the cache either before or after you install the newer version.

To download all articles for offline reading at time intervals or specific times, you must have PC connected to the Internet. You can however download all articles offline without a PC but the option of doing it at a time interval or specific times of the day is not available. In this case you need to initiate the download manually.

The download file currently only contains the executable for an ARM 4 processor which is probably the most common one on the market. I wasn't able to get the installation to include the versions for the other processors (MIPS, etc). If you need one of these versions, contact me at the address below and I'll e-mail you a CAB file for that processor. Eventually I will include all processors once I have figured out the problem with the installation.

Snipper is primarily designed for mobile users with an Internet connection such as GPRS or Wi-Fi, however, your PDA device does not need an Internet connection at all. Using the desktop version of Snipper, you can download the web site's front page and all articles using your normal PC. Snipper downloads and creates the files locally on your PC in the directory used by ActiveSync to syncrhonize files on your PC with those on your PDA. ActiveSync will then automatically transfer all the files automatically to your PDA where you can view them.

In order to view the web page, it goes without saying that your PDA requires a browser. This is standard on almost all PPC devices. Snipper only creates the web page. It must be viewed in your browser. Snipper will launch your browser after it has created the page.

 

How Snipper Works

Like a web browser, Snipper also retrieves a web page exactly the same way. A web browser however is designed to download everything on the web page unless certain options have been enabled to prevent certain things like cookies, Java scripts, etc.. Graphics however are normally always downloaded. A web browser must first download the web page which contains links to the graphics. Downloading the graphics is a separate action. When Snipper downloads the web page, it simply doesn't bother retrieving any graphics. It's intention is to only retrieve textual news sections without any graphics. This involves a very complex extraction mechanism and as such it generally can take on an order of 10 seconds or more to download and format the front page.

When you run Snipper and view a front page from CNN, MSNBC or the Jerusalem Post, you will see "section" graphics for the various sections, such as World News, Sports, etc.. These graphics are NOT downloaded. They are actually part of Snipper and reside on your PDA. Snipper will copy these graphics to the directory where it creates the front page. A few small graphics appearing on the news site's front page may end up getting downloaded if those graphics appear within the news sections that are being extracted. These are almost always very small and most have nothing to do with advertising but are links to other news sections. Snipper could be designed to even prevent these from being downloaded, but since the majority of them are very small, the amount of overhead required to prevent their being included is not worth it.

Once the front page has been recreated, Snipper then stores the page in the "My Documents\News\xxx" folder on your PDA, where xxx is either a subdirectory called CNN, MSNBC, or JPost.

 

Running Snipper

There are two scenarios under which Snipper will run. It can be running when your PDA is not attached to its dockingstation or it can run when attached to its dockingstation.

When your PDA is attached to its dockingstation and you want to download articles to your PDA, you can either have the desktop version of Snipper (SnipperWin) do it for you or you can do it without the desktop version running. If you want to view an article on your PDA that hasn't been downloaded and SnipperWin is not running then your PDA needs a connection to the Internet. The easiest way to give your PDA an Internet connection when connected to the dockingstation is to enable it in ActiveSync. To do this, start ActiveSync and click on the Options menu, then select the Rules tab. At the bottom of the dialog you must select Internet as the Passthrough. By default, your Passthrough is set for Office connectivity.

If you do not download articles offline using your PDA attached to its dockingstation, then your PDA must have an Internet connection either via GPRS or Wi-Fi.

You can also run Snipper so that it never shows any graphic interface. Run SnipperWin.exe with the command-line option /h to hide the user interface. This is useful if you want Snipper to run in the background without any user interface. In this mode, you need to kill the process using Task Manager or reset your application to terminate the application.

The setup program installs a shortcut to the Snipper application (SnipperCE) in your Programs folder on your PDA. It also installs a shortcut to SnipperWin on your PC. On your PDA, click on the Start menu, then the Programs menu. The shortcut is called Snipper. By default, the news for each of the supported web sites are selected. Downloading offline is NOT enabled by default.  If you click on the Go Get It menu button, Snipper will connect to the web sites and download the front page. By default, the main news picture is not downloaded.

You can also download each from each of the news web sites separately by selecting them from the Options menu. Use the Show menu to switch between the different web pages that Snipper creates for the news and weather. Alternatively, you can use bookmarks in your browser and navigate to those pages with these.

The download and formatting can initially take some considerable time and is typically around a minute and a half. The vast majority of this time is actually spent recreating the web page. Please note that when downloading with your PDA connected to its dockingstation, the download time is significantly faster than when not connected to the dockingstation. There may be several seconds of waiting when using a GPRS connection and it may appear that Snipper hangs. Please wait up to 30 seconds. This is a problem with GPRS connections since they take considerable amount of time establishing an initial connection.

Once the web page is created, Snipper stores it in a cache for that web site. Each news web site has its own cache. This is important, because it allows you to delete the cache of each news provider separately. This has the advantage that you don't have to lose all the downloaded articles from one news web site when you want to delete the cache for a different web site.

You will want to delete the cache under two conditions - to free up space in your memory, and to remove badly formatted web pages. Whenever you delete the cache, Snipper starts from scratch and retrieves all articles and graphics from fresh.

While it can take over a minute to recreate a web page, it only takes on the order of about 5 seconds to download and format an article. Recreating a front page is extremely time consuming because Snipper needs to do a huge amount of work to locate, extract and reconstruct a new page. An article on the other hand is virtually stripped of all the problems a normal front page has.

Once you click on an article link, Snipper retrieves it from the web site, formats it properly for a PDA device and caches it. The next time you click on the same link, it will only retrieve the cached copy.

When you click on a link, you must wait for the page to be displayed. Snipper cannot give you an indicator as to what is happening. If anything goes wrong, there is currently no way to know it, except for either being hung, not being shown a page or being shown a blank web page. In the future, some better diagnostics will probably be added.

If Snipper was able to successfully download the article, it doesn't mean that it was able to format it correctly. Under some conditions, no article will be displayed. This can happen occassionally from articles coming from web sites like Sports Illustrated (which belongs to CNN). If this happens, you still have a chance to view the original format of the article, minus the graphics. A link will be shown at the bottom of the page to this article. Normally you will be able to easily view the original version and often it even looks the same as the one Snipper formats (when Snipper is able to format it).

After the download has completed and Snipper has created the new page, you are prompted with a message. After you close the message, Snipper will launch your browser with the page automatically loaded. If the font appears too large on the page, adjust your browser's font size. Snipper does not modify the font sizes that are retrieved from a web site.

If you want to view the front page of different news providers, you can click on Snipper's Show menu and select the news provider.

In case you plan on viewing the web page at a later time, you are better off to add the browser's URL to your favorite locations. You can then launch your browser without having to run Snipper again and simply select the link to the web page from your favorites.

Snipper must always be running to view articles. It doesn't have to be running if you view the front page but it does need to be running if you click on a link to view an article. Snipper must intercept your clicking on the link for it to determine whether it already has a cached version and if it doesn't then it goes and gets the article.

When you want to close Snipper, DO NOT click on the the cross in the upper right corner of the application. That just hides the application, which is typical of all Pocket PC applications. Use the Exit menu located under the Options menu to close the application. Under some rare conditions, even this might not result in Snipper being closed. If Snipper has errors when it starts, it probably means that it is already running. To confirm this, go to your Start menu, then Settings, then click on System. Finally, click on the application called Memory (Sorry, it might be called something else on your system, since I am using a German version).  Then select the tab called Running Applications. If Snipper is running, you can select it and then close it. The last resort is to simply do a soft restart on your Pocket PC.

Weather

Snipper can also retrieve the latest weather and forecast from CNN.com. Simply select the Weather menu from the Options menu and then select your city. You also have the option to have Snipper automatically download the weather when you use the Go Get It menu button or when offline downloading occurs. To get the weather manually, you select the Get Weather menu from the Options menu. 

 

Downloading Articles Offline

Snipper lets you download articles offline using your PC and have them transferred to your PDA using ActiveSync. This has the advantage that your PDA does not require an Internet connection. However, you do have the option of downloading all articles directly to your PDA without a PC but this requires your PDA to have an Internet connection.

Snipper lets you choose the news categories that you want to download articles from. Currently, it is only possible to download articles that are listed on the web site's front page.

In order to download articles for offline reading, you must run the Windows desktop version of Snipper (SnipperWin). This application is almost identical to Pocket PC version (SnipperCE) with the addition of downloading articles at specific time intervals or times of the day.

A requirement to download offline is that ActiveSync must be configured to have a directory setup for synchronizing files between your PC and your PDA. If you don't already have this setup, do the following...

Start ActiveSync. Click on the Options button. In the Sync Options tab you will find a list of things that ActiveSync can synchronize. Scroll down and select the Files item. ActiveSync will create a directory on your PC and place a folder on your desktop for synchronizing. Any files placed in this folder will be automatically synchronized with your PDA. Snipper automatically places articles and all necessary files in this folder under a subdirectory called news.

When you run SnipperWin, you should enable offline downloading. Click on the Options menu, then on the Offline menu. When you enable offline downloading, you need to specify when downloading should occur. You can either pick a time interval such as every 1, 2, 3 hours (up to 24 hours), once a day or twice a day. If you choose once, you must enter the time at which the downloading occurs. If you choose twice a day, you must choose the first time and the last time downloading occurs.

If you were to choose once a day and SnipperWin was not running and then you start it, if the current time on your PC is past the start time for downloading, SnipperWin will start the download right away. If you choose twice a day and SnipperWin wasn't started and then you start it, SnipperWin will do the first download if your PC's current time is between the time of the first and second download. If your PC's time is after of the second download, it will download right away.

SnipperWin should always be running on your desktop as long as your PC is running if you want to obtain the news at the times you designate. Currently, Snipper does not run as a service when nobody is not logged onto your operating system. Therefore, you must be logged on to Windows to have SnipperWin running.

You must also select the categories that you want to download articles from. For this, you select the Options menu and either the CNN, MSNBC or Jerusalem Post menu. On the Offline tab, you can select the categories.

At any time you can also cause Snipper to download offline articles by clicking on the Options menu and then the Download Offline Now menu. Downloading from this menu does not change when the next automatic download occurs. If Snipper is to download at 4 pm and you do a manual download at 3:50 pm, the automatic download will still occur at 4 pm.

 

Things to Keep in Mind

Snipper currently doesn't bother to check whether an Internet connection exists and no message will be reported if it doesn't. So if Snipper fails to launch your browser showing the web page, first check to see that you really do have an Internet connection. Use your browser and visit some site. Make sure that the site you are visiting isn't cached and misleading you into thinking you are accessing it. If your PDA is a cell phone as well, check to see that it has a live GPRS connection. Normally, any application that attempts to access a URL will automatically cause the operating system to make a connection. If you are using a Pocket PC phone and it isn't already connected to the Internet, it will attempt to connect.

Because Snipper's layout mechanism is highly dependent on the way a news web site lays out its front page, it means that should the web site significantly alter the style of their site, Snipper will most likely fail. While major web sites do tend to change their layout from time to time, it is generally on the order of a few years and not months that this happens. And when it does, a newer version of Snipper will be available to handle the new format.

Snipper does not remove the links to items that are not articles. There are usually several links on the front page that take you to other news sections. These are not articles but normally a page that contains more links. It isn't clear to know what is an article and what isn't. If you click on it and your browser cannot display it, then it is probably not an article. The same applies for the graphics used to designate sections such as Business, Sports, etc. Don't click on these graphics since they do not lead to articles.

Occassionally, a news web site will reuse a link and update the article. If you've already downloaded the article and it changes afterwards, you will not get the latest version when you either click on the Go Get It button or the Download Offline Now menu or if offline downloading occurs automatically. This is because Snipper always displays the cached version. Refreshing your browser will not help. The only solution is to delete the cache for that news web site and reload the article. In an upcoming version of Snipper, you will be able to click on a link on the article that will cause that article to be reloaded from the news web site.

Not all articles or news sections will be shown on Snipper's version of the front page. Snipper is designed to show most of the news sections from a news web site, but occassionally the news provider will insert a section on the front page that Snipper is not programmed to recognize and as a result it will not appear on Snipper's version of the front page.

The desktop version of Snipper (SnipperWin) does not support showing the articles when you click on their links in your browser. This is an issue that has to do with how browsers on different platforms handle being redirected to different pages. This feature is not necessary in the desktop version since the point of Snipper is viewing the articles on your PDA.

This is also a beta program and the current version can only retrieve news from CNN.com. The web page that Snipper creates may not at times look proper. CNN uses several different types of styles and formats that can change from day to day or even from hour to hour, although they do use a limited number of them. Although these styles are not noticeable to the human eye, they are very much noticed by any application, like Snipper, that sees the pure HTML (Hypertext Markup Language). If a web page does not show correctly, just wait several hours until the front page on the web site changes to something else. This problem only occurs occasionally and is being addressed.

Feedback and suggestions can be sent to snipper@bluebottle.com

Please be aware that I do not have time to answer everyone's questions and it can take a few days, or even in the worst case a few weeks, before I even get around to answering your e-mail.

 

Release Revisions

1.2

1.1

Beta 1.0d

Beta 1.0c

Beta 1.0b

Beta 1.0a

Initial release.

 

License

Snipper is freeware although it is copyrighted. Use it as-is at your own risk. While you may copy it and even give it to your friends, please do not post it on the Internet or commercially distribute it in any other form. Snipper will only be officially available at www.pocketgear.com. So if you need the latest version, go only there.

Finally, one last request on my part. If you have a dog, send me a picture of him or her. Make sure it looks good on a Pocket PC PDA. Include a short description about your dog. If you want to be part of the picture, feel free. If it looks good, I'd like to include it in a future version of Snipper. Then, while you are waiting for Snipper to download and format the page, you will be presented with a picture of a dog from someone using Snipper, along with the description. Each time Snipper starts, it would alternate to one of the selected pictures. And if you've got one showing them with a newspaper in their mouth, send that as well. It will remind people that your dog hasn't been put out of business since you've started using the Internet to read the news.

 

Why's it called Snipper?

I was looking for a typical name that people call a small dog. "Small" was the keyword because a Pocket PC is small and what Snipper delivers is a small footprint of a news web site. Having scanned the Internet, I discovered that there are tons of sites that help people pick names for their dogs. Nipper turned out to be one name. But nipper sounds like a dog nipping at your feet. Not exactly what I wanted to convey, so I decided to call it Snipper instead. But after coming up with this name, I came to realize that Snipper sounded more like someone cutting snippets of articles out of a newspaper - and this is what Snipper essentially does to news web sites.

Johann Blake

Zichron Ya'aqov, Israel
© 2004 Johann Blake

Trademarks, products and names mentioned in this document are properties of their respective owners.