Hi Friends,

Sorry, I'd forgotten the easiest way to share the source code:

https://gist.github.com/answerquest/57cbec9f56258f0d84f4
I've put on github Gist the Task Presenter code and a sample tasks CSV of
my pune-budget-localization project. These are the only two inputs really
required (technically speaking!) to start off a crowdcrafting project.



Some pointers:

<span id="code"></span>
<span id="work"></span>
>> these <span> tags in the HTML are placeholders for the values to be
loaded from the CSV. Place them as you please in your HTML.

In the CSV, you have to have stored one task per row, with differnt values
that you want to show (like code, name, department, etc) put into different
columns. These will be your input values only : don't think about the
output yet.

In the <script> code:

$("#code").text(task.info.Code);
$("#work").text(task.info.Work);
>> This is how the value at the CSV column is loaded into its corresponding
<span> objects when the page loads

The way the answer that the contributor provides is stored : I complicated
the code on my end to bring in validation etc, but here's a rough logic:

On pressing the button, the value entered by user is to be stored in a
variable named "answer", and then this line is executed:
pybossa.saveTask(task.id, answer).done(function() { deferred.resolve(task);
});

So whatever input(s) you're taking, when the button is hit by the
contributor, make sure you've stuffed everything you need in answer.
If you took mulitple values, then either string it all up with proper
delimiters, or make JSON array and pass that into the "answer" variable. (I
only took one input element in my task so don't have experience yet with
multiple, but this is what the developer Alejandro told me)

At the end of it all, you'll get a CSV/JSON with the "answer"s stored in
one column, and another column having task_id which is your key to tie it
in with the questions (you re-download the tasks CSV/JSON too which by now
has a ton of extra columns generated by the system, one of which is
task_id). If you used their redundancy feature (ie, two or more people will
be asked the same question so you can ferret out junk) then multiple
columns having the multiple versions of the answer.


--
Cheers,
Nikhil
+91-966-583-1250
Pune, India
Self-designed learner at Swaraj University <http://www.swarajuniversity.org>
http://nikhilsheth.blogspot.in





On Wed, Oct 21, 2015 at 7:06 PM, Nikhil VJ <[email protected]> wrote:

> Thanks to Thej for referring me to this earlier. I've set up one
> Pune-specific project as a pilot, with a lot of one-on-one help from one of
> their developers. Figured out the workings in the process. Potential to do
> lots here. Please see forwarded email below. And share with Puneri
> colleagues if you find it cool!
>
> --
> Cheers,
> Nikhil
> +91-966-583-1250
> Pune, India
> Self-designed learner at Swaraj University <
> http://www.swarajuniversity.org>
> http://nikhilsheth.blogspot.in
>
>
>
>
>
> ---------- Forwarded message ----------
> From: Nikhil VJ <[email protected]>
> Date: Wed, Oct 21, 2015 at 6:41 PM
> Subject: 1-minute Crowdsourced project : Localizing Pune's Budget
> To:
>
>
> Hi Friends,
>
> *[quickie for potential volunteers]*
> Are you familiar with Pune? Please contribute a few minutes and also
> forward this to friends and relatives! Warning, can get addictive.
> *http://crowdcrafting.org/project/localpunebudget*
> <http://crowdcrafting.org/project/localpunebudget>
>
>
> *[explanation follows.. warning : slightly technical]*
>
> As part of our (CEE's) ongoing work on participatory governance, I
> recently brought together all the expenditures mentioned in Pune's Budget
> book (by taking only the 2015-16 amount allocation and dropping all the
> myriad other columns which keep changing from section to section):
>
> [image:
> https://docs.google.com/spreadsheets/d/18YpZsoC_m9w8KTWqsJaFv0D7ik5ZjJif9OiajGLID90/edit?pli=1#gid=142312120]
> <https://docs.google.com/spreadsheets/d/18YpZsoC_m9w8KTWqsJaFv0D7ik5ZjJif9OiajGLID90/edit?pli=1#gid=142312120>
>
> You can download a copy for your use here:
> Simplified and Combined Expenditures, Pune 2015-16 Budget Book
> <https://docs.google.com/spreadsheets/d/18YpZsoC_m9w8KTWqsJaFv0D7ik5ZjJif9OiajGLID90/edit?pli=1#gid=142312120>
>
> (note: don't jump at the total.. many repetitions are there as sections
> and sub-sections are mixed in here, along with transfers from Revenue to
> Capital which become double entries)
>
> And that led to a finding:
> Out of 9,614 budget items listed, about 1,997 do not have any ward number
> or whole-city marking alloted. In the "ward" column, that is. Though many
> of these are very clearly belonging to a specific ward when you read the
> budget item. It would be great if we could assign the the proper ward
> numbers to these works : we would then have a more accurate picture about
> the public investment made in various wards of Pune.
>
>
> *Meanwhile, in a mailing list far far away...*
> While headbanging on polling booth locations data (too messed up, dude!),
> I was referred to a platform called "*Crowdcrafting*" wherein one can
> crowdsource tasks for science and civic hacking purposes. It's different
> from regular survey forms in this way :
>
>    - Form: Exact same question asked to 1000 people, 1000 responses to
>    one question. Many to one.
>    - Crowdcrafting : 1000 different questions (of similar structure but
>    different content) split among 1000 people (or more if you use redundancy
>    feature), each chipping in a little bit. 1000 separate Q-A pairs obtained
>    at end of exercise. Each to each.
>
> Kind of like how we used to leak the question paper before exams with very
> little time on hand and each one would figure out one... [whoops! censored!
> you never saw this! look away!]
>
> So the task of finding the missing wards, became a great pilot project to
> try out and learn how to use this platform. With a lot of one-on-one help
> from one of the website's developers (basically got him to write the main
> code and then did cosmetic adjustments), I was able to get a project up and
> running. So, if you'd like to check it out, click below:
>
> <http://crowdcrafting.org/project/localpunebudget/>
>
> Click the image or here to be taken to the project page.
> <http://crowdcrafting.org/project/localpunebudget/> On hitting
> "Contribute", you will be taken to a super-comfortable interface, in which
> all relevant information is loaded up for you.. all you have to do is type
> the correct number, and press Enter. As soon as you do that, the next item
> will load for you automatically. Screenshot:
>
>
> ​
> There's more details in the page and even a map embedded below so you can
> figure out which ward a particular area comes under. USP of this method is
> that we can eke out one contribuion in as little as a minute : it's made
> really simple and easy for the contributor, and so we can maximize the
> number of contributors.
>
> Next steps, maybe a few weeks down the line: I'll try to make a simplified
> walkthrough that should help one to set up their crowdsourcing project
> here. Will share it when made. There's a lot of possbilities here, like
> geo-tagging, transcripting scanned docs, recognizing plant species, etc. If
> you can put your stuff and accompanying data in an excel file, then you can
> use this. I'm also wondering if we can use this for transcripting /
> translation of books / films. But the platform isn't a point-and-click
> one.. while things get very easy for the citizen contributor, for the
> project creator there's some amount of coding needed, so we need to
> systemize things and give a good explanation. Your feedback would be most
> appreciated. If you're interested in trying this out for another project,
> let's connect! (at slow pace, kindly note)
>
> Oh, and we do need those ward numbers filled in soon. Are you familiar
> with Pune? Please contribute just a few minutes and also forward this to
> friends and relatives! Warning, can get addictive.
> *http://crowdcrafting.org/project/localpunebudget*
> <http://crowdcrafting.org/project/localpunebudget>
>
> --
> Cheers,
> Nikhil
> +91-966-583-1250
> Pune, India
> Self-designed learner at Swaraj University <
> http://www.swarajuniversity.org>
> http://nikhilsheth.blogspot.in
>
>
>
>
>
>

-- 
Datameet is a community of Data Science enthusiasts in India. Know more about 
us by visiting http://datameet.org
--- 
You received this message because you are subscribed to the Google Groups 
"datameet" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to