Skip to content

Instantly share code, notes, and snippets.

View michelp's full-sized avatar

Michel Pelletier michelp

  • Portland, OR
View GitHub Profile
(load "zmq/zmq.l")
(import zmq)
(de socker (Name) (pack "ipc://" Name ".sock"))
(de setup-engine (Local . @)
(setq *Ctx (zmq~zctx-new))
(setq *Router (zmq~zsocket-new *Ctx zmq~ROUTER))
(setq *Peers (zmq~zhash-new))
Downloading http://pypi.python.org/packages/source/n/nose/nose-1.3.0.tar.gz#md5=95d6d32b9d6b029c3c65674bd9e7eabe
Processing nose-1.3.0.tar.gz
Traceback (most recent call last):
File "setup.py", line 40, in <module>
'Topic :: Utilities'])
File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
index 077eefb..fe325e0 100644
--- a/mom/model/user.py
+++ b/mom/model/user.py
@@ -354,6 +354,13 @@ class User(Base):
quality, images_only)
return docs
+ def discover_from_terms(self, url, start_datetime=None, end_datetime=None,
+ num_docs=None, quality=None, images_only=False):
+ docs = env.zrpc_discover.discover_url(
re.match(r"(?P<protocol>\w+)://(?P<path>\w+):*(?P<port>\d+)*", "tcp://foo:333")
Index: nilsimsa/__init__.py
===================================================================
--- nilsimsa/__init__.py (revision 5)
+++ nilsimsa/__init__.py (working copy)
@@ -175,6 +175,14 @@
def compare_hexdigests( digest1, digest2 ):
"""Compute difference in bits between digest1 and digest2
returns -127 to 128; 1
(.virt)michel@fatty:~/dev/wikiparser$ xapian-check test_et4_ugh/
record:
baseB blocksize=8K items=470000 lastblock=227804 revision=47 levels=2 root=219970
B-tree checked okay
record table structure checked OK
termlist:
baseB blocksize=8K items=940000 lastblock=397614 revision=47 levels=3 root=381514
B-tree checked o
[2013-08-23 16:31:48,671 - wsgi - 2120] Exception while rendering <mom.model.trap.Trap object at 0x5009810>
[2013-08-23 16:31:48,671 - wsgi - 2120] id: 2025015
[2013-08-23 16:31:48,671 - wsgi - 2120] No row was found for one()
Traceback (most recent call last):
File "/trapit/elzar/e8302574-0c48-11e3-9662-68a86d2bfd7c/.virt/local/lib/python2.7/site-packages/elzar/wsgi.py", line 514, in contained
output = from_resource(req, output).value
File "/trapit/elzar/e8302574-0c48-11e3-9662-68a86d2bfd7c/.virt/local/lib/python2.7/site-packages/elzar/resources/trapqueue.py", line 99, in from_resource
return items_from_domain_expanded(req, queue_docs, context=context)
File "/trapit/elzar/e8302574-0c48-11e3-9662-68a86d2bfd7c/.virt/local/lib/python2.7/site-packages/elzar/schemas/__init__.py", line 139, in __call__
thing = getter(req, domain_object, context)
Xapian::Query((2 * (((XENTITIES2:united:(pos=1) PHRASE 2 XENTITIES2:states:(pos=2)) ELITE_SET 10 (XENTITIES2:north:(pos=1) P
HRASE 2 XENTITIES2:america:(pos=2)) ELITE_SET 10 (XENTITIES2:new:(pos=1) PHRASE 2 XENTITIES2:zealand:(pos=2)) ELITE_SET 10 (
XENTITIES2:carl:(pos=1) PHRASE 2 XENTITIES2:linnaeus:(pos=2)) ELITE_SET 10 0 * XENTITY1:gypsy ELITE_SET 10 0 * XENTITY1:moth
ELITE_SET 10 0 * XENTITY2:gypsy moth ELITE_SET 10 (XENTITIES2:leopold:(pos=1) PHRASE 2 XENTITIES2:trouvelot:(pos=2)) ELITE_
SET 10 (XENTITIES2:ic:(pos=1) PHRASE 2 XENTITIES2:caterpillar2:(pos=2)) ELITE_SET 10 (XENTITIES2:larvae:(pos=1) PHRASE 2 XEN
TITIES2:gypsy:(pos=2)) ELITE_SET 10 (XENTITIES2:lymantria:(pos=1) PHRASE 2 XENTITIES2:dispar01:(pos=2)) ELITE_SET 10 (XENTIT
IES2:adults:(pos=1) PHRASE 2 XENTITIES2:lymantria:(pos=2)) ELITE_SET 10 (XENTITIES2:pupae:(pos=1) PHRASE 2 XENTITIES2:lymant
ria:(pos=2))) AND_MAYBE (XTITLE:gypsy:(pos=1) PHRASE 2 XTITLE:moth:(pos=2))) AND_NOT 0 * XNAME:gypsy moth))
(gdb) where
#0 0x00007ffff692e57c in free () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007ffff32100f1 in deallocate (__p=<optimized out>, this=<optimized out>) at /usr/include/c++/4.6/ext/new_allocator.h:98
#2 _M_deallocate (__p=<optimized out>, this=<optimized out>, __n=<optimized out>) at /usr/include/c++/4.6/bits/stl_vector.h:156
#3 ~_Vector_base (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/c++/4.6/bits/stl_vector.h:142
#4 ~vector (this=0x7712bfa8, __in_chrg=<optimized out>) at /usr/include/c++/4.6/bits/stl_vector.h:351
#5 ~OmDocumentTerm (this=0x7712bf98, __in_chrg=<optimized out>) at ./common/documentterm.h:36
#6 ~pair (this=0x7712bf90, __in_chrg=<optimized out>) at /usr/include/c++/4.6/bits/stl_pair.h:87
#7 destroy (__p=0x7712bf90, this=<optimized out>) at /usr/include/c++/4.6/ext/new_allocator.h:118
#8 _M_destroy_node (__p=0x7712bf70, this=<optimized out>) at /usr/include/c++/4.6/bits/stl_tree.h:394
#0 0x00007ffff692e57c in free () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1 0x00007ffff32100f1 in deallocate (__p=<optimized out>, this=<optimized out>) at /usr/include/c++/4.6/ext/new_allocator.h:98
No locals.
#2 _M_deallocate (__p=<optimized out>, this=<optimized out>, __n=<optimized out>) at /usr/include/c++/4.6/bits/stl_vector.h:156
No locals.
#3 ~_Vector_base (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/c++/4.6/bits/stl_vector.h:142
No locals.
#4 ~vector (this=0x7712bfa8, __in_chrg=<optimized out>) at /usr/include/c++/4.6/bits/stl_vector.h:351
No locals.