<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.comp.python.hachoir">
    <title>gmane.comp.python.hachoir</title>
    <link>http://blog.gmane.org/gmane.comp.python.hachoir</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.hachoir/563"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.hachoir/560"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.hachoir/559"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.hachoir/552"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.hachoir/551"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.hachoir/550"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.hachoir/549"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.hachoir/549"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.hachoir/549"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.hachoir/548"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.hachoir/546"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.hachoir/545"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.hachoir/543"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.hachoir/542"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.hachoir/541"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.hachoir/538"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.hachoir/534"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.hachoir/529"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.hachoir/521"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.hachoir/511"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.hachoir/563">
    <title>(unknown)</title>
    <link>http://comments.gmane.org/gmane.comp.python.hachoir/563</link>
    <description>&lt;pre&gt;
http://carondrake.co.za/deretcye0.html



&lt;/pre&gt;</description>
    <dc:creator>Christopher Bumgarner</dc:creator>
    <dc:date>2012-04-04T20:49:32</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.hachoir/560">
    <title>(unknown)</title>
    <link>http://comments.gmane.org/gmane.comp.python.hachoir/560</link>
    <description>&lt;pre&gt;
http://losreseros.com.ar/deretcye0.html



&lt;/pre&gt;</description>
    <dc:creator>Christopher Bumgarner</dc:creator>
    <dc:date>2012-03-25T10:40:29</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.hachoir/559">
    <title>(unknown)</title>
    <link>http://comments.gmane.org/gmane.comp.python.hachoir/559</link>
    <description>&lt;pre&gt;
http://www.sgvc.cl/contrebg5.html



&lt;/pre&gt;</description>
    <dc:creator>Christopher Bumgarner</dc:creator>
    <dc:date>2012-03-15T08:04:47</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.hachoir/552">
    <title>hachoir</title>
    <link>http://comments.gmane.org/gmane.comp.python.hachoir/552</link>
    <description>&lt;pre&gt;hachoir Don't work nine to five when you can make your own hours http://www.news13cr.com



&lt;/pre&gt;</description>
    <dc:creator>christopherbumgarner-/E1597aS9LQAvxtiuMwx3w&lt; at &gt;public.gmane.org</dc:creator>
    <dc:date>2012-01-25T11:35:25</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.hachoir/551">
    <title>hey</title>
    <link>http://comments.gmane.org/gmane.comp.python.hachoir/551</link>
    <description>&lt;pre&gt;how is everything going hachoir check into this http://www.researchl3now.com/ make sure you look



&lt;/pre&gt;</description>
    <dc:creator>christopherbumgarner-/E1597aS9LQAvxtiuMwx3w&lt; at &gt;public.gmane.org</dc:creator>
    <dc:date>2012-01-17T08:11:47</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.hachoir/550">
    <title>(unknown)</title>
    <link>http://comments.gmane.org/gmane.comp.python.hachoir/550</link>
    <description>&lt;pre&gt;
http://perdepoint.com/lantaid7.html



&lt;/pre&gt;</description>
    <dc:creator>Christopher Bumgarner</dc:creator>
    <dc:date>2012-01-13T03:31:14</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.hachoir/549">
    <title>hey hachoir</title>
    <link>http://comments.gmane.org/gmane.comp.python.hachoir/549</link>
    <description>&lt;pre&gt;yo look into it right now http://www2.homel3iwork.com/1/?date=010512&amp;amp;ref=f later



&lt;/pre&gt;</description>
    <dc:creator>christopherbumgarner-/E1597aS9LQAvxtiuMwx3w&lt; at &gt;public.gmane.org</dc:creator>
    <dc:date>2012-01-05T08:52:08</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.hachoir/549">
    <title>hey hachoir</title>
    <link>http://comments.gmane.org/gmane.comp.python.hachoir/549</link>
    <description>&lt;pre&gt;yo look into it right now http://www2.homel3iwork.com/1/?date=010512&amp;amp;ref=f later



&lt;/pre&gt;</description>
    <dc:creator>christopherbumgarner-/E1597aS9LQAvxtiuMwx3w&lt; at &gt;public.gmane.org</dc:creator>
    <dc:date>2012-01-05T08:52:08</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.hachoir/549">
    <title>hey hachoir</title>
    <link>http://comments.gmane.org/gmane.comp.python.hachoir/549</link>
    <description>&lt;pre&gt;yo look into it right now http://www2.homel3iwork.com/1/?date=010512&amp;amp;ref=f later



&lt;/pre&gt;</description>
    <dc:creator>christopherbumgarner-/E1597aS9LQAvxtiuMwx3w&lt; at &gt;public.gmane.org</dc:creator>
    <dc:date>2012-01-05T08:52:08</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.hachoir/548">
    <title>Modification of fields</title>
    <link>http://comments.gmane.org/gmane.comp.python.hachoir/548</link>
    <description>&lt;pre&gt;Dear all,

How far from working is the code below?
The idea is to change the field "x" to give it a new value, and to reconstruct the stream with this new value.

https://bitbucket.org/haypo/hachoir/wiki/Ideas apparently explains that it has been envisaged. I quote: "Event driven system: allow fields to signal modify events up to parent fields, all the way to root".

Regards,
Louis


from hachoir_core.stream import StringInputStream, LITTLE_ENDIAN
from hachoir_core.field import Parser, CString, UInt16
class Point(Parser):
    endian = LITTLE_ENDIAN
    def createFields(self):
        yield CString(self, "name", "Point name")
        yield UInt16(self, "x", "X coordinate")
        yield UInt16(self, "y", "Y coordinate")

d0 = "point\0\3\0\2\0"
p0 = Point(StringInputStream(d0))
d1 = "point\0\8\0\8\0"
p1 = Point(StringInputStream(d1))

p0["x"].value
p0.replaceField("x",p1["x"])




&lt;/pre&gt;</description>
    <dc:creator>Louis Granboulan</dc:creator>
    <dc:date>2011-11-22T18:08:01</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.hachoir/546">
    <title>how to install hachoir_editor</title>
    <link>http://comments.gmane.org/gmane.comp.python.hachoir/546</link>
    <description>&lt;pre&gt;hi
i reinstalled my computer and i don't remember how i installed the library
hachoir_editor without setup.py.

Any ideas welcome
cheers
Luc
&lt;/pre&gt;</description>
    <dc:creator>Luc Xation</dc:creator>
    <dc:date>2011-11-10T15:58:52</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.hachoir/545">
    <title>NDS ROM parser</title>
    <link>http://comments.gmane.org/gmane.comp.python.hachoir/545</link>
    <description>&lt;pre&gt;Hi,

attached are the patches for a Nintendo DS ROM parser. The changes are 
also available at https://bitbucket.org/oliver_g/hachoir . Also, a test 
file is attached. I'd appreciate it if this code could be integrated 
upstream!

Thanks,
Oliver
&lt;/pre&gt;</description>
    <dc:creator>Oliver Gerlich</dc:creator>
    <dc:date>2011-10-23T18:01:02</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.hachoir/543">
    <title>some questions</title>
    <link>http://comments.gmane.org/gmane.comp.python.hachoir/543</link>
    <description>&lt;pre&gt;Hi,

while working on a new parser, some questions came up:

- what is the "magic" field in PARSER_TAGS used for?
- should the validate() function manually validate the size, or is it 
sufficient to specify min_size in PARSER_TAGS?
- when using SeekableFieldSet or RootSeekableFieldSet to parse a file 
with padding, is there a way to get rid of the "found unparsed segment:" 
warnings? Can I specify that all unparsed segments should be treated as 
padding?

Thanks for creating Hachoir, it really makes file debugging much easier!

Regards,
Oliver



&lt;/pre&gt;</description>
    <dc:creator>Oliver Gerlich</dc:creator>
    <dc:date>2011-10-22T12:18:45</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.hachoir/542">
    <title>parser for PAK files from Project: Starfighter game</title>
    <link>http://comments.gmane.org/gmane.comp.python.hachoir/542</link>
    <description>&lt;pre&gt;Hi,

here's a small parser for archive files used by the Project: Starfighter
game... The format is really not widely used :-) and the original game
website has disappeared already; but writing this parser was good for
training, and maybe you'd like to add it to Hachoir. You can also find
the patch at https://bitbucket.org/oliver_g/hachoir/src/0f1b8b65dfac .

Also, a test file is attached, which is also used for the hachoir-parser
test case.

Thanks,
Oliver

&lt;/pre&gt;</description>
    <dc:creator>Oliver Gerlich</dc:creator>
    <dc:date>2011-10-21T19:49:21</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.hachoir/541">
    <title>(unknown)</title>
    <link>http://comments.gmane.org/gmane.comp.python.hachoir/541</link>
    <description>&lt;pre&gt;&amp;lt;a tabindex="1" title="" name="snvkevtjyp" href="http://www.manologuerrero.es/lonard1.html"&amp;gt;http://www.manologuerrero.es/lonard1.html&amp;lt;/a&amp;gt;&lt;/pre&gt;</description>
    <dc:creator>Christopher Bumgarner</dc:creator>
    <dc:date>2011-10-13T23:31:10</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.hachoir/538">
    <title>New Hachoir developer</title>
    <link>http://comments.gmane.org/gmane.comp.python.hachoir/538</link>
    <description>&lt;pre&gt;Hi,

I gave an admin access to Hachoir to Frédéric Yhuel because he would like to 
improve the MOV parser.

Victor




&lt;/pre&gt;</description>
    <dc:creator>Victor Stinner</dc:creator>
    <dc:date>2011-08-29T11:11:35</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.hachoir/534">
    <title>some little problems</title>
    <link>http://comments.gmane.org/gmane.comp.python.hachoir/534</link>
    <description>&lt;pre&gt;Hi
i tries to use the hachoir-editor library and i got some problems.

first
there is no setup.py script in the directory ( it's not important but more
easier to use )

second

in this example

*from hachoir_editor import createEditor
from hachoir_core.field import writeIntoFile

editor = createEditor(u"file.gz")
del editor["filename"]
editor["has_filename"].value = False
writeIntoFile(editor, u"noname.gz")


*I got this error
Traceback (most recent call last):

  File "first.py", line 6, in &amp;lt;module&amp;gt;
    editor["has_filename"].value = False
  File "/usr/local/lib/python2.6/dist-packages/hachoir_editor/fieldset.py",
line 244, in __getitem__
    raise MissingField(self, key)
hachoir_core.field.field.MissingField

in this example

from hachoir_editor import createEditor
from hachoir_core.field import writeIntoFile
from hachoir_editor import EditableInteger, EditableBytes
//// i modified this line
editor = createEditor(u"file.gz")
extra = "abcd"
editor["has_extra"].value = True
editor.insertAfter("os",    EditableInteger(editor, "extra_length",
False, 16, len(extra)),    EditableBytes(editor, "extra", extra))
writeIntoFile(editor, u"file_extra.gz")

I got this error
Traceback (most recent call last):
  File "second.py", line 7, in &amp;lt;module&amp;gt;
    editor["has_extra"].value = True
  File "/usr/local/lib/python2.6/dist-packages/hachoir_editor/fieldset.py",
line 244, in __getitem__
    raise MissingField(self, key)

Thanks for your help
Luc Xation
&lt;/pre&gt;</description>
    <dc:creator>Luc Xation</dc:creator>
    <dc:date>2011-08-27T21:05:01</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.hachoir/529">
    <title>parsing big files and memory footprint</title>
    <link>http://comments.gmane.org/gmane.comp.python.hachoir/529</link>
    <description>&lt;pre&gt;Hi,

I've started to write a parser for ASTERIX (a standard for RADAR data exchange: http://www.eurocontrol.int/asterix/public/subsite_homepage/homepage.html) using hachoir.

The data consist of a concatenation of consecutive data blocks.
Each data block consists of data category + length + records.
Each record is of variable length and consists of several data items.

I want to use the parser mainly to perform checks / compute statistics on the data.
I need to get the value of all the data items I'm interested in.
For example, something like the following code:
---------------------------------------------------------------
parser = finalFormatParser(filename)

for data in parser.array("data"):
    timestamp = data["timestamp"].value
    for data_block in data.array("data_block"):
        if data_block["category"].value == 1:
            for record in data_block.array("record"):
                sac_sic = record["I001_010"].value
                if sac_sic in radars:
                    try:
                        plot = Message('plot', timestamp, record["I001_040/THETA"].value)
                    except MissingField:
                        pass
                    else:
                        radars[sac_sic].append_plot(plot)
---------------------------------------------------------------
This works fine on small files, but eats all the memory on bigger files (even not so big).
The "data" and "data_block" fieldsets specify their size (like the Chunk class in the PNG parser), so I don't read the complete data_block I'm not interested in (with different category). Still I need to read all the records of the category I'm looking at.

Once I read the data_item I was looking for, I could drop the record from memory.

I guess this for loop is not the best approach to parse a big file.
How is this supposed to be done?

Any help would be appreciated.

Thanks

Benjamin



&lt;/pre&gt;</description>
    <dc:creator>benjamin.bertrand-dPKVSaZZQSI&lt; at &gt;public.gmane.org</dc:creator>
    <dc:date>2011-05-27T13:30:45</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.hachoir/521">
    <title>Microsoft OLE2 Revision History Metadata</title>
    <link>http://comments.gmane.org/gmane.comp.python.hachoir/521</link>
    <description>&lt;pre&gt;Hi all,  first of all i would like to thanks for this great library.

I would like to know if hachoir_metadata can extract the Revision History from Word files?

Actually i´m using Libextractor to parse Microsoft Word metadata as it provided me with the revision history, but now i would like to stop using libextractor and move to full hachoir for Microsoft Word.

This is Libextractor results for the test.doc attached:


  1 mimetype - application/msword
  2 revision history - Revision #0: Author 'rmarsico' worked on '\\10.20.152.65\Inetpub\wwwroot\XXXX\resol2    20607_anexoIV.doc'
  3 language - U.S. English
  4 paragraph count - 5
  5 line count - 24
  6 title - ANEXO IV RESOLUCION GENERAL N° 2206
  7 word count - 516
  8 page count - 1
  9 creator - rmarsico
 10 date - 2007-02-23T15:56:00Z
 11 generator - Microsoft Word 9.0

Is there any way that i can get that info with Hachoir?

Thanks in advance
Chris

&lt;/pre&gt;</description>
    <dc:creator>Christian Martorella</dc:creator>
    <dc:date>2011-05-07T14:42:20</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.hachoir/511">
    <title>mstask parser</title>
    <link>http://comments.gmane.org/gmane.comp.python.hachoir/511</link>
    <description>&lt;pre&gt;I recently stumbled upon hachoir-* and created a parser for mstask  
(.job) files back when  
http://www.microsoft.com/technet/security/bulletin/ms10-092.mspx came  
out after stuxnet.

Anyway, I'd like to contribute it to the code tree. How to do that?




&lt;/pre&gt;</description>
    <dc:creator>Jeff Bryner</dc:creator>
    <dc:date>2011-02-22T22:46:09</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.hachoir/506">
    <title>MTS video format</title>
    <link>http://comments.gmane.org/gmane.comp.python.hachoir/506</link>
    <description>&lt;pre&gt;Hi everyone,

I am the author of Rapid Photo Downloader. A few months ago, I integrated
hachoir metadata into this program. Thanks so much for your work on hachoir.
Now the users of Rapid Photo Downloader can download videos using the
correct metadata. I'm really happy about that.

One feature request coming up from users is to be able to download files in
MTS format. This format is common with Sony and Panasonic cameras. Are you
planning to support this format?

A description of the format and a sample can be downloaded here:

http://www.dpreview.com/reviews/sonyslta55/page14.asp

A view of associated files generated by a Panasonic camera can be seen here:

https://lists.launchpad.net/rapid-users/pngkqLSnDWqAo.png

Best,
Damon
&lt;/pre&gt;</description>
    <dc:creator>Damon Lynch</dc:creator>
    <dc:date>2010-12-29T20:48:05</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.python.hachoir">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.python.hachoir</link>
  </textinput>
</rdf:RDF>

