Skip to content

Instantly share code, notes, and snippets.

@Karry
Karry / Chat with ChatGPT.md
Created February 27, 2023 23:08
Discussion with ChatGPT about using machine learning to solve https://github.com/Framstag/libosmscout/issues/1165

Hi, how I should call you?

Hello! You can call me ChatGPT. How may I assist you today?

Hi ChatGPT, as you are variant of artificial intelligence, you may help me with programming of machine learning, right?

Yes, I have been trained on a wide variety of topics, including machine learning. I can certainly help you with programming related to machine learning. What do you need help with specifically?

I would like to create system that generates human readable navigation instructions from vector map data. I already have algorithm that compute optimal route from point A to point B, but now, I need to generate navigation instructions for humans...

@Karry
Karry / jolla-settings-strace.log
Created February 5, 2021 09:41
Sailfish OS 4 account issue, strace log
This file has been truncated, but you can view the full file.
Password:
execve("/usr/bin/jolla-settings", ["/usr/bin/jolla-settings"], 0xbec66704 /* 54 vars */) = 0
brk(NULL) = 0xb8033000
uname({sysname="Linux", nodename="Sailfish", ...}) = 0
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=48272, ...}) = 0
mmap2(NULL, 48272, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb6fd2000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/libjollasignonuiservice-qt5.so.0", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
@Karry
Karry / libnextcloudshareplugin.symbols
Created May 3, 2020 21:09
objdump -C --dynamic-syms /usr/lib/nemo-transferengine/plugins/libnextcloudshareplugin.so > libnextcloudshareplugin.symbols
/usr/lib/nemo-transferengine/plugins/libnextcloudshareplugin.so: file format elf32-littlearm
DYNAMIC SYMBOL TABLE:
0000a378 l d .init 00000000 .init
00036640 l d .data 00000000 .data
00000000 DF *UND* 00000000 MediaTransferInterface::~MediaTransferInterface()
00000000 DF *UND* 00000000 Qt_5 QVariant::operator=(QVariant const&)
00000000 DF *UND* 00000000 MediaTransferInterface::setProgress(float)
00000000 DF *UND* 00000000 Accounts::Service::displayName() const
@Karry
Karry / osmscout-node-perf.txt
Created January 5, 2019 18:45
osmscout PerformanceTest results with multiple modification
./PerformanceTest-XXX \
--debug \
--draw-repeat 0 --load-repeat 1 \
--cache-nodes 100000 \
--cache-ways 40000 \
--cache-areas 5000 \
--start-zoom 0 --end-zoom 18 \
--tile-width 1200 --tile-height 1200 \
--driver Qt \
/media/sdcard/9016-4EF8/Maps/europe-france-20181228-061105 \
#include <osmscout/util/Geometry.h>
#include <osmscout/util/Projection.h>
#include <osmscout/system/Math.h>
#define CATCH_CONFIG_MAIN
#include <catch.hpp>
#include <chrono>
#include <iostream>
@Karry
Karry / LocationInfoExample.qml
Last active August 24, 2018 22:42
Example howto use LocationInfoModel from libosmscout
import QtQuick 2.2
import QtQuick.Controls 1.1
import QtQuick.Layouts 1.1
import QtQuick.Controls.Styles 1.1
import QtQuick.Window 2.0
import QtQml.Models 2.2
import net.sf.libosmscout.map 1.0
@Karry
Karry / nemo-transfer-engine.backtrace
Created June 2, 2018 14:04
nemo-transfer-engine.backtrace
#0 0xb6fb7d98 in load (__m=std::memory_order_relaxed, this=0x3f) at /opt/cross/armv7hl-meego-linux-gnueabi/include/c++/4.8.3/bits/atomic_base.h:496
__b = std::memory_order_relaxed
#1 load<int> (_q_value=...) at /usr/include/qt5/QtCore/qatomic_cxx11.h:96
No locals.
#2 load (this=0x3f) at /usr/include/qt5/QtCore/qbasicatomic.h:119
No locals.
#3 deref (this=0x3f) at /usr/include/qt5/QtCore/qrefcount.h:60
No locals.
#4 ~QHash (this=0xbefff538, __in_chrg=<optimized out>) at /usr/include/qt5/QtCore/qhash.h:247
No locals.
@Karry
Karry / harbour-slackfish-startup.log
Created January 19, 2018 11:23
harbour-slackfish-startup.log
Jan 19 12:17:25 Sailfish lipstick[1096]: [W] unknown:151 - file:///usr/share/lipstick-jolla-home-qt5/statusarea/ConnectionStatusIndicator.qml:151:5: QML NetworkManager: Binding loop detected for property "technologiesEnabled"
Jan 19 12:17:25 Sailfish [812]: [D] unknown:0 - Setting last version 1.4
Jan 19 12:17:25 Sailfish dbus-daemon[1037]: Activating service name='org.freedesktop.Geoclue.Providers.Mlsdb'
Jan 19 12:17:25 Sailfish [1362]: [D] unknown:0 - cellId-based positioning has been enabled
Jan 19 12:17:25 Sailfish [1362]: [D] unknown:0 - Mozilla Location Services geoclue plugin active
Jan 19 12:17:25 Sailfish [1362]: [D] unknown:0 - cellular network registrations changed, updating position
Jan 19 12:17:25 Sailfish [1362]: [D] unknown:0 - have 0 neighbouring cells
Jan 19 12:17:26 Sailfish org.freedesktop.Geoclue.Providers.Mlsdb[1037]: SailfishKeyProvider_ini_read: reached end of file
Jan 19 12:17:26 Sailfish [812]: [D] hasUserInfo:22 - hasUserInfo false
Jan 19 12:17:26 Sailfish [812]: [D] unknown:0 - GET
@Karry
Karry / LocationLookup.log
Created September 17, 2017 21:40
Output from LocationLookup demo from osmscout project
Searching for pattern "Pod Lipami, Praha"
= Location (Pod Lipami) ~ PostalArea (13000) = Žižkov
* Žižkov/Praha/okres Hlavní město Praha/Hlavní město Praha/Praha/Česko
- Way 96115374 highway_residential
- Way 96117889 highway_residential
- Way 96118107 highway_residential
- Way 96118801 highway_residential
- Way 96118915 highway_residential
- Way 96123857 highway_residential
- Way 96124007 highway_service
@Karry
Karry / location_full.diff
Created September 10, 2017 22:50
diff of osmscout locations after fix
This file has been truncated, but you can view the full file.
--- location_full.1.txt 2017-09-09 19:02:05.531207638 +0200
+++ location_full.2.txt 2017-09-10 21:41:20.739130877 +0200
@@ -333,6 +333,7 @@
@ 669 Node 37231806
- Hranice
= Node 37085451
+ @ ev.237 Node 36906547
@ ev.31 Node 36906759
@ 437 Node 36906774
@ ev.166 Node 37080653