\
Skip Navigation LinksHome > eZine > Ask Vance\
 
 
Vance Hunt has provided home-user help desk style support for his consulting company for over 6 years. Making his home in beautiful Southern California, Vance provides general computer Q&A for users via his weekly column.

[]View Current Column
[]Ask Vance A Question
[]Browse Other Dates



 
Icon of Vance HuntFriday, March 25, 2005
Very diverse topics this week: Discovery that cartoons are not just for kids; alcohol can enhance your scanners performance; and bringing new information to an old school operating system.
By Vance Hunt
 
Shout-Back! Read Comments  |  Post A Comment

Q: How does an animated GIF work?
 
A:
An animated GIF (GIF89a, introduced circa 1991), is the computer version of a film cartoon, employing upon (and in some ways enhancing) the same slight-of-hand tricks used to fool your eye into believing that a drawing is moving.  To make stop motion animation work, the artist creates image after image, making slight differences to each.  The images are then rapidly displayed one at a time to the viewer (varies, but typically 24 frames per second) and the Phi Phenomenon (or Persistence of Vision) does the rest.

A GIF animation works on the same principal.  The artist creates a series of pictures, like those pictured above, and using a piece of software (such as Microsoft's GIF Animator for Windows), chains the images together in a series of Frames.  When saved and subsequently viewed within the browser, each frame is displayed to the viewer for a set time.   Unlike traditional animation, the creator can set how long each individual frame is displayed and other viewing attributes, such as how each frame transitions into each other and if the image has any transparency or not.

One of the largest benefits of animated GIFs is that they can be very small in size, quickly created, and require no additional plug-ins or downloads on the side of the viewer.  The downside is that an animation can play at variables speeds depending on the processor speed of the viewer, and like any other graphic, colors can appear different depending on screen resolution, color depth, browser, etc.

Further Reading:



Q: I have a sheet feeder scanner. I've used it for almost a year now, and for the most part I am happy, except that as time goes one, the scan quality degrades. Images scanned in full color tend to be OK, but in black & white, random vertical lines are in the image. Is this something that can be fixed with a driver upgrade, or do I need a new scanner?
 
A: Sheet feeder scanners are brilliant for keeping your home-office paper free as they are compact, easy to use, and typically quick for most document scanning.  I have had various sheet feeder scanners over the last 5 years, and if there is a problem to be had with one - I've had it.

One of the tasks I perform quite often is the scanning in of receipts; sometimes individual, sometimes all taped to a single paper when submitting an expense report to my client.  Unlike a flat-bed scanner, smaller paper items are harder to scan in because there is often not enough material for the rollers and other assorted internal mechanics to properly work with.  To assist in this, I quite often tape the receipt to normal sized paper and then scan the whole thing in, editing away the extra later.  Over time, I find that my scans degrade with the same horizontal lines that you are noticing.  The culprit? bits of glue that adhere to the scanner glass and become very dirty over time.  It is often less noticeable in color scans because the scanner isn't converting ever non-white element into black.

Although I would double check the cleaning guidelines with the vendor first, I often find that I can clean the scanner glass by using a rubbing-alcohol moistened paper (rubbing alcohol placed into any spray bottle that produces a fine mist will work).  Running the moist page thru the scanner often cleans the bulk of the gunk from the glass.  More stubborn gunk is often loosened on multiple passes.  After the last pass, running a dry page thru can help "dry" the glass as well as tell you if you have succeeded in your quest.  Really bad sticks might require a more intense cleaning.  I will often disassemble my scanner and use a cotton swab to clean the glass - although I should warn that this action will typically void any warrantee on the scanner, and might result in a broken scanner if not carefully handled (a professional might be better in those cases).



Q: Can the computer's Serial Number be obtained in MS-DOS (not a Windows command shell, but actual DOS)?
 
A: With modern computer BIOSs and operating systems adhering to industry standards that enable very specific and customizable information to be stored in the BIOS, it is very common place to gather information such as the serial number from within Windows for any number of purposes.  So common in fact, that it is a staple function in most scripting languages and one of the first bits of information to come up in any desktop management / asset tracking programs.  However, this ability only came around after the days when MS-DOS was an actually used operating system.  Because of this, the ability to read BIOS information from true DOS (like a LAN Manager boot disk, Windows 9x startup disk, etc.) natively is non-existent, and utilities to read this information are as hard to come by as a straight answer from Microsoft (ziiing).   Seriously though, a lengthy internet search will only yield a handful of utilities, and many of them are hardware specific.   There is, however, a utility provided by IBM that has the ability to read BIOS data from DOS.  The utility is smbios2.exe and is now very hard to get directly from IBM, but you can download it from secondary sources, such as Scripting@Wanadoo.nl.

The biggest issue you will find with this utility is that it does not return specific data, but rather huge tables worth of data that you must sift thru in order to get the specific information you want.  Not an easy task in DOS.  Thankfully you can filter the data using the DOS FIND.EXE utility.  You will also find that the serial number is enclosed in a single quote, as in '773LL-GG5687', which obviously is not the serial number.  As DOS is a million years old, a million utilities do exist to handle string manipulations.  One such as XCHANGE.EXE found in Clay Ruth's "Clay's Utilities v1.2" can come in handy.

Once you have the tools, the process is relatively simple, requiring only to filter the BIOS information for the serial number lines, extract the serial number from the returned lines, clean up the serial number to remove any extra characters, and then store the results in an environmental variable.  The below script accomplishes this:

@ECHO OFF
ECHO IF "%%2"=="" GOTO END > SERIAL.BAT
ECHO SET SN=%%2 >> SERIAL.BAT
ECHO :END >> SERIAL.BAT
ECHO | SMBIOS2.EXE /G | FIND /I "Serial number" > SetSN.BAT
CALL XCHANGE.EXE SetSN.BAT "'" "" > nul
CALL SetSN.BAT
DEL SetSN.BAT
DEL SERIAL.BAT
ECHO %SN%

In a nutshell, the script filters the smbios2.exe output for just the serial number, strips all information from the returned lines except the actual serial number, and dumps it into the environmental variable SN.  From there, you can output the number to any other dynamically created file for use elsewhere.




Comments: [0]   [Show Disclaimer]

Post a Comment
Display Name:
Comment:
(Plain text only - all HTML will be stripped)

Previous Ask Vance Questions:

 FAQs  |  Terms Of Use  |  Privacy Policy  |  Contact Us
Copyright © 1997 - 2010 Dx21, LLC. All rights reserved.
Dx21, LLC a Washington Limited Liability Company
Page Rendered at: 9/8/2010 10:10:02 PM for Unknown