Zorba the Hutt (zorbathut) wrote,
Zorba the Hutt
zorbathut

There's this movie named Sneakers. If you haven't seen it, you should. There's a scene in it with a blind character - he's probing the logic of a chip they got.

One pin after another gives maybe a paragraph of info on the screen. (The blind character is using a braille terminal, but the screen is still hooked up.) Tap - paragraph. Tap - paragraph. Tap - paragraph.

Then they hit a pin that fills the screen and keeps on going - pages of description, scrolling downwards.

It's moments like that that I live for with programming . . . moments when it all *works* and when you used to have maybe one line of output before it crashes, suddenly you have pages upon pages, and you know that with the level of debug output you have up, it'll be sitting there for hours spewing the right answers at you . . . and once you turn the debug off, it'll have finished the whole process in seconds.

the wrong answers:

page 4851, tex 0
00000006
00000000
00000000
002c0000
0000000b
00920000
0000003e
00da0000
00000086
00ef8000
000000b1
00fcc000
000000e6
00000000
ffffffff
00000004
00000000
00000000
00100000
00000001
00100000
00000001
00100000
00000001
00200000
00000009
00480000
00000031
00a60000
000000ed
00f28000
0000021f
00fb6000
00000266
00000000
ffffffff
00fb3d0d
putting 14 bits back, 00003d0d
223
0000007d
putting 18 bits back, 0000007d
0
00000033
putting 18 bits back, 00000033
0
0000001f
putting 18 bits back, 0000001f
0
0000001e
putting 18 bits back, 0000001e
0
00000037
putting 18 bits back, 00000037
0
00000037
putting 18 bits back, 00000037
0
0000003d
putting 18 bits back, 0000003d
0
0000003d
putting 18 bits back, 0000003d
0
0000003f
putting 18 bits back, 0000003f
0
0000001f
putting 18 bits back, 0000001f
0
0000003f
putting 18 bits back, 0000003f
0
00000037
putting 18 bits back, 00000037
0
0000003f
putting 18 bits back, 0000003f
0
0000003f
putting 18 bits back, 0000003f
0
0000003f
putting 18 bits back, 0000003f
0
0000003f
putting 18 bits back, 0000003f
0
0000003f
putting 18 bits back, 0000003f
0
0000003f
putting 18 bits back, 0000003f
(repeat until you hit ctrl-c)

=============== ======================== ========================= ==========

the right answers:
page 4851, tex 0
00000006
00000000
00000000
002c0000
0000000b
00920000
0000003e
00da0000
00000086
00ef8000
000000b1
00fcc000
000000e6
00000000
ffffffff
00000004
00000000
00000000
00100000
00000001
00100000
00000001
00100000
00000001
00200000
00000009
00480000
00000031
00a60000
000000ed
00f28000
0000021f
00fb6000
00000266
00000000
ffffffff
00fb3d0d
putting 14 bits back, 00003d0d
223
00f43470
putting 14 bits back, 00003470
195
00d1c304
putting 16 bits back, 0000c304
125
00c30412
putting 16 bits back, 00000412
111
00041208
putting 18 bits back, 00001208
1
0004820b
putting 18 bits back, 0000820b
1
002082e2
putting 18 bits back, 000082e2
8
0020b881
putting 18 bits back, 0000b881
8
002e2061
putting 17 bits back, 00002061
12
001030d4
putting 18 bits back, 000030d4
4
000c3508
putting 18 bits back, 00003508
3
000d4222
putting 18 bits back, 00014222
3
00508890
putting 17 bits back, 00008890
29
0044486f
putting 17 bits back, 0000486f
23
002437a0
putting 18 bits back, 000037a0
9
000de804
putting 18 bits back, 0001e804
3
007a010f
putting 17 bits back, 0000010f
50
000087b2
putting 18 bits back, 000087b2
0
0021ec80
putting 18 bits back, 0001ec80
8
007b2012
putting 17 bits back, 00012012
50
00900900
putting 17 bits back, 00000900
61
00048043
putting 18 bits back, 00008043
1
002010c4
putting 18 bits back, 000010c4
8
00043103
putting 18 bits back, 00003103
1
000c40c3
putting 18 bits back, 000040c3
3
001030c3
putting 18 bits back, 000030c3
4
000c30d4
putting 18 bits back, 000030d4
3
000c3504
putting 18 bits back, 00003504
3
000d4100
putting 18 bits back, 00014100
3
00504020
putting 17 bits back, 00004020
29
00201049
putting 18 bits back, 00001049
8
00041247
putting 18 bits back, 00001247
1
000491da
putting 18 bits back, 000091da
1
00247684
putting 18 bits back, 00007684
9
001da120
putting 18 bits back, 0001a120
7
00684824
putting 17 bits back, 00004824
41
00241208
putting 18 bits back, 00001208
9
00048203
putting 18 bits back, 00008203
1
002080c9
putting 18 bits back, 000080c9
8
00203243
putting 18 bits back, 00003243
8
000c90c3
putting 18 bits back, 000090c3
3
002430d1
putting 18 bits back, 000030d1
9
000c346e
putting 18 bits back, 0000346e
3
000d1ba0
putting 18 bits back, 00011ba0
3
0046e820
putting 17 bits back, 0000e820
24
00741053
putting 17 bits back, 00001053
47
0008299d
putting 18 bits back, 0000299d
2
000a676b
putting 18 bits back, 0002676b
2
0099daed
putting 16 bits back, 0000daed
69
00daed76
putting 15 bits back, 00006d76
135
00daed54
putting 15 bits back, 00006d54
135
00daa825
putting 15 bits back, 00002825
135
00504b44
putting 17 bits back, 00004b44
29
0025a220
putting 18 bits back, 0001a220
9
00688819
putting 17 bits back, 00008819
(and so it goes)
Subscribe
  • Post a new comment

    Error

    default userpic

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 4 comments