Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.computer > #10255 > unrolled thread

byte-to-pixel data display program?

Started byRobert Baer <robertbaer@localnet.com>
First post2017-04-02 16:54 -0800
Last post2017-04-04 01:57 -0800
Articles 20 on this page of 79 — 10 participants

Back to article view | Back to alt.computer


Contents

  byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-02 16:54 -0800
    Re: byte-to-pixel data display program? krw@notreal.com - 2017-04-02 21:03 -0400
      Re: byte-to-pixel data display program? "Tim Williams" <tiwill@seventransistorlabs.com> - 2017-04-02 20:21 -0500
        Re: byte-to-pixel data display program? Don Y <blockedofcourse@foo.invalid> - 2017-04-02 18:42 -0700
        Re: byte-to-pixel data display program? krw@notreal.com - 2017-04-02 21:47 -0400
        Re: byte-to-pixel data display program? Clifford Heath <no.spam@please.net> - 2017-04-03 13:59 +1000
          Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-03 10:02 -0800
          Re: byte-to-pixel data display program? "Tim Williams" <tiwill@seventransistorlabs.com> - 2017-04-03 14:51 -0500
        Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-03 09:55 -0800
      Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-03 09:50 -0800
        Re: byte-to-pixel data display program? Jasen Betts <jasen@xnet.co.nz> - 2017-04-04 11:37 +0000
          Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-05 02:22 -0800
    Re: byte-to-pixel data display program? Paul <nospam@needed.invalid> - 2017-04-02 21:48 -0400
      Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-03 10:04 -0800
        Re: byte-to-pixel data display program? Paul <nospam@needed.invalid> - 2017-04-03 14:26 -0400
          Re: byte-to-pixel data display program? Don Y <blockedofcourse@foo.invalid> - 2017-04-03 11:46 -0700
            Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-04 00:55 -0800
              Re: byte-to-pixel data display program? krw@notreal.com - 2017-04-04 13:21 -0400
          Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-04 00:48 -0800
          Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-05 09:56 -0800
    Re: byte-to-pixel data display program? bitrex <bitrex@de.lete.earthlink.net> - 2017-04-02 22:54 -0400
      Re: byte-to-pixel data display program? Clifford Heath <no.spam@please.net> - 2017-04-03 14:00 +1000
        Re: byte-to-pixel data display program? bitrex <bitrex@de.lete.earthlink.net> - 2017-04-03 00:09 -0400
          Re: byte-to-pixel data display program? Clifford Heath <no.spam@please.net> - 2017-04-03 14:14 +1000
            Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-03 10:19 -0800
            Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-04 01:24 -0800
          Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-03 10:15 -0800
            Re: byte-to-pixel data display program? bitrex <bitrex@de.lete.earthlink.net> - 2017-04-03 15:09 -0400
              Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-04 01:35 -0800
                Re: byte-to-pixel data display program? Jasen Betts <jasen@xnet.co.nz> - 2017-04-04 11:48 +0000
              Re: byte-to-pixel data display program? Jasen Betts <jasen@xnet.co.nz> - 2017-04-04 11:45 +0000
                Re: byte-to-pixel data display program? bitrex <bitrex@de.lete.earthlink.net> - 2017-04-05 11:37 -0400
            Re: byte-to-pixel data display program? Jasen Betts <jasen@xnet.co.nz> - 2017-04-04 11:42 +0000
              Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-05 02:25 -0800
                Re: byte-to-pixel data display program? Jasen Betts <jasen@xnet.co.nz> - 2017-04-05 19:04 +0000
          Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-04 01:22 -0800
        Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-03 10:07 -0800
        Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-04 01:17 -0800
      Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-03 10:06 -0800
        Re: byte-to-pixel data display program? Don Y <blockedofcourse@foo.invalid> - 2017-04-03 11:20 -0700
          Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-04 01:36 -0800
            Re: byte-to-pixel data display program? Don Y <blockedofcourse@foo.invalid> - 2017-04-04 07:05 -0700
              Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-05 02:02 -0800
                Re: byte-to-pixel data display program? Don Y <blockedofcourse@foo.invalid> - 2017-04-06 00:51 -0700
                  Re: byte-to-pixel data display program? krw@notreal.com - 2017-04-06 14:47 -0400
        Re: byte-to-pixel data display program? bitrex <bitrex@de.lete.earthlink.net> - 2017-04-03 15:28 -0400
          Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-04 01:45 -0800
            Re: byte-to-pixel data display program? bitrex <bitrex@de.lete.earthlink.net> - 2017-04-04 09:19 -0400
              Re: byte-to-pixel data display program? bitrex <bitrex@de.lete.earthlink.net> - 2017-04-04 12:38 -0400
                Re: byte-to-pixel data display program? bitrex <bitrex@de.lete.earthlink.net> - 2017-04-04 12:39 -0400
      Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-04 01:13 -0800
        Re: byte-to-pixel data display program? Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2017-04-04 10:38 +0100
          Re: byte-to-pixel data display program? Don Y <blockedofcourse@foo.invalid> - 2017-04-04 07:07 -0700
            Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-05 01:44 -0800
              Re: byte-to-pixel data display program? Don Y <blockedofcourse@foo.invalid> - 2017-04-05 11:57 -0700
          Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-05 01:42 -0800
    Re: byte-to-pixel data display program? Jasen Betts <jasen@xnet.co.nz> - 2017-04-03 07:49 +0000
      Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-03 10:21 -0800
        Re: byte-to-pixel data display program? Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2017-04-05 08:44 +0100
          Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-05 02:29 -0800
            Re: byte-to-pixel data display program? Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2017-04-05 14:22 +0100
      Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-04 01:51 -0800
    Re: byte-to-pixel data display program? Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2017-04-03 10:10 +0100
      Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-03 10:25 -0800
      Re: byte-to-pixel data display program? Don Y <blockedofcourse@foo.invalid> - 2017-04-03 11:31 -0700
        Re: byte-to-pixel data display program? Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2017-04-04 08:41 +0100
          Re: byte-to-pixel data display program? Don Y <blockedofcourse@foo.invalid> - 2017-04-04 01:39 -0700
            Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-05 01:29 -0800
              Re: byte-to-pixel data display program? Don Y <blockedofcourse@foo.invalid> - 2017-04-06 00:51 -0700
                Re: byte-to-pixel data display program? Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2017-04-06 09:22 +0100
                  Re: byte-to-pixel data display program? Don Y <blockedofcourse@foo.invalid> - 2017-04-06 09:55 -0700
          Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-04 02:07 -0800
        Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-04 02:01 -0800
          Re: byte-to-pixel data display program? Don Y <blockedofcourse@foo.invalid> - 2017-04-04 06:55 -0700
            Re: byte-to-pixel data display program? Jasen Betts <jasen@xnet.co.nz> - 2017-04-04 18:42 +0000
              Re: byte-to-pixel data display program? Don Y <blockedofcourse@foo.invalid> - 2017-04-04 13:13 -0700
              Re: byte-to-pixel data display program? Paul <nospam@needed.invalid> - 2017-04-04 16:16 -0400
              Re: byte-to-pixel data display program? David Brown <david.brown@hesbynett.no> - 2017-04-05 08:52 +0200
      Re: byte-to-pixel data display program? Robert Baer <robertbaer@localnet.com> - 2017-04-04 01:57 -0800

Page 2 of 4 — ← Prev page 1 [2] 3 4  Next page →


#10261

Frombitrex <bitrex@de.lete.earthlink.net>
Date2017-04-02 22:54 -0400
Message-ID<2QiEA.239465$u84.44624@fx35.iad>
In reply to#10255
On 04/02/2017 08:54 PM, Robert Baer wrote:
>   Remember back in the daze of the CoCo (Radio Shack color computer)?
>   No software needed, the display was easily mapped to any area in memory.
>   Seems there is absolutely NOTHING to do this now.
>   What i need is a program to read ANY arbitrary part of drive (Spinrte
> does this on an incremental basis) and do a one-to-one pixel display
> (byte value determines color - back to the CoCo).
>   Program has means of user-control scrolling thru HD memory.
>
>   Thanks.

Just curious but why you want to do any of this crazy 1980s stuff on a 
modern machine?

Not saying that there isn't a good reason to. Maybe there is. Might help 
a potential solution if we knew it.

I do some C++ systems/graphics programming for x86 in my spare time.

[toc] | [prev] | [next] | [standalone]


#10263

FromClifford Heath <no.spam@please.net>
Date2017-04-03 14:00 +1000
Message-ID<58e1c918$0$54200$c3e8da3$12bcf670@news.astraweb.com>
In reply to#10261
On 03/04/17 12:54, bitrex wrote:
> On 04/02/2017 08:54 PM, Robert Baer wrote:
>>   Remember back in the daze of the CoCo (Radio Shack color computer)?
>>   No software needed, the display was easily mapped to any area in
>> memory.
>>   Seems there is absolutely NOTHING to do this now.
>>   What i need is a program to read ANY arbitrary part of drive (Spinrte
>> does this on an incremental basis) and do a one-to-one pixel display
>> (byte value determines color - back to the CoCo).
>>   Program has means of user-control scrolling thru HD memory.
>>
>>   Thanks.
>
> Just curious but why you want to do any of this crazy 1980s stuff on a
> modern machine?

Robert doesn't use modern machines. He's stuck on Win2K.

[toc] | [prev] | [next] | [standalone]


#10264

Frombitrex <bitrex@de.lete.earthlink.net>
Date2017-04-03 00:09 -0400
Message-ID<BVjEA.260309$561.117423@fx42.iad>
In reply to#10263
On 04/03/2017 12:00 AM, Clifford Heath wrote:
> On 03/04/17 12:54, bitrex wrote:
>> On 04/02/2017 08:54 PM, Robert Baer wrote:
>>>   Remember back in the daze of the CoCo (Radio Shack color computer)?
>>>   No software needed, the display was easily mapped to any area in
>>> memory.
>>>   Seems there is absolutely NOTHING to do this now.
>>>   What i need is a program to read ANY arbitrary part of drive (Spinrte
>>> does this on an incremental basis) and do a one-to-one pixel display
>>> (byte value determines color - back to the CoCo).
>>>   Program has means of user-control scrolling thru HD memory.
>>>
>>>   Thanks.
>>
>> Just curious but why you want to do any of this crazy 1980s stuff on a
>> modern machine?
>
> Robert doesn't use modern machines. He's stuck on Win2K.
>

Even under 2k there's this program that's pretty nice and seems to be 
sort of in the same vein:

<http://www.uderzo.it/main_products/space_sniffer/>

I'm really having a hard time thinking of what useful information 
somehow mapping all the gajillions of bytes in a mega-gigabyte hard 
drive could possibly provide.

[toc] | [prev] | [next] | [standalone]


#10265

FromClifford Heath <no.spam@please.net>
Date2017-04-03 14:14 +1000
Message-ID<58e1cc76$0$15693$c3e8da3$9deca2c3@news.astraweb.com>
In reply to#10264
On 03/04/17 14:09, bitrex wrote:
> On 04/03/2017 12:00 AM, Clifford Heath wrote:
>> On 03/04/17 12:54, bitrex wrote:
>>> On 04/02/2017 08:54 PM, Robert Baer wrote:
>>>>   Remember back in the daze of the CoCo (Radio Shack color computer)?
>>>>   No software needed, the display was easily mapped to any area in
>>>> memory.
>>>>   Seems there is absolutely NOTHING to do this now.
>>>>   What i need is a program to read ANY arbitrary part of drive (Spinrte
>>>> does this on an incremental basis) and do a one-to-one pixel display
>>>> (byte value determines color - back to the CoCo).
>>>>   Program has means of user-control scrolling thru HD memory.
>>>>
>>>>   Thanks.
>>>
>>> Just curious but why you want to do any of this crazy 1980s stuff on a
>>> modern machine?
>>
>> Robert doesn't use modern machines. He's stuck on Win2K.
>
> Even under 2k there's this program that's pretty nice and seems to be
> sort of in the same vein:
>
> <http://www.uderzo.it/main_products/space_sniffer/>
>
> I'm really having a hard time thinking of what useful information
> somehow mapping all the gajillions of bytes in a mega-gigabyte hard
> drive could possibly provide.

To scan a terabyte at 2MB/frame, 10 frames per second, would take
four and a half months without a break. After that, you wouldn't
need your data anyhow, because you'd never have a sane thought
again. Then again, perhaps Robert has already experienced that? :)

[toc] | [prev] | [next] | [standalone]


#10275

FromRobert Baer <robertbaer@localnet.com>
Date2017-04-03 10:19 -0800
Message-ID<pmwEA.153220$7b1.137841@fx30.iad>
In reply to#10265
Clifford Heath wrote:
> On 03/04/17 14:09, bitrex wrote:
>> On 04/03/2017 12:00 AM, Clifford Heath wrote:
>>> On 03/04/17 12:54, bitrex wrote:
>>>> On 04/02/2017 08:54 PM, Robert Baer wrote:
>>>>>   Remember back in the daze of the CoCo (Radio Shack color computer)?
>>>>>   No software needed, the display was easily mapped to any area in
>>>>> memory.
>>>>>   Seems there is absolutely NOTHING to do this now.
>>>>>   What i need is a program to read ANY arbitrary part of drive
>>>>> (Spinrte
>>>>> does this on an incremental basis) and do a one-to-one pixel display
>>>>> (byte value determines color - back to the CoCo).
>>>>>   Program has means of user-control scrolling thru HD memory.
>>>>>
>>>>>   Thanks.
>>>>
>>>> Just curious but why you want to do any of this crazy 1980s stuff on a
>>>> modern machine?
>>>
>>> Robert doesn't use modern machines. He's stuck on Win2K.
>>
>> Even under 2k there's this program that's pretty nice and seems to be
>> sort of in the same vein:
>>
>> <http://www.uderzo.it/main_products/space_sniffer/>
>>
>> I'm really having a hard time thinking of what useful information
>> somehow mapping all the gajillions of bytes in a mega-gigabyte hard
>> drive could possibly provide.
>
> To scan a terabyte at 2MB/frame, 10 frames per second, would take
> four and a half months without a break. After that, you wouldn't
> need your data anyhow, because you'd never have a sane thought
> again. Then again, perhaps Robert has already experienced that? :)
   Firstly i said NOTHING about a TerrorByte drive (post mentioned 
500Gb), and secondly i gave no hint as to how much of the drive i would 
be snooping (maybe10) in random places).

[toc] | [prev] | [next] | [standalone]


#10295

FromRobert Baer <robertbaer@localnet.com>
Date2017-04-04 01:24 -0800
Message-ID<DDJEA.211890$On5.101030@fx43.iad>
In reply to#10265
Clifford Heath wrote:
> On 03/04/17 14:09, bitrex wrote:
>> On 04/03/2017 12:00 AM, Clifford Heath wrote:
>>> On 03/04/17 12:54, bitrex wrote:
>>>> On 04/02/2017 08:54 PM, Robert Baer wrote:
>>>>> Remember back in the daze of the CoCo (Radio Shack color computer)?
>>>>> No software needed, the display was easily mapped to any area in
>>>>> memory.
>>>>> Seems there is absolutely NOTHING to do this now.
>>>>> What i need is a program to read ANY arbitrary part of drive (Spinrte
>>>>> does this on an incremental basis) and do a one-to-one pixel display
>>>>> (byte value determines color - back to the CoCo).
>>>>> Program has means of user-control scrolling thru HD memory.
>>>>>
>>>>> Thanks.
>>>>
>>>> Just curious but why you want to do any of this crazy 1980s stuff on a
>>>> modern machine?
>>>
>>> Robert doesn't use modern machines. He's stuck on Win2K.
>>
>> Even under 2k there's this program that's pretty nice and seems to be
>> sort of in the same vein:
>>
>> <http://www.uderzo.it/main_products/space_sniffer/>
>>
>> I'm really having a hard time thinking of what useful information
>> somehow mapping all the gajillions of bytes in a mega-gigabyte hard
>> drive could possibly provide.
>
> To scan a terabyte at 2MB/frame, 10 frames per second, would take
> four and a half months without a break. After that, you wouldn't
> need your data anyhow, because you'd never have a sane thought
> again. Then again, perhaps Robert has already experienced that? :)
   GODDAMNITALLTOHELL i _SAID_ 500megs!!!!!!!!!!!!!!!!.
   and i did not say i would look all of that

[toc] | [prev] | [next] | [standalone]


#10274

FromRobert Baer <robertbaer@localnet.com>
Date2017-04-03 10:15 -0800
Message-ID<mjwEA.80316$Y11.47729@fx12.iad>
In reply to#10264
bitrex wrote:
> On 04/03/2017 12:00 AM, Clifford Heath wrote:
>> On 03/04/17 12:54, bitrex wrote:
>>> On 04/02/2017 08:54 PM, Robert Baer wrote:
>>>>   Remember back in the daze of the CoCo (Radio Shack color computer)?
>>>>   No software needed, the display was easily mapped to any area in
>>>> memory.
>>>>   Seems there is absolutely NOTHING to do this now.
>>>>   What i need is a program to read ANY arbitrary part of drive (Spinrte
>>>> does this on an incremental basis) and do a one-to-one pixel display
>>>> (byte value determines color - back to the CoCo).
>>>>   Program has means of user-control scrolling thru HD memory.
>>>>
>>>>   Thanks.
>>>
>>> Just curious but why you want to do any of this crazy 1980s stuff on a
>>> modern machine?
>>
>> Robert doesn't use modern machines. He's stuck on Win2K.
>>
>
> Even under 2k there's this program that's pretty nice and seems to be
> sort of in the same vein:
>
> <http://www.uderzo.it/main_products/space_sniffer/>
>
> I'm really having a hard time thinking of what useful information
> somehow mapping all the gajillions of bytes in a mega-gigabyte hard
> drive could possibly provide.
   Looked at that and about a dozen others. Firstly they all ASSUME a 
formatted HD with some kind of directory.
   Now,*IF* dd diskwipe did it job correctly, there would be no 
formatting for starters.
   Since i have proven that dd diskwipe fails, it would be nice to see 
WHAT happened, and one cannot depend on a coherent file/directory 
layout. Hence none of those programs are useful.

[toc] | [prev] | [next] | [standalone]


#10284

Frombitrex <bitrex@de.lete.earthlink.net>
Date2017-04-03 15:09 -0400
Message-ID<a6xEA.45242$lm1.19625@fx01.iad>
In reply to#10274
On 04/03/2017 02:15 PM, Robert Baer wrote:

>   Looked at that and about a dozen others. Firstly they all ASSUME a
> formatted HD with some kind of directory.
>   Now,*IF* dd diskwipe did it job correctly, there would be no
> formatting for starters.
>   Since i have proven that dd diskwipe fails, it would be nice to see
> WHAT happened, and one cannot depend on a coherent file/directory
> layout. Hence none of those programs are useful.

It's not hard to do in say Python; you can just read in the raw device 
as a file, seek to the location you want and dump the data bytewise into 
any data structure you want, e.g. :

with open("/dev/sda","rb") as raw_drive:
	raw_drive.seek(offset, start_pos)
	data = bytearray(raw_drive.read(num_bytes))
	
	//do something with data

Can be done in C/C++ too, with more than three lines of code, probably.	


[toc] | [prev] | [next] | [standalone]


#10296

FromRobert Baer <robertbaer@localnet.com>
Date2017-04-04 01:35 -0800
Message-ID<RNJEA.101469$Zc3.10731@fx11.iad>
In reply to#10284
bitrex wrote:
> On 04/03/2017 02:15 PM, Robert Baer wrote:
>
>> Looked at that and about a dozen others. Firstly they all ASSUME a
>> formatted HD with some kind of directory.
>> Now,*IF* dd diskwipe did it job correctly, there would be no
>> formatting for starters.
>> Since i have proven that dd diskwipe fails, it would be nice to see
>> WHAT happened, and one cannot depend on a coherent file/directory
>> layout. Hence none of those programs are useful.
>
> It's not hard to do in say Python; you can just read in the raw device
> as a file, seek to the location you want and dump the data bytewise into
> any data structure you want, e.g. :
>
> with open("/dev/sda","rb") as raw_drive:
> raw_drive.seek(offset, start_pos)
> data = bytearray(raw_drive.read(num_bytes))
>
> //do something with data
>
> Can be done in C/C++ too, with more than three lines of code, probably.
>
>
>
   WELL! That is getting somewhere!
   Looks decent in fact; does not ASSume data layout or directories, or 
anything like that.

   What is this Python that i have been reading about, in what OS and 
what environment does it work?

   Forget C and all of its variants (plus, plusplus, plusminus, 
minusplus, negative, positive, zero).
   You can tell that we do NOT get along together.

[toc] | [prev] | [next] | [standalone]


#10309

FromJasen Betts <jasen@xnet.co.nz>
Date2017-04-04 11:48 +0000
Message-ID<oc016n$is8$4@gonzo.alcatraz>
In reply to#10296
On 2017-04-04, Robert Baer <robertbaer@localnet.com> wrote:
> bitrex wrote:
>> On 04/03/2017 02:15 PM, Robert Baer wrote:
>>
>>> Looked at that and about a dozen others. Firstly they all ASSUME a
>>> formatted HD with some kind of directory.
>>> Now,*IF* dd diskwipe did it job correctly, there would be no
>>> formatting for starters.
>>> Since i have proven that dd diskwipe fails, it would be nice to see
>>> WHAT happened, and one cannot depend on a coherent file/directory
>>> layout. Hence none of those programs are useful.
>>
>> It's not hard to do in say Python; you can just read in the raw device
>> as a file, seek to the location you want and dump the data bytewise into
>> any data structure you want, e.g. :
>>
>> with open("/dev/sda","rb") as raw_drive:
>> raw_drive.seek(offset, start_pos)
>> data = bytearray(raw_drive.read(num_bytes))
>>
>> //do something with data
>>
>> Can be done in C/C++ too, with more than three lines of code, probably.
>>
>>
>>
>    WELL! That is getting somewhere!
>    Looks decent in fact; does not ASSume data layout or directories, or 
> anything like that.
>
>    What is this Python that i have been reading about, in what OS and 
> what environment does it work?

runs on anything reasonably modern, but the above code is for some
unix variant.  some windows advocate told me that the same sort of
thing can be done on windows.if you know the right filename for the 
raw disk device.


-- 
This email has not been checked by half-arsed antivirus software 

[toc] | [prev] | [next] | [standalone]


#10308

FromJasen Betts <jasen@xnet.co.nz>
Date2017-04-04 11:45 +0000
Message-ID<oc0115$is8$3@gonzo.alcatraz>
In reply to#10284
On 2017-04-03, bitrex <bitrex@de.lete.earthlink.net> wrote:
> On 04/03/2017 02:15 PM, Robert Baer wrote:
>
>>   Looked at that and about a dozen others. Firstly they all ASSUME a
>> formatted HD with some kind of directory.
>>   Now,*IF* dd diskwipe did it job correctly, there would be no
>> formatting for starters.
>>   Since i have proven that dd diskwipe fails, it would be nice to see
>> WHAT happened, and one cannot depend on a coherent file/directory
>> layout. Hence none of those programs are useful.
>
> It's not hard to do in say Python; you can just read in the raw device 
> as a file, seek to the location you want and dump the data bytewise into 
> any data structure you want, e.g. :
>
> with open("/dev/sda","rb") as raw_drive:
> 	raw_drive.seek(offset, start_pos)
> 	data = bytearray(raw_drive.read(num_bytes))
> 	
> 	//do something with data
>
> Can be done in C/C++ too, with more than three lines of code, probably.	

if you're going to ignore error checking, it takes 3 lines in C too.



-- 
This email has not been checked by half-arsed antivirus software 

[toc] | [prev] | [next] | [standalone]


#10335

Frombitrex <bitrex@de.lete.earthlink.net>
Date2017-04-05 11:37 -0400
Message-ID<db8FA.153556$7b1.152727@fx30.iad>
In reply to#10308
On 04/04/2017 07:45 AM, Jasen Betts wrote:
> with open("/dev/sda","rb") as raw_drive:
> 	raw_drive.seek(offset, start_pos)
> 	data = bytearray(raw_drive.read(num_bytes))

So it would be more like:

with open("/dev/sda","rb") as raw_drive:
	try:
		raw_drive.seek(offset, start_pos)
		data = bytearray(raw_drive.read(num_bytes))
	except IOError:
		//error handling

The "with...as" statement block should ensure that regardless of 
success/failure the pipe to the device is cleaned up/closed out 
appropriately

[toc] | [prev] | [next] | [standalone]


#10307

FromJasen Betts <jasen@xnet.co.nz>
Date2017-04-04 11:42 +0000
Message-ID<oc00re$is8$2@gonzo.alcatraz>
In reply to#10274
On 2017-04-03, Robert Baer <robertbaer@localnet.com> wrote:
>>
>> I'm really having a hard time thinking of what useful information
>> somehow mapping all the gajillions of bytes in a mega-gigabyte hard
>> drive could possibly provide.
>    Looked at that and about a dozen others. Firstly they all ASSUME a 
> formatted HD with some kind of directory.
>    Now,*IF* dd diskwipe did it job correctly, there would be no 
> formatting for starters.
>    Since i have proven that dd diskwipe fails, it would be nice to see 
> WHAT happened, and one cannot depend on a coherent file/directory 
> layout. Hence none of those programs are useful.

 photorec

-- 
This email has not been checked by half-arsed antivirus software 

[toc] | [prev] | [next] | [standalone]


#10331

FromRobert Baer <robertbaer@localnet.com>
Date2017-04-05 02:25 -0800
Message-ID<DC3FA.124538$QP1.104694@fx27.iad>
In reply to#10307
Jasen Betts wrote:
> On 2017-04-03, Robert Baer<robertbaer@localnet.com>  wrote:
>>>
>>> I'm really having a hard time thinking of what useful information
>>> somehow mapping all the gajillions of bytes in a mega-gigabyte hard
>>> drive could possibly provide.
>>     Looked at that and about a dozen others. Firstly they all ASSUME a
>> formatted HD with some kind of directory.
>>     Now,*IF* dd diskwipe did it job correctly, there would be no
>> formatting for starters.
>>     Since i have proven that dd diskwipe fails, it would be nice to see
>> WHAT happened, and one cannot depend on a coherent file/directory
>> layout. Hence none of those programs are useful.
>
>   photorec
>
   Did you notice a killer word in the description?  "file".
   Does that not mean some kind of readable directory?

[toc] | [prev] | [next] | [standalone]


#10340

FromJasen Betts <jasen@xnet.co.nz>
Date2017-04-05 19:04 +0000
Message-ID<oc3f34$8o5$1@gonzo.alcatraz>
In reply to#10331
On 2017-04-05, Robert Baer <robertbaer@localnet.com> wrote:
> Jasen Betts wrote:
>> On 2017-04-03, Robert Baer<robertbaer@localnet.com>  wrote:
>>>>
>>>> I'm really having a hard time thinking of what useful information
>>>> somehow mapping all the gajillions of bytes in a mega-gigabyte hard
>>>> drive could possibly provide.
>>>     Looked at that and about a dozen others. Firstly they all ASSUME a
>>> formatted HD with some kind of directory.
>>>     Now,*IF* dd diskwipe did it job correctly, there would be no
>>> formatting for starters.
>>>     Since i have proven that dd diskwipe fails, it would be nice to see
>>> WHAT happened, and one cannot depend on a coherent file/directory
>>> layout. Hence none of those programs are useful.
>>
>>   photorec
>>
>    Did you notice a killer word in the description?  "file".
>    Does that not mean some kind of readable directory?

photorec does not need a directory on the source media.

-- 
This email has not been checked by half-arsed antivirus software 

[toc] | [prev] | [next] | [standalone]


#10294

FromRobert Baer <robertbaer@localnet.com>
Date2017-04-04 01:22 -0800
Message-ID<jBJEA.211889$On5.138443@fx43.iad>
In reply to#10264
bitrex wrote:
> On 04/03/2017 12:00 AM, Clifford Heath wrote:
>> On 03/04/17 12:54, bitrex wrote:
>>> On 04/02/2017 08:54 PM, Robert Baer wrote:
>>>> Remember back in the daze of the CoCo (Radio Shack color computer)?
>>>> No software needed, the display was easily mapped to any area in
>>>> memory.
>>>> Seems there is absolutely NOTHING to do this now.
>>>> What i need is a program to read ANY arbitrary part of drive (Spinrte
>>>> does this on an incremental basis) and do a one-to-one pixel display
>>>> (byte value determines color - back to the CoCo).
>>>> Program has means of user-control scrolling thru HD memory.
>>>>
>>>> Thanks.
>>>
>>> Just curious but why you want to do any of this crazy 1980s stuff on a
>>> modern machine?
>>
>> Robert doesn't use modern machines. He's stuck on Win2K.
>>
>
> Even under 2k there's this program that's pretty nice and seems to be
> sort of in the same vein:
>
> <http://www.uderzo.it/main_products/space_sniffer/>
>
> I'm really having a hard time thinking of what useful information
> somehow mapping all the gajillions of bytes in a mega-gigabyte hard
> drive could possibly provide.
   Already said i looked at that; NOT USEFUL for what i need to do; it 
ASSUMES there is something seen on the drive.
   Not only do i NOT have umpteen TerrorBytes of data,my idea would do 
what is needed even if i had that kind of storage.
   Use your imagination if any.

[toc] | [prev] | [next] | [standalone]


#10273

FromRobert Baer <robertbaer@localnet.com>
Date2017-04-03 10:07 -0800
Message-ID<MbwEA.77494$yo7.29414@fx16.iad>
In reply to#10263
Clifford Heath wrote:
> On 03/04/17 12:54, bitrex wrote:
>> On 04/02/2017 08:54 PM, Robert Baer wrote:
>>>   Remember back in the daze of the CoCo (Radio Shack color computer)?
>>>   No software needed, the display was easily mapped to any area in
>>> memory.
>>>   Seems there is absolutely NOTHING to do this now.
>>>   What i need is a program to read ANY arbitrary part of drive (Spinrte
>>> does this on an incremental basis) and do a one-to-one pixel display
>>> (byte value determines color - back to the CoCo).
>>>   Program has means of user-control scrolling thru HD memory.
>>>
>>>   Thanks.
>>
>> Just curious but why you want to do any of this crazy 1980s stuff on a
>> modern machine?
>
> Robert doesn't use modern machines. He's stuck on Win2K.
>
   NOT stuck; have XP and 7. Just prefer 2K.

[toc] | [prev] | [next] | [standalone]


#10293

FromRobert Baer <robertbaer@localnet.com>
Date2017-04-04 01:17 -0800
Message-ID<CwJEA.173166$3m1.78402@fx15.iad>
In reply to#10263
Clifford Heath wrote:
> On 03/04/17 12:54, bitrex wrote:
>> On 04/02/2017 08:54 PM, Robert Baer wrote:
>>> Remember back in the daze of the CoCo (Radio Shack color computer)?
>>> No software needed, the display was easily mapped to any area in
>>> memory.
>>> Seems there is absolutely NOTHING to do this now.
>>> What i need is a program to read ANY arbitrary part of drive (Spinrte
>>> does this on an incremental basis) and do a one-to-one pixel display
>>> (byte value determines color - back to the CoCo).
>>> Program has means of user-control scrolling thru HD memory.
>>>
>>> Thanks.
>>
>> Just curious but why you want to do any of this crazy 1980s stuff on a
>> modern machine?
>
> Robert doesn't use modern machines. He's stuck on Win2K.
>
   Did i not say i am NOT stuck; i use Win2K, WinXP and Win7; i just 
prefer Win2K.
   (oh! yes, i DID say that, you just decided to forget)
   (how old did you say you were?

[toc] | [prev] | [next] | [standalone]


#10272

FromRobert Baer <robertbaer@localnet.com>
Date2017-04-03 10:06 -0800
Message-ID<ZawEA.77493$yo7.65977@fx16.iad>
In reply to#10261
bitrex wrote:
> On 04/02/2017 08:54 PM, Robert Baer wrote:
>>   Remember back in the daze of the CoCo (Radio Shack color computer)?
>>   No software needed, the display was easily mapped to any area in
>> memory.
>>   Seems there is absolutely NOTHING to do this now.
>>   What i need is a program to read ANY arbitrary part of drive (Spinrte
>> does this on an incremental basis) and do a one-to-one pixel display
>> (byte value determines color - back to the CoCo).
>>   Program has means of user-control scrolling thru HD memory.
>>
>>   Thanks.
>
> Just curious but why you want to do any of this crazy 1980s stuff on a
> modern machine?
>
> Not saying that there isn't a good reason to. Maybe there is. Might help
> a potential solution if we knew it.
>
> I do some C++ systems/graphics programming for x86 in my spare time.
   The reason: to find out WTF dd diskwipe REALLY does. I have proven 
that it DOES NOT zero the drive (see initial post).

[toc] | [prev] | [next] | [standalone]


#10276

FromDon Y <blockedofcourse@foo.invalid>
Date2017-04-03 11:20 -0700
Message-ID<obu3jc$nes$1@dont-email.me>
In reply to#10272
On 4/3/2017 11:06 AM, Robert Baer wrote:
> bitrex wrote:
>> On 04/02/2017 08:54 PM, Robert Baer wrote:
>>>   Remember back in the daze of the CoCo (Radio Shack color computer)?
>>>   No software needed, the display was easily mapped to any area in
>>> memory.
>>>   Seems there is absolutely NOTHING to do this now.
>>>   What i need is a program to read ANY arbitrary part of drive (Spinrte
>>> does this on an incremental basis) and do a one-to-one pixel display
>>> (byte value determines color - back to the CoCo).
>>>   Program has means of user-control scrolling thru HD memory.
>>>
>>>   Thanks.
>>
>> Just curious but why you want to do any of this crazy 1980s stuff on a
>> modern machine?
>>
>> Not saying that there isn't a good reason to. Maybe there is. Might help
>> a potential solution if we knew it.
>>
>> I do some C++ systems/graphics programming for x86 in my spare time.
>   The reason: to find out WTF dd diskwipe REALLY does. I have proven that it
> DOES NOT zero the drive (see initial post).

Specious reasoning.  You haven't "proven" anything.  Pull drive.
Install in another machine (you claim to have at least 3).  Examine
contents *there*.

[toc] | [prev] | [next] | [standalone]


Page 2 of 4 — ← Prev page 1 [2] 3 4  Next page →

Back to top | Article view | alt.computer


csiph-web