|
|
How to tell difference between 0 and O on computer?
07-13-2010, 05:39 AM
|
#1
|
Give me a museum and I'll fill it. (Picasso) Give me a forum ...
Join Date: Mar 2007
Posts: 14,328
|
How to tell difference between 0 and O on computer?
OK, the answer will seem really simple once it has been revealed, but I've struggled with telling the diffference between a zero and a capital O when presented with a string of characters like in a password or a part number.
So, if I have a string of characters on my screen, what is an easy way to sort out which is which?
Thanks and I know I'll feel dumb once it is pointed out.
|
|
|
|
Join the #1 Early Retirement and Financial Independence Forum Today - It's Totally Free!
Are you planning to be financially independent as early as possible so you can live life on your own terms? Discuss successful investing strategies, asset allocation models, tax strategies and other related topics in our online forum community. Our members range from young folks just starting their journey to financial independence, military retirees and even multimillionaires. No matter where you fit in you'll find that Early-Retirement.org is a great community to join. Best of all it's totally FREE!
You are currently viewing our boards as a guest so you have limited access to our community. Please take the time to register and you will gain a lot of great new features including; the ability to participate in discussions, network with our members, see fewer ads, upload photographs, create a retirement blog, send private messages and so much, much more!
|
07-13-2010, 05:48 AM
|
#2
|
Give me a museum and I'll fill it. (Picasso) Give me a forum ...
Join Date: Jun 2002
Location: Texas: No Country for Old Men
Posts: 50,021
|
This is an O
This is a 0
The difference is obvious.
__________________
Numbers is hard
|
|
|
07-13-2010, 06:45 AM
|
#3
|
Give me a museum and I'll fill it. (Picasso) Give me a forum ...
Join Date: Sep 2005
Location: Northern IL
Posts: 26,892
|
It happens to me, I understand exactly what you are saying.
Copy/Paste the text into any word prc or text editor. Select it and choose a different font, that gives a slash through the zero. Here are zeros followed by Ohhhs.
0000123 OOOOOPQR 0-O Arial
0000123 OOOOOPQR 0-O
0000123 OOOOOPQR 0-O
0000123 OOOOOPQR 0-O
0000123 OOOOOPQR 0-O
0000123 OOOOOPQR 0-O
Hmmm, I haven't found a font here in ER that does it - Except for the text in the 'code' tags...
Code:
0000123 OOOOOPQR 0-O
-ERD50
|
|
|
07-13-2010, 06:55 AM
|
#4
|
Give me a museum and I'll fill it. (Picasso) Give me a forum ...
Join Date: Jul 2008
Posts: 35,712
|
Ah, the distinction between O and 0, and 1 and lowercase l and uppercase I, or lack thereof...
People often call the military stupid, but they did the right thing by banning the letters I and O from their MGRS coordinate system, so that they can use the essential numerals 0 and 1 with no ambiguity. In the heat of battle, can you imagine an artillery officer fumbling on a laptop trying to find a suitable font to avoid confusion between 0 and O?
__________________
"Old age is the most unexpected of all things that happen to a man" -- Leon Trotsky (1879-1940)
"Those Who Can Make You Believe Absurdities Can Make You Commit Atrocities" - Voltaire (1694-1778)
|
|
|
07-13-2010, 07:38 AM
|
#5
|
gone traveling
Join Date: May 2008
Posts: 3,864
|
Type the wrOng 0ne int0 an Online fOrm requiring numbers and y0u'll kn0w immediately.
General rule Of thumb is that the Zer0 is mOre vertically el0ngated than the "O" in most f0nts.
If I have a d0ubt, I'll type b0th o and 0 next to the 0/o/O in questiOn- it usually stands 0ut and bec0mes 0bvi0us, which o1 I sh0uld use.
H0pe this helps y0u Out.
|
|
|
07-13-2010, 07:40 AM
|
#6
|
Give me a museum and I'll fill it. (Picasso) Give me a forum ...
Join Date: Jun 2006
Posts: 12,880
|
Our system of letters and numbers has some amazing stupidities in it, and this is one example. Wouldn't you think that a some point a grown-up would say "Look kids, you can't have two symbols which are, in most cases, written exactly the same way."
I remember one computer bug which had everyone stumped for several days. The problem turned out to be related to the fact that a programmer had named a variable "W00FW00F." That is, W Zero Zero F W Zero Zero F.
__________________
Al
|
|
|
07-13-2010, 07:52 AM
|
#7
|
Thinks s/he gets paid by the post
Join Date: Jun 2010
Location: Palma de Mallorca
Posts: 1,419
|
Quote:
Originally Posted by travelover
So, if I have a string of characters on my screen, what is an easy way to sort out which is which?
|
Assuming that the character isn't in an image, but is a real character in a document on the screen, then this might help (or not) for Windows:
- Select (highlight, drag through) the character (0 or O) with the mouse.
- Do Edit/Copy or hit ctrl/C. The character (0 or O) is now in the paste buffer.
- Open the calculator program
- Click (on the calculator pad) the digit 2. Do not click anything else
- Do Edit/Paste or hit ctrl/V.
- If the character was a 0 (zero), you will now see 20 in the display. If it was an O (oh), you will see 0.99939....
Quote:
Originally Posted by NW-Bound
People often call the military stupid, but they did the right thing by banning the letters I and O from their MGRS coordinate system, so that they can use the essential numerals 0 and 1 with no ambiguity. In the heat of battle, can you imagine an artillery officer fumbling on a laptop trying to find a suitable font to avoid confusion between 0 and O?
|
I would bet money that this has a much simpler explanation. Early typewriters didn't have 0 and 1 keys; the only "numbers" they could produce were 2 through 9. So I and 1, and 0 and O, were exactly identical.
Quote:
Originally Posted by TromboneAl
Our system of letters and numbers has some amazing stupidities in it, and this is one example. Wouldn't you think that a some point a grown-up would say "Look kids, you can't have two symbols which are, in most cases, written exactly the same way."
|
That's a procurement issue. It's what happens when you get your letters from one supplier (Rome) and your numbers from another ( India).
|
|
|
07-13-2010, 08:22 AM
|
#8
|
Give me a museum and I'll fill it. (Picasso) Give me a forum ...
Join Date: Nov 2007
Posts: 7,746
|
Quote:
Originally Posted by BigNick
That's a procurement issue. It's what happens when you get your letters from one supplier (Rome) and your numbers from another ( India).
|
Thank goodness we didn't get our numbers from the same place we got our letters. That would make math X times harder. Especially algrebra. Maybe C times harder.
__________________
Retired in 2013 at age 33. Keeping busy reading, blogging, relaxing, gaming, and enjoying the outdoors with my wife and 3 kids (8, 13, and 15).
|
|
|
07-13-2010, 08:41 AM
|
#9
|
Give me a museum and I'll fill it. (Picasso) Give me a forum ...
Join Date: Jul 2008
Posts: 35,712
|
I saw this sign hung outside a cubicle wall of an engineering firm.
There are 10 possibilities.0. You do not understand binary numbers.
1. You understand binaries.
__________________
"Old age is the most unexpected of all things that happen to a man" -- Leon Trotsky (1879-1940)
"Those Who Can Make You Believe Absurdities Can Make You Commit Atrocities" - Voltaire (1694-1778)
|
|
|
07-13-2010, 09:16 AM
|
#10
|
Give me a museum and I'll fill it. (Picasso) Give me a forum ...
Join Date: Nov 2007
Posts: 7,746
|
Engineer's valentines card: "The 10 of us are perfect together".
"11 is a party"
__________________
Retired in 2013 at age 33. Keeping busy reading, blogging, relaxing, gaming, and enjoying the outdoors with my wife and 3 kids (8, 13, and 15).
|
|
|
07-13-2010, 09:30 AM
|
#11
|
Give me a museum and I'll fill it. (Picasso) Give me a forum ...
Join Date: Jun 2008
Posts: 13,147
|
Quote:
Originally Posted by REWahoo
This is an O
This is a 0
The difference is obvious.
|
Obvious, unless you are looking through a computer dump. Back in the days of w*rk, I remember spending half a day with a colleague debugging a problem with his program, then finally discovered an O instead of a 0.
Anyhow, that was a whole different time and place
__________________
Have you ever seen a headstone with these words
"If only I had spent more time at work" ... from "Busy Man" sung by Billy Ray Cyrus
|
|
|
07-13-2010, 09:44 AM
|
#12
|
Thinks s/he gets paid by the post
Join Date: Jul 2009
Location: Austin
Posts: 1,142
|
Its easy. Just look below the letters to see which holes are punched out.
__________________
Start by admitting
from cradle to tomb
it isn't that long a stay.
|
|
|
07-13-2010, 10:27 AM
|
#13
|
Thinks s/he gets paid by the post
Join Date: Jun 2010
Location: Palma de Mallorca
Posts: 1,419
|
Or maybe the zero has a slash through it. Beware of the Norwegian/Danish letter Ø, though.
|
|
|
07-13-2010, 10:47 AM
|
#14
|
Give me a museum and I'll fill it. (Picasso) Give me a forum ...
Join Date: Jan 2007
Location: New Orleans
Posts: 47,500
|
Or if all else fails, copy/paste everything into MS Word, change the font to a script font, and the difference between the 0's and the O's will be obvious... OK, this is probably not the real techie solution but you get what you pay for.
__________________
Already we are boldly launched upon the deep; but soon we shall be lost in its unshored, harbourless immensities. - - H. Melville, 1851.
Happily retired since 2009, at age 61. Best years of my life by far!
|
|
|
07-13-2010, 01:32 PM
|
#15
|
Give me a museum and I'll fill it. (Picasso) Give me a forum ...
Join Date: Mar 2007
Posts: 14,328
|
Quote:
Originally Posted by W2R
Or if all else fails, copy/paste everything into MS Word, change the font to a script font, and the difference between the 0's and the O's will be obvious... OK, this is probably not the real techie solution but you get what you pay for.
|
Actually, I came up with a similar solution. If you use Wingding font the two are vastly different. I don't feel so dumb now, though.
|
|
|
07-13-2010, 01:53 PM
|
#16
|
Give me a museum and I'll fill it. (Picasso) Give me a forum ...
Join Date: Jun 2005
Posts: 10,252
|
A client wanted our software source code as a hardcopy printout. We would not give them a digital copy. So we ran a program to change all the variable names to use only the characters 1, l, 0, and O and used a courier monospaced font to print it out.
|
|
|
07-13-2010, 06:02 PM
|
#17
|
Give me a museum and I'll fill it. (Picasso) Give me a forum ...
Join Date: Jul 2008
Posts: 35,712
|
Quote:
Originally Posted by LOL!
A client wanted our software source code as a hardcopy printout. We would not give them a digital copy. So we ran a program to change all the variable names to use only the characters 1, l, 0, and O and used a courier monospaced font to print it out.
|
Is that requirement written in the contract? If not, why did you have to give the source code out? And if it is, well, that could be the last contract from that client.
__________________
"Old age is the most unexpected of all things that happen to a man" -- Leon Trotsky (1879-1940)
"Those Who Can Make You Believe Absurdities Can Make You Commit Atrocities" - Voltaire (1694-1778)
|
|
|
07-13-2010, 06:48 PM
|
#18
|
Thinks s/he gets paid by the post
Join Date: Nov 2005
Location: North of Montana
Posts: 2,769
|
Quote:
Originally Posted by easysurfer
Obvious, unless you are looking through a computer dump. Back in the days of w*rk, I remember spending half a day with a colleague debugging a problem with his program, then finally discovered an O instead of a 0.
|
In my day, a dump had the numbers 1 thru 9 and the letters A thru F. How did the letter "O" confuse you ?
__________________
There are two kinds of people in the world: those who can extrapolate conclusions from insufficient data and ..
|
|
|
07-14-2010, 02:46 PM
|
#19
|
Give me a museum and I'll fill it. (Picasso) Give me a forum ...
Join Date: Jun 2008
Posts: 13,147
|
Quote:
Originally Posted by kumquat
In my day, a dump had the numbers 1 thru 9 and the letters A thru F. How did the letter "O" confuse you ?
|
You're right. As I'm thinking now (too much like w*rk). The time I spent half a day with my co-w*rker, it was debugging a different type of problem. What type of problem you ask? It had something to do with scope of control and variables (fun stuff... ). Because the scope of control changed, the values in the variables changed too.
The 0 and O confusion was probably a different debugging episode I had staring at a computer print out. It may have been an O instead of 0 that caused a data exception.
I really wanted to forget about dumps and hex digits, you know
__________________
Have you ever seen a headstone with these words
"If only I had spent more time at work" ... from "Busy Man" sung by Billy Ray Cyrus
|
|
|
07-14-2010, 03:27 PM
|
#20
|
Give me a museum and I'll fill it. (Picasso) Give me a forum ...
Join Date: Nov 2007
Posts: 7,746
|
I cain't figure out what all you guys are talking about with yer fancy computer talk. I know a lot about dumps, but they really just deal with number 2's. No zeros or ones involved.
__________________
Retired in 2013 at age 33. Keeping busy reading, blogging, relaxing, gaming, and enjoying the outdoors with my wife and 3 kids (8, 13, and 15).
|
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
» Recent Threads
|
|
|
|
|
|
|
|
|
|
|
|
|
» Quick Links
|
|
|