|
|
Up |
|
|
  |
Author: Ron FordRon Ford Date: Jun 9, 2008 19:11
I'm always trying to improve my own newsreading situation, which is
probably a common denominator in an established newsgroup. Unhappy with
the amount of SPAM I was seeing, I found my way to news.software.readers,
where I was enticed not only to fire OE in favor of Dialog, but I've
switched newsservers as well. news.individual.net has taken all the tennis
shoes, cheap flights to london and lolita porn out of it for me.
Dialog is much-more hands-on than OE. It stores messages in a database
with the filename .mbx . I believe this is called mbox the way that .jpg
is called jpeg. We, the Dialog users in n.s.r., are trying to export the
messages in this database. To this end we have a ruby script, the most
relevant portion of which is MsgFile.rb:
|
| Show full article (1.76Kb) |
|
| | 5 Comments |
|
  |
Author: dpbdpb Date: Jun 10, 2008 10:43
Ron Ford wrote:
...Ruby code elided...
> I don't know enough ruby to say what's going on here. The control
> mechanisms for what seems to be an embedded loop are wisplike, like Perl.
> It does, however, seem to be records-oriented, so I think it's something
> that fortran can get to. Furthermore, indications are that the above isn't
> correct.
>
> Can the Fortran Programming Language be brought to bear on an .mbx file?
I know absolutely nothing of Ruby or .mbx formats, either, but I see no
reason why Fortran couldn't access them.
I'd think there would be any number of suitable APIs already extant for
most anything anyone would want to do with .mbx files that could simply
be linked to, however, rather than beginning from scratch...
--
|
| |
|
| | no comments |
|
  |
Author: Ron FordRon Ford Date: Jun 10, 2008 21:49
On Tue, 10 Jun 2008 12:43:55 -0500, dpb posted:
> Ron Ford wrote:
>
> ...Ruby code elided...
>
>> I don't know enough ruby to say what's going on here. The control
>> mechanisms for what seems to be an embedded loop are wisplike, like Perl.
>> It does, however, seem to be records-oriented, so I think it's something
>> that fortran can get to. Furthermore, indications are that the above isn't
>> correct.
>>
>> Can the Fortran Programming Language be brought to bear on an .mbx file?
>
> I know absolutely nothing of Ruby or .mbx formats, either, but I see no
> reason why Fortran couldn't access them.
>
> I'd think there would be any number of suitable APIs already extant for
> most anything anyone would want to do with .mbx files that could simply
> be linked to, however, rather than beginning from scratch...
|
| Show full article (1.77Kb) |
| no comments |
|
  |
Author: mecej4mecej4 Date: Jun 11, 2008 06:34
Ron Ford wrote:
> On Tue, 10 Jun 2008 12:43:55 -0500, dpb posted:
>
>> Ron Ford wrote:
>>
<<--CUT-->>
>
> I see in the hex editor that this .dat file has between 3 and 7 dots
> between records. If I can figure out what characters separate records,
> could I use fortran's io to get the contents?
Most hex-editors and binary file viewers show a three part display (you may need to unwrap the following line):
00000154 2F 6C 69 62 2F 6C 64 2D 6C 69 6E 75 78 2E 73 6F 2E 32 00 00 /lib/ld-linux.so.2..
Pos.in.file 16 bytes displayed as hex same bytes as chars
In the third panel above, those bytes that are not normal viewable characters are shown with dots, but you can still see what those are in the middle panel. It helps to know the Ascii char-set.
-- mecej4 ( mecej4_at_operamail.com)
|
| |
| no comments |
|
  |
Author: Ron FordRon Ford Date: Jun 11, 2008 16:37
On Wed, 11 Jun 2008 08:34:23 -0500, mecej4 posted:
> Ron Ford wrote:
>
>> On Tue, 10 Jun 2008 12:43:55 -0500, dpb posted:
>>
>>> Ron Ford wrote:
>>>
> <<--CUT-->>
>>
>> I see in the hex editor that this .dat file has between 3 and 7 dots
>> between...
|
| Show full article (1.50Kb) |
| no comments |
|
  |
|
|
  |
Author: Ron FordRon Ford Date: Jun 14, 2008 19:03
On Tue, 10 Jun 2008 12:43:55 -0500, dpb posted:
> I'd think there would be any number of suitable APIs already extant for
> most anything anyone would want to do with .mbx files that could simply
> be linked to, however, rather than beginning from scratch...
Dpb,
Using third-party software, as you suggested, I achieved what I set out to
do with this little task. I needed a hex editor and minitrue. Minitrue
defies description for me; this is from readme.txt:
MiniTrue is a versatile utility which combines a fast and powerful
search/replace functionality with a full-featured textviewer, enabling
quick and efficient browsing, searching and/or modification of a large
number of files. MiniTrue can operate interactively and prompt to see
if
a replacement should be made or it can make all desired substitutions
automatically. MiniTrue can also print out matching lines in the manner
of the utility grep. If no strings to search for are present, MiniTrue
functions like the pager program less.
The software is freeware and available here:
http://www.idiotsdelight.net/minitrue
|
| Show full article (4.10Kb) |
| no comments |
|
|