🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: csu.unix.linux
Article #170

Re: hostname

#170
From: Xylen
Date: Thu, 24 Feb 2000 00:00
40 lines
2206 bytes

Michael Dwyer wrote:
> 
> Xylen <mctupper@holly.colostate.edu> wrote:
> : When I set up my Redhat 6.0, I entered my IP addy as xxx.xxx.xxx.037
> : Note the '7' on the end. After installation was complete, my computer
> 
> The problem is the leading 0.  I chewed out the housing department
> about this once, something like two or three years ago... But they
> don't listen to me.  Maybe cuz I rant too much.  :)
> 
Actually when I got my ethernet card, I had Housing install it for me.
At the time this was free, so I figured I'd let the experts do it. I had
forgotten that when he was entering the data for the card, he had to
ignore the leading zero. He tried it three times with the leading zero
before he remembered that housing connections have that quirk.

> Anyway, the scanf thingy in C will consider any number starting with
> a 0 to be in octal.  Sooo, 037 is octal comes out to... 

it comes out as 31! Amazing bit of magic.  :)

> The odd thing is that my IP address was .037 when I was in the halls,
> too.... Coincidence?  Nah.  Prolly not.

It's a conspiracy! 
<housing code>
if student == CS 
	then ip = .037
</end code>

Xylen
-- 
  __^__                                __^__ 
 ( ___ )------------------------------( ___ ) 
  | / | This message has been brought  | \ | 
  | / | to you by the language C and   | \ | 
  |___| the number F                   |___| 
 (_____)------------------------------(_____)
Technical Details
Message-ID: <38B590FB.1DB6C15F@holly.colostate.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <38B30904.E38B7073@holly.colostate.edu> <slrn8b6oc3.3es.mike@localhost.localdomain> <38B36A77.3F1ED47B@holly.ColoState.EDU> <38b48bb7@news.ColoState.EDU> <38B493AC.F19B2FE6@holly.colostate.edu> <38b57ff1@news.ColoState.EDU>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1159f7,4f529aa91ef19476
X-Google-Attributes: gid1159f7,public
From: Xylen <mctupper@holly.colostate.edu>
Subject: Re: hostname
Date: 2000/02/24
Message-ID: <38B590FB.1DB6C15F@holly.colostate.edu>
X-Deja-AN: 589452156
Content-Transfer-Encoding: 7bit
References: <38B30904.E38B7073@holly.colostate.edu> <slrn8b6oc3.3es.mike@localhost.localdomain> <38B36A77.3F1ED47B@holly.ColoState.EDU> <38b48bb7@news.ColoState.EDU> <38B493AC.F19B2FE6@holly.colostate.edu> <38b57ff1@news.ColoState.EDU>
X-Accept-Language: en,pdf
Content-Type: text/plain; charset=us-ascii
X-Trace: 24 Feb 2000 13:13:49 -0700, res099037.halls.colostate.edu
MIME-Version: 1.0
Newsgroups: csu.unix.linux