how to erase the origin data?

2009-03-21 Thread waterloo
now I have changed my directories structure and changed names to utf8.
but I find that beagle always remember original directories with beagled
--fg --debug.
It says :  Delaying add of ... until FSQ comes across it .
but that directory doesnot exist.
that original file name uses non-utf8 ,so it always makes beagle halts and
exits.

HOW to make beagle working freshly .
I mean to erase all original data that is remembered by beagle.

thanks
___
Dashboard-hackers mailing list
Dashboard-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/dashboard-hackers


Re: Parsing an XML file in an archive

2009-03-21 Thread Joe Shaw
Hi,

On Wed, Mar 18, 2009 at 5:04 PM,  filter...@runbox.com wrote:
 I want to create a filter for Beagle! (Actually, several filters for 
 different formats that are built
 similar….)  I have red the documentation, but I cannot wrap my head around 
 it. I hope some-
 one where will take the time to get me started!

If you haven't already, definitely the first place to look at is the
filter tutorial on the wiki:

http://beagle-project.org/Filter_Tutorial

That will hopefully give you an overview on the structure of the
Filter code, how to register it with Beagle, and how to test it.

 The format is simple: zipped files (with extensions other than .zip, but they 
 are still just zips)
 Only one file of interest: meta.xml that contains strings that can be mapped 
 to dc values.

Definitely take a look at the OpenOffice filter.  OpenOffice files
follow this exact model: a zip file (with a different extension)
containing a bunch of XML files inside of it.  The code is not the
easiest to follow, but it's a decent starting point:

http://svn.gnome.org/viewvc/beagle/trunk/beagle/Filters/FilterOpenOffice.cs?view=markup

Look at the core overridden Filter methods for a start: DoOpen(),
DoPullProperties(), DoPull(), and DoClose().

If I were writing this code today I might use XPath instead of walking
every node in the document, and if I had C# 3.0 support I might even
use Linq-to-XML on it.  We're not officially supporting C# 3.0 yet,
although since it's fully supported in Mono 2.2 and 2.4 is coming out
soon, there's no reason why we couldn't make that jump.

Joe
___
Dashboard-hackers mailing list
Dashboard-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/dashboard-hackers


Re: how to erase the origin data?

2009-03-21 Thread Joe Shaw
Hi,

On Sat, Mar 21, 2009 at 8:43 AM, waterloo waterloo2...@gmail.com wrote:
 now I have changed my directories structure and changed names to utf8.
 but I find that beagle always remember original directories with beagled
 --fg --debug.
 It says :  Delaying add of ... until FSQ comes across it .
 but that directory doesnot exist.

I believe that is the Nautilus metadata backend which prints that
message.  If you don't care about indexing Nautilus emblems, notes,
etc. you can disable it on the beagled command-line with
--disable-backend NautilusMetadata.  I am not 100% sure that is the
name of it, so you should run beagled --list-backends to make sure I
have the name right.  But it'll be something like that.

Joe
___
Dashboard-hackers mailing list
Dashboard-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/dashboard-hackers