Re: [Zeitgeist] [Bug 745243] Re: [dash] wrong search result of Unity in Chinese
El 25/10/11 17:35, Steve Magoun escribió: > Marking the oem-priority task fix released because the main problem was > addressed in 11.10. Some additional improvements are desirable; they > will be addressed in separate bugs. > > ** Changed in: oem-priority > Status: In Progress => Fix Released > Thanks you for your answer. My problems whit ubuntu 11.10 are already resolved. My old hard disk was in no good conditions. I have one new and the installation is ok. Thanks newly for you and for all the people that make posible the project of free sofware. Attendly, Víctor. -- 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/745243 Title: [dash] wrong search result of Unity in Chinese Status in OEM Priority Project: Fix Released Status in Ubuntu Translations: Fix Released Status in Unity: Fix Released Status in Unity 2D: Invalid Status in Unity Foundations: Fix Committed Status in Unity Applications Lens: Fix Released Status in Xapian Search Engine Library: Confirmed Status in Zeitgeist Extensions: Fix Released Status in “software-center” package in Ubuntu: Fix Released Status in “unity” package in Ubuntu: Fix Released Status in “unity-2d” package in Ubuntu: Invalid Bug description: The search result in Chinese is not correct. Please see the attached example. Unity-2D version: 3.8.1 To manage notifications about this bug go to: https://bugs.launchpad.net/oem-priority/+bug/745243/+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] [Branch ~zeitgeist/zeitgeist/bluebird] Rev 322: Added enable for AM_MAINTAINER_MODE
revno: 322 committer: Manish Sinha branch nick: bluebird timestamp: Wed 2011-10-26 03:00:08 +0530 message: Added enable for AM_MAINTAINER_MODE Our build system contains AM_MAINTAINER_MODE without enable. Changed it to AM_MAINTAINER_MODE([enable]) Please see these links for better explanation * https://mail.gnome.org/archives/desktop-devel-list/2011-September/msg00064.html * http://blogs.gnome.org/desrt/2011/09/08/am_maintainer_mode-is-not-cool/ modified: configure.ac -- lp:~zeitgeist/zeitgeist/bluebird https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird Your team Zeitgeist Framework Team is subscribed to branch lp:~zeitgeist/zeitgeist/bluebird. To unsubscribe from this branch go to https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird/+edit-subscription === modified file 'configure.ac' --- configure.ac 2011-10-17 07:46:27 + +++ configure.ac 2011-10-25 21:30:08 + @@ -2,7 +2,7 @@ AC_CONFIG_SRCDIR([Makefile.am]) AC_CONFIG_HEADERS(config.h) AM_INIT_AUTOMAKE([dist-bzip2]) -AM_MAINTAINER_MODE +AM_MAINTAINER_MODE([enable]) AC_PROG_CC AM_PROG_CC_C_O ___ 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 745243] Re: [dash] wrong search result of Unity in Chinese
Marking the oem-priority task fix released because the main problem was addressed in 11.10. Some additional improvements are desirable; they will be addressed in separate bugs. ** Changed in: oem-priority 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/745243 Title: [dash] wrong search result of Unity in Chinese Status in OEM Priority Project: Fix Released Status in Ubuntu Translations: Fix Released Status in Unity: Fix Released Status in Unity 2D: Invalid Status in Unity Foundations: Fix Committed Status in Unity Applications Lens: Fix Released Status in Xapian Search Engine Library: Confirmed Status in Zeitgeist Extensions: Fix Released Status in “software-center” package in Ubuntu: Fix Released Status in “unity” package in Ubuntu: Fix Released Status in “unity-2d” package in Ubuntu: Invalid Bug description: The search result in Chinese is not correct. Please see the attached example. Unity-2D version: 3.8.1 To manage notifications about this bug go to: https://bugs.launchpad.net/oem-priority/+bug/745243/+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:~seif/zeitgeist/bb-extract-methods into lp:~zeitgeist/zeitgeist/bluebird
Seif Lotfy has proposed merging lp:~seif/zeitgeist/bb-extract-methods into lp:~zeitgeist/zeitgeist/bluebird. Requested reviews: Zeitgeist Framework Team (zeitgeist) For more details, see: https://code.launchpad.net/~seif/zeitgeist/bb-extract-methods/+merge/80316 Extracted extract event and subj generation out of get_events into get_event_from_row and get_subject_from_row -- https://code.launchpad.net/~seif/zeitgeist/bb-extract-methods/+merge/80316 Your team Zeitgeist Framework Team is requested to review the proposed merge of lp:~seif/zeitgeist/bb-extract-methods into lp:~zeitgeist/zeitgeist/bluebird. === modified file 'src/engine.vala' --- src/engine.vala 2011-10-20 11:20:36 + +++ src/engine.vala 2011-10-25 10:46:39 + @@ -67,6 +67,49 @@ return extension_collection.get_extension_names (); } +private Event get_event_from_row (Sqlite.Statement stmt, uint32 event_id) +{ +Event? event = new Event (); +event.id = event_id; +event.timestamp = stmt.column_int64 (EventViewRows.TIMESTAMP); +event.interpretation = interpretations_table.get_value ( +stmt.column_int (EventViewRows.INTERPRETATION)); +event.manifestation = manifestations_table.get_value ( +stmt.column_int (EventViewRows.MANIFESTATION)); +event.actor = actors_table.get_value ( +stmt.column_int (EventViewRows.ACTOR)); +event.origin = stmt.column_text ( +EventViewRows.EVENT_ORIGIN_URI); +// Load payload +unowned uint8[] data = (uint8[]) +stmt.column_blob(EventViewRows.PAYLOAD); +data.length = stmt.column_bytes(EventViewRows.PAYLOAD); +if (data != null) +{ +event.payload = new ByteArray(); +event.payload.append(data); +} +return event; +} + +private Subject get_subject_from_row (Sqlite.Statement stmt) +{ +Subject? subject = new Subject (); +subject.uri = stmt.column_text (EventViewRows.SUBJECT_URI); +subject.text = stmt.column_text (EventViewRows.SUBJECT_TEXT); +subject.storage = stmt.column_text (EventViewRows.SUBJECT_STORAGE); +subject.origin = stmt.column_text (EventViewRows.SUBJECT_ORIGIN_URI); +subject.current_uri = stmt.column_text ( +EventViewRows.SUBJECT_CURRENT_URI); +subject.interpretation = interpretations_table.get_value ( +stmt.column_int (EventViewRows.SUBJECT_INTERPRETATION)); +subject.manifestation = manifestations_table.get_value ( +stmt.column_int (EventViewRows.SUBJECT_MANIFESTATION)); +subject.mimetype = mimetypes_table.get_value ( +stmt.column_int (EventViewRows.SUBJECT_MIMETYPE)); +return subject; +} + public GenericArray get_events(uint32[] event_ids, BusName? sender=null) throws EngineError { @@ -76,11 +119,15 @@ // to enhance the performance of SQLite now, and event processing // will be faster now being C. -Sqlite.Statement stmt; -int rc; - if (event_ids.length == 0) return new GenericArray (); + +var events = new HashTable (direct_hash, direct_equal); + +// Set up SQL statement +Sqlite.Statement stmt; +int rc; + var sql_event_ids = database.get_sql_string_from_event_ids (event_ids); string sql = """ SELECT * FROM event_view @@ -90,52 +137,17 @@ rc = db.prepare_v2 (sql, -1, out stmt); database.assert_query_success (rc, "SQL error"); -var events = new HashTable (direct_hash, direct_equal); - +// Create Events and Subjects from rows while ((rc = stmt.step ()) == Sqlite.ROW) { uint32 event_id = (uint32) stmt.column_int64 (EventViewRows.ID); Event? event = events.lookup (event_id); if (event == null) { -event = new Event (); -event.id = event_id; -event.timestamp = stmt.column_int64 (EventViewRows.TIMESTAMP); -event.interpretation = interpretations_table.get_value ( -stmt.column_int (EventViewRows.INTERPRETATION)); -event.manifestation = manifestations_table.get_value ( -stmt.column_int (EventViewRows.MANIFESTATION)); -event.actor = actors_table.get_value ( -stmt.column_int (EventViewRows.ACTOR)); -event.origin = stmt.column_text ( -EventViewRows.EVENT_ORIGIN_URI); - -// Load payload -unowned uint8[] data = (uint8[]) -stmt.column_blob(EventViewRows.PAYLOAD); -data.length = stmt.column_bytes(EventViewRows.PAYLOAD); -if (data != null) -{ -event.payload = new ByteArray(); -event.payload.appen