[Zeitgeist] [Bug 663475] [NEW] fts returning same subjects for Relevancy queries

2010-10-19 Thread Michal Hruby
Public bug reported:

I'd be nice to add a new ResultType for FTS - SUBJECT_RELEVANCY.

A little talk on IRC:
 kamstrup, it's a bit weird that when using ResultType.RELEVANCY, the 
same subjects get returned multiple times
 mhr3: that'll be hard to "fix" when you think about it it's really 
the right thing we do imho
 mhr3: it's relevancy ordered search over the events
 not the subjects
 kamstrup, otoh most of the data that gets indexed comes from the subject
 mhr3: perhaps you want a a ResultType.SUBJECTS_BY_RELEVANCY
 yea, i guess i do
 mhr3: i agree with the general idea that clustering on subject would 
be nice

** Affects: zeitgeist-extensions
 Importance: Undecided
 Status: New

-- 
fts returning same subjects for Relevancy queries
https://bugs.launchpad.net/bugs/663475
You received this bug notification because you are a member of Zeitgeist
Extensions, which is the registrant for Zeitgeist Extensions.

Status in Zeitgeist Extensions: New

Bug description:
I'd be nice to add a new ResultType for FTS - SUBJECT_RELEVANCY.

A little talk on IRC:
 kamstrup, it's a bit weird that when using ResultType.RELEVANCY, the 
same subjects get returned multiple times
 mhr3: that'll be hard to "fix" when you think about it it's really 
the right thing we do imho
 mhr3: it's relevancy ordered search over the events
 not the subjects
 kamstrup, otoh most of the data that gets indexed comes from the subject
 mhr3: perhaps you want a a ResultType.SUBJECTS_BY_RELEVANCY
 yea, i guess i do
 mhr3: i agree with the general idea that clustering on subject would 
be nice



___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 670358] Re: Add new aggregate API

2010-11-04 Thread Michal Hruby
Why exactly are the event_templates duplicated to the result?

-- 
Add new aggregate API
https://bugs.launchpad.net/bugs/670358
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.

Status in Zeitgeist Framework: New

Bug description:
Zeitgeist API can give us vague information but not statistics over the API
Use case:
- Give me counts of every subject_text from actor = Unity
Currently to do that one will need to either:
Request all events with Unity as an Actor and count the subject_text
This can be done much better IMHO
I am thinking of an Aggregation Extension.
But before we hack on that we need to agree if its necessary and how the API 
will look like.



___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


Re: [Zeitgeist] [Bug 671557] [NEW] vim plugin errors when opening quickfix window

2010-11-05 Thread Michal Hruby
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

 status fixcommitted
 assignee mhr3
 importance low

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkzUZDwACgkQG8MtkZqeYaN/6QCgmoojgRfV7vE3kLliEB2UfMfs
EHoAn2ZgzQjU8rTIBekHrqEoXv5TD5JY
=3i0T
-END PGP SIGNATURE-

** Changed in: zeitgeist-dataproviders
   Importance: Undecided => Low

** Changed in: zeitgeist-dataproviders
   Status: New => Fix Committed

** Changed in: zeitgeist-dataproviders
 Assignee: (unassigned) => Michal Hruby (mhr3)

-- 
vim plugin errors when opening quickfix window
https://bugs.launchpad.net/bugs/671557
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Data-Sources.

Status in Zeitgeist Data-Sources: Fix Committed

Bug description:
When opening the quickfix window (:help quickfix) with zeitgeist.vim installed, 
it errors out because the window has no filename, associated with it. This will 
happen with other temporal windows, as well. To repro:

run in vim:

# Populate the quickfix window
:grep a *

# Open it
:cw

Diff with fix is attached



___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 602211] Re: Monitoring Create/Move/Copy Files events

2010-11-15 Thread Michal Hruby
I still didn't understand why would the current_uri be part of event,
isn't it by definition a property of the subject? That way you don't
need to update dozens of events, just one subject entry...

-- 
Monitoring Create/Move/Copy Files events
https://bugs.launchpad.net/bugs/602211
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.

Status in Unity: Triaged
Status in Unity Files Place: Triaged
Status in Zeitgeist Framework: Confirmed
Status in Zeitgeist Datahub: Confirmed

Bug description:
An issue we are facing at the moment is that ppl lose track of there files in a 
timeline if the file was moved around or renamed. I would propose using 
taskview or patch nautilus to actually grab those events and either:
1) Modify the uris in the uris table
2) Create a new table with| new_id | old_uri_id | event | to map uris to 
their actual ids and the event that allowed the change, this would allow us to 
track a history of renaming or moving a file. It will look a bit like the 
following:

9 | 9 | 48124  # CREATE EVENT
12 | 9 | 48126 # MOVE EVENT

In other words the last row means uri 12 was moved from uri 9 with event 48126

UPDATE:

3) Create a changable_uri table that is a map of the uri table. it gets updated 
upon moved and rename.
We then add new resulttype that allow you to ask for either pureSubject or 
adaptedSubject. depending on which one is chosen we then use the according 
table in the join of the find_events_query :)




___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 681887] Re: Moving Zeitgeist dbus Bus name from gnome to Freedesktop

2010-11-26 Thread Michal Hruby
Basically I agree with Manish, moving everything just to show that we're
not dependant on gnome doesn't sound like a good idea. I guess we could
reside on both names for a period of time and then drop the org.gnome.*
one, but to use a freedesktop domain we'd need to have some official
approval from freedesktop.org.

-- 
Moving Zeitgeist dbus Bus name from gnome to Freedesktop
https://bugs.launchpad.net/bugs/681887
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.

Status in Zeitgeist Framework: New

Bug description:
Zeitgeist currently uses the org.gnome dbus domain. As we are no longer a 
GNOME-specific project, I think it would make more sense to move the project to 
the org.freedesktop domain, as org.freedesktop.Zeitgeist.engine or something 
similar.



___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 670358] Re: Add new aggregate API

2010-11-27 Thread Michal Hruby
@Markus: I basically like your proposal, but since I was told that event
ids are not unique, isn't there a huge flaw in that API?

-- 
Add new aggregate API
https://bugs.launchpad.net/bugs/670358
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.

Status in Zeitgeist Framework: Confirmed

Bug description:
Zeitgeist API can give us vague information but not statistics over the API
Use case:
- Give me counts of every subject_text from actor = Unity
Currently to do that one will need to either:
Request all events with Unity as an Actor and count the subject_text
This can be done much better IMHO
I am thinking of an Aggregation Extension.
But before we hack on that we need to agree if its necessary and how the API 
will look like.



___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 670358] Re: Add new aggregate API

2010-11-27 Thread Michal Hruby
> @Markus: I basically like your proposal, but since I was told that
event ids are not unique, isn't there a huge flaw in that API?

Nevermind, I misread the example...

-- 
Add new aggregate API
https://bugs.launchpad.net/bugs/670358
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.

Status in Zeitgeist Framework: Confirmed

Bug description:
Zeitgeist API can give us vague information but not statistics over the API
Use case:
- Give me counts of every subject_text from actor = Unity
Currently to do that one will need to either:
Request all events with Unity as an Actor and count the subject_text
This can be done much better IMHO
I am thinking of an Aggregation Extension.
But before we hack on that we need to agree if its necessary and how the API 
will look like.



___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 683280] Re: problem building from trunk in KDE

2010-11-30 Thread Michal Hruby
You might want to check out
http://bazaar.launchpad.net/~elementaryart/sezen/sezen-
vala/annotate/head%3A/autogen.sh

-- 
problem building from trunk in KDE
https://bugs.launchpad.net/bugs/683280
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.

Status in Zeitgeist Framework: New

Bug description:
Building zeitgeist from trunk requires gnome-common since we use 
gnome-autogen.sh
While this makes our lives easy in GNOME, KDE people don't really want to 
install it. So there must be another way to build from trunk easily.
Building from a source package works. But again some devs want trunk. Lets make 
this easier for them.



___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Merge] lp:~mhr3/zeitgeist/build-fix into lp:zeitgeist

2010-12-09 Thread Michal Hruby
Michal Hruby has proposed merging lp:~mhr3/zeitgeist/build-fix into 
lp:zeitgeist.

Requested reviews:
  Zeitgeist Framework Team (zeitgeist)


Tiny build issue fix.
-- 
https://code.launchpad.net/~mhr3/zeitgeist/build-fix/+merge/43305
Your team Zeitgeist Framework Team is requested to review the proposed merge of 
lp:~mhr3/zeitgeist/build-fix into lp:zeitgeist.
=== modified file '_zeitgeist/engine/upgrades/Makefile.am'
--- _zeitgeist/engine/upgrades/Makefile.am	2010-09-19 14:15:21 +
+++ _zeitgeist/engine/upgrades/Makefile.am	2010-12-09 22:54:52 +
@@ -3,4 +3,6 @@
 app_PYTHON = \
 	__init__.py \
 	core_0_1.py \
-	core_1_2.py 
+	core_1_2.py \
+	core_2_3.py \
+	$(NULL)

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 695003] Re: Bzr datasource doesn't use different uri for different events on the same branch

2010-12-28 Thread Michal Hruby
IMO subject of a bzr event is the branch, and a branch is identified by
the uri, exact revision is just metadata of the event, not really a
subject property. Perhaps gaj should take a look also on the text and
not cluster events with different subject text?

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Data-Sources.
https://bugs.launchpad.net/bugs/695003

Title:
  Bzr datasource doesn't use different uri for different events on the same 
branch

Status in Zeitgeist Data-Sources:
  New

Bug description:
  Step to reproduce:
 -commit or pull in a bzr branch >the event show up in GAJ
 -commit or pull another time---> the event doens't show up because GAJ 
discard it (these two events have the same uri: the branch's path one) 

RainCT opinion: IMHO the Bazaar plugin should be fixed to give each revision a 
different URI, possibly including the revision ID.



___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 695216] Re: Synapse should recognize djvu as a document format

2010-12-29 Thread Michal Hruby
Adding zeitgeist task, as this is something that needs to be fixed
inside zg's mimetype<->interpretation mapping. (.djvu, .ps, and i guess
we should also take a look on .eps)

** Also affects: zeitgeist
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.
https://bugs.launchpad.net/bugs/695216

Title:
  Synapse should recognize djvu as a document format

Status in Synapse:
  New
Status in Zeitgeist Framework:
  New

Bug description:
  Synapse does not seem to recognize that djvu is a document format and does 
not show djvu files under the documents tab. 

A sample djvu file can, for instance, be found at

http://leon.bottou.org/publications/djvu/tpami-2010.djvu

BTW evince has no problems recognizing djvu files.



___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 695003] Re: Bzr datasource doesn't use different uri for different events on the same branch

2011-01-05 Thread Michal Hruby
>  bzr:file:///home/mikkel/myproject/trunk#27

I disagree, not even bzr itself would understand this notation, which
means special-casing it in each and every zg client.

>  file:///home/mikkel/myproject/trunk#27

This is a perfectly valid file (directory) name, with one little problem
that it doesn't exist.

-1 from me.

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Data-Sources.
https://bugs.launchpad.net/bugs/695003

Title:
  Bzr datasource doesn't use different uri for different events on the same 
branch

Status in Zeitgeist Data-Sources:
  New

Bug description:
  Step to reproduce:
 -commit or pull in a bzr branch >the event show up in GAJ
 -commit or pull another time---> the event doens't show up because GAJ 
discard it (these two events have the same uri: the branch's path one) 

RainCT opinion: IMHO the Bazaar plugin should be fixed to give each revision a 
different URI, possibly including the revision ID.



___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 695003] Re: Bzr datasource doesn't use different uri for different events on the same branch

2011-01-05 Thread Michal Hruby
>This is *not* a file name. It is a URI. Let's keep the terminology
> correct here. It has path member being /home/mikkel/myproject/trunk
> and has a URI fragment of 27. Please see
> http://labs.apache.org/webarch/uri/rfc/rfc3986.html#components.

I learn something new every day too, in this case I'm perfectly fine
with this.

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Data-Sources.
https://bugs.launchpad.net/bugs/695003

Title:
  Bzr datasource doesn't use different uri for different events on the same 
branch

Status in Zeitgeist Data-Sources:
  Confirmed

Bug description:
  Step to reproduce:
 -commit or pull in a bzr branch >the event show up in GAJ
 -commit or pull another time---> the event doens't show up because GAJ 
discard it (these two events have the same uri: the branch's path one) 

RainCT opinion: IMHO the Bazaar plugin should be fixed to give each revision a 
different URI, possibly including the revision ID.



___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 612344] Re: Blacklist API sucks

2011-01-06 Thread Michal Hruby
My first thought was also "Why regexes, glob patterns would do the
trick", so I'm with Mikkel on this one. Overall I think it's what we
agreed on with some polishing (the enum in the signal, great
formalization of everything...), therefore I'm fine with it.

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.
https://bugs.launchpad.net/bugs/612344

Title:
  Blacklist API sucks

Status in NULL Project:
  Triaged
Status in Unity Files Place:
  Triaged
Status in Zeitgeist Framework:
  In Progress

Bug description:
  Guys, GetBlacklist and SetBlacklist (without any signals) for an 
asynchrounous-by-nature API? Come on!

How about changing it to Get, Add, Remove and a changed signal? That way it'd 
be actually usable...



___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 695216] Re: Synapse should recognize djvu as a document format

2011-01-17 Thread Michal Hruby
@Seif, but I see eps categorized under images.. Though I can't really
say if that's necessarily wrong.

** Changed in: synapse-project
   Status: New => Invalid

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.
https://bugs.launchpad.net/bugs/695216

Title:
  Synapse should recognize djvu as a document format

Status in Synapse:
  Invalid
Status in Zeitgeist Framework:
  Fix Committed

Bug description:
  Synapse does not seem to recognize that djvu is a document format and
  does not show djvu files under the documents tab.

  A sample djvu file can, for instance, be found at

  http://leon.bottou.org/publications/djvu/tpami-2010.djvu

  BTW evince has no problems recognizing djvu files.



___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 689080] Re: Vim datasource results in error when editing files remotely

2011-01-27 Thread Michal Hruby
** Changed in: zeitgeist-dataproviders
   Status: New => Fix Committed

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Data-Sources.
https://bugs.launchpad.net/bugs/689080

Title:
  Vim datasource results in error when editing files remotely

Status in GNOME Activity Journal:
  Invalid
Status in Zeitgeist Data-Sources:
  Fix Committed

Bug description:
  Hi,

  With zeitgeist-datasource-vim installed, vim returns the following
  errors if I try to open vim in a SSH session:

  Error detected while processing /usr/share/vim/vim72/plugin/zeitgeist.vim:
  line   54:
  Traceback (most recent call last):
File "", line 9, in 
File "/usr/lib/pymodules/python2.6/zeitgeist/client.py", line 310, in 
__init__
  self._iface = ZeitgeistDBusInterface()
File "/usr/lib/pymodules/python2.6/zeitgeist/client.py", line 175, in 
__init__
  proxy = dbus.SessionBus().get_object(self.BUS_NAME,
File "/usr/lib/pymodules/python2.6/dbus/_dbus.py", line 219, in __new__
  mainloop=mainloop)
File "/usr/lib/pymodules/python2.6/dbus/_dbus.py", line 108, in __new__
  bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop)
File "/usr/lib/pymodules/python2.6/dbus/bus.py", line 125, in __new__
  bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
  dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ExecFailed: 
/bin/dbus-launch terminated abnormally with the following error: Autolaunch 
error: X11 initialization failed.

  
  All the best.



___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 601671] Re: firefox extension: still loging when in private mode

2011-01-27 Thread Michal Hruby
** Changed in: zeitgeist-dataproviders
   Status: Confirmed => Fix Committed

** Changed in: zeitgeist-dataproviders
 Assignee: (unassigned) => Stefano Candori (cando)

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Data-Sources.
https://bugs.launchpad.net/bugs/601671

Title:
  firefox extension: still loging when in private mode

Status in Zeitgeist Data-Sources:
  Fix Committed

Bug description:
  the new firefox extension (libzg) logs sites even in private mode. The
  previous one didn't do that



___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 672079] Re: can't install firefox extension, install script not found

2011-01-27 Thread Michal Hruby
The local install of FF extension was fixed as well.

** Changed in: zeitgeist-dataproviders
   Status: New => Fix Committed

** Changed in: zeitgeist-dataproviders
 Assignee: (unassigned) => Michal Hruby (mhr3)

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Data-Sources.
https://bugs.launchpad.net/bugs/672079

Title:
  can't install firefox extension, install script not found

Status in Zeitgeist Data-Sources:
  Fix Committed

Bug description:
  I may be terribly confused, but when the Zeitgeist add-on didn't show
  up in my list in FF 3.6.12 after a make local-install I tried
  installing it by dragging and dropping ZeitgeistDataProvider.xpi onto
  the FF window. It gave me a normal install add-on dialog, and after
  clicking install I got the following error:

  "Firefox could not install the file at

  file:///home/lyle/dev/zeitgeist/zeitgeist-dataproviders/firefox-
  libzg/ZeitgeistDataprovider.xpi

  because: Install script not found
  -204"

  I don't know a lot about FF extensions, but my understanding was that
  some form of install script (install.*) was required at the root of
  the xpi archive.



___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 668179] Re: Firefox data source logs site visits in Private Browsing mode

2011-01-27 Thread Michal Hruby
*** This bug is a duplicate of bug 601671 ***
https://bugs.launchpad.net/bugs/601671

** This bug has been marked a duplicate of bug 601671
   firefox extension: still loging when in private mode
 * You can subscribe to bug 601671 by following this link: 
https://bugs.launchpad.net/zeitgeist-dataproviders/+bug/601671/+subscribe

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Data-Sources.
https://bugs.launchpad.net/bugs/668179

Title:
  Firefox data source logs site visits in Private Browsing mode

Status in Zeitgeist Data-Sources:
  Confirmed

Bug description:
  Current Behavior: Sites are logged (and viewable in Gnome Activity
  Journal) by the Zeitgeist data source for Firefox while the browser is
  in Private Browsing mode.

  Expected Behavior: Sites visited in Private Browsing mode are not
  logged by the data source and are not viewable in Gnome Activity
  Journal etc.

  Steps to Replicate:
  1. Compile and install the Firefox data provider from Launchpad in trunk
  2. Launch Firefox and browse to a few pages
  3. Verify (through Gnome Activity Journal or other interfaces) that pages are 
being logged into Zeitgeist
  4. Switch to Private Browsing mode (Tools > Start Private Browsing)
  5. Browse to a few pages that are distinguishable from what you've viewed 
lately
  6. Exit private browsing mode
  7. Go back into Gnome Activity Journal (or Sezen, etc.) and see if the sites 
visited in Private Browsing mode are logged

  Software Versions:
  * Data source for Firefox (extension): 0.1 compiled from Launchpad trunk (but 
I'm unsure which revision—I'll compile the latest as soon as I can)
  * Firefox: 3.6.12 from the official Ubuntu repositories
  * Ubuntu 10.04 (Lucid).



___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 630593] Re: Replace old datahub with vala port

2011-02-09 Thread Michal Hruby
** Changed in: zeitgeist-datahub
   Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.
https://bugs.launchpad.net/bugs/630593

Title:
  Replace old datahub with vala port

Status in Zeitgeist Framework:
  Fix Released
Status in Zeitgeist Datahub:
  Fix Released

Bug description:
  Now with mhr3's vala datahub port, I think we should get rid of the
  python version ASAP.



___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 705944] Re: Synapse don't show any folders anymore

2011-02-11 Thread Michal Hruby
FTS should probably catch this and try to do something about it...

** Also affects: zeitgeist-extensions
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Zeitgeist
Extensions, which is the registrant for Zeitgeist Extensions.
https://bugs.launchpad.net/bugs/705944

Title:
  Synapse don't show any folders anymore

Status in Synapse:
  Invalid
Status in Zeitgeist Extensions:
  New

Bug description:
  Hallo,

  since a few days synapse does not show any folders anymore - of course
  I made sure that the directory plugin is enabled. I also disabled it,
  restarted synapse and enabled it again. It still did not work. The
  config.json file seems to be proper, too.

  Starting synapse from commandline, I get the following output each
  time I press any letter:

  ** (synapse:26138): WARNING **: zeitgeist-plugin.vala:574: Zeitgeist search 
failed: Remote Exception invoking org.gnome.zeitgeist.Index.Search() on 
/org/gnome/zeitgeist/index/activity at name org.gnome.zeitgeist.Engine: 
org.freedesktop.DBus.Python.xapian.DatabaseCorruptError: Traceback (most recent 
call last):
File "/usr/lib/pymodules/python2.6/dbus/service.py", line 702, in 
_message_cb
  retval = candidate_method(self, *args, **keywords)
File "/usr/share/zeitgeist/_zeitgeist/engine/extensions/fts.py", line 123, 
in Search
  offset, count, result_type)
File "/usr/share/zeitgeist/_zeitgeist/engine/extensions/fts.py", line 253, 
in search
  self.QUERY_PARSER_FLAGS)
  DatabaseCorruptError: Data ran out unexpectedly when reading posting list.
   org.freedesktop.DBus.Python.xapian.DatabaseCorruptError 
Traceback%20%28most%20recent%20call%20last%29%3A%0A%20%20File%20%22%2Fusr%2Flib%2Fpymodules%2Fpython2.6%2Fdbus%2Fservice.py%22%2C%20line%20702%2C%20in%20_message_cb%0A%20%20%20%20retval%20%3D%20candidate_method%28self%2C%20%2Aargs%2C%20%2A%2Akeywords%29%0A%20%20File%20%22%2Fusr%2Fshare%2Fzeitgeist%2F_zeitgeist%2Fengine%2Fextensions%2Ffts.py%22%2C%20line%20123%2C%20in%20Search%0A%20%20%20%20offset%2C%20count%2C%20result_type%29%0A%20%20File%20%22%2Fusr%2Fshare%2Fzeitgeist%2F_zeitgeist%2Fengine%2Fextensions%2Ffts.py%22%2C%20line%20253%2C%20in%20search%0A%20%20%20%20self.QUERY_PARSER_FLAGS%29%0ADatabaseCorruptError%3A%20Data%20ran%20out%20unexpectedly%20when%20reading%20posting%20list.%0A
  ** (synapse:26138): DEBUG: zeitgeist-plugin.vala:580: ZG search took 19 ms
  SynapseHybridSearchPlugin found 0 extra uris (ZG returned 0)

  I've tested synapse 0.2.2.1, 0.2.2.2 from your download section and I
  also tested the recent version from branch. The folders I tried to
  find were ordinary folders within the home-partition (like
  "Documents", "Music", "Desktop", "Videos").

  Sincerely,

  Daniel



___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 705944] Re: FTS index corruption

2011-02-16 Thread Michal Hruby
** Summary changed:

- Synapse don't show any folders anymore
+ FTS index corruption

-- 
You received this bug notification because you are a member of Zeitgeist
Extensions, which is the registrant for Zeitgeist Extensions.
https://bugs.launchpad.net/bugs/705944

Title:
  FTS index corruption

Status in Synapse:
  Invalid
Status in Zeitgeist Extensions:
  New

Bug description:
  Hallo,

  since a few days synapse does not show any folders anymore - of course
  I made sure that the directory plugin is enabled. I also disabled it,
  restarted synapse and enabled it again. It still did not work. The
  config.json file seems to be proper, too.

  Starting synapse from commandline, I get the following output each
  time I press any letter:

  ** (synapse:26138): WARNING **: zeitgeist-plugin.vala:574: Zeitgeist search 
failed: Remote Exception invoking org.gnome.zeitgeist.Index.Search() on 
/org/gnome/zeitgeist/index/activity at name org.gnome.zeitgeist.Engine: 
org.freedesktop.DBus.Python.xapian.DatabaseCorruptError: Traceback (most recent 
call last):
File "/usr/lib/pymodules/python2.6/dbus/service.py", line 702, in 
_message_cb
  retval = candidate_method(self, *args, **keywords)
File "/usr/share/zeitgeist/_zeitgeist/engine/extensions/fts.py", line 123, 
in Search
  offset, count, result_type)
File "/usr/share/zeitgeist/_zeitgeist/engine/extensions/fts.py", line 253, 
in search
  self.QUERY_PARSER_FLAGS)
  DatabaseCorruptError: Data ran out unexpectedly when reading posting list.
   org.freedesktop.DBus.Python.xapian.DatabaseCorruptError 
Traceback%20%28most%20recent%20call%20last%29%3A%0A%20%20File%20%22%2Fusr%2Flib%2Fpymodules%2Fpython2.6%2Fdbus%2Fservice.py%22%2C%20line%20702%2C%20in%20_message_cb%0A%20%20%20%20retval%20%3D%20candidate_method%28self%2C%20%2Aargs%2C%20%2A%2Akeywords%29%0A%20%20File%20%22%2Fusr%2Fshare%2Fzeitgeist%2F_zeitgeist%2Fengine%2Fextensions%2Ffts.py%22%2C%20line%20123%2C%20in%20Search%0A%20%20%20%20offset%2C%20count%2C%20result_type%29%0A%20%20File%20%22%2Fusr%2Fshare%2Fzeitgeist%2F_zeitgeist%2Fengine%2Fextensions%2Ffts.py%22%2C%20line%20253%2C%20in%20search%0A%20%20%20%20self.QUERY_PARSER_FLAGS%29%0ADatabaseCorruptError%3A%20Data%20ran%20out%20unexpectedly%20when%20reading%20posting%20list.%0A
  ** (synapse:26138): DEBUG: zeitgeist-plugin.vala:580: ZG search took 19 ms
  SynapseHybridSearchPlugin found 0 extra uris (ZG returned 0)

  I've tested synapse 0.2.2.1, 0.2.2.2 from your download section and I
  also tested the recent version from branch. The folders I tried to
  find were ordinary folders within the home-partition (like
  "Documents", "Music", "Desktop", "Videos").

  Sincerely,

  Daniel



___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 721226] Re: tomboy notes appear in GAJ but not in synapse, even when searching for note's title

2011-02-18 Thread Michal Hruby
This is probably a bug in Synapse, but I'd need an example ZG event
which the dataprovider logs...

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Data-Sources.
https://bugs.launchpad.net/bugs/721226

Title:
  tomboy notes appear in GAJ but not in synapse, even when searching for
  note's title

Status in Synapse:
  New
Status in Zeitgeist Data-Sources:
  New

Bug description:
  i post some screenshots from my todays work.
  Tomboy notes appear in gnome-activity-journal but the don't appear in 
synapse, even when searching by note's title.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 721226] Re: tomboy notes appear in GAJ but not in synapse, even when searching for note's title

2011-02-18 Thread Michal Hruby
** Changed in: synapse-project
   Status: New => Incomplete

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Data-Sources.
https://bugs.launchpad.net/bugs/721226

Title:
  tomboy notes appear in GAJ but not in synapse, even when searching for
  note's title

Status in Synapse:
  Incomplete
Status in Zeitgeist Data-Sources:
  New

Bug description:
  i post some screenshots from my todays work.
  Tomboy notes appear in gnome-activity-journal but the don't appear in 
synapse, even when searching by note's title.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 721226] Re: tomboy notes appear in GAJ but not in synapse, even when searching for note's title

2011-02-19 Thread Michal Hruby
Could you resolve also the subject uris? For example what is uri with id
4940?

SELECT * from uri WHERE uri.id='4940';

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Data-Sources.
https://bugs.launchpad.net/bugs/721226

Title:
  tomboy notes appear in GAJ but not in synapse, even when searching for
  note's title

Status in Synapse:
  New
Status in Zeitgeist Data-Sources:
  Invalid

Bug description:
  i post some screenshots from my todays work.
  Tomboy notes appear in gnome-activity-journal but the don't appear in 
synapse, even when searching by note's title.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 721226] Re: tomboy notes appear in GAJ but not in synapse, even when searching for note's title

2011-02-19 Thread Michal Hruby
So to sum up...

Event:
- interpretation: Create / Access / Leave / DeleteEvent
- manifestation: UserActivity
- actor: application://tomboy.desktop
- Subject #0:
  - url: note://tomboy/uuid
  - interpretation: Document
  - manifestation: FileDataObject
  - mimetype: application/x-note
  - origin: -
  - text: note text

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Data-Sources.
https://bugs.launchpad.net/bugs/721226

Title:
  tomboy notes appear in GAJ but not in synapse, even when searching for
  note's title

Status in Synapse:
  New
Status in Zeitgeist Data-Sources:
  Invalid

Bug description:
  i post some screenshots from my todays work.
  Tomboy notes appear in gnome-activity-journal but the don't appear in 
synapse, even when searching by note's title.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 721226] Re: tomboy notes appear in GAJ but not in synapse, even when searching for note's title

2011-02-19 Thread Michal Hruby
There's still an issue that deleted notes are still shown. We need to
special case this (and it should be simple as tomboy seems to save the
notes to ~/.local/share/tomboy/{note_id}.note

** Changed in: synapse-project
   Status: Fix Released => Confirmed

** Summary changed:

- tomboy notes appear in GAJ but not in synapse, even when searching for note's 
title
+ Deleted notes from tomboy still appear in Synapse

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Data-Sources.
https://bugs.launchpad.net/bugs/721226

Title:
  Deleted notes from tomboy still appear in Synapse

Status in Synapse:
  Confirmed
Status in Zeitgeist Data-Sources:
  Invalid

Bug description:
  i post some screenshots from my todays work.
  Tomboy notes appear in gnome-activity-journal but the don't appear in 
synapse, even when searching by note's title.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 721226] Re: Deleted notes from tomboy still appear in Synapse

2011-02-22 Thread Michal Hruby
** Changed in: synapse-project
   Status: Confirmed => Fix Committed

** Changed in: synapse-project
 Assignee: (unassigned) => Michal Hruby (mhr3)

** Changed in: synapse-project
Milestone: None => 0.2.4

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Data-Sources.
https://bugs.launchpad.net/bugs/721226

Title:
  Deleted notes from tomboy still appear in Synapse

Status in Synapse:
  Fix Committed
Status in Zeitgeist Data-Sources:
  Invalid

Bug description:
  i post some screenshots from my todays work.
  Tomboy notes appear in gnome-activity-journal but the don't appear in 
synapse, even when searching by note's title.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 721226] Re: Deleted notes from tomboy still appear in Synapse

2011-02-22 Thread Michal Hruby
** Changed in: synapse-project
   Importance: Undecided => Low

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Data-Sources.
https://bugs.launchpad.net/bugs/721226

Title:
  Deleted notes from tomboy still appear in Synapse

Status in Synapse:
  Fix Committed
Status in Zeitgeist Data-Sources:
  Invalid

Bug description:
  i post some screenshots from my todays work.
  Tomboy notes appear in gnome-activity-journal but the don't appear in 
synapse, even when searching by note's title.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 721226] Re: Deleted notes from tomboy still appear in Synapse

2011-02-23 Thread Michal Hruby
** Changed in: synapse-project
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Data-Sources.
https://bugs.launchpad.net/bugs/721226

Title:
  Deleted notes from tomboy still appear in Synapse

Status in Synapse:
  Fix Released
Status in Zeitgeist Data-Sources:
  Invalid

Bug description:
  i post some screenshots from my todays work.
  Tomboy notes appear in gnome-activity-journal but the don't appear in 
synapse, even when searching by note's title.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 772265] Re: The datahub starts zeitgeist-daemon on startup

2011-04-28 Thread Michal Hruby
@Mikkel: Could you check gio's AppLaunched signal? I mean all of this
can be done in vain if any AppLaunched signal is fired during the
session start.

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.
https://bugs.launchpad.net/bugs/772265

Title:
  The datahub starts zeitgeist-daemon on startup

Status in Zeitgeist Client Library:
  New
Status in Zeitgeist Framework:
  New
Status in Zeitgeist Datahub:
  New

Bug description:
  We have been advising distros put zeitgeist-datahub into the autostart
  section for the sessions. This is better in theory because this way we
  only start a native daemon on login and can defer the launching of the
  heavier Python process zeitgeist-daemon.

  Unfortunately zeitgeist-datahub does DBus activation of the zeitgeist-
  daemon on startup so we really don't get the benefits we wanted.
  Bootcharts from Ubuntu 11.04 indicates that ZG eats about 1s on the
  login time and I don't think that is acceptable for ZG in the longer
  run. That is - no catastrophe for 11.04, but we should fix this.

  (a related issue seems to be that the dbus activated zeitgeist-daemon
  seems to launch another datahub instance that then immediately becomes
  a zombie... ? :-/)

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


Re: [Zeitgeist] [Merge] lp:~zeitgeist/zeitgeist/bluebird_basedir into lp:~zeitgeist/zeitgeist/bluebird

2011-07-28 Thread Michal Hruby
Review: Needs Fixing
We don't need gio (File.*), use DirUtils.* functions, join paths with 
Path.build_filename ()
-- 
https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird_basedir/+merge/69658
Your team Zeitgeist Framework Team is subscribed to branch 
lp:~zeitgeist/zeitgeist/bluebird.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


Re: [Zeitgeist] [Merge] lp:~zeitgeist/zeitgeist/bluebird_basedir into lp:~zeitgeist/zeitgeist/bluebird

2011-07-28 Thread Michal Hruby
Review: Approve

-- 
https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird_basedir/+merge/69658
Your team Zeitgeist Framework Team is subscribed to branch 
lp:~zeitgeist/zeitgeist/bluebird.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


Re: [Zeitgeist] [Merge] lp:~zeitgeist/zeitgeist/symbols into lp:~zeitgeist/zeitgeist/bluebird

2011-07-31 Thread Michal Hruby
Review: Needs Fixing
I find the Symbol class just an implementation detail, there's no need to 
expose it at all, as RainCT said you'll want to use static functions with 
signature like `string[] Symbol.get_children (string uri)`, or `string 
Symbol.get_description (string uri)` (of course we can use different container, 
not just array of strings, but ultimately why not make it simple - the only 
reason that comes to mind would be API compatibility with current libzg).
-- 
https://code.launchpad.net/~zeitgeist/zeitgeist/symbols/+merge/69927
Your team Zeitgeist Framework Team is subscribed to branch 
lp:~zeitgeist/zeitgeist/bluebird.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


Re: [Zeitgeist] [Merge] lp:~zeitgeist/zeitgeist/symbols into lp:~zeitgeist/zeitgeist/bluebird

2011-08-01 Thread Michal Hruby
Review: Needs Fixing
Since you made get_parents return all parents, there's now no way to get the 
immediate parents and therefore reconstruct the original ontology graph easily. 
Fix pls...
-- 
https://code.launchpad.net/~zeitgeist/zeitgeist/symbols/+merge/69927
Your team Zeitgeist Framework Team is subscribed to branch 
lp:~zeitgeist/zeitgeist/bluebird.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


Re: [Zeitgeist] [Merge] lp:~zeitgeist/zeitgeist/symbols into lp:~zeitgeist/zeitgeist/bluebird

2011-08-01 Thread Michal Hruby
Review: Needs Fixing
My point is that the Symbol class itself shouldn't even be public, it should be 
something private to this source file.

Method that this file needs to expose are (all of them are static):

List Symbol.get_parents (string uri)
List Symbol.get_children (string uri)
List Symbol.get_all_children (string uri)
bool Symbol.is_a (string uri, string parent_uri)

string Symbol.get_display_name (string uri)
string Symbol.get_... (string uri)

and of course to make all of this usable:
void Symbol.register(string uri, string display_name, string[] parents, ...)
-- 
https://code.launchpad.net/~zeitgeist/zeitgeist/symbols/+merge/69927
Your team Zeitgeist Framework Team is subscribed to branch 
lp:~zeitgeist/zeitgeist/bluebird.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 826388] Re: Chrome extension reports no data to activity journal

2011-08-14 Thread Michal Hruby
This was fixed in latest revision.

** Changed in: zeitgeist-datasources
   Status: New => Fix Committed

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Data-Sources.
https://bugs.launchpad.net/bugs/826388

Title:
  Chrome extension reports no data to activity journal

Status in Zeitgeist Data-Sources:
  Fix Committed

Bug description:
  I'm using v0.8 of the datasources, built from source, v0.8 of all
  other Zeitgeist components (from the ppa), chrome 13.0.782.112 from
  google's repo. All in Natty.

  The Zeitgeist plugin for chrome is running and shows up in the chrome
  task manager.

  However, no events from chrome appear in activity journal. I've
  included the terminal output from chrome as an attachment. If I run
  zeitgeist-daemon in a terminal it reports nothing, whilst zeigeist-
  datahub picks up chrome opening, with something like '**
  (process:30787): DEBUG: zeitgeist-datahub.vala:174: Inserting 1
  events'.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zeitgeist-datasources/+bug/826388/+subscriptions

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 844877] [NEW] Query execution slow

2011-09-08 Thread Michal Hruby
Public bug reported:

Synapse is using various not-so-complex find_events queries to display
recent activities, and it seems that especially a query for "All"
category is taking much longer than any other query (~750ms with a DB
with 200k events).

Here's the output from zg with the debug_sql extension:

[DEBUG - root] # parameters: {'event_templates': 
[Event([dbus.Array([dbus.String(u''), '1315492708863', dbus.String(u''), 
dbus.String(u''), dbus.String(u''), ''], signature=dbus.Signature('s')), 
[Subject([dbus.String(u''), dbus.String(u''), dbus.String(u''), 
dbus.String(u''), dbus.String(u''), dbus.String(u''), dbus.String(u''), 
dbus.String(u'')]), Subject([dbus.String(u''), 
dbus.String(u'!http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#Folder'),
 dbus.String(u''), dbus.String(u''), dbus.String(u''), dbus.String(u''), 
dbus.String(u''), dbus.String(u'')]), Subject([dbus.String(u''), 
dbus.String(u'!http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#Software'),
 dbus.String(u''), dbus.String(u''), dbus.String(u''), dbus.String(u''), 
dbus.String(u''), dbus.String(u'')])], dbus.Array([], 
signature=dbus.Signature('y'))])],
 'max_events': dbus.UInt32(96L),
 'order': dbus.UInt32(2L),
 'return_mode': 1,
 'self': <_zeitgeist.engine.main.ZeitgeistEngine instance at 0x1b66248>,
 'sender': ':1.3604',
 'storage_state': dbus.UInt32(2L),
 'time_range': [1300977508860, 9223372036854775807]}

[DEBUG - root] # database size: {'actor': 129,
 'event': 192746,
 'interpretation': 68,
 'manifestation': 27,
 'mimetype': 353,
 'uri': 60265}
[DEBUG - root] # BEGIN SQL QUERY #
no pretty sql: SELECT id FROM event_view
NATURAL JOIN (
SELECT subj_id,
max(timestamp) AS timestamp

FROM event_view  WHERE (+timestamp >= ? 
AND ((NOT (subj_interpretation = ?) AND NOT (subj_interpretation = ? OR 
subj_interpretation = ? OR subj_interpretation = ?
GROUP BY subj_id)
GROUP BY subj_id
ORDER BY  timestamp DESC
 LIMIT 96 : [1300977508860, 45, 46, 47, 43]
took 0.712120s
# END SQL QUERY
[DEBUG - zeitgeist.engine] Found 96 events IDs in 0.723284s

** Affects: zeitgeist
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.
https://bugs.launchpad.net/bugs/844877

Title:
  Query execution slow

Status in Zeitgeist Framework:
  New

Bug description:
  Synapse is using various not-so-complex find_events queries to display
  recent activities, and it seems that especially a query for "All"
  category is taking much longer than any other query (~750ms with a DB
  with 200k events).

  Here's the output from zg with the debug_sql extension:

  [DEBUG - root] # parameters: {'event_templates': 
[Event([dbus.Array([dbus.String(u''), '1315492708863', dbus.String(u''), 
dbus.String(u''), dbus.String(u''), ''], signature=dbus.Signature('s')), 
[Subject([dbus.String(u''), dbus.String(u''), dbus.String(u''), 
dbus.String(u''), dbus.String(u''), dbus.String(u''), dbus.String(u''), 
dbus.String(u'')]), Subject([dbus.String(u''), 
dbus.String(u'!http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#Folder'),
 dbus.String(u''), dbus.String(u''), dbus.String(u''), dbus.String(u''), 
dbus.String(u''), dbus.String(u'')]), Subject([dbus.String(u''), 
dbus.String(u'!http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#Software'),
 dbus.String(u''), dbus.String(u''), dbus.String(u''), dbus.String(u''), 
dbus.String(u''), dbus.String(u'')])], dbus.Array([], 
signature=dbus.Signature('y'))])],
   'max_events': dbus.UInt32(96L),
   'order': dbus.UInt32(2L),
   'return_mode': 1,
   'self': <_zeitgeist.engine.main.ZeitgeistEngine instance at 0x1b66248>,
   'sender': ':1.3604',
   'storage_state': dbus.UInt32(2L),
   'time_range': [1300977508860, 9223372036854775807]}

  [DEBUG - root] # database size: {'actor': 129,
   'event': 192746,
   'interpretation': 68,
   'manifestation': 27,
   'mimetype': 353,
   'uri': 60265}
  [DEBUG - root] # BEGIN SQL QUERY #
  no pretty sql: SELECT id FROM event_view
NATURAL JOIN (
SELECT subj_id,
max(timestamp) AS timestamp

FROM event_view  WHERE (+timestamp >= ? 
AND ((NOT (subj_interpretation = ?) AND NOT (subj_interpretation = ? OR 
subj_interpretation = ? OR subj_interpretation = ?
GROUP BY subj_id)
GROUP BY subj_id
ORDER BY  timest

Re: [Zeitgeist] [Merge] lp:~zeitgeist/zeitgeist/some-fixes into lp:~zeitgeist/zeitgeist/bluebird

2011-09-11 Thread Michal Hruby
Review: Needs Fixing

[Merge line numbers as here on LP]

[15,29]: I don't like those methods being public in datamodel, it's an 
implementation detail.
[190,221,247,256]: Missing space before '('
[238]: It doesn't seem to be fixed. :P

Not really sure what to do about the first one, I'd rather have it inside 
Engine (public static) for the time being.
-- 
https://code.launchpad.net/~zeitgeist/zeitgeist/some-fixes/+merge/74927
Your team Zeitgeist Framework Team is subscribed to branch 
lp:~zeitgeist/zeitgeist/bluebird.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


Re: [Zeitgeist] [Merge] lp:~zeitgeist/zeitgeist/some-fixes into lp:~zeitgeist/zeitgeist/bluebird

2011-09-11 Thread Michal Hruby
Oh and also [19]: it doesn't need any fix, it'll be working fine.
-- 
https://code.launchpad.net/~zeitgeist/zeitgeist/some-fixes/+merge/74927
Your team Zeitgeist Framework Team is subscribed to branch 
lp:~zeitgeist/zeitgeist/bluebird.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 844877] Re: Query execution slow

2011-09-18 Thread Michal Hruby
Ok, I've got another VERY bad one... See attachement

** Attachment added: "query.log"
   
https://bugs.launchpad.net/zeitgeist/+bug/844877/+attachment/2421293/+files/query.log

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.
https://bugs.launchpad.net/bugs/844877

Title:
  Query execution slow

Status in Zeitgeist Framework:
  New

Bug description:
  Synapse is using various not-so-complex find_events queries to display
  recent activities, and it seems that especially a query for "All"
  category is taking much longer than any other query (~750ms with a DB
  with 200k events).

  Here's the output from zg with the debug_sql extension:

  [DEBUG - root] # parameters: {'event_templates': 
[Event([dbus.Array([dbus.String(u''), '1315492708863', dbus.String(u''), 
dbus.String(u''), dbus.String(u''), ''], signature=dbus.Signature('s')), 
[Subject([dbus.String(u''), dbus.String(u''), dbus.String(u''), 
dbus.String(u''), dbus.String(u''), dbus.String(u''), dbus.String(u''), 
dbus.String(u'')]), Subject([dbus.String(u''), 
dbus.String(u'!http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#Folder'),
 dbus.String(u''), dbus.String(u''), dbus.String(u''), dbus.String(u''), 
dbus.String(u''), dbus.String(u'')]), Subject([dbus.String(u''), 
dbus.String(u'!http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#Software'),
 dbus.String(u''), dbus.String(u''), dbus.String(u''), dbus.String(u''), 
dbus.String(u''), dbus.String(u'')])], dbus.Array([], 
signature=dbus.Signature('y'))])],
   'max_events': dbus.UInt32(96L),
   'order': dbus.UInt32(2L),
   'return_mode': 1,
   'self': <_zeitgeist.engine.main.ZeitgeistEngine instance at 0x1b66248>,
   'sender': ':1.3604',
   'storage_state': dbus.UInt32(2L),
   'time_range': [1300977508860, 9223372036854775807]}

  [DEBUG - root] # database size: {'actor': 129,
   'event': 192746,
   'interpretation': 68,
   'manifestation': 27,
   'mimetype': 353,
   'uri': 60265}
  [DEBUG - root] # BEGIN SQL QUERY #
  no pretty sql: SELECT id FROM event_view
NATURAL JOIN (
SELECT subj_id,
max(timestamp) AS timestamp

FROM event_view  WHERE (+timestamp >= ? 
AND ((NOT (subj_interpretation = ?) AND NOT (subj_interpretation = ? OR 
subj_interpretation = ? OR subj_interpretation = ?
GROUP BY subj_id)
GROUP BY subj_id
ORDER BY  timestamp DESC
 LIMIT 96 : [1300977508860, 45, 46, 47, 43]
  took 0.712120s
  # END SQL QUERY
  [DEBUG - zeitgeist.engine] Found 96 events IDs in 0.723284s

To manage notifications about this bug go to:
https://bugs.launchpad.net/zeitgeist/+bug/844877/+subscriptions

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 844877] Re: Query execution slow

2011-09-18 Thread Michal Hruby
As a note the result is pretty much still the same after seif's fix to
get rid of the "AND subj_current_uri = ..." part.

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.
https://bugs.launchpad.net/bugs/844877

Title:
  Query execution slow

Status in Zeitgeist Framework:
  New

Bug description:
  Synapse is using various not-so-complex find_events queries to display
  recent activities, and it seems that especially a query for "All"
  category is taking much longer than any other query (~750ms with a DB
  with 200k events).

  Here's the output from zg with the debug_sql extension:

  [DEBUG - root] # parameters: {'event_templates': 
[Event([dbus.Array([dbus.String(u''), '1315492708863', dbus.String(u''), 
dbus.String(u''), dbus.String(u''), ''], signature=dbus.Signature('s')), 
[Subject([dbus.String(u''), dbus.String(u''), dbus.String(u''), 
dbus.String(u''), dbus.String(u''), dbus.String(u''), dbus.String(u''), 
dbus.String(u'')]), Subject([dbus.String(u''), 
dbus.String(u'!http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#Folder'),
 dbus.String(u''), dbus.String(u''), dbus.String(u''), dbus.String(u''), 
dbus.String(u''), dbus.String(u'')]), Subject([dbus.String(u''), 
dbus.String(u'!http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#Software'),
 dbus.String(u''), dbus.String(u''), dbus.String(u''), dbus.String(u''), 
dbus.String(u''), dbus.String(u'')])], dbus.Array([], 
signature=dbus.Signature('y'))])],
   'max_events': dbus.UInt32(96L),
   'order': dbus.UInt32(2L),
   'return_mode': 1,
   'self': <_zeitgeist.engine.main.ZeitgeistEngine instance at 0x1b66248>,
   'sender': ':1.3604',
   'storage_state': dbus.UInt32(2L),
   'time_range': [1300977508860, 9223372036854775807]}

  [DEBUG - root] # database size: {'actor': 129,
   'event': 192746,
   'interpretation': 68,
   'manifestation': 27,
   'mimetype': 353,
   'uri': 60265}
  [DEBUG - root] # BEGIN SQL QUERY #
  no pretty sql: SELECT id FROM event_view
NATURAL JOIN (
SELECT subj_id,
max(timestamp) AS timestamp

FROM event_view  WHERE (+timestamp >= ? 
AND ((NOT (subj_interpretation = ?) AND NOT (subj_interpretation = ? OR 
subj_interpretation = ? OR subj_interpretation = ?
GROUP BY subj_id)
GROUP BY subj_id
ORDER BY  timestamp DESC
 LIMIT 96 : [1300977508860, 45, 46, 47, 43]
  took 0.712120s
  # END SQL QUERY
  [DEBUG - zeitgeist.engine] Found 96 events IDs in 0.723284s

To manage notifications about this bug go to:
https://bugs.launchpad.net/zeitgeist/+bug/844877/+subscriptions

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 844877] Re: Query execution slow

2011-09-18 Thread Michal Hruby
And more research:

 i just tried two queries in `sqlite3`
 SELECT subj_id FROM event_view WHERE subj_uri IN 
('application://gedit.desktop', 'application://firefox.desktop', 
'application://devhelp.desktop', 'application://google-chrome.desktop', 
'application://dfeet.desktop', 'http://twitter.com/', 
'file:///home/miso/projects/checkout/gnome/glib/glib/gquark.h', 
'http://www.google.cz/search?sourceid=chrome&ie=UTF-8&q=youtube+darky+rom+10.2')
 GROUP BY subj_id;
 and
 SELECT id FROM uri WHERE value IN ('application://gedit.desktop', 
'application://firefox.desktop', 'application://devhelp.desktop', 
'application://google-chrome.desktop', 'application://dfeet.desktop', 
'http://twitter.com/', 
'file:///home/miso/projects/checkout/gnome/glib/glib/gquark.h', 
'http://www.google.cz/search?sourceid=chrome&ie=UTF-8&q=youtube+darky+rom+10.2');
 the second one is much much much faster (also there's no visible 
difference between "... OR value = '...' OR ..." and "IN ('...', ...)")

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.
https://bugs.launchpad.net/bugs/844877

Title:
  Query execution slow

Status in Zeitgeist Framework:
  New

Bug description:
  Synapse is using various not-so-complex find_events queries to display
  recent activities, and it seems that especially a query for "All"
  category is taking much longer than any other query (~750ms with a DB
  with 200k events).

  Here's the output from zg with the debug_sql extension:

  [DEBUG - root] # parameters: {'event_templates': 
[Event([dbus.Array([dbus.String(u''), '1315492708863', dbus.String(u''), 
dbus.String(u''), dbus.String(u''), ''], signature=dbus.Signature('s')), 
[Subject([dbus.String(u''), dbus.String(u''), dbus.String(u''), 
dbus.String(u''), dbus.String(u''), dbus.String(u''), dbus.String(u''), 
dbus.String(u'')]), Subject([dbus.String(u''), 
dbus.String(u'!http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#Folder'),
 dbus.String(u''), dbus.String(u''), dbus.String(u''), dbus.String(u''), 
dbus.String(u''), dbus.String(u'')]), Subject([dbus.String(u''), 
dbus.String(u'!http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#Software'),
 dbus.String(u''), dbus.String(u''), dbus.String(u''), dbus.String(u''), 
dbus.String(u''), dbus.String(u'')])], dbus.Array([], 
signature=dbus.Signature('y'))])],
   'max_events': dbus.UInt32(96L),
   'order': dbus.UInt32(2L),
   'return_mode': 1,
   'self': <_zeitgeist.engine.main.ZeitgeistEngine instance at 0x1b66248>,
   'sender': ':1.3604',
   'storage_state': dbus.UInt32(2L),
   'time_range': [1300977508860, 9223372036854775807]}

  [DEBUG - root] # database size: {'actor': 129,
   'event': 192746,
   'interpretation': 68,
   'manifestation': 27,
   'mimetype': 353,
   'uri': 60265}
  [DEBUG - root] # BEGIN SQL QUERY #
  no pretty sql: SELECT id FROM event_view
NATURAL JOIN (
SELECT subj_id,
max(timestamp) AS timestamp

FROM event_view  WHERE (+timestamp >= ? 
AND ((NOT (subj_interpretation = ?) AND NOT (subj_interpretation = ? OR 
subj_interpretation = ? OR subj_interpretation = ?
GROUP BY subj_id)
GROUP BY subj_id
ORDER BY  timestamp DESC
 LIMIT 96 : [1300977508860, 45, 46, 47, 43]
  took 0.712120s
  # END SQL QUERY
  [DEBUG - zeitgeist.engine] Found 96 events IDs in 0.723284s

To manage notifications about this bug go to:
https://bugs.launchpad.net/zeitgeist/+bug/844877/+subscriptions

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 844877] Re: Query execution slow

2011-09-18 Thread Michal Hruby
And concluding:

SELECT subj_id, max(timestamp) AS timestamp
   FROM event_view
   WHERE (((subj_uri = 'application://gedit.desktop')
   OR (subj_uri = 'application://devhelp.desktop')
   OR (subj_uri = 'application://google-chrome.desktop') OR ...
   GROUP BY subj_id;

executes in 20seconds here.

On the other hand:
SELECT subj_id, max(timestamp) FROM event_view WHERE subj_id IN
   (SELECT id
  FROM uri
  WHERE (((value = 'application://gedit.desktop')
  OR (value = 'application://devhelp.desktop')
  OR (value = 'application://google-chrome.desktop') OR ...)
   GROUP BY subj_id;

executes immediately. Of course results are equivalent.

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.
https://bugs.launchpad.net/bugs/844877

Title:
  Query execution slow

Status in Zeitgeist Framework:
  New

Bug description:
  Synapse is using various not-so-complex find_events queries to display
  recent activities, and it seems that especially a query for "All"
  category is taking much longer than any other query (~750ms with a DB
  with 200k events).

  Here's the output from zg with the debug_sql extension:

  [DEBUG - root] # parameters: {'event_templates': 
[Event([dbus.Array([dbus.String(u''), '1315492708863', dbus.String(u''), 
dbus.String(u''), dbus.String(u''), ''], signature=dbus.Signature('s')), 
[Subject([dbus.String(u''), dbus.String(u''), dbus.String(u''), 
dbus.String(u''), dbus.String(u''), dbus.String(u''), dbus.String(u''), 
dbus.String(u'')]), Subject([dbus.String(u''), 
dbus.String(u'!http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#Folder'),
 dbus.String(u''), dbus.String(u''), dbus.String(u''), dbus.String(u''), 
dbus.String(u''), dbus.String(u'')]), Subject([dbus.String(u''), 
dbus.String(u'!http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#Software'),
 dbus.String(u''), dbus.String(u''), dbus.String(u''), dbus.String(u''), 
dbus.String(u''), dbus.String(u'')])], dbus.Array([], 
signature=dbus.Signature('y'))])],
   'max_events': dbus.UInt32(96L),
   'order': dbus.UInt32(2L),
   'return_mode': 1,
   'self': <_zeitgeist.engine.main.ZeitgeistEngine instance at 0x1b66248>,
   'sender': ':1.3604',
   'storage_state': dbus.UInt32(2L),
   'time_range': [1300977508860, 9223372036854775807]}

  [DEBUG - root] # database size: {'actor': 129,
   'event': 192746,
   'interpretation': 68,
   'manifestation': 27,
   'mimetype': 353,
   'uri': 60265}
  [DEBUG - root] # BEGIN SQL QUERY #
  no pretty sql: SELECT id FROM event_view
NATURAL JOIN (
SELECT subj_id,
max(timestamp) AS timestamp

FROM event_view  WHERE (+timestamp >= ? 
AND ((NOT (subj_interpretation = ?) AND NOT (subj_interpretation = ? OR 
subj_interpretation = ? OR subj_interpretation = ?
GROUP BY subj_id)
GROUP BY subj_id
ORDER BY  timestamp DESC
 LIMIT 96 : [1300977508860, 45, 46, 47, 43]
  took 0.712120s
  # END SQL QUERY
  [DEBUG - zeitgeist.engine] Found 96 events IDs in 0.723284s

To manage notifications about this bug go to:
https://bugs.launchpad.net/zeitgeist/+bug/844877/+subscriptions

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 716503] Re: FTS: can't get more than 132 results

2011-09-22 Thread Michal Hruby
@RainCT: Ehm, I dunno, seems like you opened this bug :)

-- 
You received this bug notification because you are a member of Zeitgeist
Extensions, which is the registrant for Zeitgeist Extensions.
https://bugs.launchpad.net/bugs/716503

Title:
  FTS: can't get more than 132 results

Status in Zeitgeist Framework:
  New
Status in Zeitgeist Extensions:
  Invalid

Bug description:
  The FTS extension uses SQLite's argument parsing, which limits the
  results to 132 distinct URIs. FTS should workaround this restriction
  like Zeitgeist itself already does.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zeitgeist/+bug/716503/+subscriptions

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


Re: [Zeitgeist] [Merge] lp:~zeitgeist/zeitgeist/bb-extensions-conf into lp:~zeitgeist/zeitgeist/bluebird

2011-09-25 Thread Michal Hruby
Review: Approve

1) I'd get rid of the get_name method, we can just use get_type().name()
2) if the extension needed something special, store/retrieve could be virtual

Other than that it looks fine, feel free to merge!
-- 
https://code.launchpad.net/~zeitgeist/zeitgeist/bb-extensions-conf/+merge/76902
Your team Zeitgeist Framework Team is subscribed to branch 
lp:~zeitgeist/zeitgeist/bluebird.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 860362] [NEW] FTS doesn't index paths correctly

2011-09-27 Thread Michal Hruby
Public bug reported:

There's a bug in scheme branching in fts (~line 610) which cause file://
uris to truncate and index the same way as http and other uris.

** Affects: zeitgeist-extensions
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Zeitgeist
Extensions, which is the registrant for Zeitgeist Extensions.
https://bugs.launchpad.net/bugs/860362

Title:
  FTS doesn't index paths correctly

Status in Zeitgeist Extensions:
  New

Bug description:
  There's a bug in scheme branching in fts (~line 610) which cause
  file:// uris to truncate and index the same way as http and other
  uris.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zeitgeist-extensions/+bug/860362/+subscriptions

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Merge] lp:~mhr3/zeitgeist-extensions/scheme-detection into lp:zeitgeist-extensions

2011-09-29 Thread Michal Hruby
Michal Hruby has proposed merging 
lp:~mhr3/zeitgeist-extensions/scheme-detection into lp:zeitgeist-extensions.

Requested reviews:
  Zeitgeist Extensions (zeitgeist-extensions)

For more details, see:
https://code.launchpad.net/~mhr3/zeitgeist-extensions/scheme-detection/+merge/77481


-- 
https://code.launchpad.net/~mhr3/zeitgeist-extensions/scheme-detection/+merge/77481
Your team Zeitgeist Extensions is requested to review the proposed merge of 
lp:~mhr3/zeitgeist-extensions/scheme-detection into lp:zeitgeist-extensions.
=== modified file 'fts/fts.py'
--- fts/fts.py	2011-09-07 08:42:40 +
+++ fts/fts.py	2011-09-29 08:47:25 +
@@ -62,6 +62,7 @@
 log = logging.getLogger("zeitgeist.fts")
 
 INDEX_FILE = os.path.join(constants.DATA_PATH, "fts.index")
+INDEX_VERSION = "1"
 INDEX_LOCK = threading.Lock()
 FTS_DBUS_OBJECT_PATH = "/org/gnome/zeitgeist/index/activity"
 FTS_DBUS_INTERFACE = "org.gnome.zeitgeist.Index"
@@ -320,6 +321,9 @@
 			# force of a reindex
 			log.info("Index built without CJK support. Upgrading index")
 			self._queue.put(Reindex(self._engine))
+		elif self._index.get_metadata("fts_index_version") != INDEX_VERSION:
+			log.info("Index must be upgraded. Doing full rebuild")
+			self._queue.put(Reindex(self._engine))
 		elif self._index.get_doccount() == 0:
 			# If the index is empty we trigger a rebuild
 			# We must delay reindexing until after the engine is done setting up
@@ -472,7 +476,8 @@
 		self._index = xapian.WritableDatabase(INDEX_FILE, xapian.DB_CREATE_OR_OVERWRITE)
 		self._query_parser.set_database (self._index)
 		self._enquire = xapian.Enquire(self._index)
-		
+	
+		self._index.set_metadata("fts_index_version", INDEX_VERSION)
 		# Register that this index was built with CJK enabled
 		if "XAPIAN_CJK_NGRAM" in os.environ :
 			self._index.set_metadata("cjk_ngram", "1")
@@ -607,7 +612,7 @@
 		# usually web URIs, are indexed in another way because there may
 		# be domain name etc. in there we want to rank differently
 		scheme, host, path = self._split_uri (url_unescape (uri))
-		if scheme == "file://" or not scheme:
+		if scheme == "file" or not scheme:
 			path, name = os.path.split(path)
 			self._tokenizer.index_text(name, 5)
 			self._tokenizer.index_text(name, 5, "N")
@@ -617,9 +622,9 @@
 			while path and name:
 weight = weight / 1.5
 path, name = os.path.split(path)
-self._tokenizer.index_text(name, weight)
+self._tokenizer.index_text(name, int(weight))
 			
-		elif scheme == "mailto:":
+		elif scheme == "mailto":
 			tokens = host.split("@")
 			name = tokens[0]
 			self._tokenizer.index_text(name, 6)

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 860362] Re: FTS doesn't index paths correctly

2011-09-29 Thread Michal Hruby
** Branch linked: lp:~mhr3/zeitgeist-extensions/scheme-detection

-- 
You received this bug notification because you are a member of Zeitgeist
Extensions, which is the registrant for Zeitgeist Extensions.
https://bugs.launchpad.net/bugs/860362

Title:
  FTS doesn't index paths correctly

Status in Zeitgeist Extensions:
  Triaged

Bug description:
  There's a bug in scheme branching in fts (~line 610) which cause
  file:// uris to truncate and index the same way as http and other
  uris.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zeitgeist-extensions/+bug/860362/+subscriptions

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 862333] Re: Add version metadata to FTS index

2011-10-03 Thread Michal Hruby
** Changed in: zeitgeist-extensions
Milestone: None => fts-0.0.13

** Changed in: zeitgeist-extensions
   Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Zeitgeist
Extensions, which is the registrant for Zeitgeist Extensions.
https://bugs.launchpad.net/bugs/862333

Title:
  Add version metadata to FTS index

Status in Zeitgeist Extensions:
  Fix Released
Status in “zeitgeist-extensions” package in Ubuntu:
  In Progress

Bug description:
  The Xapian index for the FTS extension should add version metadata to
  more easily and cleanly facilitate re-indexing when needed

To manage notifications about this bug go to:
https://bugs.launchpad.net/zeitgeist-extensions/+bug/862333/+subscriptions

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 860362] Re: FTS doesn't index paths correctly

2011-10-03 Thread Michal Hruby
** Changed in: zeitgeist-extensions
Milestone: None => fts-0.0.13

** Changed in: zeitgeist-extensions
   Status: Triaged => Fix Released

-- 
You received this bug notification because you are a member of Zeitgeist
Extensions, which is the registrant for Zeitgeist Extensions.
https://bugs.launchpad.net/bugs/860362

Title:
  FTS doesn't index paths correctly

Status in Zeitgeist Extensions:
  Fix Released
Status in “zeitgeist-extensions” package in Ubuntu:
  Triaged

Bug description:
  There's a bug in scheme branching in fts (~line 610) which cause
  file:// uris to truncate and index the same way as http and other
  uris.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zeitgeist-extensions/+bug/860362/+subscriptions

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 841922] Re: zeitgeist-daemon crashed with DocNotFoundError in _check_index_and_start_worker(): Document 5 not found

2011-10-03 Thread Michal Hruby
** Also affects: zeitgeist-extensions
   Importance: Undecided
   Status: New

** Changed in: zeitgeist-extensions
Milestone: None => fts-0.0.13

** Changed in: zeitgeist-extensions
 Assignee: (unassigned) => Michal Hruby (mhr3)

** Changed in: zeitgeist-extensions
   Status: New => Fix Committed

** Changed in: zeitgeist-extensions
   Importance: Undecided => High

** Changed in: zeitgeist-extensions
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Zeitgeist
Extensions, which is the registrant for Zeitgeist Extensions.
https://bugs.launchpad.net/bugs/841922

Title:
  zeitgeist-daemon crashed with DocNotFoundError in
  _check_index_and_start_worker(): Document 5 not found

Status in Zeitgeist Extensions:
  Fix Released
Status in “zeitgeist” package in Ubuntu:
  Confirmed
Status in “zeitgeist” source package in Oneiric:
  Confirmed

Bug description:
  still crashes on logon after the required package update

  ProblemType: Crash
  DistroRelease: Ubuntu 11.10
  Package: zeitgeist-core 0.8.1.1-1
  ProcVersionSignature: Ubuntu 3.0.0-10.16-generic 3.0.4
  Uname: Linux 3.0.0-10-generic i686
  Architecture: i386
  Date: Mon Sep  5 16:52:18 2011
  ExecutablePath: /usr/bin/zeitgeist-daemon
  InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
  InterpreterPath: /usr/bin/python2.7
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python /usr/bin/zeitgeist-daemon
  ProcEnviron:
   SHELL=/bin/bash
   PATH=(custom, no user)
   LANG=sk_SK.UTF-8
  PythonArgs: ['/usr/bin/zeitgeist-daemon']
  SourcePackage: zeitgeist
  Title: zeitgeist-daemon crashed with DocNotFoundError in 
_check_index_and_start_worker(): Document 5 not found
  Traceback:
   Traceback (most recent call last):
 File "/usr/share/zeitgeist/_zeitgeist/engine/extensions/fts.py", line 282, 
in _check_index_and_start_worker
   hits = self._enquire.get_mset (0, 1)
   DocNotFoundError: Document 5 not found
  UpgradeStatus: Upgraded to oneiric on 2011-08-29 (7 days ago)
  UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

To manage notifications about this bug go to:
https://bugs.launchpad.net/zeitgeist-extensions/+bug/841922/+subscriptions

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 839740] Re: zeitgeist-daemon crashed with RuntimeError in _check_index(): basic_string::assign

2011-10-03 Thread Michal Hruby
** Changed in: zeitgeist-extensions
Milestone: fts-0.0.12 => fts-0.0.13

** Changed in: zeitgeist-extensions
   Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of Zeitgeist
Extensions, which is the registrant for Zeitgeist Extensions.
https://bugs.launchpad.net/bugs/839740

Title:
  zeitgeist-daemon crashed with RuntimeError in _check_index():
  basic_string::assign

Status in Zeitgeist Extensions:
  Fix Released
Status in “zeitgeist-extensions” package in Ubuntu:
  Confirmed
Status in “zeitgeist-extensions” source package in Oneiric:
  Confirmed

Bug description:
  Crash occured while using Opera.

  Ubuntu 11.10 Beta 1
  Zeitgeist 0.8.1.1-1

  ProblemType: Crash
  DistroRelease: Ubuntu 11.10
  Package: zeitgeist-core 0.8.1.1-1
  ProcVersionSignature: Ubuntu 3.0.0-9.15-generic 3.0.3
  Uname: Linux 3.0.0-9-generic i686
  Architecture: i386
  Date: Fri Sep  2 18:02:19 2011
  ExecutablePath: /usr/bin/zeitgeist-daemon
  InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta i386 (20110901)
  InterpreterPath: /usr/bin/python2.7
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python /usr/bin/zeitgeist-daemon
  ProcEnviron:
   SHELL=/bin/bash
   PATH=(custom, no user)
   LANGUAGE=en_GB:en
   LANG=en_GB.UTF-8
  PythonArgs: ['/usr/bin/zeitgeist-daemon']
  SourcePackage: zeitgeist
  Title: zeitgeist-daemon crashed with RuntimeError in _check_index(): 
basic_string::assign
  Traceback:
   Traceback (most recent call last):
 File "/usr/share/zeitgeist/_zeitgeist/engine/extensions/fts.py", line 283, 
in _check_index
   hits = self._enquire.get_mset (0, 1)
   RuntimeError: basic_string::assign
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

To manage notifications about this bug go to:
https://bugs.launchpad.net/zeitgeist-extensions/+bug/839740/+subscriptions

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 841922] Re: zeitgeist-daemon crashed with DocNotFoundError in _check_index_and_start_worker(): Document 5 not found

2011-10-03 Thread Michal Hruby
** Changed in: zeitgeist (Ubuntu Oneiric)
   Status: Confirmed => Fix Released

** Changed in: zeitgeist (Ubuntu Oneiric)
 Assignee: (unassigned) => Michal Hruby (mhr3)

-- 
You received this bug notification because you are a member of Zeitgeist
Extensions, which is the registrant for Zeitgeist Extensions.
https://bugs.launchpad.net/bugs/841922

Title:
  zeitgeist-daemon crashed with DocNotFoundError in
  _check_index_and_start_worker(): Document 5 not found

Status in Zeitgeist Extensions:
  Fix Released
Status in “zeitgeist” package in Ubuntu:
  Fix Released
Status in “zeitgeist” source package in Oneiric:
  Fix Released

Bug description:
  still crashes on logon after the required package update

  ProblemType: Crash
  DistroRelease: Ubuntu 11.10
  Package: zeitgeist-core 0.8.1.1-1
  ProcVersionSignature: Ubuntu 3.0.0-10.16-generic 3.0.4
  Uname: Linux 3.0.0-10-generic i686
  Architecture: i386
  Date: Mon Sep  5 16:52:18 2011
  ExecutablePath: /usr/bin/zeitgeist-daemon
  InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
  InterpreterPath: /usr/bin/python2.7
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python /usr/bin/zeitgeist-daemon
  ProcEnviron:
   SHELL=/bin/bash
   PATH=(custom, no user)
   LANG=sk_SK.UTF-8
  PythonArgs: ['/usr/bin/zeitgeist-daemon']
  SourcePackage: zeitgeist
  Title: zeitgeist-daemon crashed with DocNotFoundError in 
_check_index_and_start_worker(): Document 5 not found
  Traceback:
   Traceback (most recent call last):
 File "/usr/share/zeitgeist/_zeitgeist/engine/extensions/fts.py", line 282, 
in _check_index_and_start_worker
   hits = self._enquire.get_mset (0, 1)
   DocNotFoundError: Document 5 not found
  UpgradeStatus: Upgraded to oneiric on 2011-08-29 (7 days ago)
  UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

To manage notifications about this bug go to:
https://bugs.launchpad.net/zeitgeist-extensions/+bug/841922/+subscriptions

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 869879] [NEW] Desktop ID is not extracted correctly

2011-10-07 Thread Michal Hruby
Public bug reported:

Desktop IDs are not simple basenames of the full desktop file path.
According to freedesktop's menu spec, subdirectories of AppDir (usually
XDG_DATA_DIR / applications) are also part of the ID, ie
/usr/share/applications/kde4/kate.desktop has desktop ID
kde4-kate.desktop, not just kate.desktop.

** Affects: zeitgeist
 Importance: Undecided
 Status: New

** Affects: zeitgeist-datahub
 Importance: High
 Status: New

** Also affects: zeitgeist
   Importance: Undecided
   Status: New

** Changed in: zeitgeist-datahub
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.
https://bugs.launchpad.net/bugs/869879

Title:
  Desktop ID is not extracted correctly

Status in Zeitgeist Framework:
  New
Status in Zeitgeist Datahub:
  New

Bug description:
  Desktop IDs are not simple basenames of the full desktop file path.
  According to freedesktop's menu spec, subdirectories of AppDir
  (usually XDG_DATA_DIR / applications) are also part of the ID, ie
  /usr/share/applications/kde4/kate.desktop has desktop ID
  kde4-kate.desktop, not just kate.desktop.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zeitgeist/+bug/869879/+subscriptions

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 841878] Re: zeitgeist-daemon crashed with DatabaseCorruptError in _check_index_and_start_worker(): Data ran out unexpectedly when reading posting list.

2011-10-11 Thread Michal Hruby
** Changed in: zeitgeist-extensions
   Status: New => Incomplete

-- 
You received this bug notification because you are a member of Zeitgeist
Extensions, which is the registrant for Zeitgeist Extensions.
https://bugs.launchpad.net/bugs/841878

Title:
  zeitgeist-daemon crashed with DatabaseCorruptError in
  _check_index_and_start_worker(): Data ran out unexpectedly when
  reading posting list.

Status in Zeitgeist Extensions:
  Incomplete
Status in “zeitgeist” package in Ubuntu:
  Triaged

Bug description:
  after todays update.

  ProblemType: Crash
  DistroRelease: Ubuntu 11.10
  Package: zeitgeist-core 0.8.1.1-1
  ProcVersionSignature: Ubuntu 3.0.0-10.16-generic 3.0.4
  Uname: Linux 3.0.0-10-generic x86_64
  Architecture: amd64
  Date: Mon Sep  5 11:34:33 2011
  EcryptfsInUse: Yes
  ExecutablePath: /usr/bin/zeitgeist-daemon
  InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
  InterpreterPath: /usr/bin/python2.7
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python /usr/bin/zeitgeist-daemon
  ProcEnviron:
   SHELL=/bin/bash
   LC_MESSAGES=es_ES.UTF-8
   PATH=(custom, no user)
   LANGUAGE=es:en
   LANG=es_AR.UTF-8
  PythonArgs: ['/usr/bin/zeitgeist-daemon']
  SourcePackage: zeitgeist
  Title: zeitgeist-daemon crashed with DatabaseCorruptError in 
_check_index_and_start_worker(): Data ran out unexpectedly when reading posting 
list.
  Traceback:
   Traceback (most recent call last):
 File "/usr/share/zeitgeist/_zeitgeist/engine/extensions/fts.py", line 282, 
in _check_index_and_start_worker
   hits = self._enquire.get_mset (0, 1)
   DatabaseCorruptError: Data ran out unexpectedly when reading posting list.
  UpgradeStatus: Upgraded to oneiric on 2011-09-03 (2 days ago)
  UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

To manage notifications about this bug go to:
https://bugs.launchpad.net/zeitgeist-extensions/+bug/841878/+subscriptions

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Merge] lp:~mhr3/zeitgeist/bb-schema-ver-table into lp:~zeitgeist/zeitgeist/bluebird

2011-10-20 Thread Michal Hruby
Michal Hruby has proposed merging lp:~mhr3/zeitgeist/bb-schema-ver-table into 
lp:~zeitgeist/zeitgeist/bluebird.

Requested reviews:
  Zeitgeist Framework Team (zeitgeist)

For more details, see:
https://code.launchpad.net/~mhr3/zeitgeist/bb-schema-ver-table/+merge/79928


-- 
https://code.launchpad.net/~mhr3/zeitgeist/bb-schema-ver-table/+merge/79928
Your team Zeitgeist Framework Team is requested to review the proposed merge of 
lp:~mhr3/zeitgeist/bb-schema-ver-table into lp:~zeitgeist/zeitgeist/bluebird.
=== modified file 'src/sql-schema.vala'
--- src/sql-schema.vala	2011-10-14 18:26:09 +
+++ src/sql-schema.vala	2011-10-20 09:04:37 +
@@ -2,6 +2,8 @@
  *
  * Copyright © 2011 Collabora Ltd.
  * By Siegfried-Angel Gevatter Pujals 
+ *   © 2011 Canonical Ltd.
+ *     By Michal Hruby 
  *
  * Based upon a Python implementation (2009-2011) by:
  *  Markus Korn 
@@ -32,14 +34,51 @@
 public class DatabaseSchema : Object
 {
 
+public const string CORE_SCHEMA = "core";
+public const int CORE_SCHEMA_VERSION = 5;
+
 public static void ensure_schema (Sqlite.Database database)
 throws EngineError
 {
-//if (Constants.DATABASE_FILE_PATH != ":memory:" && !new_db)
-// assume temporary memory backed DBs are good
-// check_core_schema_upgrade
-
-create_schema (database);
+int schema_version = Utils.using_in_memory_database () ?
+-1 : get_schema_version (database);
+
+if (schema_version == -1)
+{
+// most likely a new DB
+create_schema (database);
+}
+else if (schema_version == 4)
+{
+// DB from latest python Zeitgeist, which we can "upgrade"
+Utils.backup_database ();
+create_schema (database);
+}
+else if (schema_version < CORE_SCHEMA_VERSION)
+{
+throw new EngineError.DATABASE_ERROR ("Unable to upgrade from schema version %d".printf (schema_version));
+}
+}
+
+public static int get_schema_version (Sqlite.Database database)
+{
+  var sql = "SELECT version FROM schema_version WHERE schema='core'";
+  int schema_version = -1;
+  database.exec (sql,
+  (n_cols, values, column_names) =>
+  {
+  if (values != null && values[0] != null)
+  {
+  schema_version = int.parse (values[0]);
+  }
+  return 0;
+  }, null);
+
+  // we don't really care about the return value of exec, the result
+  // will be -1 if something went wrong anyway
+  debug ("schema_version is %d", schema_version);
+
+  return schema_version;
 }
 
 public static void create_schema (Sqlite.Database database)
@@ -346,6 +385,18 @@
 AS actor_uri
 FROM event
 """);
+
+// Set schema version
+exec_query (database, """
+CREATE TABLE IF NOT EXISTS schema_version (
+schema VARCHAR PRIMARY KEY ON CONFLICT REPLACE,
+version INT
+)
+""");
+var schema_sql = "INSERT INTO schema_version VALUES ('%s', %d)"
+.printf (CORE_SCHEMA, CORE_SCHEMA_VERSION);
+exec_query (database, schema_sql);
+
 }
 
 /**

=== modified file 'src/utils.vala'
--- src/utils.vala	2011-09-16 09:15:06 +
+++ src/utils.vala	2011-10-20 09:04:37 +
@@ -38,10 +38,6 @@
 public const string DBUS_INTERFACE = "";
 public const string SIG_EVENT = "asaasay";
 
-// Required version of DB schema
-public const string CORE_SCHEMA = "core";
-public const int CORE_SCHEMA_VERSION = 4;
-
 // configure runtime cache for events
 // default size is 2000
 public const uint CACHE_SIZE = 0;
@@ -102,6 +98,29 @@
 
 return LOCAL_EXTENSIONS_PATH;
 }
+
+public bool using_in_memory_database ()
+{
+return get_database_file_path () == ":memory:";
+}
+
+public void backup_database ()
+{
+File original;
+File destination;
+original = File.new_for_path (get_database_file_path ());
+destination = File.new_for_path (get_database_file_backup_path ());
+
+try
+{
+original.copy (destination, FileCopyFlags.OVERWRITE, null,
+null);
+}
+catch (Error err)
+  

Re: [Zeitgeist] [Merge] lp:~cando/zeitgeist/timezone_hell into lp:zeitgeist

2011-12-08 Thread Michal Hruby
Review: Approve

Looking good!
-- 
https://code.launchpad.net/~cando/zeitgeist/timezone_hell/+merge/84746
Your team Zeitgeist Framework Team is subscribed to branch lp:zeitgeist.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Merge] lp:~mhr3/zeitgeist/string-chunks into lp:zeitgeist

2011-12-11 Thread Michal Hruby
Michal Hruby has proposed merging lp:~mhr3/zeitgeist/string-chunks into 
lp:zeitgeist.

Requested reviews:
  Siegfried Gevatter (rainct)

For more details, see:
https://code.launchpad.net/~mhr3/zeitgeist/string-chunks/+merge/85259

As discussed on IRC...
-- 
https://code.launchpad.net/~mhr3/zeitgeist/string-chunks/+merge/85259
Your team Zeitgeist Framework Team is subscribed to branch lp:zeitgeist.
=== modified file 'src/datamodel.vala'
--- src/datamodel.vala	2011-10-17 07:46:27 +
+++ src/datamodel.vala	2011-12-11 19:47:28 +
@@ -285,16 +285,40 @@
 
 public class Event : Object
 {
+private static StringChunk url_store;
+
 public uint32id { get; set; }
 public int64 timestamp { get; set; }
-public stringinterpretation { get; set; }
-public stringmanifestation { get; set; }
-public stringactor { get; set; }
 public stringorigin { get; set; }
 
+public string actor
+{
+get { return _actor; }
+set { _actor = url_store.insert_const (value); }
+}
+public string interpretation
+{
+get { return _interpretation; }
+set { _interpretation = url_store.insert_const (value); }
+}
+public string manifestation
+{
+get { return _manifestation; }
+set { _manifestation = url_store.insert_const (value); }
+}
+
+private unowned string _actor;
+private unowned string _interpretation;
+private unowned string _manifestation;
+
 public GenericArray subjects { get; set; }
 public ByteArray? payload { get; set; }
 
+static construct
+{
+url_store = new StringChunk (4096);
+}
+
 construct
 {
 subjects = new GenericArray ();
@@ -514,16 +538,41 @@
 
 public class Subject : Object
 {
+private static StringChunk url_store;
 
 public string uri { get; set; }
-public string interpretation { get; set; }
-public string manifestation { get; set; }
-public string mimetype { get; set; }
 public string origin { get; set; }
 public string text { get; set; }
 public string storage { get; set; }
+// FIXME: current_uri is often the same as uri, we don't need to waste
+// memory for it
 public string current_uri { get; set; }
 
+public string mimetype
+{
+get { return _mimetype; }
+set { _mimetype = url_store.insert_const (value); }
+}
+public string interpretation
+{
+get { return _interpretation; }
+set { _interpretation = url_store.insert_const (value); }
+}
+public string manifestation
+{
+get { return _manifestation; }
+set { _manifestation = url_store.insert_const (value); }
+}
+
+private unowned string _mimetype;
+private unowned string _interpretation;
+private unowned string _manifestation;
+
+static construct
+{
+url_store = new StringChunk (4096);
+}
+
 public Subject.from_variant (Variant subject_variant)
 {
 VariantIter iter = subject_variant.iterator();

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 903667] Re: Datasource registry crashes Zeitgeist if template is invalid

2011-12-13 Thread Michal Hruby
** Summary changed:

- Datasource resigstry crashes Zeitgeist if template is invalid
+ Datasource registry crashes Zeitgeist if template is invalid

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.
https://bugs.launchpad.net/bugs/903667

Title:
  Datasource registry crashes Zeitgeist if template is invalid

Status in Zeitgeist Framework:
  Confirmed

Bug description:
  If the template of a datasource registry extension is not corrent the
  datasource registry crashes when executing Event.from_variant. We
  should catch those and print out an error message while deleting the
  entry. This bug will also affect the blacklist extension.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zeitgeist/+bug/903667/+subscriptions

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


Re: [Zeitgeist] [Merge] lp:~zeitgeist/zeitgeist/benchmark-tools into lp:zeitgeist

2011-12-26 Thread Michal Hruby
Review: Needs Fixing

Please remove the json and svg files from version control.

The extension is also missing unload() implementation.
-- 
https://code.launchpad.net/~zeitgeist/zeitgeist/benchmark-tools/+merge/86867
Your team Zeitgeist Framework Team is subscribed to branch lp:zeitgeist.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


Re: [Zeitgeist] [Merge] lp:~zeitgeist/zeitgeist/mimetypes into lp:zeitgeist

2011-12-28 Thread Michal Hruby
Review: Needs Fixing

A couple of optimizations, pls:

- turn the private structs into compact classes (this will require explicit 
ownership transfer when adding them to the lists)
- the *_for_* methods should return `unowned string?`
- it'd be nice to sort the register_mimetype calls alphabetically
-- 
https://code.launchpad.net/~zeitgeist/zeitgeist/mimetypes/+merge/87033
Your team Zeitgeist Framework Team is subscribed to branch lp:zeitgeist.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


Re: [Zeitgeist] [Merge] lp:~zeitgeist/zeitgeist/benchmark-tools into lp:zeitgeist

2011-12-28 Thread Michal Hruby
Review: Needs Information

The only remaining thing I see is how do we want to deal with the extension, 
obviously it's only meant for development and it probably shouldn't be compiled 
into Zeitgeist by default (although imo it can as long as it's disabled by 
default)
-- 
https://code.launchpad.net/~zeitgeist/zeitgeist/benchmark-tools/+merge/86867
Your team Zeitgeist Framework Team is subscribed to branch lp:zeitgeist.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Merge] lp:~zeitgeist/zeitgeist/mimetypes into lp:zeitgeist

2011-12-29 Thread Michal Hruby
The proposal to merge lp:~zeitgeist/zeitgeist/mimetypes into lp:zeitgeist has 
been updated.

Status: Needs review => Approved

For more details, see:
https://code.launchpad.net/~zeitgeist/zeitgeist/mimetypes/+merge/87033
-- 
https://code.launchpad.net/~zeitgeist/zeitgeist/mimetypes/+merge/87033
Your team Zeitgeist Framework Team is subscribed to branch lp:zeitgeist.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Merge] lp:~zeitgeist/zeitgeist/auto-mimetype into lp:zeitgeist

2011-12-29 Thread Michal Hruby
The proposal to merge lp:~zeitgeist/zeitgeist/auto-mimetype into lp:zeitgeist 
has been updated.

Status: Needs review => Approved

For more details, see:
https://code.launchpad.net/~zeitgeist/zeitgeist/auto-mimetype/+merge/87080
-- 
https://code.launchpad.net/~zeitgeist/zeitgeist/auto-mimetype/+merge/87080
Your team Zeitgeist Framework Team is subscribed to branch lp:zeitgeist.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


Re: [Zeitgeist] [Merge] lp:~zeitgeist/zeitgeist/mimetypes into lp:zeitgeist

2011-12-29 Thread Michal Hruby
Review: Approve

Perfection.
-- 
https://code.launchpad.net/~zeitgeist/zeitgeist/mimetypes/+merge/87033
Your team Zeitgeist Framework Team is subscribed to branch lp:zeitgeist.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


Re: [Zeitgeist] [Merge] lp:~zeitgeist/zeitgeist/benchmark-tools into lp:zeitgeist

2011-12-29 Thread Michal Hruby
Review: Approve

As discussed on IRC we'll ship the extension by default but it'll be disabled, 
the only problem is that disabling extensions is not yet supported, so we'll 
fix that soon.
-- 
https://code.launchpad.net/~zeitgeist/zeitgeist/benchmark-tools/+merge/86867
Your team Zeitgeist Framework Team is subscribed to branch lp:zeitgeist.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


Re: [Zeitgeist] [Merge] lp:~zeitgeist/zeitgeist/auto-mimetype into lp:zeitgeist

2011-12-29 Thread Michal Hruby
Review: Approve

Looks good.
-- 
https://code.launchpad.net/~zeitgeist/zeitgeist/auto-mimetype/+merge/87080
Your team Zeitgeist Framework Team is subscribed to branch lp:zeitgeist.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


Re: [Zeitgeist] [Merge] lp:~zeitgeist/zeitgeist/bluebird-sig-crash into lp:zeitgeist

2011-12-30 Thread Michal Hruby
Review: Needs Fixing

Let's change the warn_if_fail to the assert_sig and merge this
-- 
https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird-sig-crash/+merge/74091
Your team Zeitgeist Framework Team is subscribed to branch lp:zeitgeist.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 909708] Re: Inserting event with two subjects with the same URI breaks the following event

2011-12-30 Thread Michal Hruby
Ok, let's go with option #3.

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.
https://bugs.launchpad.net/bugs/909708

Title:
  Inserting event with two subjects with the same URI breaks the
  following event

Status in Zeitgeist Framework:
  Confirmed

Bug description:
  By the way our database is structured, all subjects of a same event
  must have different URIs.

  However, this isn't currently being checked, with the effect that the
  first subject is inserted correctly, while the second subject triggers
  the "existing event" exception and rolls back the event ID. This has
  the effect that the next event to be inserted will incorrectly have
  the same event ID (thus its subjects are mixed into whatever got saved
  of the first event and all sorts of weirdness :P).

To manage notifications about this bug go to:
https://bugs.launchpad.net/zeitgeist/+bug/909708/+subscriptions

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 889139] Re: zeitgeist-daemon degrades mdraid recovery

2011-12-30 Thread Michal Hruby
Is there any chance you could attach a log from dbus-monitor? (just
leave it running for ~5 seconds when the CPU usage is high)

** Changed in: zeitgeist
   Status: New => Incomplete

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.
https://bugs.launchpad.net/bugs/889139

Title:
  zeitgeist-daemon degrades mdraid recovery

Status in Zeitgeist Framework:
  Incomplete

Bug description:
  Upon login, the 'zeitgeist-daemon' interferes with md raid recovery.
  Changing process priorities has no effect.  Array reconstruction only
  takes place at a reasonable speed after one issues 'kill -STOP
  $zeitgeist-daemon-pid', followed by a 'kill -CONT $pid' when done.

  In my case reconstruction speed degrades to 1MB/s, which takes 4 days
  on a 320GB disk, from 50MB/s or 100 minutes with 'zeitgeist-daemon'
  suspended.  Given that there is no protection from drive failure
  during reconstruction that task should be given priority.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zeitgeist/+bug/889139/+subscriptions

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 910199] [NEW] InstallMonitor called twice when using python bindings

2011-12-30 Thread Michal Hruby
Public bug reported:

If a python app is using a monitor, it'll call InstallMonitor method
twice (and the second call is usually quietly ignored). Still this
shouldn't happen.

** Affects: zeitgeist
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.
https://bugs.launchpad.net/bugs/910199

Title:
  InstallMonitor called twice when using python bindings

Status in Zeitgeist Framework:
  New

Bug description:
  If a python app is using a monitor, it'll call InstallMonitor method
  twice (and the second call is usually quietly ignored). Still this
  shouldn't happen.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zeitgeist/+bug/910199/+subscriptions

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


Re: [Zeitgeist] [Merge] lp:~zeitgeist/zeitgeist/bluebird-no-distinct into lp:zeitgeist

2011-12-30 Thread Michal Hruby
33  +event_ids += event_id;

We could be more clever here, this will cause 3-6 reallocations in common 
cases, perhaps the array should be preallocated to `int.min(max_events, 128)`? 
(for non-zero max_events).
-- 
https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird-no-distinct/+merge/87175
Your team Zeitgeist Framework Team is requested to review the proposed merge of 
lp:~zeitgeist/zeitgeist/bluebird-no-distinct into lp:zeitgeist.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 844877] Re: Query execution slow

2011-12-31 Thread Michal Hruby
The original issue is still not fixed though (comments 3-8 should have
been in a separate bug).

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.
https://bugs.launchpad.net/bugs/844877

Title:
  Query execution slow

Status in Zeitgeist Framework:
  Triaged

Bug description:
  Synapse is using various not-so-complex find_events queries to display
  recent activities, and it seems that especially a query for "All"
  category is taking much longer than any other query (~750ms with a DB
  with 200k events).

  Here's the output from zg with the debug_sql extension:

  [DEBUG - root] # parameters: {'event_templates': 
[Event([dbus.Array([dbus.String(u''), '1315492708863', dbus.String(u''), 
dbus.String(u''), dbus.String(u''), ''], signature=dbus.Signature('s')), 
[Subject([dbus.String(u''), dbus.String(u''), dbus.String(u''), 
dbus.String(u''), dbus.String(u''), dbus.String(u''), dbus.String(u''), 
dbus.String(u'')]), Subject([dbus.String(u''), 
dbus.String(u'!http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#Folder'),
 dbus.String(u''), dbus.String(u''), dbus.String(u''), dbus.String(u''), 
dbus.String(u''), dbus.String(u'')]), Subject([dbus.String(u''), 
dbus.String(u'!http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#Software'),
 dbus.String(u''), dbus.String(u''), dbus.String(u''), dbus.String(u''), 
dbus.String(u''), dbus.String(u'')])], dbus.Array([], 
signature=dbus.Signature('y'))])],
   'max_events': dbus.UInt32(96L),
   'order': dbus.UInt32(2L),
   'return_mode': 1,
   'self': <_zeitgeist.engine.main.ZeitgeistEngine instance at 0x1b66248>,
   'sender': ':1.3604',
   'storage_state': dbus.UInt32(2L),
   'time_range': [1300977508860, 9223372036854775807]}

  [DEBUG - root] # database size: {'actor': 129,
   'event': 192746,
   'interpretation': 68,
   'manifestation': 27,
   'mimetype': 353,
   'uri': 60265}
  [DEBUG - root] # BEGIN SQL QUERY #
  no pretty sql: SELECT id FROM event_view
NATURAL JOIN (
SELECT subj_id,
max(timestamp) AS timestamp

FROM event_view  WHERE (+timestamp >= ? 
AND ((NOT (subj_interpretation = ?) AND NOT (subj_interpretation = ? OR 
subj_interpretation = ? OR subj_interpretation = ?
GROUP BY subj_id)
GROUP BY subj_id
ORDER BY  timestamp DESC
 LIMIT 96 : [1300977508860, 45, 46, 47, 43]
  took 0.712120s
  # END SQL QUERY
  [DEBUG - zeitgeist.engine] Found 96 events IDs in 0.723284s

To manage notifications about this bug go to:
https://bugs.launchpad.net/zeitgeist/+bug/844877/+subscriptions

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


Re: [Zeitgeist] [Merge] lp:~zeitgeist/zeitgeist/bluebird-no-distinct into lp:zeitgeist

2011-12-31 Thread Michal Hruby
Review: Approve

As the query plans show, without the DISTINCT sql doesn't need to build one 
temp b-tree, so it's slightly faster.
-- 
https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird-no-distinct/+merge/87175
Your team Zeitgeist Framework Team is subscribed to branch lp:zeitgeist.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Merge] lp:~zeitgeist/zeitgeist/bluebird-no-distinct into lp:zeitgeist

2011-12-31 Thread Michal Hruby
The proposal to merge lp:~zeitgeist/zeitgeist/bluebird-no-distinct into 
lp:zeitgeist has been updated.

Status: Needs review => Approved

For more details, see:
https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird-no-distinct/+merge/87175
-- 
https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird-no-distinct/+merge/87175
Your team Zeitgeist Framework Team is subscribed to branch lp:zeitgeist.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 894510] Re: Send all chrome tabs, not just one window's

2012-01-01 Thread Michal Hruby
Thanks, pushed.

** Changed in: zeitgeist-datasources
   Status: New => Fix Committed

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Data-Sources.
https://bugs.launchpad.net/bugs/894510

Title:
  Send all chrome tabs, not just one window's

Status in Zeitgeist Data-Sources:
  Fix Committed

Bug description:
  The chrome plugin only sends the tabs from one window, when it should
  iterate over all windows.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zeitgeist-datasources/+bug/894510/+subscriptions

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


Re: [Zeitgeist] [Merge] lp:~zeitgeist/zeitgeist/dbfails into lp:zeitgeist

2012-01-11 Thread Michal Hruby
Review: Needs Fixing

Yes, please :)
-- 
https://code.launchpad.net/~zeitgeist/zeitgeist/dbfails/+merge/87195
Your team Zeitgeist Framework Team is subscribed to branch lp:zeitgeist.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


Re: [Zeitgeist] [Merge] lp:~zeitgeist/zeitgeist/fix-fts-block into lp:zeitgeist

2012-01-16 Thread Michal Hruby
> We probably still need to check the schema version (and figure out what to do
> if it's wrong, like do we want it to sleep for a while in case Zeitgeist is
> performing an upgrade?).

If opening the DB fails, just quit, extensions are run after the DB is set up, 
so it should be safe.
-- 
https://code.launchpad.net/~zeitgeist/zeitgeist/fix-fts-block/+merge/88660
Your team Zeitgeist Framework Team is requested to review the proposed merge of 
lp:~zeitgeist/zeitgeist/fix-fts-block into lp:zeitgeist.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


Re: [Zeitgeist] [Merge] lp:~zeitgeist/zeitgeist/fix-fts-block into lp:zeitgeist

2012-01-16 Thread Michal Hruby
> Seems like I found a new bug...
> Zeitgeist does not start again after killing it and then trying to do
> something with synapse. I have to start it by hand

Although not nice, it doesn't affect this merge...
-- 
https://code.launchpad.net/~zeitgeist/zeitgeist/fix-fts-block/+merge/88660
Your team Zeitgeist Framework Team is requested to review the proposed merge of 
lp:~zeitgeist/zeitgeist/fix-fts-block into lp:zeitgeist.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 903975] Re: gedit crashed with SIGSEGV in zeitgeist_log_insert_events_from_ptrarray()

2012-01-19 Thread Michal Hruby
** Also affects: zeitgeist-datasources
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Data-Sources.
https://bugs.launchpad.net/bugs/903975

Title:
  gedit crashed with SIGSEGV in
  zeitgeist_log_insert_events_from_ptrarray()

Status in Zeitgeist Data-Sources:
  New
Status in “libzeitgeist” package in Ubuntu:
  Confirmed

Bug description:
  IDK if it helps or is related but when the problem happened I had an
  FTP connection to a remote webserver open in Nautilus and had a php
  file open.

  ProblemType: Crash
  DistroRelease: Ubuntu 12.04
  Package: gedit 3.2.5-0ubuntu1
  ProcVersionSignature: Ubuntu 3.2.0-4.10-generic 3.2.0-rc5
  Uname: Linux 3.2.0-4-generic x86_64
  ApportVersion: 1.90-0ubuntu1
  Architecture: amd64
  Date: Tue Dec 13 17:17:00 2011
  ExecutablePath: /usr/bin/gedit
  InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 
(20111212)
  ProcCmdline: gedit /home/User Name/.gvfs/FTP\ as\ \ on\ 
ftp..com/www/.php
  SegvAnalysis:
   Segfault happened at: 0x7f1c7d48f0de 
: cmp%rax,(%rdx)
   PC (0x7f1c7d48f0de) ok
   source "%rax" ok
   destination "(%rdx)" (0x0001) not located in a known VMA region (needed 
writable region)!
  SegvReason: writing NULL VMA
  Signal: 11
  SourcePackage: gedit
  StacktraceTop:
   zeitgeist_log_insert_events_from_ptrarray () from 
/usr/lib/libzeitgeist-1.0.so.1
   zeitgeist_log_insert_events_no_reply () from /usr/lib/libzeitgeist-1.0.so.1
   ?? () from /usr/lib/gedit/plugins/libzeitgeistplugin.so
   g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
   ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
  Title: gedit crashed with SIGSEGV in 
zeitgeist_log_insert_events_from_ptrarray()
  UpgradeStatus: Upgraded to precise on 2011-12-13 (0 days ago)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

To manage notifications about this bug go to:
https://bugs.launchpad.net/zeitgeist-datasources/+bug/903975/+subscriptions

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Merge] lp:~zeitgeist/zeitgeist/bb-memory into lp:zeitgeist

2012-01-20 Thread Michal Hruby
The proposal to merge lp:~zeitgeist/zeitgeist/bb-memory into lp:zeitgeist has 
been updated.

Status: Needs review => Rejected

For more details, see:
https://code.launchpad.net/~zeitgeist/zeitgeist/bb-memory/+merge/79755
-- 
https://code.launchpad.net/~zeitgeist/zeitgeist/bb-memory/+merge/79755
Your team Zeitgeist Framework Team is requested to review the proposed merge of 
lp:~zeitgeist/zeitgeist/bb-memory into lp:zeitgeist.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


Re: [Zeitgeist] [Merge] lp:~j-bitron/zeitgeist/bb-memory into lp:zeitgeist

2012-01-20 Thread Michal Hruby
A branch which supersedes this was merged, rejecting this one.
-- 
https://code.launchpad.net/~j-bitron/zeitgeist/bb-memory/+merge/79776
Your team Zeitgeist Framework Team is requested to review the proposed merge of 
lp:~j-bitron/zeitgeist/bb-memory into lp:zeitgeist.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Merge] lp:~j-bitron/zeitgeist/bb-memory into lp:zeitgeist

2012-01-20 Thread Michal Hruby
The proposal to merge lp:~j-bitron/zeitgeist/bb-memory into lp:zeitgeist has 
been updated.

Status: Needs review => Rejected

For more details, see:
https://code.launchpad.net/~j-bitron/zeitgeist/bb-memory/+merge/79776
-- 
https://code.launchpad.net/~j-bitron/zeitgeist/bb-memory/+merge/79776
Your team Zeitgeist Framework Team is requested to review the proposed merge of 
lp:~j-bitron/zeitgeist/bb-memory into lp:zeitgeist.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


Re: [Zeitgeist] [Merge] lp:~zeitgeist/zeitgeist/fix-fts-block into lp:zeitgeist

2012-01-20 Thread Michal Hruby
Review: Approve

I'm fine with it, waiting for final ACK from RainCT.
-- 
https://code.launchpad.net/~zeitgeist/zeitgeist/fix-fts-block/+merge/88660
Your team Zeitgeist Framework Team is subscribed to branch lp:zeitgeist.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 919111] Re: creating a file, opening it and then searching for it in unity doesn't work reliably

2012-01-20 Thread Michal Hruby
** Changed in: zeitgeist
   Status: New => In Progress

** Changed in: zeitgeist
   Importance: Undecided => High

** Changed in: zeitgeist
 Assignee: (unassigned) => Seif Lotfy (seif)

** Changed in: zeitgeist
Milestone: None => 0.9.0

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.
https://bugs.launchpad.net/bugs/919111

Title:
  creating a file, opening it and then searching for it in unity doesn't
  work reliably

Status in Unity Distro Priority:
  Fix Committed
Status in Zeitgeist Framework:
  In Progress

Bug description:
  Test case:
  1. open a guest ubuntu session (clean profile)
  2. create a foo file
  3. open it with, ie gedit
  4. open the file lens -> you will see it there
  5. type "f" to search for "foo" -> nothing is shown.

  killing the zeitgeist daemon seems to reset it in a working state.

  Also (related when is in that state): there is no "recent app"
  category in unity file lens.

To manage notifications about this bug go to:
https://bugs.launchpad.net/unity-distro-priority/+bug/919111/+subscriptions

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 905898] Re: dbus-daemon runs a cpu at 90% when logging in with an audio cd in an optical drive

2012-01-20 Thread Michal Hruby
** Changed in: zeitgeist
Milestone: None => 0.9.0

** Changed in: zeitgeist
 Assignee: (unassigned) => Michal Hruby (mhr3)

** Changed in: zeitgeist
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.
https://bugs.launchpad.net/bugs/905898

Title:
  dbus-daemon runs a cpu at 90%  when  logging in with an audio cd  in
  an optical drive

Status in Zeitgeist Framework:
  Fix Committed
Status in “dbus” package in Ubuntu:
  New

Bug description:
  Whether dbus or not don't know, seems a place to start.

  Test case:
  Insert an audio cd into drive,  after it's found then log out/in
  dbus-daemon will run at around 90% until the disc is opened/mounted
  zeittgeist-daemon also runs higher than normal

  Nautilus will show the disc but it's  not 'mounted',  opening or
  mounting from context menu causes dbus, ect.  to return to normal

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: dbus 1.4.16-1ubuntu1
  ProcVersionSignature: Ubuntu 3.2.0-5.11-generic 3.2.0-rc5
  Uname: Linux 3.2.0-5-generic i686
  NonfreeKernelModules: nvidia
  ApportVersion: 1.90-0ubuntu1
  Architecture: i386
  Date: Sun Dec 18 04:03:08 2011
  InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha i386 (20111213)
  ProcEnviron:
   PATH=(custom, user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: dbus
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/zeitgeist/+bug/905898/+subscriptions

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 919111] Re: creating a file, opening it and then searching for it in unity doesn't work reliably

2012-01-20 Thread Michal Hruby
The fix-fts-block branch should fix this.

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.
https://bugs.launchpad.net/bugs/919111

Title:
  creating a file, opening it and then searching for it in unity doesn't
  work reliably

Status in Unity Distro Priority:
  Fix Committed
Status in Zeitgeist Framework:
  In Progress

Bug description:
  Test case:
  1. open a guest ubuntu session (clean profile)
  2. create a foo file
  3. open it with, ie gedit
  4. open the file lens -> you will see it there
  5. type "f" to search for "foo" -> nothing is shown.

  killing the zeitgeist daemon seems to reset it in a working state.

  Also (related when is in that state): there is no "recent app"
  category in unity file lens.

To manage notifications about this bug go to:
https://bugs.launchpad.net/unity-distro-priority/+bug/919111/+subscriptions

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


Re: [Zeitgeist] [Merge] lp:~zeitgeist/zeitgeist/dbfails into lp:zeitgeist

2012-01-25 Thread Michal Hruby
Review: Approve

282 +throw err;
289 +throw err;
293 +throw err;

Seems like it could be moved out of the ifs.

Other than that it's fine.
-- 
https://code.launchpad.net/~zeitgeist/zeitgeist/dbfails/+merge/87195
Your team Zeitgeist Framework Team is subscribed to branch lp:zeitgeist.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


Re: [Zeitgeist] [Merge] lp:~zeitgeist/zeitgeist/bluebird-sig-crash into lp:zeitgeist

2012-01-25 Thread Michal Hruby
Review: Needs Fixing

156  assert (event_variant.get_type_string () == "(" +
157  Utils.SIG_EVENT + ")");

Let's turn this into assert_sig as well.

161 -assert (iter.n_children () >= 3);

Shouldn't this throw the error as well, instead of just removing it?

-- 
https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird-sig-crash/+merge/74091
Your team Zeitgeist Framework Team is subscribed to branch lp:zeitgeist.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


Re: [Zeitgeist] [Merge] lp:~zeitgeist/zeitgeist/bluebird-sig-crash into lp:zeitgeist

2012-01-25 Thread Michal Hruby
Also, some tests pls...
-- 
https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird-sig-crash/+merge/74091
Your team Zeitgeist Framework Team is subscribed to branch lp:zeitgeist.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


Re: [Zeitgeist] [Merge] lp:~zeitgeist/zeitgeist/bluebird-sig-crash2 into lp:zeitgeist

2012-01-25 Thread Michal Hruby
Review: Approve

Looks great!
-- 
https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird-sig-crash2/+merge/90166
Your team Zeitgeist Framework Team is subscribed to branch lp:zeitgeist.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Merge] lp:~zeitgeist/zeitgeist/bluebird-sig-crash2 into lp:zeitgeist

2012-01-25 Thread Michal Hruby
The proposal to merge lp:~zeitgeist/zeitgeist/bluebird-sig-crash2 into 
lp:zeitgeist has been updated.

Status: Needs review => Approved

For more details, see:
https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird-sig-crash2/+merge/90166
-- 
https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird-sig-crash2/+merge/90166
Your team Zeitgeist Framework Team is subscribed to branch lp:zeitgeist.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


Re: [Zeitgeist] [Merge] lp:~rainct/zeitgeist/find_storage_for_uri into lp:zeitgeist

2012-01-27 Thread Michal Hruby
Review: Needs Fixing

38  +string uri_scheme = uri.substring (0, uri.index_of 
("://"));

There's File.get_uri_scheme() for that.

45  +Mount mount = file.find_enclosing_mount ();

I'm really worried here, it's bringing back gvfs and I dont like that one bit, 
can be disable it for now and just distinguish net vs unknown?
-- 
https://code.launchpad.net/~rainct/zeitgeist/find_storage_for_uri/+merge/90423
Your team Zeitgeist Framework Team is subscribed to branch lp:zeitgeist.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


Re: [Zeitgeist] [Merge] lp:~rainct/zeitgeist/find_storage_for_uri into lp:zeitgeist

2012-01-27 Thread Michal Hruby
Review: Approve

54  +else*/ if (uri_scheme in network_uri_schemes)

Would be nice to add a linebreak there, but otherwise fine...
-- 
https://code.launchpad.net/~rainct/zeitgeist/find_storage_for_uri/+merge/90423
Your team Zeitgeist Framework Team is subscribed to branch lp:zeitgeist.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


Re: [Zeitgeist] [Merge] lp:~rainct/zeitgeist/monitor-queue into lp:zeitgeist

2012-01-31 Thread Michal Hruby
Review: Needs Fixing

22  +[Compact]
23  +private class InsertionData : NotificationData

I can't help it, but this looks like serious misusage of the type system, I'd 
rather go with single compact class that has an enum indicating the type plus a 
method that dispatches a call (passing in the proxy object - although as inner 
class it should be able to access private members of the parent class iirc)

121 +queued_notifications.append (

Appending SList is really slow, let's prepend and reverse when we're about to 
flush the queue.
-- 
https://code.launchpad.net/~rainct/zeitgeist/monitor-queue/+merge/90720
Your team Zeitgeist Framework Team is subscribed to branch lp:zeitgeist.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


Re: [Zeitgeist] [Merge] lp:~rainct/zeitgeist/monitor-queue into lp:zeitgeist

2012-01-31 Thread Michal Hruby
Review: Approve

Beautiful :)
-- 
https://code.launchpad.net/~rainct/zeitgeist/monitor-queue/+merge/90720
Your team Zeitgeist Framework Team is subscribed to branch lp:zeitgeist.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Merge] lp:~rainct/zeitgeist/monitor-queue into lp:zeitgeist

2012-01-31 Thread Michal Hruby
The proposal to merge lp:~rainct/zeitgeist/monitor-queue into lp:zeitgeist has 
been updated.

Status: Needs review => Approved

For more details, see:
https://code.launchpad.net/~rainct/zeitgeist/monitor-queue/+merge/90720
-- 
https://code.launchpad.net/~rainct/zeitgeist/monitor-queue/+merge/90720
Your team Zeitgeist Framework Team is subscribed to branch lp:zeitgeist.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 910199] Re: InstallMonitor called twice when using python bindings

2012-01-31 Thread Michal Hruby
** Branch linked: lp:~rainct/zeitgeist/ugly-as-hell

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.
https://bugs.launchpad.net/bugs/910199

Title:
  InstallMonitor called twice when using python bindings

Status in Zeitgeist Framework:
  Confirmed

Bug description:
  If a python app is using a monitor, it'll call InstallMonitor method
  twice (and the second call is usually quietly ignored). Still this
  shouldn't happen.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zeitgeist/+bug/910199/+subscriptions

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


Re: [Zeitgeist] [Merge] lp:~zeitgeist/zeitgeist/fts++ into lp:zeitgeist

2012-02-08 Thread Michal Hruby
> Awesome! C++ FTS ftw.
> 
> - Add COPYING.GPL3, otherwise the tarball can't be re-distributed.
> 

On it...

> - Considering sharing a get_flags_for_log_level or even set_log_level
>   function between ZG and FTS?
> 

I don't think that's really necessary, strictly speaking it'd be a utility 
function for a specific app, and has no place in a library.

> - s/ver != DatabaseSchema.CORE_SCHEMA_VERSION)/ver <
> DatabaseSchema.CORE_SCHEMA_VERSION/
>   What's the rationale for this? We don't know changes won't break
> compatibility
> 

Does that mean we should automatically assume that the possible changes do 
break stuff? This is only used with read-only database so I don't see any harm 
- either the reading will continue to work or you'll get some run-time errors, 
I find that better than just not working with even trying.

> - Can you explain the "// Don't disconnect monitors using service names"?
> 

As said on IRC, it prevents some races by allowing the internal extensions to 
register a monitor with a service name (races that would otherwise cause missed 
notifications when the external daemon is starting and didn't have a chance to 
register a monitor)

> I didn't really review the C++ stuff (I'm asuming you and Mikkel reviewed each
> other's stuff already?).

Partially, but we have tests, so it has to work, right?! :)
-- 
https://code.launchpad.net/~zeitgeist/zeitgeist/fts++/+merge/92022
Your team Zeitgeist Framework Team is subscribed to branch lp:zeitgeist.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


  1   2   3   >