Skip to content

Instantly share code, notes, and snippets.

View bartvde's full-sized avatar

Bart van den Eijnden bartvde

  • OSGIS
  • Utrecht, The Netherlands
View GitHub Profile
@bartvde
bartvde / ahocevar_geonode
Created December 12, 2011 11:47
geoserver log
2011-12-12 12:47:00,767 DEBUG [geoserver.filters] - Compressing output for mimetype: text/xml; subtype=gml/3.1.1
2011-12-12 12:47:00,815 DEBUG [wms.map] - Writing png image ... done!
2011-12-12 12:47:00,869 DEBUG [geoserver.filters] - filtering http://localhost:8080/geoserver/rest/workspaces.xml
2011-12-12 12:47:00,875 DEBUG [security.RESTfulDefinitionSource] - Line 1: /**:GET=ROLE_ADMINISTRATOR
2011-12-12 12:47:00,876 DEBUG [security.RESTfulDefinitionSource] - ~~~~~~~~~~ name= /**:GET firstColonIndex= 3
2011-12-12 12:47:00,876 DEBUG [security.RESTfulDefinitionSource] - ~~~~~~~~~~ name= /**:GET antPath= /** methods= GET
2011-12-12 12:47:00,876 DEBUG [security.RESTfulDefinitionSource] - methodList = [Ljava.lang.String;@5d30cd23
2011-12-12 12:47:00,876 DEBUG [security.RESTfulDefinitionSource] - method[0]: GET
2011-12-12 12:47:00,876 DEBUG [security.RESTfulPathBasedFilterInvocationDefinitionMap] - Added Ant path: /**; attributes: [ROLE_ADMINISTRATOR], httpMethods: [Ljava.lang.String;@5d30cd23
2011-12-12 12:47:00
@bartvde
bartvde / django
Created December 12, 2011 12:03
django
127.0.0.1 - - [12/Dec/2011:12:21:22 +0000] "GET /geoserver/pdf/info.json?var=printCapabilities HTTP/1.1" 200 293 "csrftoken=9443e9e9fe76aa1497c0d2f84a510b5e;sessionid=2860b1e53d4294dae8a00c15cf9d6e8e"
127.0.0.1 - - [12/Dec/2011:12:21:34 +0000] "GET /geoserver/schemas/wms/1.1.1/WMS_MS_Capabilities.dtd HTTP/1.1" 200 10438 -
127.0.0.1 - - [12/Dec/2011:12:21:28 +0000] "GET /geoserver/wms?SERVICE=WMS&REQUEST=GetCapabilities&TILED=true&VERSION=1.1.1 HTTP/1.1" 200 30997 "csrftoken=9443e9e9fe76aa1497c0d2f84a510b5e;sessionid=2860b1e53d4294dae8a00c15cf9d6e8e"
127.0.0.1 - - [12/Dec/2011:12:21:42 +0000] "GET /geoserver/wms?SERVICE=WMS&&LAYERS=geonode%3Aconflicts&VERSION=1.1.1&REQUEST=DescribeLayer HTTP/1.1" 200 248 "csrftoken=9443e9e9fe76aa1497c0d2f84a510b5e;sessionid=2860b1e53d4294dae8a00c15cf9d6e8e"
127.0.0.1 - - [12/Dec/2011:12:21:43 +0000] "GET /geoserver/wms?SERVICE=WMS&STYLES=&FORMAT=image%2Fpng&TRANSPARENT=TRUE&LAYERS=geonode%3Aconflicts&VERSION=1.1.1&REQUEST=GetMap&TILED=true&SRS=EPSG%3A900913&BBOX=
@bartvde
bartvde / oxygen
Created January 16, 2012 10:42
oxygen startup failure
bart-van-den-eijndens-macbook-pro:oxygen bartvde$ ./oxygenMac.sh
11:41:52,025 0 ERROR [ main ] ro.sync.ui.application.ApplicationLauncher - java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at ro.sync.ui.application.ApplicationLauncher.A(Unknown Source)
at ro.sync.ui.application.ApplicationLauncher.launch(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
@bartvde
bartvde / curl_ahocevar
Created February 2, 2012 09:40
curl fail
curl --data '<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" service="CSW" version="2.0.2" resultType="results" maxRecords="100" xmlns:gmd="http://www.isotc211.org/2005/gmd"><csw:Query typeNames="gmd:MD_Metadata"><csw:ElementSetName>full</csw:ElementSetName></csw:Query></csw:GetRecords>' "http://localhost:8080/proxy/?url=http%3A%2F%2Fdemo.geonode.org%2Fgeonetwork%2Fsrv%2Fen%2Fcsw%3FresultType%3Dresults%26maxRecords%3D100%26Query%3D%255Bobject%2520Object%255D" --verbose --header "Content-type: application/xml; charset=UTF-8"
@bartvde
bartvde / imageloaderror
Created March 5, 2012 13:39
imageloaderror
OpenLayers.Util.onImageLoadError = function(){
// this.src provides the wms request
var errorStr = this.src.substring(0, (this.src.indexOf("?") + 1));
var childStr = "";
var foundBadWMS = false;
var root = tree.getRootNode();
var children = root.childNodes;
@bartvde
bartvde / dwins
Created March 23, 2012 14:25
dwins
bart-van-den-eijndens-macbook-pro:geonode-client bartvde$ git pull git://github.com/GeoNode/geonode-client.git synth
remote: Counting objects: 101, done.
remote: Compressing objects: 100% (39/39), done.
remote: Total 81 (delta 53), reused 70 (delta 42)
Unpacking objects: 100% (81/81), done.
From git://github.com/GeoNode/geonode-client
* branch synth -> FETCH_HEAD
warning: too many files (created: 612 deleted: 439), skipping inexact rename detection
CONFLICT (delete/modify): app/autoloader.js deleted in HEAD and modified in 0a28f5d739ada1f5a96a6f99e04a26c1a51ca34a. Version 0a28f5d739ada1f5a96a6f99e04a26c1a51ca34a of app/autoloader.js left in tree.
CONFLICT (delete/modify): app/static/externals/gxp deleted in HEAD and modified in 0a28f5d739ada1f5a96a6f99e04a26c1a51ca34a. Version 0a28f5d739ada1f5a96a6f99e04a26c1a51ca34a of app/static/externals/gxp left in tree.
@bartvde
bartvde / search
Created April 19, 2012 17:30
search
@bartvde
bartvde / print_payload
Created September 27, 2012 07:25
print payload
{"units":"m","srs":"EPSG:900913","layout":"A4","dpi":75,"outputFilename":"GeoExplorer-print","mapTitle":"GeoExplorer Demo Map","comment":"This is a demonstration of GeoExplorer, an application for assembling and publishing web based maps. After adding layer to the map, find the 'Export Map' button above to embed this map in any web page.","layers":[{"baseURL":"http://suite.opengeo.org/geoserver/wms?SERVICE=WMS&","opacity":1,"singleTile":false,"type":"WMS","layers":["world:cities"],"format":"image/png","styles":[""],"customParams":{"EXCEPTIONS":null,"TRANSPARENT":true,"TILED":true}}],"pages":[{"center":[0,0],"scale":262144000,"rotation":0}]}
bart-van-den-eijndens-macbook-pro:gxp bartvde$ git diff examples/viewer.js
diff --git a/examples/viewer.js b/examples/viewer.js
index c7c1ec6..5b3317f 100644
--- a/examples/viewer.js
+++ b/examples/viewer.js
@@ -95,6 +95,18 @@ Ext.onReady(function() {
},
outputTarget: "south"
}, {
+ ptype: "gxp_selectedfeatureactions",
@bartvde
bartvde / upgrade_ST21
Created November 8, 2012 10:19
upgrade to Sencha Touch 2.1 and Sencha Cmd 3.0
Watch out if you have an existing build.xml in your project. Make sure you use the Sencha version.
Copying OpenLayers.js was possible before with adding the following in app.json:
```
"resources": [
"externals/openlayers/build/OpenLayers.js",
```
This does not work anymore, error is: