Skip to content

Instantly share code, notes, and snippets.

@M4rtinK
M4rtinK / gist:3898750
Created October 16, 2012 11:23
gtk-app.py sdout log
WARNING:mapcss.parser:unknown thing found: ::*
WARNING:mapcss.parser:unknown thing found: *::*
491.507477626 1592.02229714
Tiles count: 0
Rendering image started
Getting data started
[3078272.0031006187, 7145333.404095208, 3078883.4993268996, 7145944.900321487]
Asking backend started
Failed open: 'tiles/z16/18/x18900/6/y6577.vtile'
Failed open: 'tiles/z16/18/x18901/6/y6577.vtile'
@M4rtinK
M4rtinK / gist:4505072
Created January 10, 2013 19:33
PySide @bb10 segfault log when importing bbpy - the Python interpreter was started like this: python3.2 -vd
$ python3.2 -vd
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
import encodings # directory /usr/lib/python3.2/encodings
import encodings # precompiled from /usr/lib/python3.2/encodings/__init__.pyc
import codecs # precompiled from /usr/lib/python3.2/codecs.pyc
import _codecs # builtin
import encodings.aliases # precompiled from /usr/lib/python3.2/encodings/aliases.pyc
import encodings.utf_8 # precompiled from /usr/lib/python3.2/encodings/utf_8.pyc
@M4rtinK
M4rtinK / gist:8789905cc2eb1e595ffe
Created October 16, 2014 16:15
Search string for finding who is actually using tiled Canvas in Qt 5 :)
Canvas AND canvasWindow AND tileSize
property var mapPageLoader : null
Connections {
id : mapPageLoadedConnection
target : mapPageLoader
ignoreUnknownSignals : true
onStatusChanged : {
rWin.log.debug("STATUS! " + mapPageLoader.status)
if (mapPageLoader.status == Component.Ready) {
rWin.log.info("map page component loaded")
[78404s] [b368] translation-task}
[78404s] [Timer] Timings:
[78404s] [Timer] annotate --- 7100.0 s
[78404s] [Timer] rtype_lltype --- 23829.8 s
[78404s] [Timer] pyjitpl_lltype --- 19491.6 s
[78404s] [Timer] backendopt_lltype --- 3887.0 s
[78404s] [Timer] stackcheckinsertion_lltype --- 6126.7 s
[78404s] [Timer] database_c --- 5238.4 s
[78404s] [Timer] source_c --- 12040.1 s
[78404s] [Timer] compile_c --- 476.8 s
@M4rtinK
M4rtinK / gist:5eac64011483fb2aef8a
Created December 25, 2014 16:21
Filling a Silica ComboBox from PyOtherSide - approximate untested example
import QtQuick 2.0
import Sailfish.Silica 1.0
import io.thp.pyotherside 1.0
ComboBox {
width: 480
label: "Foo Bar"
id: fooBox
property var dataModel : ListModel {}
Python {
@M4rtinK
M4rtinK / gist:ebbcad51d5621c0aaa20
Created February 20, 2015 20:31
Checking Anaconda Python 3 compatibility
#!/bin/bash
PARAMS="-x print -x unicode -x filter -x map -x dict -x callable -x input"
#PARAMS="-f lambda"
2to3 -v -j 4 $PARAMS . 2>1 | grep -v RefactoringTool:
@M4rtinK
M4rtinK / gist:2e0ada97bdaa394b5a34
Created February 28, 2015 14:19
UC top menu concept
PageHeader {
menu : Menu {
MenuItem {
text : "foo"
onClicked : console.log("Foo!")
}
MenuItem {
text : "bar"
onClicked : console.log("Bar!")
}
@M4rtinK
M4rtinK / gist:b001d02fb4e1ceeba87b
Created March 12, 2015 17:42
Call Qt 5 qmake in a cross platform way (covers at least Mer OBS with Sailfish OS target and Fedora)
%{!?qmake5:%define qmake5 qmake-qt5}
%{!?qtc_qmake5:%define qtc_qmake5 %qmake5}
%qtc_qmake5 QMAKE_CXXFLAGS_RELEASE+="$CFLAGS" monav-light.pro
O_DEBUG -DQT_QUICK_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_XML_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I. -I../mpv -I../mpv/build -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtX11Extras -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtSql -isystem /usr/include/qt5/QtXml -isystem /usr/include/qt5/QtDBus -isystem /usr/include/qt5/QtCore -Irelease -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o release/player/playlistmodel.o player/playlistmodel.cpp
/usr/lib64/ccache/g++ -c -include release/bomi -pipe -I/usr/include/ffmpeg -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/libpng16 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-stron