[aur-dev] Subset of database for autocomplete
Hi developers, I'd like to implement a typeahead menu like it appears on the main page. In order to test my PHP script that feeds package names, I need a small subset of the AUR database (only the Packages table), say 1000 records. Can someone provide me such a subset? Thanks in advance. Regards, Marcel
On 12/04/2012 03:32 PM, Marcel Korpel wrote:
Hi developers,
I'd like to implement a typeahead menu like it appears on the main page. In order to test my PHP script that feeds package names, I need a small subset of the AUR database (only the Packages table), say 1000 records. Can someone provide me such a subset?
Thanks in advance.
Regards, Marcel If I understood correctly, you could do that by invoking |gendummydata.py [0].
On Tue, Dec 4, 2012 at 5:24 PM, Axilleas Pi <axilleas@archlinux.info> wrote:
On 12/04/2012 03:32 PM, Marcel Korpel wrote: If I understood correctly, you could do that by invoking |gendummydata.py [0].
Thanks for pointing me to that installation guide, I overlooked it. However, if I perform # python gendummydata.py dummy-data.sql (after installing fortune-mod) I get the following error: DEBUG: Grabbing words from seed file... Traceback (most recent call last): File "gendummydata.py", line 90, in <module> contents = fp.readlines() File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1793: ordinal not in range(128) I really don't know where that byte 0xc3 is produced. Regards, Marcel
On Tue, Dec 4, 2012 at 8:32 AM, Marcel Korpel <marcel.lists@gmail.com> wrote:
Hi developers,
I'd like to implement a typeahead menu like it appears on the main page. In order to test my PHP script that feeds package names, I need a small subset of the AUR database (only the Packages table), say 1000 records. Can someone provide me such a subset?
I usually run support/schema/reloadtestdb.sh. It loads the DB schema, generates dummy data, and loads the dummy data all in one command. Are you planning on using a JavaScript framework to implement auto-complete or some other means? Regards, Jason
On Tue, Dec 4, 2012 at 11:45 PM, canyonknight <canyonknight@gmail.com> wrote:
I usually run support/schema/reloadtestdb.sh. It loads the DB schema, generates dummy data, and loads the dummy data all in one command.
That generates the error I described in my previous mail.
Are you planning on using a JavaScript framework to implement auto-complete or some other means?
Of course. Probably the same as on the main page (twitter-bootstrap), though I'm not to keen on bootstrap-typeahead. Perhaps a jQuery-plugin as on archlinux.de. Regards, Marcel
participants (3)
-
Axilleas Pi
-
canyonknight
-
Marcel Korpel