Skip to content

Instantly share code, notes, and snippets.

View hallahan's full-sized avatar

Nick Hallahan hallahan

View GitHub Profile
@hallahan
hallahan / gist:4dd07df4e3fbcc7e4c47
Created January 6, 2015 21:16
APK MapboxGL Crash
This file has been truncated, but you can view the full file.
--------- beginning of /dev/log/main
I/McDaemon( 2545): Daemon starting up...
I/McDaemon( 2545): Socket interface version is 0.2
I/McDaemon( 2545): *** SAMSUNG_Exynos5410_Release_V006 ###
I/McDaemon( 2545): Build timestamp is Feb 18 2014 10:14:54
I/McDaemon( 2545): Checking version of MobiCore
I/McDaemon( 2545): Product ID is tbase-200_EXYNOS5410_V005_Patch13
I/McDaemon( 2545): (null)
I/McDaemon( 2545): (null)
I/McDaemon( 2545): (null)
@hallahan
hallahan / gist:dd836a3176d9c298751c
Created December 22, 2014 23:34
MapboxGL Android Crash Log
This file has been truncated, but you can view the full file.
--------- beginning of /dev/log/system
D/STATUSBAR-PhoneStatusBar( 3272): mBrightnessEnablebySettings = true mBrightnessEnablebyBattery = true mBrightnessEnablebyDisableFlag = true mPmsBrightnessEnablebySettings = true
D/STATUSBAR-IconMerger( 3272): checkOverflow(576), More:false, Req:false Child:6
D/BatteryMeterView( 3272): ACTION_BATTERY_CHANGED : level:66 status:2 health:2
D/SSRMv2:Monitor( 3036): SIOP:: AP = 300, Prev AP = 300, Duration = 10029, PST = 308
D/SSRMv2:AmoledAdjustTimer( 3036): prevTemp = 265, currTemp = 265, prevStep = 4, currStep = 4
E/Watchdog( 3036): !@Sync 632
V/AlarmManager( 3036): waitForAlarm result :4
V/AlarmManager( 3036): trigger ELAPSED_REALTIME_WAKEUP or RTC_WAKEUP
D/BatteryService( 3036): level:66, scale:100, status:2, health:2, present:true, voltage: 3987, temperature: 265, technology: Li-ion, AC powered:false, USB powered:true, Wireless powered:false, icon:17303408, invalid charger:0, online:4, current avg:460, charge type:1
12-17 19:48:05.491 12568-12568/com.mapbox.mapboxgl.app W/ApplicationPackageManager﹕ getCSCPackageItemText()
12-17 19:48:05.516 12568-12568/com.mapbox.mapboxgl.app V/MainActivity﹕ onCreate
12-17 19:48:05.536 12568-12568/com.mapbox.mapboxgl.app I/dalvikvm﹕ Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.internal.widget.TintTypedArray.getChangingConfigurations
12-17 19:48:05.536 12568-12568/com.mapbox.mapboxgl.app W/dalvikvm﹕ VFY: unable to resolve virtual method 368: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
12-17 19:48:05.536 12568-12568/com.mapbox.mapboxgl.app D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0002
12-17 19:48:05.541 12568-12568/com.mapbox.mapboxgl.app I/dalvikvm﹕ Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.internal.widget.TintTypedArray.getType
12-17 19:48:05.541 12568-12568/com.mapbox.mapboxgl.app W/dalvikvm﹕ VFY: unable to resolve virtua
@hallahan
hallahan / nginx.conf
Created October 31, 2014 21:27
Showing the NGINX Config Files in SpatialServer
user www-data;
worker_processes 4;
pid /run/nginx.pid;
events {
worker_connections 768;
# multi_accept on;
}
http {
@hallahan
hallahan / installation.md
Last active February 14, 2017 13:00
SpatialServer Installation Instructions

Preliminary Packages

Make sure you have done sudo apt-get update and sudo apt-get upgrade on your fresh install. This guide is geared toward Ubuntu 14.04 LTS (Trusty Tahr). Most of the guide will work for earlier versions of Ubuntu with some slight changes, but 14.04 is advised.

Enable the root user

sudo cp /home/ubuntu/.ssh/authorized_keys /root/.ssh/
@hallahan
hallahan / LayerConfig.js
Created July 29, 2014 18:51
An example LayerConfig file for GeoAngular
/**
* Created by Nicholas Hallahan <nhallahan@spatialdev.com>
* on 3/18/14.
*/
/**
* All of the layer names need to be lowercase.
*/
module.exports = angular.module('GeoAngular').service('LayerConfig', function () {
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# -----------------------------
# PostgreSQL configuration file
# -----------------------------
#
# This file consists of lines of the form:
#
# name = value
#
# (The "=" is optional.) Whitespace may be used. Comments are introduced with
# "#" anywhere on a line. The complete list of parameter names and allowed
@hallahan
hallahan / experiment.js
Created April 24, 2014 18:33
Attempt at basic usage of vector-tile-js
/**
* Created by Nicholas Hallahan <nhallahan@spatialdev.com>
* on 4/23/14.
*/
var fs = require('fs');
var VectorTile = require('vector-tile');
var testPbf = fs.readFileSync('./node_modules/vector-tile/test/fixtures/14-8801-5371.vector.pbf');
var testVct = new VectorTile(testPbf);
@hallahan
hallahan / washington.geojson
Last active August 29, 2015 14:00
The State of Washington from GADM (Very Simplified)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.