mechanicalturk

Reusing Rails' param parsing to turn a one dimensional hash into a multideminonal one based on the key values and array notation

I am currently using rturk which give me back my answers in a one dimensional hash as such... {"answers[125][rating]"=>"5", "answers[126][rating]"=>"5", "commit"=>"Take Survey", "answers[125][rating]"=>"5", "authenticity_token"=>"je0Hx48qKmCzy1zmXCpijYWbl4w92eDMRajWJcVYxe0=", "gender"=>"m", "answers[120][rating]"=>"5", "answers[121][rat...

Designing a system for handling in-application economy using currency or credits

I'm currently developing an application where I need to implement some sort of way of handling credits which are purchased by users of my application. These credits will then be used to preform certain tasks inside my application such as purchasing hits in mechanical turk. The reason I need to do this is because in the case of mechanic...

What PHP code will help me parse html data in an xml form?

FalseAWS.MechanicalTurk.XMLParseErrorThere was an error parsing the XML question or answer data in your request. Please make sure the data is well-formed and validates against the appropriate schema. (1284779956270)Array00 I'm trying to send entire emails to mechanical turk, and I am using the mtturk.lib.php library to send this. I tr...

How do I serialize DOM into XML using PHP?

I am attempting to send html data in a question form from my php web application to mechanical turk so a user can see the entire html document from an email to work with. I have had difficulty thus far. In the thread linked below, I attempted to parse the html data using html5-lib.php, but I think I'm still missing a step in order to c...

Converting HTML emails to "Well Formed XHTML Code"

I've trying to submit html emails to amazon's mechanical turk using the questionform xml data scheme. I'm having issues converting the html emails into well formed html data. I just input a script to grab it from my table and print the data inside the tags of the html email, but as you can see below, it's terribly formed and will not...

gwt compile to single, monolithic cross-browser html file

I am looking to compile my gwt application into a single, monolithic, cross-browser compatible .html file. Ultimately, I'm trying to design an Amazon mechanical turk template via gwt. These templates must be a single .html file, since they are hosted on Amazon's machines. The .html file can reference external sources, but via absolute ad...

Keep getting "coerce must return [x, y]" error with rturk gem

I swear this was working a few weeks ago but I keep getting "coerce must return [x, y]" when I use the rturk gem to create a hit. RTurk.setup(configatron.amazon.access_key_id, configatron.amazon.secret_access_key, :sandbox => true) hit = RTurk::Hit.create(:title => "SOMETESTTHING" ) do |hit| hit.assignments = 5 hit.description = "FOO...

In mTurk, how can I use participation in a previous HIT (or series of HITs) as a qualification?

I am using mTurk for surveys, and I need a way of making sure that people who have participated in a previous survey / HIT do not participate in certain future surveys / HITs. I am not sure whether I should do this as a qualification or in some other way. I know there is some way to do this, but I have no idea how. I have very limited p...

MTurk: getQualificationScore returning "QualificationType does not Exist" for Base Qualifications Type (approval rate, etc)

I've got a bunch of results from a Mechanical Turk HIT that I had done, and I want to try and rank all my answers by how trustworthy that Worker was. To do that, I'm trying to get each submitting worker's accept rate from MTurk. I do this using the MTurk API QualificationRequirement type, "Worker_PercentAssignmentsApproved", whose type_...