Skip to content

Instantly share code, notes, and snippets.

Avatar

Tobias Oberstein oberstet

View GitHub Profile
View gist:1353252
oberstet@wwwtavendo: ~/txpostgres/testing $ python txpostgres_error.py -n db1 -d tavendo -u tavendoweb -p correctpw
Unhandled Error
Traceback (most recent call last):
File "/usr/local/lib/python2.6/site-packages/Twisted-11.0.0-py2.6-freebsd-8.2-RELEASE-i386.egg/twisted/python/log.py", line 84, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "/usr/local/lib/python2.6/site-packages/Twisted-11.0.0-py2.6-freebsd-8.2-RELEASE-i386.egg/twisted/python/log.py", line 69, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/usr/local/lib/python2.6/site-packages/Twisted-11.0.0-py2.6-freebsd-8.2-RELEASE-i386.egg/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
View gist:1353259
oberstet@wwwtavendo: ~/txpostgres/testing $ python txpostgres_error.py -n db1 -d tavendo -u tavendoweb -p correctpw
<class 'psycopg2.ProgrammingError'> relation "nonexistent" does not exist
LINE 1: select * from nonexistent
^
42P01
ERROR: relation "nonexistent" does not exist
LINE 1: select * from nonexistent
^
@oberstet
oberstet / gist:7246114
Last active Dec 27, 2015
translation problem with current on Ubuntu 12.04 LTS 64 Bit
View gist:7246114
oberstet@corei7-ubuntu:~/build/pypy/pypy/goal$ hg summary
parent: 67754:2a993c608319
Fixed sys.settrace() of the pypy interpreter when under the JIT.
Zweig: default
Übernehme: (clean)
Aktualisiere: (aktuell)
oberstet@corei7-ubuntu:~/build/pypy/pypy/goal$ ~/pypy-2.1/bin/pypy ../../rpython/bin/rpython -Ojit targetpypystandalone
View gist:7250961
oberstet@corei7-ubuntu:~/scm/AutobahnTestSuite/autobahntestsuite$ ~/pypy-2.1/bin/pypy -u -m autobahntestsuite.wstes-m massconnect
Using implicit spec file 'massconnect.json'
Loading spec from /home/oberstet/scm/AutobahnTestSuite/autobahntestsuite/massconnect.json
Using Twisted reactor class <class 'twisted.internet.epollreactor.EPollReactor'>
Using UTF8 Validator class autobahn.utf8validator.Utf8Validator
Using XOR Masker classes autobahn.xormasker.XorMaskerNull
Using JSON processor module 'json'
{u'options': {u'connections': 64000, u'batchsize': 1000, u'retrydelay': 10, u'batchdelay': 5}, u'servers': [{u'desc': u'Autobahn WebSocket Python on localhost', u'name': u'AutobahnPython', u'uri': u'ws://127.0.0.1:9000'}]}
View gist:7251540
oberstet@corei7-ubuntu:~/scm/wsperf$ g++ --version
g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
Dies ist freie Software; die Kopierbedingungen stehen in den Quellen. Es
gibt KEINE Garantie; auch nicht für MARKTGÄNGIGKEIT oder FÜR SPEZIELLE ZWECKE.
oberstet@corei7-ubuntu:~/scm/wsperf$ g++ -O3 -D_WEBSOCKETPP_CPP11_STL_ -I../websocketpp/ -I$BOOST_ROOT wsperf.cpp -L$BOOST_ROOT/stage/lib -lssl -lcrypto -lsystem -o wsperf
In file included from /usr/include/c++/4.6/thread:35:0,
View gist:7251567
oberstet@corei7-ubuntu:~/scm/wsperf$ g++ -std=c++0x -O3 -D_WEBSOCKETPP_CPP11_STL_ -I../websocketpp/ -I$BOOST_ROOT wsperf.cpp -L$BOOST_ROOT/stage/lib -lssl -lcrypto -lsystem -o wsperf
In file included from wsperf.cpp:6:0:
wspp-config.hpp:57:1: Fehler: expected unqualified-id before »using«
wspp-config.hpp:61:1: Fehler: expected unqualified-id before »using«
wsperf.cpp:20:19: nicht implementiert: Initialisierung nicht-statischer Datenelemente
wsperf.cpp:20:19: Fehler: ISO-C++ verbietet Initialisierung des nicht konstanten statischen Elements »s_fail« in der Klasse
wsperf.cpp: In Funktion »int main(int, char**)«:
wsperf.cpp:181:28: Fehler: »client« wurde in diesem Gültigkeitsbereich nicht definiert
wsperf.cpp:181:28: Anmerkung: empfohlene Alternative:
../websocketpp/websocketpp/roles/client_endpoint.hpp:44:7: Anmerkung: »websocketpp::client«
View gist:7251891
oberstet@corei7-ubuntu:~/scm/wsperf$ clang++ -std=c++0x -stdlib++ -O3 -D_WEBSOCKETPP_CPP11_STL_ -I../websocketpp/ -I$BOOST_ROOT wsperf.cpp -L$BOOST_ROOT/stage/lib -lssl -lcrypto -lsystem -o wsperf
clang: warning: argument unused during compilation: '-stdlib++'
In file included from wsperf.cpp:6:
In file included from ./wspp-config.hpp:6:
In file included from ../websocketpp/websocketpp/config/asio_client.hpp:31:
In file included from ../websocketpp/websocketpp/config/core_client.hpp:37:
In file included from ../websocketpp/websocketpp/concurrency/basic.hpp:31:
In file included from ../websocketpp/websocketpp/common/thread.hpp:38:
In file included from /usr/include/c++/4.6/thread:37:
/usr/include/c++/4.6/chrono:666:7: error: static_assert expression is not an integral constant expression
View gist:7252084
oberstet@corei7-ubuntu:~/scm/wsperf$ g++ -std=c++0x -O2 -D_WEBSOCKETPP_CPP11_STL_ -I../websocketpp/ -I$BOOST_ROOT wsperf.cpp -L$BOOST_ROOT/stage/lib -lssl -lcrypto -lsystem -o wsperf
wsperf.cpp:20:19: nicht implementiert: Initialisierung nicht-statischer Datenelemente
wsperf.cpp:20:19: Fehler: ISO-C++ verbietet Initialisierung des nicht konstanten statischen Elements »s_fail« in der Klasse
wsperf.cpp: In Konstruktor »handshake_test<client_type>::handshake_test() [with client_type = websocketpp::client<wsperf_config<websocketpp::config::asio_client, open_handshake_stats> >]«:
wsperf.cpp:182:40: instanziiert von hier
wsperf.cpp:44:9: Fehler: »class websocketpp::client<wsperf_config<websocketpp::config::asio_client, open_handshake_stats> >« hat kein Element namens »set_tcp_pre_init_handler«
wsperf.cpp:182:40: instanziiert von hier
wsperf.cpp:45:9: Fehler: »class websocketpp::client<wsperf_config<websocketpp::config::asio_client, open_handshake_stats> >« hat kein Element namens »set_tcp_post_init_handler«
View gist:7252200
oberstet@corei7-ubuntu:~/scm/wsperf$ ls -la $BOOST_ROOT/stage/lib | grep system
-rw-rw-r-- 1 oberstet oberstet 213286 Okt 31 14:10 libboost_filesystem.a
lrwxrwxrwx 1 oberstet oberstet 29 Okt 31 14:03 libboost_filesystem.so -> libboost_filesystem.so.1.55.0
-rwxrwxr-x 1 oberstet oberstet 113400 Okt 31 14:03 libboost_filesystem.so.1.55.0
-rw-rw-r-- 1 oberstet oberstet 49018 Okt 31 14:10 libboost_system.a
lrwxrwxrwx 1 oberstet oberstet 25 Okt 31 14:03 libboost_system.so -> libboost_system.so.1.55.0
-rwxrwxr-x 1 oberstet oberstet 20431 Okt 31 14:03 libboost_system.so.1.55.0
oberstet@corei7-ubuntu:~/scm/wsperf$ g++ -std=c++0x -O2 -D_WEBSOCKETPP_CPP11_STL_ -I../websocketpp/ -I$BOOST_ROOT wsperf.cpp -L$BOOST_ROOT/stage/lib -lssl -lcrypto -lsystem -o wsperf
/usr/bin/ld: cannot find -lsystem
collect2: ld gab 1 als Ende-Status zurück
View gist:7252599
[{"tcp_pre_init":183738,"tcp_post_init":4,"open":231363,"close":240843,"failed":false},