Anchor ads are not supported on this page.

4S Ranch Allied Gardens Alpine Baja Balboa Park Bankers Hill Barrio Logan Bay Ho Bay Park Black Mountain Ranch Blossom Valley Bonita Bonsall Borrego Springs Boulevard Campo Cardiff-by-the-Sea Carlsbad Carmel Mountain Carmel Valley Chollas View Chula Vista City College City Heights Clairemont College Area Coronado CSU San Marcos Cuyamaca College Del Cerro Del Mar Descanso Downtown San Diego Eastlake East Village El Cajon Emerald Hills Encanto Encinitas Escondido Fallbrook Fletcher Hills Golden Hill Grant Hill Grantville Grossmont College Guatay Harbor Island Hillcrest Imperial Beach Imperial Valley Jacumba Jamacha-Lomita Jamul Julian Kearny Mesa Kensington La Jolla Lakeside La Mesa Lemon Grove Leucadia Liberty Station Lincoln Acres Lincoln Park Linda Vista Little Italy Logan Heights Mesa College Midway District MiraCosta College Miramar Miramar College Mira Mesa Mission Beach Mission Hills Mission Valley Mountain View Mount Hope Mount Laguna National City Nestor Normal Heights North Park Oak Park Ocean Beach Oceanside Old Town Otay Mesa Pacific Beach Pala Palomar College Palomar Mountain Paradise Hills Pauma Valley Pine Valley Point Loma Point Loma Nazarene Potrero Poway Rainbow Ramona Rancho Bernardo Rancho Penasquitos Rancho San Diego Rancho Santa Fe Rolando San Carlos San Marcos San Onofre Santa Ysabel Santee San Ysidro Scripps Ranch SDSU Serra Mesa Shelltown Shelter Island Sherman Heights Skyline Solana Beach Sorrento Valley Southcrest South Park Southwestern College Spring Valley Stockton Talmadge Temecula Tierrasanta Tijuana UCSD University City University Heights USD Valencia Park Valley Center Vista Warner Springs

UPC bar codes — backwards and forwards

That pattern of 1s and 0s can be read both ways

Dear Matthew Alice: Every time I’m in the grocery store, I always wonder how the machine that reads the UPC bar codes can tell what is front and what is back. They don’t line up the boxes in any special way before they pull them across the machine, so how does it know if it’s reading the number backwards or forwards? This may seem like a dumb question, but I’ve always wondered. — Anonymous, Somewhere in Faxville

Sponsored
Sponsored

Remember our motto, Anon, there are no dumb questions, just...um.... No, at our last meeting I think we decided that wasn’t a very good motto. We’ll come up with a new one. Anyway, bar codes on grocery products are divided into two sections, the five-digit manufacturer number and the five-digit product number. Plus some other stuff we’ll ignore for now. Each digit is represented in the bar code by a pattern of 1s and 0s (the width of each black bar and each white space tells the code reader whether it’s a 1 or a 0). The manufacturer number bar code system has an odd number of Is in the pattern for each digit; the system for the product code reverses this, having an even number of Is in each digit pattern. That’s how the code reader knows which is which. Come to think of it, our new motto might be, There are no dumb questions, just answers that are so hard to explain they give me a headache.

Here's something you might be interested in.
Submit a free classified
or view all
Previous article

Chat GPT vs Human: A Definitive Academic Solution or a Complimentary Tool?

Dear Matthew Alice: Every time I’m in the grocery store, I always wonder how the machine that reads the UPC bar codes can tell what is front and what is back. They don’t line up the boxes in any special way before they pull them across the machine, so how does it know if it’s reading the number backwards or forwards? This may seem like a dumb question, but I’ve always wondered. — Anonymous, Somewhere in Faxville

Sponsored
Sponsored

Remember our motto, Anon, there are no dumb questions, just...um.... No, at our last meeting I think we decided that wasn’t a very good motto. We’ll come up with a new one. Anyway, bar codes on grocery products are divided into two sections, the five-digit manufacturer number and the five-digit product number. Plus some other stuff we’ll ignore for now. Each digit is represented in the bar code by a pattern of 1s and 0s (the width of each black bar and each white space tells the code reader whether it’s a 1 or a 0). The manufacturer number bar code system has an odd number of Is in the pattern for each digit; the system for the product code reverses this, having an even number of Is in each digit pattern. That’s how the code reader knows which is which. Come to think of it, our new motto might be, There are no dumb questions, just answers that are so hard to explain they give me a headache.

Comments
Sponsored
Here's something you might be interested in.
Submit a free classified
or view all
Previous article

Maggie Starfire douses drinks at Danny’s

Famed SEAL’s daughter makes a show out of her crazy hobby
Next Article

A 70-mile walk on San Diego beaches and other ways we'd spend our summer vacation

2024 Summer Fun Issue
Comments
Ask a Hipster — Advice you didn't know you needed Big Screen — Movie commentary Blurt — Music's inside track Booze News — San Diego spirits Classical Music — Immortal beauty Classifieds — Free and easy Cover Stories — Front-page features Drinks All Around — Bartenders' drink recipes Excerpts — Literary and spiritual excerpts Feast! — Food & drink reviews Feature Stories — Local news & stories Fishing Report — What’s getting hooked from ship and shore From the Archives — Spotlight on the past Golden Dreams — Talk of the town The Gonzo Report — Making the musical scene, or at least reporting from it Letters — Our inbox Movies@Home — Local movie buffs share favorites Movie Reviews — Our critics' picks and pans Musician Interviews — Up close with local artists Neighborhood News from Stringers — Hyperlocal news News Ticker — News & politics Obermeyer — San Diego politics illustrated Outdoors — Weekly changes in flora and fauna Overheard in San Diego — Eavesdropping illustrated Poetry — The old and the new Reader Travel — Travel section built by travelers Reading — The hunt for intellectuals Roam-O-Rama — SoCal's best hiking/biking trails San Diego Beer — Inside San Diego suds SD on the QT — Almost factual news Sheep and Goats — Places of worship Special Issues — The best of Street Style — San Diego streets have style Surf Diego — Real stories from those braving the waves Theater — On stage in San Diego this week Tin Fork — Silver spoon alternative Under the Radar — Matt Potter's undercover work Unforgettable — Long-ago San Diego Unreal Estate — San Diego's priciest pads Your Week — Daily event picks
4S Ranch Allied Gardens Alpine Baja Balboa Park Bankers Hill Barrio Logan Bay Ho Bay Park Black Mountain Ranch Blossom Valley Bonita Bonsall Borrego Springs Boulevard Campo Cardiff-by-the-Sea Carlsbad Carmel Mountain Carmel Valley Chollas View Chula Vista City College City Heights Clairemont College Area Coronado CSU San Marcos Cuyamaca College Del Cerro Del Mar Descanso Downtown San Diego Eastlake East Village El Cajon Emerald Hills Encanto Encinitas Escondido Fallbrook Fletcher Hills Golden Hill Grant Hill Grantville Grossmont College Guatay Harbor Island Hillcrest Imperial Beach Imperial Valley Jacumba Jamacha-Lomita Jamul Julian Kearny Mesa Kensington La Jolla Lakeside La Mesa Lemon Grove Leucadia Liberty Station Lincoln Acres Lincoln Park Linda Vista Little Italy Logan Heights Mesa College Midway District MiraCosta College Miramar Miramar College Mira Mesa Mission Beach Mission Hills Mission Valley Mountain View Mount Hope Mount Laguna National City Nestor Normal Heights North Park Oak Park Ocean Beach Oceanside Old Town Otay Mesa Pacific Beach Pala Palomar College Palomar Mountain Paradise Hills Pauma Valley Pine Valley Point Loma Point Loma Nazarene Potrero Poway Rainbow Ramona Rancho Bernardo Rancho Penasquitos Rancho San Diego Rancho Santa Fe Rolando San Carlos San Marcos San Onofre Santa Ysabel Santee San Ysidro Scripps Ranch SDSU Serra Mesa Shelltown Shelter Island Sherman Heights Skyline Solana Beach Sorrento Valley Southcrest South Park Southwestern College Spring Valley Stockton Talmadge Temecula Tierrasanta Tijuana UCSD University City University Heights USD Valencia Park Valley Center Vista Warner Springs
Close

Anchor ads are not supported on this page.