some problems i have on debian (stable) with my android phone
- device only recognized when configured as disk
- not recognized when configured as media device
- for rhythmbox it needs to be a media device
| def parse_payload(data): | |
| assert data, "Invalid data to parse, it's empty." | |
| length, extra = data.split(':', 1) | |
| length = int(length) | |
| payload, extra = extra[:length], extra[length:] | |
| assert extra, "No payload type: %r, %r" % (payload, extra) | |
| payload_type, remain = extra[0], extra[1:] | |
| assert len(payload) == length, "Data is wrong length %d vs %d" % (length, len(payload)) |
| detox | |
| Traceback (most recent call last): | |
| File "/usr/local/bin/detox", line 9, in <module> | |
| load_entry_point('detox==0.4.dev3', 'console_scripts', 'detox')() | |
| File "/home/ronny/Projects/codespeak/detox/detox/main.py", line 17, in main | |
| detox.startloopreport() | |
| File "/home/ronny/Projects/codespeak/detox/detox/proc.py", line 106, in startloopreport | |
| if self.toxsession.report.tw.hasmarkup: | |
| File "/home/ronny/Projects/codespeak/detox/detox/proc.py", line 115, in toxsession | |
| self._toxconfig, Report=ToxReporter, popen=Popen) |
| rake plugin="git://github.com/iriscouch/browserid_couchdb origin/master" |
| % pypy-bin -m unittest test.test_oddball.ThreadingTest | |
| MainThread: <TestThread(Thread-1, initial)>.start(): starting thread | |
| <OS thread 139821105706752>: <Condition(<thread.lock object at 0x0000000003154260>, 0)>.notify(): no waiters | |
| Thread-1: <TestThread(Thread-1, started 139821105706752)>.__bootstrap(): thread started | |
| Thread-1: <TestThread(Thread-1, started 139821105706752)>.__bootstrap(): registering trace hook | |
| Thread-1: <TestThread(Thread-1, started 139821105706752)>.__bootstrap(): normal return | |
| Thread-1: <Condition(<thread.lock object at 0x0000000003154270>, 0)>.notify(): no waiters | |
| MainThread: <TestThread(Thread-1, stopped 139821105706752)>.join(): thread stopped | |
| Coverage.py warning: Trace function changed, measurement is likely wrong: None | |
| FMainThread: <Thread(Thread-2, initial)>.start(): starting thread |
| # coding: utf-8 | |
| import pytest | |
| import os | |
| import random | |
| @pytest.fixture(params=xrange(10)) | |
| def password(): | |
| return os.urandom(random.randrange(6, 10)).encode("hex") |
| #!/bin/bash | |
| # A hacky command for a common task: | |
| # - stash away all changes in working branch | |
| # - update master from SVN | |
| # - rebase working branch on master | |
| # - flush all committed changes from working branch to master | |
| # - push them to SVN | |
| # - update working branch again | |
| # - patch in changes |
| import pytest | |
| pytest_plugins = 'pytester' | |
| @pytest.fixture | |
| def testdir(testdir): | |
| testdir.foo = 1 |
| roundrobin 0.148742198944 | |
| roundrobin_stable 0.169327974319 | |
| roundrobin_rotate 0.246076822281 | |
| roundrobin | |
| 204064 function calls in 1.340 seconds | |
| Ordered by: standard name | |
| ncalls tottime percall cumtime percall filename:lineno(function) | |
| 2000 0.000 0.000 0.000 0.000 :0(iter) |
| $ ~/.local/bin/python | |
| Could not find platform dependent libraries <exec_prefix> | |
| Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] | |
| Python 2.7.5 (default, Nov 5 2013, 11:14:45) | |
| [GCC 4.7.2 20130108 [gcc-4_7-branch revision 195012]] on linux2 | |
| Type "help", "copyright", "credits" or "license" for more information. | |
| Traceback (most recent call last): | |
| File "/etc/pythonstart", line 7, in <module> | |
| import readline | |
| ImportError: No module named readline |