#garfield Logs

Apr 03 2017

#garfield Calendar

09:05 PM Tom_L: rue_house
09:08 PM Tom_L: help!
09:16 PM Tom_L: got a hex editor handy?
09:24 PM Tom_L: trying to read a dbf header
09:25 PM Tom_L: i can read everything i'm looking for except the date bytes
09:26 PM Tom_L: for some reason i can't get them formatted right to display
09:30 PM Tom_L: they read in as type string (or character)
09:30 PM Tom_L: err no, they're a number
09:31 PM Tom_L: oh wait, maybe i see a clue...
10:08 PM rue_shop3: ?
10:09 PM rue_shop3: I have a hex display program
10:50 PM Tom_L: rue_shop3
10:55 PM Tom_L: i pm'd you the file i'm looking at with a header description
10:55 PM Tom_L: i'm after the y m d date data
10:55 PM Tom_L: byte 2 - 4
10:56 PM Tom_L: gnite
11:01 PM Tom_L: will check in the AM
11:42 PM rue_shop3: hmm
11:42 PM rue_shop3: inclusive or exclusive
11:42 PM rue_shop3: must be inclusive
11:42 PM rue_shop3: 3 bytes
11:44 PM rue_shop3: <rue_shop3> 11 04 03
11:44 PM rue_shop3: <rue_shop3> which would be
11:44 PM rue_shop3: <rue_shop3> 17 4 3
11:44 PM rue_shop3: want a copy of my binary dumper?
11:45 PM rue_shop3: wtf am I gonna have for supper?
11:46 PM Jymmm: eggs meat starch
11:47 PM rue_shop3: no no, and HEY!
11:47 PM Tom_L: rue_shop3, no i have a hex editor but i can't seem to get my program to format those bits right
11:47 PM rue_shop3: maybe with some iron
11:48 PM rue_shop3: whats your code look like to do it?
11:48 PM Jymmm: breaksfast... the any time of day meal
11:48 PM rue_shop3: Y = YEAR-2000; M = MONTH; D = DAY;
11:49 PM Tom_L: the one i'm looking at now is 11 03 1F
11:49 PM rue_shop3: it messed up the day?
11:49 PM Tom_L: maybe
11:49 PM rue_shop3: yea 1F
11:49 PM rue_shop3: ...
11:49 PM rue_shop3: 31st
11:50 PM Tom_L: that would be right
11:50 PM rue_shop3: so...
11:50 PM Tom_L: i need something to convert it to a decimal value
11:50 PM Tom_L: it comes in as char
11:51 PM rue_shop3: 2 chars
11:51 PM Tom_L: i have bin2L and bin2I but i need something for 1 byte
11:51 PM Tom_L: maybe bin2I would work
11:51 PM rue_shop3: can you treat a char like a number?
11:51 PM Tom_L: not without converting it
11:53 PM Tom_L: i got it
11:53 PM rue_shop3: if its ascii, it would be char-48 and if thats larger than 9, subtract another 7
11:53 PM Tom_L: bin2i worked
11:53 PM Tom_L: i didn't think it would
11:53 PM rue_shop3: dunno the libray
11:53 PM Tom_L: i know that
11:55 PM rue_shop3: red is a colour
11:55 PM rue_shop3: the sea is green and the mountians are blue
11:56 PM rue_shop3: the meaning of life, the universe, and everything is 42
11:56 PM rue_shop3: Deep thought has a math coprocessor error that prevents it from being able to do 6*7