Skip to content

Instantly share code, notes, and snippets.

View jamii's full-sized avatar

Jamie Brandon jamii

View GitHub Profile
Waiting for the locker to startup...
♢ Facebook Connector
Facebook Connector can get friends from Facebook
✓ and returns within 5 seconds
Facebook connector can get all friends A GET to /Me/c2b28e92ebe576c5687ce1ce9d2f25c2/allContacts
✓ should respond with 200
✓ returns one friend
✓ returns Simon as only friend
jamie@alien:~/Locker/tests$ ./runTests locker-issues-test.js
Waiting for the locker to startup...
Running only tests locker-issues-test.js
♢ Locker Core Issues
Issues #15 - Services do not spawn when called through the proxy A GET to /Me/slowStarter/firstPass
✗ should respond with 200
» expected 200,
got 404 (==) // rest-easy.js:233
In [5]: help(mt)
---------------------------------------------------------------------------
Fault Traceback (most recent call last)
/home/jamie/Locker/Connectors/MoveableType/<ipython console> in <module>()
/usr/lib/python2.6/site.pyc in __call__(self, *args, **kwds)
430 def __call__(self, *args, **kwds):
431 import pydoc
--> 432 return pydoc.help(*args, **kwds)
jamie@alien:~$ ubuntuone-preferences
ERROR:dbus.proxies:Introspect error on com.ubuntuone.SyncDaemon:/config: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ChildExited: Process /usr/lib/ubuntuone-client/ubuntuone-syncdaemon exited with status 1
ERROR:dbus.connection:Exception in handler for D-Bus signal:
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 214, in maybe_handle_message
self._handler(*args, **kwargs)
File "/usr/bin/ubuntuone-preferences", line 1059, in got_newcredentials
self.present()
File "/usr/bin/ubuntuone-preferences", line 1039, in present
self.dialog.connect_desktopcouch_exclusion()
jamie@alien:~$ pkill ubuntuone
jamie@alien:~$ pkill couch
jamie@alien:~$ pkill beam
jamie@alien:~$ pgrep beam
jamie@alien:~$ pgrep couch
jamie@alien:~$ pgrep ubuntu
15317
jamie@alien:~$ pkill ubuntu-sso
jamie@alien:~$ rm -rf ~/.cache/desktop-couch ~/.config/desktop-couch ~/.local/share/desktop-couch
jamie@alien:~$ ubuntuone-preferences
jamie@alien:~$ cat .cache/desktop-couch/desktop-couchdb.log.1
[Tue, 03 May 2011 15:10:43 GMT] [info] [<0.31.0>] Apache CouchDB has started on http://127.0.0.1:39759/
[Tue, 03 May 2011 15:10:43 GMT] [debug] [<0.103.0>] 'HEAD' /management {1,1}
Headers: [{'Accept',"application/json"},
{'Accept-Encoding',"gzip, deflate"},
{'Host',"localhost:39759"},
{'User-Agent',"couchdb-python 0.6"}]
[Tue, 03 May 2011 15:10:44 GMT] [debug] [<0.103.0>] OAuth Params: []
jamie@alien:~$ cat ~/.cache/desktop-couch/desktop-couchdb.stdout.1
Apache CouchDB 1.0.1 (LogLevel=debug) is starting.
Configuration Settings ["/etc/couchdb/default.ini",
"/etc/xdg/desktop-couch/compulsory-auth.ini",
"/home/jamie/.config/desktop-couch/desktop-couchdb.ini"]:
[admins] vXozLhdNpe="-hashed-2166e58aa70eec9177982fc48f72b71a1dce1644,3d7896b3552675ff3c0190a4a3866bde"
[attachments] compressible_types="text/*, application/javascript, application/json, application/xml"
[attachments] compression_level="8"
[couch_httpd_auth] auth_cache_size="50"
jamie@alien:~$ ubuntuone-preferences
ERROR:dbus.proxies:Introspect error on com.ubuntuone.SyncDaemon:/config: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ChildExited: Process /usr/lib/ubuntuone-client/ubuntuone-syncdaemon exited with status 1
ERROR:ubuntuone-preferences:Replication service not available.
INFO:ubuntuone-preferences:Got credentials for Ubuntu One
ERROR:ubuntuone-preferences:org.freedesktop.DBus.Error.Spawn.ChildExited: Process /usr/lib/ubuntuone-client/ubuntuone-syncdaemon exited with status 1
ERROR:ubuntuone-preferences:org.freedesktop.DBus.Error.Spawn.ChildExited: Process /usr/lib/ubuntuone-client/ubuntuone-syncdaemon exited with status 1
jamie@alien:~$ cat .cache/ubuntuone/log/syncdaemon.log
2011-05-04 00:29:44,482 - ubuntuone.SyncDaemon - ERROR - Unexpected error
Traceback (most recent call last):
from disco.core import Job
from disco.worker.classic.func import chain_reader
import datetime
class Download(object):
def __init__(self, id, doi, date, ip):
self.id = id
self.doi = doi
self.date = datetime.date(int(date[0:4]), int(date[5:7]), int(date[8:10]))
from disco.core import Job
from disco.worker.classic.func import chain_reader
import re
download_pattern = re.compile("{ _id: ObjectId\('([^']*)'\), d: ([^,]*), doi: \"([^\"]*)\", i: \"([^\"]*)\", s: ([^,]*), ip: \"([^\"]*)\" }")
class ParseDownloads(Job):
map_reader = staticmethod(chain_reader)