Skip to content

Instantly share code, notes, and snippets.

View springmeyer's full-sized avatar

Dane Springmeyer springmeyer

View GitHub Profile
Thread 13 (Thread 0x7fffb3d43700 (LWP 21272)):
#0 0x00007ffff6837f2b in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1 0x0000000000537eac in ?? ()
#2 0x00007ffff6832d8c in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#3 0x00007ffff657e04d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#4 0x0000000000000000 in ?? ()
Thread 12 (Thread 0x7fffb3d54700 (LWP 21271)):
#0 0x00007ffff6837f2b in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1 0x0000000000537eac in ?? ()
diff --git a/models/Project.server.bones b/models/Project.server.bones
index d4014fd..ce2008c 100644
--- a/models/Project.server.bones
+++ b/models/Project.server.bones
@@ -161,7 +161,7 @@ function loadProject(model, callback) {
});
},
function(err, file) {
- if (err) return callback(new Error.HTTP('Project does not exist', 404));
+ if (err) return callback(new Error.HTTP('Project does not exist ' + err.toString(), 404));
diff --git a/platforms/ubuntu/debian/rules b/platforms/ubuntu/debian/rules
index fa49306..6b7cff9 100755
--- a/platforms/ubuntu/debian/rules
+++ b/platforms/ubuntu/debian/rules
@@ -13,6 +13,11 @@ build:
./configure ; \
fi ; \
make ; \
+ else \
+ if [ -f "$$file/wscript" ]; then \
@springmeyer
springmeyer / gist:1673969
Created January 25, 2012 01:17
apt-cache showpkg libglib2.0
mapnik@mapnik-VirtualBox:/usr/share/tilemill$ apt-cache showpkg libglib2.0
Package: libglib2.0-0
Versions:
2.30.0-0ubuntu4 (/var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_oneiric_main_binary-amd64_Packages) (/var/lib/dpkg/status)
Description Language: en
File: /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_oneiric_main_i18n_Translation-en
MD5: f44de6293be1aa02cd13d73f591580a9
Description Language:
File: /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_oneiric_main_binary-amd64_Packages
MD5: f44de6293be1aa02cd13d73f591580a9
@springmeyer
springmeyer / tilemill-windows-checklist.md
Created January 20, 2012 00:45
Windows debugging - things that can go wrong

Shit that goes wrong, in order of likelyhood

TileMill will not start

  1. Vista and above, UAV is blocking things silently - try right-click and "run as admin"

  2. Firewall is blocking - make sure the firewall block is not behind the main window. Also try running as admin to trigger the firewall prompt

  3. C++ runtime missing/corrupt - should not happen anymore unless a build sneaks out that breaks support for bundling this.

@springmeyer
springmeyer / test-image-encoding-speed.sh
Created January 19, 2012 16:41
image encoding speeds with mapnik
# mac os x 10.7 quad core 2.3 GHz Intel Core i7 (8 logical cores)
$ git log -n 1
commit 1fc70e01b0dc5b5e58aa13e103f26bc007499d48
Merge: 034b270 90896c5
Author: Artem Pavlenko <artem@mapnik.org>
Date: Wed Jan 18 07:03:14 2012 -0800
Merge pull request #1037 from eightysteele/patch-1
@springmeyer
springmeyer / ltdl-mapnik.diff
Created January 17, 2012 13:13
add back ltdl global advise
diff --git a/src/datasource_cache.cpp b/src/datasource_cache.cpp
index dd1721c..c129276 100644
--- a/src/datasource_cache.cpp
+++ b/src/datasource_cache.cpp
@@ -160,11 +160,35 @@ void datasource_cache::register_datasources(const std::string& str)
{
try
{
-#if (BOOST_FILESYSTEM_VERSION == 3)
- lt_dlhandle module = lt_dlopen(itr->path().string().c_str());
@springmeyer
springmeyer / node_no_dos.diff
Created January 16, 2012 14:37
first stab at a nodew.exe (like pythonw.exe)
diff --git a/common.gypi b/common.gypi
diff --git a/node.gyp b/node.gyp
index f9bc8ca..fe2f821 100644
--- a/node.gyp
+++ b/node.gyp
@@ -196,10 +196,17 @@
],
}],
],
- 'msvs-settings': {
@springmeyer
springmeyer / java.wtf
Created January 16, 2012 14:21
mapnik-jni datasource loading crash on os x
Process: java [1443]
Path: /Library/Java/JavaVirtualMachines/1.6.0_30-b12-404.jdk/Contents/Home/bin/java
Identifier: java
Version: 1.0 (1.0)
Code Type: X86-64 (Native)
Parent Process: java [1420]
Date/Time: 2012-01-16 08:04:20.227 -0500
OS Version: Mac OS X 10.7.2 (11C74)
Report Version: 9
@springmeyer
springmeyer / pythonw.diff
Created January 14, 2012 00:43
diff of python.vcproj and python2.vcproj
~/projects/python[master]$ cd PCbuild/
~/projects/python/PCbuild[master]$ diff -u py
pyd.vsprops pyexpat.vcproj python.vcproj pythoncore.vcproj
pyd_d.vsprops pyproject.vsprops python3dll.vcproj pythonw.vcproj
~/projects/python/PCbuild[master]$ diff -u python.vcproj pythonw.vcproj
--- python.vcproj 2012-01-13 16:22:49.000000000 -0800
+++ pythonw.vcproj 2012-01-13 16:22:49.000000000 -0800
@@ -2,8 +2,8 @@
<VisualStudioProject
ProjectType="Visual C++"