Skip to content

Instantly share code, notes, and snippets.

Possible Anaconda Git branching model
=====================================
The idea is to have these four branches:
master
unstable
<next fedora number>-release
<next fedora number>-devel
DEBUG : argv from QML:
['-I', 'modules/gui_modules/gui_qt5/qml/universal_components/controls', '-u', 'qt5']
DEBUG : full argv:
['modrana.py', '-I', 'modules/gui_modules/gui_qt5/qml/universal_components/controls', '-u', 'qt5']
INFO : == modRana Starting ==
INFO : 0.53.2
INFO : Python 3.4.3
INFO core.platform_detection: ** detecting current device **
INFO core.platform_detection: * PC detected
INFO core.platform_detection: ** selected pc as device module ID **
@M4rtinK
M4rtinK / gist:b634432063f81beb034ae3c37d1a6e7b
Created May 16, 2016 21:45
modRana log from a PyOtherSide crash
DEBUG : argv from QML:
['-I', 'modules/gui_modules/gui_qt5/qml/universal_components/controls', '-u', 'qt5']
DEBUG : full argv:
['modrana.py', '-I', 'modules/gui_modules/gui_qt5/qml/universal_components/controls', '-u', 'qt5']
INFO : == modRana Starting ==
WARNING core.paths: local version file is missing
INFO : unknown version
INFO : Python 3.4.3
INFO core.platform_detection: ** detecting current device **
INFO core.platform_detection: * PC detected
gedit
diff --git a/core/constants.py b/core/constants.py
index 6779fea..3c7f6f4 100644
--- a/core/constants.py
+++ b/core/constants.py
@@ -35,6 +35,7 @@ CONNECTIVITY_UNKNOWN = None
DEFAULT_TILE_STORAGE_TYPE = "files"
TILE_STORAGE_FILES = "files"
TILE_STORAGE_SQLITE = "sqlite"
+TILE_STORAGE_TYPES = [TILE_STORAGE_FILES, TILE_STORAGE_SQLITE]
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
@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
@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: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: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 {
[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