Skip to content

Instantly share code, notes, and snippets.

View springmeyer's full-sized avatar

Dane Springmeyer springmeyer

View GitHub Profile
diff --git a/client/js/project.js b/client/js/project.js
index 1db124f..a537ca8 100644
--- a/client/js/project.js
+++ b/client/js/project.js
@@ -438,7 +438,7 @@ var ProjectInteractivityForm = Backbone.View.extend({
success: function() {
var interactivity = that.model.get('_interactivity') || fal
var object = {
- fields: [],
+ fields: [{id:"__id__",selected:true}],
diff --git a/client/js/project.js b/client/js/project.js
index 1db124f..a537ca8 100644
--- a/client/js/project.js
+++ b/client/js/project.js
@@ -438,7 +438,7 @@ var ProjectInteractivityForm = Backbone.View.extend({
success: function() {
var interactivity = that.model.get('_interactivity') || fal
var object = {
- fields: [],
+ fields: [{id:"__id__",selected:true}],
world_merc=# alter table world_merc add column blank text;
ALTER TABLE
world_merc=# select blank from world_merc limit 2;
blank
-------
(2 rows)
world_merc=# select count(*) from world_merc where blank is null;
otool -l /usr/lib/libltdl.7.dylib
otool -l /usr/lib/libz.1.dylib
otool -l /usr/lib/libicucore.A.dylib
otool -l /usr/lib/libxml2.2.dylib
otool -l /usr/lib/libstdc++.6.dylib
otool -l /usr/lib/libSystem.B.dylib
clang++ -include-pch mapnik.h.pch -o src/svg_parser.os -c -DHAVE_JPEG -DBOOST_REGEX_HAS_ICU -ansi -Wall -Wno-unused-function -Wno-uninitialized -Wno-array-bounds -Wno-parentheses -Wno-char-subscripts -ftemplate-depth-200 -DDARWIN -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -O3 -finline-functions -Wno-inline -DNDEBUG -fPIC -Iagg/include -Iinclude -I. -I/opt/icu/include -I/opt/boost-trunk/include -I/Library/Frameworks/UnixImageIO.framework/Headers -I/usr/local/include -I/usr/include -I/usr/X11/include/freetype2 -I/usr/X11/include -I/usr/include/libxml2 src/svg_parser.cpp
clang++ -include-pch mapnik.h.pch -o src/svg_transform_parser.os -c -DHAVE_JPEG -DBOOST_REGEX_HAS_ICU -ansi -Wall -Wno-unused-function -Wno-uninitialized -Wno-array-bounds -Wno-parentheses -Wno-char-subscripts -ftemplate-depth-200 -DDARWIN -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -O3 -finline-functions -Wno-inline -DNDEBUG -fPIC -Iagg/include -Iinclude -I. -I/opt/icu/include -I/opt/boost-trunk/include -I/Library/Frameworks/UnixImageIO.fr
@springmeyer
springmeyer / geocoder.js
Created July 6, 2011 17:54 — forked from wboykinm/geocoder.js
A javascript geocoder piggybacked on the GeoDjango Admin Project
{% block extrastyle %}
<style type="text/css">
#{{ id }}_map { width: {{ map_width }}px; height: {{ map_height }}px; }
#{{ id }}_map .aligned label { float:inherit; }
#{{ id }}_admin_map { position: relative; vertical-align: top; float: {{ LANGUAGE_BIDI|yesno:"right,left" }}; }
{% if not display_wkt %}#{{ id }} { display: none; }{% endif %}
.olControlEditingToolbar .olControlModifyFeatureItemActive {
background-image: url("{{ ADMIN_MEDIA_PREFIX }}img/gis/move_vertex_on.png");
background-repeat: no-repeat;
}
template <typename T> struct is_pod_impl
{
static const bool value = (::boost::type_traits::ice_or< ::boost::is_scalar<T>::value, ::boost::is_void<T>::value, __is_pod(T) >::value);
};
# simple testcase showing compiler error with boost filesystem and clang trunk:
#include "boost/filesystem/operations.hpp"
int main() {
return 0;
}
# g++ works:
@springmeyer
springmeyer / mapnik_osx.c
Created June 15, 2011 21:21
compile mapnik with cocoa.h
#define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
#include <CoreFoundation/CoreFoundation.h>
#include <Cocoa/Cocoa.h>
#include <iostream>
#ifdef check
#undef check
#endif
/* new map loading api in node-mapnik */
var map = new mapnik.Map(256,256);
// map.load is now async and therefore returns modified map in callback
// it could also not return it, since 'map' is already defined
map.load("stylesheet.xml",{strict:true},function(err,map) {
// do something with map...
})
/* new rendering api in node-mapnik */