Skip to content

Instantly share code, notes, and snippets.

@wilhelmberg
wilhelmberg / Part 2 - Debug Mapbox Studio.md
Last active May 15, 2019 14:26
Part 2: Debug MapBox Studio on Windows using WinDbg

Links:

Get WinDbg

  • goto WDK and WinDbg downloads
  • scroll down to Standalone Debugging Tools for Windows (WinDbg)
  • Get the standalone debugging tools (WinDbg) as part of Windows 8.1 SDK
  • execute sdksetup.exe
  • just select Debugging Tools for Windows
@wilhelmberg
wilhelmberg / create-cpg.bat
Created November 25, 2014 13:00
Recursively create CPG files for your shapefiles to get correct encoding when opening them
@echo off
::http://ssrebelious.blogspot.co.at/2012/03/qgis-and-gdal19-encoding-issue.html
::http://plugins.qgis.org/plugins/shapefile_encoding_fixer/
::https://github.com/borysiasty/shapefile_encoding_fixer
::http://en.wikipedia.org/wiki/Character_encoding#Common_character_encodings
::http://en.wikipedia.org/wiki/Code_page#Noteworthy_code_pages
::1250 - Central European
::1251 - Cyrillic
@wilhelmberg
wilhelmberg / convert-to-utf-8.bat
Created November 29, 2014 16:54
Convert Western Europe ISO-8859-1 1252 shapefiles to utf-8
@echo off
CALL "C:\Program Files\QGIS Brighton\OSGeo4W.bat"
::http://ss64.com/nt/syntax-args.html
::d=drive
::p=path
::n=name without extension
for /R %%f in (*.shp) do (
@wilhelmberg
wilhelmberg / Part 1 - Debug Mapbox Studio.md
Last active August 29, 2015 14:16
Part 1: Debug Mapbox Studio.md

Initial diagnosis

All instructions assume 64bit version of Mapbox Studio.

Things to try frist

  • make sure, there are no running mapbox-studio-exe or node.exe processes. If there are, terminate them.
  • Open %USERPROFILE%\.mapbox-studio (paste this into address bar of Explorer).
    • Is there an app.db.compacted? If yes, delete it.
  • Is there an app.log? If yes, send it to us.
@wilhelmberg
wilhelmberg / Mapbox-Studio-Proxy-Setup.md
Last active May 1, 2019 20:23
Mapbox-Studio-Proxy-Setup

raspberry pi connected to internet via ethernet, client with Mapbox Studio connect to raspberry pi via wifi

  • get raspberry pi 2
  • setup ubuntu
  • get usb wifi dongle that supports master (AP) mode, e.g. with RT5370 chip. Search on Amazon

This is based on WiFi AP (RT5370) on Raspberry Pi

don't forget to adjust to your adapters: eth0 and wlan1 used here

@wilhelmberg
wilhelmberg / git-squash.sh
Last active August 29, 2015 14:23
git squash commits already pushed to orgin
#optional, as I messed things up, by not using "--force" or "+<BRANCH>"
git checkout develop
git pull
git checkout develop-vs2015
git pull
#rebase on "develop"
git rebase develop
git push origin +develop-vs2015
#do the squash: 7 commits
@wilhelmberg
wilhelmberg / install-sublime-text-ubuntu.md
Last active November 21, 2021 11:14
install and run **LINUX** sublime text 3 on Windows 10 Linux Subsystem "Ubuntu bash"
sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer

run /opt/sublime_text/sublime_text or sudo ln -s /opt/sublime_text/sublime_text /usr/local/bin/subl

with ubuntu bash on Windows 10 and Xming:

@wilhelmberg
wilhelmberg / cross-platform-msbuild-configuration.md
Last active April 30, 2019 17:53
cross platform msbuild configuration