Skip to content

Instantly share code, notes, and snippets.

View mvexel's full-sized avatar

Martijn van Exel mvexel

View GitHub Profile
@mvexel
mvexel / maproulette-tutorial.md
Last active December 2, 2016 15:34
maproulette-tutorial.md

MapRoulette Challenge Tutorial (ßeta)

This tutorial is for MapRoulette 1 which is no longer active. Please see the MapRoulette 2 wiki for up to date documentation.

You have played MapRoulette. You have seen some of the fun challenges. If you are reading this, you are probably thinking: 'I have a great idea for the next MapRoulette challenge!'

maproulette

Great! That is exactly what I am here to explain step by step. So let's get started!

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
$ java -jar ~/Documents/workspace/traffic-trunk/josm-plugins/maproulette/target/maproulette-plugin-0.0.0-SNAPSHOT.jar ~/Downloads/TIGER\ Mismatched\ Ways_0.geojson dev.maproulette.org
> 2014.10.02-10.02.11AM | Information | main | MapRouletteServer | GET http://dev.maproulette.org:80/api/admin/challenge/tiger-mismatch/tasks |
log4j:WARN No appenders could be found for logger (org.apache.http.impl.conn.SingleClientConnManager).
log4j:WARN Please initialize the log4j system properly.
java.lang.NullPointerException
at com.telenav.modules.mapping.geojson.GeoJsonFeature.getTitle(GeoJsonFeature.java:94)
at com.telenav.traffic.josm.plugins.maproulette.Challenge.update(Challenge.java:317)
at com.telenav.traffic.josm.plugins.maproulette.Challenge.synchronize(Challenge.java:251)
at com.telenav.traffic.josm.plugins.maproulette.MapRouletteChallengeLoader.main(MapRouletteChallengeLoader.java:33)
Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/Users/martijnv/src/mapillary_tools/python/upload.py", line 182, in run
upload_file(filepath, **self.params)
File "/Users/martijnv/src/mapillary_tools/python/upload.py", line 120, in upload_file
response = urllib2.urlopen(request)
File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
[100%] Building CXX object src/CMakeFiles/osmium.dir/command_merge_changes.cpp.o
Linking CXX executable osmium
CMakeFiles/osmium.dir/command_apply_changes.cpp.o:(.data+0x0): multiple definition of `OSMPBF::version'
CMakeFiles/osmium.dir/command_fileinfo.cpp.o:(.data+0x0): first defined here
CMakeFiles/osmium.dir/command_cat.cpp.o:(.data+0x0): multiple definition of `OSMPBF::version'
CMakeFiles/osmium.dir/command_fileinfo.cpp.o:(.data+0x0): first defined here
CMakeFiles/osmium.dir/main.cpp.o:(.data+0x0): multiple definition of `OSMPBF::version'
CMakeFiles/osmium.dir/command_fileinfo.cpp.o:(.data+0x0): first defined here
CMakeFiles/osmium.dir/command_time_filter.cpp.o:(.data+0x0): multiple definition of `OSMPBF::version'
CMakeFiles/osmium.dir/command_fileinfo.cpp.o:(.data+0x0): first defined here
@mvexel
mvexel / gist:4a9067ee3d8ef1d91eda
Created August 14, 2014 22:19
osm web site error
I, [2014-08-14T16:17:14.875359 #21851] INFO -- : Started POST "/user/new" for 10.224.14.53 at 2014-08-14 16:17:14 -0600
I, [2014-08-14T16:17:14.877546 #21851] INFO -- : Processing by UserController#create as HTML
I, [2014-08-14T16:17:14.877678 #21851] INFO -- : Parameters: {"utf8"=>"✓", "authenticity_token"=>"waa4d3Ns/ocFogDa5ybjGoRA+9a9LClOLj3XJ8hBj/o=", "user"=>{"email"=>"[email protected]", "email_confirmation"=>"[email protected]", "display_name"=>"Administrator", "pass_crypt"=>"[FILTERED]", "pass_crypt_confirmation"=>"[FILTERED]"}, "commit"=>"Sign Up"}
I, [2014-08-14T16:17:14.881408 #21851] INFO -- : Completed 500 Internal Server Error in 4ms
F, [2014-08-14T16:17:14.883848 #21851] FATAL -- :
NoMethodError (undefined method `description_format=' for #<User:0x0000000772e550>):
app/models/user.rb:242:in `set_defaults'
app/controllers/user_controller.rb:248:in `create'
config/initializers/cors.rb:9:in `call'
@mvexel
mvexel / challenge-tutorial
Created July 25, 2014 18:26
challenge-tutorial
# Creating your First MapRoulette Challenge
You have played MapRoulette. You have seen some of the existing challenges. If you are reading this, you are probably thinking: 'I have a great idea for the next MapRoulette challenge!'
Great! That is exactly what I am here to explain step by step. So let's get started!
## Step 1 - The Idea
The first thing you need is a great idea for a challenge. You probably think you already have one, and you may be right! There are a few ground rules to a great MapRoulette challenge. The problems that make up the challenge...
@mvexel
mvexel / gemlist.txt
Created July 6, 2014 15:14
gem list
bigdecimal (1.2.4)
blankslate (2.1.2.4)
builder (3.2.2)
bundler (1.6.3)
bundler-unload (1.0.2)
celluloid (0.16.0.pre2)
chunky_png (1.3.1)
classifier (1.3.4)
coffee-script (2.2.0)
coffee-script-source (1.7.0)

Challenge Administration API

This API is used by Challenge providers to update their challenges and their task queue. On MapRoulette.org, this API is accessible from localhost only, so you need an SSH tunnel into the MapRoulette server to access it. Contact the authors at [email protected] to learn more.


Bulk List Task Statuses

GET /api/admin/challenge/<slug>/tasks

Gets the current status for all Tasks in the Challenge identified by slug

count | status
-------+---------------
215 | alreadyfixed
225 | editing
658 | assigned
2006 | falsepositive
1247 | fixed
649 | validated