Skip to content

Instantly share code, notes, and snippets.

_type_map.update({
sqlalchemy.types.REAL: primitive.Float,
sqlalchemy.types.FLOAT: primitive.Float,
sqlalchemy.types.NUMERIC: primitive.Decimal,
sqlalchemy.types.DECIMAL: primitive.Decimal,
sqlalchemy.types.INTEGER: primitive.Integer,
sqlalchemy.types.INT: primitive.Integer,
sqlalchemy.types.SMALLINT: primitive.Integer,
sqlalchemy.types.BIGINT: primitive.Integer,
sqlalchemy.types.TIMESTAMP: primitive.DateTime,
@kolen
kolen / stacktrace.txt
Created March 6, 2014 11:49
Robomongo crash stacktrace
Thread 10 (Thread 0x7fffe2cb6700 (LWP 16868)):
#0 0x0000000000665610 in mongo::Scope::invoke (this=0x0, code=0xa77490 "function callShellAutocomplete(x) {shellAutocomplete(x)}", args=0x7fffe2cb4ec0, recv=0x0, timeoutMs=1000) at /home/kolen/items/robomongo/src/robomongo/shell/scripting/engine.cpp:93
func = 6652173
#1 0x000000000070ac45 in mongo::Scope::invokeSafe (this=0x0, code=0xa77490 "function callShellAutocomplete(x) {shellAutocomplete(x)}", args=0x7fffe2cb4ec0, recv=0x0, timeoutMs=1000) at /home/kolen/items/robomongo/src/third-party/mongodb/src/mongo/scripting/engine.h:103
No locals.
#2 0x00000000007094cb in Robomongo::ScriptEngine::complete (this=0x7fffd8000990, prefix=...) at /home/kolen/items/robomongo/src/robomongo/core/engine/ScriptEngine.cpp:234
arr = {_objdata = 0x7fffe2cb4f00 "p", <incomplete sequence \337>, _holder = {px = 0x63a3d8 <std::allocator<Robomongo::MongoShellResult>::~allocator()+24>}}
i = {_pos = 0x0, _theend = 0x7fffe2cb4ff0 ""}
results = {<QList<Q
@kolen
kolen / trace.txt
Created March 6, 2014 15:04
Robomongo stacktrace
bt full
#0 0x00007ffff55ecf77 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
resultvar = 0
pid = 19539
selftid = 19652
#1 0x00007ffff55f05e8 in __GI_abort () at abort.c:90
save_stage = 2
act = {__sigaction_handler = {sa_handler = 0x7ffff7dd8dc0, sa_sigaction = 0x7ffff7dd8dc0}, sa_mask = {__val = {17931680, 140737319888649, 140737351945333, 5, 0, 140737313736776, 140737309822184, 140737313736776, 140737319888649, 140736818017088, 140737351972645, 140736998368976, 18446744073709551615, 1, 140736750811504, 140736818140256}}, sa_flags = 10, sa_restorer = 0x7fffe2cb6700}
sigs = {__val = {32, 0 <repeats 15 times>}}
#2 0x00007ffff5ef86e5 in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
@kolen
kolen / gist:9406882
Created March 7, 2014 07:18
Robomongo freeze stacktrace
(gdb) thread apply all backtrace full
thread apply all backtrace full
Thread 13 (Thread 0x7fffe2cb6700 (LWP 883)):
#0 0x00007ffff61ab41d in nanosleep () at ../sysdeps/unix/syscall-template.S:81
No locals.
#1 0x00000000007a5e12 in mongo::sleepmicros (s=30000000) at src/mongo/util/time_support.cpp:190
t = {tv_sec = 30, tv_nsec = 0}
out = {tv_sec = 24, tv_nsec = 169643591}
#2 0x00000000007a5e6e in mongo::sleepmillis (s=30000) at src/mongo/util/time_support.cpp:195
@kolen
kolen / gist:9407218
Created March 7, 2014 07:52
Robomongo freeze stacktrace
(gdb) thread apply all backtrace full
thread apply all backtrace full
Thread 7 (Thread 0x7fffe34b7700 (LWP 1620)):
#0 0x00007ffff61ab067 in __libc_recv (fd=23, buf=0x7fffe34b4c5c, n=4, flags=-1) at ../sysdeps/unix/sysv/linux/x86_64/recv.c:33
resultvar = 18446744073709551104
oldtype = 0
result = -512
#1 0x000000000079f677 in mongo::Socket::_recv (this=0x7fffd4124d70, buf=0x7fffe34b4c5c "\377\377\377\377", max=4) at src/mongo/util/net/sock.cpp:648
No locals.
@kolen
kolen / out.txt
Last active August 29, 2015 14:07
osm_test_validator toilets_vodokanal_spb RU-SPE --all
Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /Users/kolen/items/validator/common/Validator.class.php on line 297
[17:13:57] Update real data
Total objects: 218
First object:
Array
(
[0] => Array
(
[amenity] => toilets
@kolen
kolen / out.txt
Created October 3, 2014 18:17
osm_test_validator podruzhka RU-SPE --all
Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /Users/kolen/items/validator/common/Validator.class.php on line 297
[17:53:11] Update real data
Total objects: 143
First object:
Array
(
[0] => Array
(
[shop] => chemist
@kolen
kolen / gist:cbd7d4647dc761afa273
Created December 8, 2014 08:49
Gjs-WARNING **: JS ERROR: Error: Git-gui appears to be running, but doesn't have any windows
Dec 08 11:45:27 bullfinch gnome-session[2537]: (gnome-shell:2623): Gjs-WARNING **: JS ERROR: Error: Git-gui appears to be running, but doesn't have any windows
Dec 08 11:45:27 bullfinch gnome-session[2537]: AppSwitcher<._init@resource:///org/gnome/shell/ui/altTab.js:453
Dec 08 11:45:27 bullfinch gnome-session[2537]: wrapper@resource:///org/gnome/gjs/modules/lang.js:169
Dec 08 11:45:27 bullfinch gnome-session[2537]: _Base.prototype._construct@resource:///org/gnome/gjs/modules/lang.js:110
Dec 08 11:45:27 bullfinch gnome-session[2537]: Class.prototype._construct/newClass@resource:///org/gnome/gjs/modules/lang.js:204
Dec 08 11:45:27 bullfinch gnome-session[2537]: AppSwitcherPopup<._init@resource:///org/gnome/shell/ui/altTab.js:67
Dec 08 11:45:27 bullfinch gnome-session[2537]: wrapper@resource:///org/gnome/gjs/modules/lang.js:169
Dec 08 11:45:27 bullfinch gnome-session[2537]: _Base.prototype._construct@resource:///org/gnome/gjs/modules/lang.js:110
Dec 08 11:45:27 bullfinch gnome-session[2537]: Class.prototype._con
@kolen
kolen / LastTest.log
Created December 28, 2014 11:27
ceres-solver ``cmake test`` log
Start testing: Dec 28 14:22 MSK
----------------------------------------------------------
1/62 Testing: array_utils_test
1/62 Test: array_utils_test
Command: "/tmp/ceres-solver-uhT8mQ/ceres-solver-1.10.0/bin/array_utils_test" "--test_srcdir" "/tmp/ceres-solver-uhT8mQ/ceres-solver-1.10.0/data"
Directory: /tmp/ceres-solver-uhT8mQ/ceres-solver-1.10.0/internal/ceres
"array_utils_test" start time: Dec 28 14:22 MSK
Output:
----------------------------------------------------------
dyld: Library not loaded: /usr/local/lib/libgflags.2.dylib
#!/usr/bin/python
import sqlite3
conn = sqlite3.connect('/tmp/example')
c = conn.cursor()
# Create table
c.execute('''create table stocks