Jump to content

gw1500se

Members
  • Posts

    1,040
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by gw1500se

  1. Thanks. I need to decipher that as some of those functions are new to me.
  2. I haven't written any code to do that because I don't know where to start but here is an example of my arrays: Array A (note the key to match is requesters): json_array={ filters:[ { requester: document.getElementById("requester").checked, title: document.getElementById("title").checked, none: document.getElementById("none").checked } ], requesters:[ ], titles:[ ], excludes:[ ], delay: 1, amount: 0.00 }; Array B (note the matching key is requester_name): { "tasks":[ { "task_id":"3ACRLU861YXPXVRHNPV5UASKVTYEBP", "assignment_id":"3EFVCAY5LFSHTXDWOGRNP7A1RQF8JJ", "accepted_at":"2023-03-02T17:52:40.000Z", "deadline":"2023-03-02T18:00:40.000Z", "time_to_deadline_in_seconds":455, "state":"Assigned", "question":{ "value":"https://www.mturkcontent.com/dynamic/hit?assignmentId=3EFVCAY5LFSHTXDWOGRNP7A1RQF8JJ&hitId=3ACRLU861YXPXVRHNPV5UASKVTYEBP&workerId=AN4TEA6EBEB2V&turkSubmitTo=https%3A%2F%2Fwww.mturk.com", "type":"InternalURL", "attributes":{ "FrameSourceAttribute":"https://www.mturkcontent.com/dynamic/hit?assignmentId=3EFVCAY5LFSHTXDWOGRNP7A1RQF8JJ&hitId=3ACRLU861YXPXVRHNPV5UASKVTYEBP&workerId=AN4TEA6EBEB2V&turkSubmitTo=https%3A%2F%2Fwww.mturk.com", "FrameHeight":"0" } }, "project":{ "hit_set_id":"3U8PAUGKO8QE66VCCT4T6ZDTJTVCNH", "requester_id":"A210GEVDVU8V7E", "requester_name":"GHS Research", "title":"Give us your opinions", "description":"Please share your opinion to our customers new products and services.", "assignment_duration_in_seconds":480, "creation_time":"2023-03-02T06:19:42.000Z", "assignable_hits_count":2, "latest_expiration_time":"2023-03-09T06:19:42.000Z", "caller_meets_requirements":false, "caller_meets_preview_requirements":false, "last_updated_time":"2023-03-02T06:19:42.000Z", "monetary_reward":{ "currency_code":"USD", "amount_in_dollars":0.66 }, "hit_requirements":[ { "qualification_type_id":"00000000000000000071", "comparator":"EqualTo", "worker_action":"PreviewHit", "qualification_values":[ "US" ], "caller_meets_requirement":null, "qualification_type":{ "qualification_type_id":"00000000000000000071", "name":"Location", "visibility":true, "description":"The Location Qualification represents the location you specified with your mailing address. Some HITs may only be available to residents of particular countries, states, provinces or cities.", "has_test":false, "is_requestable":false, "keywords":"location" }, "caller_qualification_value":{ "integer_value":null, "locale_value":{ "country":null, "subdivision":null } } } ], "requester_url":"/requesters/A210GEVDVU8V7E/projects.json?ref=w_pl_prvw" }, "expired_task_action_url":"/projects/3U8PAUGKO8QE66VCCT4T6ZDTJTVCNH/tasks.json?ref=w_pl_prvw", "task_url":"/projects/3U8PAUGKO8QE66VCCT4T6ZDTJTVCNH/tasks/3ACRLU861YXPXVRHNPV5UASKVTYEBP.json?assignment_id=3EFVCAY5LFSHTXDWOGRNP7A1RQF8JJ&ref=w_pl_prvw" }, { "task_id":"334ZEL5JX8ZQPZFW1JDZD8ATID6SOA", "assignment_id":"3TE3O85733S33XO7PYKZ55XKP062R8", "accepted_at":"2023-03-02T17:52:26.000Z", "deadline":"2023-03-02T18:07:26.000Z", "time_to_deadline_in_seconds":861, "state":"Assigned", "question":{ "value":"https://video-recording-prod.trafficmanager.net?assignmentId=3TE3O85733S33XO7PYKZ55XKP062R8&hitId=334ZEL5JX8ZQPZFW1JDZD8ATID6SOA&workerId=AN4TEA6EBEB2V&turkSubmitTo=https%3A%2F%2Fwww.mturk.com", "type":"ExternalURL", "attributes":{ "FrameSourceAttribute":"https://video-recording-prod.trafficmanager.net?assignmentId=3TE3O85733S33XO7PYKZ55XKP062R8&hitId=334ZEL5JX8ZQPZFW1JDZD8ATID6SOA&workerId=AN4TEA6EBEB2V&turkSubmitTo=https%3A%2F%2Fwww.mturk.com", "FrameHeight":"0" } }, "project":{ "hit_set_id":"3R0WG3C6GDBDVVRJQ1HJTZUYBBMWLT", "requester_id":"A2SAUCU1B6BDTS", "requester_name":"IC3 AI team", "title":"Record a one minute video of yourself", "description":"Record a one minute video of yourself performing some simple actions.", "assignment_duration_in_seconds":900, "creation_time":"2023-02-21T22:41:30.000Z", "assignable_hits_count":1, "latest_expiration_time":"2023-03-07T22:41:30.000Z", "caller_meets_requirements":false, "caller_meets_preview_requirements":false, "last_updated_time":"2023-02-21T22:41:30.000Z", "monetary_reward":{ "currency_code":"USD", "amount_in_dollars":2.0 }, "hit_requirements":[ { "qualification_type_id":"00000000000000000071", "comparator":"NotIn", "worker_action":"AcceptHit", "qualification_values":[ "US-CA", "US-IL", "US-TX", "US-WA" ], "caller_meets_requirement":null, "qualification_type":{ "qualification_type_id":"00000000000000000071", "name":"Location", "visibility":true, "description":"The Location Qualification represents the location you specified with your mailing address. Some HITs may only be available to residents of particular countries, states, provinces or cities.", "has_test":false, "is_requestable":false, "keywords":"location" }, "caller_qualification_value":{ "integer_value":null, "locale_value":{ "country":null, "subdivision":null } } } ], "requester_url":"/requesters/A2SAUCU1B6BDTS/projects.json?ref=w_pl_prvw" }, "expired_task_action_url":"/projects/3R0WG3C6GDBDVVRJQ1HJTZUYBBMWLT/tasks.json?ref=w_pl_prvw", "task_url":"/projects/3R0WG3C6GDBDVVRJQ1HJTZUYBBMWLT/tasks/334ZEL5JX8ZQPZFW1JDZD8ATID6SOA.json?assignment_id=3TE3O85733S33XO7PYKZ55XKP062R8&ref=w_pl_prvw" }, { "task_id":"3SZYX62S6NFKMGAYGRFHF8HZW0275Z", "assignment_id":"3HWRJOOETDH9OHLD5XBX3DFYWBRSEH", "accepted_at":"2023-03-02T17:52:30.000Z", "deadline":"2023-03-02T18:22:30.000Z", "time_to_deadline_in_seconds":1765, "state":"Assigned", "question":{ "value":"https://app.cloudresearch.com/TakeLaunchedSurvey/Take/406247?assignmentId=3HWRJOOETDH9OHLD5XBX3DFYWBRSEH&hitId=3SZYX62S6NFKMGAYGRFHF8HZW0275Z&workerId=AN4TEA6EBEB2V&turkSubmitTo=https%3A%2F%2Fwww.mturk.com", "type":"ExternalURL", "attributes":{ "FrameSourceAttribute":"https://app.cloudresearch.com/TakeLaunchedSurvey/Take/406247?assignmentId=3HWRJOOETDH9OHLD5XBX3DFYWBRSEH&hitId=3SZYX62S6NFKMGAYGRFHF8HZW0275Z&workerId=AN4TEA6EBEB2V&turkSubmitTo=https%3A%2F%2Fwww.mturk.com", "FrameHeight":"0" } }, "project":{ "hit_set_id":"3K27O5FVC7L0HVAA64X4I72YJIHW59", "requester_id":"A3FKSNPXNIOOPM", "requester_name":"Aaron Shine", "title":"Quick psychology experiment (~ 6 minutes)", "description":"Study about choices", "assignment_duration_in_seconds":1800, "creation_time":"2023-02-28T13:25:41.000Z", "assignable_hits_count":18, "latest_expiration_time":"2023-03-30T13:25:41.000Z", "caller_meets_requirements":false, "caller_meets_preview_requirements":false, "last_updated_time":"2023-02-28T13:25:41.000Z", "monetary_reward":{ "currency_code":"USD", "amount_in_dollars":0.67 }, "hit_requirements":[ { "qualification_type_id":"3CE74LL4O7AZFGA0UGQGHW46O9VEKS", "comparator":"GreaterThanOrEqualTo", "worker_action":"ViewHitSet", "qualification_values":[ "100" ], "caller_meets_requirement":null, "qualification_type":{ "qualification_type_id":"3CE74LL4O7AZFGA0UGQGHW46O9VEKS", "name":"rhsnlk98", "visibility":true, "description":"rhsnlk98", "has_test":false, "is_requestable":true, "keywords":"" }, "caller_qualification_value":{ "integer_value":null, "locale_value":{ "country":null, "subdivision":null } } }, { "qualification_type_id":"3HWVT555HZH74TPJLQREQJ8UODNIAC", "comparator":"DoesNotExist", "worker_action":"PreviewHit", "qualification_values":[ ], "caller_meets_requirement":null, "qualification_type":{ "qualification_type_id":"3HWVT555HZH74TPJLQREQJ8UODNIAC", "name":"SurveyGroup [4908]", "visibility":true, "description":"Survey Group [4908]", "has_test":false, "is_requestable":true, "keywords":"" }, "caller_qualification_value":{ "integer_value":null, "locale_value":{ "country":null, "subdivision":null } } }, { "qualification_type_id":"00000000000000000040", "comparator":"GreaterThanOrEqualTo", "worker_action":"PreviewHit", "qualification_values":[ "1000" ], "caller_meets_requirement":null, "qualification_type":{ "qualification_type_id":"00000000000000000040", "name":"Total approved HITs", "visibility":true, "description":"This Qualification is generated automatically and reflects the number of HITs which you have submitted an answer that has been approved. Your score is a value greater than or equal to 0.", "has_test":false, "is_requestable":false, "keywords":"total,assignments,approved" }, "caller_qualification_value":{ "integer_value":null, "locale_value":{ "country":null, "subdivision":null } } }, { "qualification_type_id":"3QIZOA92R5544PHF4ZHUURTCSBJPBA", "comparator":"DoesNotExist", "worker_action":"PreviewHit", "qualification_values":[ ], "caller_meets_requirement":null, "qualification_type":{ "qualification_type_id":"3QIZOA92R5544PHF4ZHUURTCSBJPBA", "name":"Exc: [1594239018-406247]", "visibility":true, "description":"Excluded from HIT 406247", "has_test":false, "is_requestable":true, "keywords":"" }, "caller_qualification_value":{ "integer_value":null, "locale_value":{ "country":null, "subdivision":null } } }, { "qualification_type_id":"000000000000000000L0", "comparator":"GreaterThanOrEqualTo", "worker_action":"PreviewHit", "qualification_values":[ "99" ], "caller_meets_requirement":null, "qualification_type":{ "qualification_type_id":"000000000000000000L0", "name":"HIT approval rate (%)", "visibility":true, "description":"This Qualification is generated automatically and reflects the percentage of HITs for which you have submitted an answer that has been approved divided by the total number of HITs that have been approved or rejected. Your score is a value between 0 and 100. A score of 100 indicates that every HIT you have submitted has been approved.", "has_test":false, "is_requestable":false, "keywords":"percent,assignments,approved" }, "caller_qualification_value":{ "integer_value":null, "locale_value":{ "country":null, "subdivision":null } } }, { "qualification_type_id":"00000000000000000071", "comparator":"In", "worker_action":"PreviewHit", "qualification_values":[ "US" ], "caller_meets_requirement":null, "qualification_type":{ "qualification_type_id":"00000000000000000071", "name":"Location", "visibility":true, "description":"The Location Qualification represents the location you specified with your mailing address. Some HITs may only be available to residents of particular countries, states, provinces or cities.", "has_test":false, "is_requestable":false, "keywords":"location" }, "caller_qualification_value":{ "integer_value":null, "locale_value":{ "country":null, "subdivision":null } } } ], "requester_url":"/requesters/A3FKSNPXNIOOPM/projects.json?ref=w_pl_prvw" }, "expired_task_action_url":"/projects/3K27O5FVC7L0HVAA64X4I72YJIHW59/tasks.json?ref=w_pl_prvw", "task_url":"/projects/3K27O5FVC7L0HVAA64X4I72YJIHW59/tasks/3SZYX62S6NFKMGAYGRFHF8HZW0275Z.json?assignment_id=3HWRJOOETDH9OHLD5XBX3DFYWBRSEH&ref=w_pl_prvw" }, { "task_id":"3D5G8J4N5B6AICGVMTWIKG3NJTTTVK", "assignment_id":"3X73LLYYQ2GARHDLAAY4L01CLR4HNW", "accepted_at":"2023-03-02T17:52:39.000Z", "deadline":"2023-03-02T18:22:39.000Z", "time_to_deadline_in_seconds":1774, "state":"Assigned", "question":{ "value":"https://app.cloudresearch.com/TakeLaunchedSurvey/Take/404928?assignmentId=3X73LLYYQ2GARHDLAAY4L01CLR4HNW&hitId=3D5G8J4N5B6AICGVMTWIKG3NJTTTVK&workerId=AN4TEA6EBEB2V&turkSubmitTo=https%3A%2F%2Fwww.mturk.com", "type":"ExternalURL", "attributes":{ "FrameSourceAttribute":"https://app.cloudresearch.com/TakeLaunchedSurvey/Take/404928?assignmentId=3X73LLYYQ2GARHDLAAY4L01CLR4HNW&hitId=3D5G8J4N5B6AICGVMTWIKG3NJTTTVK&workerId=AN4TEA6EBEB2V&turkSubmitTo=https%3A%2F%2Fwww.mturk.com", "FrameHeight":"0" } }, "project":{ "hit_set_id":"34OVCINT39HEF9YHPEB2ZX9A2NQARP", "requester_id":"A2K56VOSUG3VNK", "requester_name":"Michael Greenstein", "title":"The Bus Crash Study(~ 5 minutes)", "description":"Purpose: We are conducting a research study to examine altruism which is the act of acting on the behalf of others, even at the possible expense of oneself (Kawamura & Kusumi, 2018).", "assignment_duration_in_seconds":1800, "creation_time":"2023-03-02T04:35:16.000Z", "assignable_hits_count":38, "latest_expiration_time":"2023-04-01T04:35:16.000Z", "caller_meets_requirements":false, "caller_meets_preview_requirements":false, "last_updated_time":"2023-03-02T04:35:16.000Z", "monetary_reward":{ "currency_code":"USD", "amount_in_dollars":0.5 }, "hit_requirements":[ { "qualification_type_id":"3HN7640Z3OXZSI55PKOD74VH889TSI", "comparator":"DoesNotExist", "worker_action":"PreviewHit", "qualification_values":[ ], "caller_meets_requirement":null, "qualification_type":{ "qualification_type_id":"3HN7640Z3OXZSI55PKOD74VH889TSI", "name":"0a3631f6", "visibility":true, "description":"TurkPrime Research Group", "has_test":false, "is_requestable":true, "keywords":"TurkPrime research group" }, "caller_qualification_value":{ "integer_value":null, "locale_value":{ "country":null, "subdivision":null } } }, { "qualification_type_id":"00000000000000000040", "comparator":"GreaterThanOrEqualTo", "worker_action":"PreviewHit", "qualification_values":[ "100" ], "caller_meets_requirement":null, "qualification_type":{ "qualification_type_id":"00000000000000000040", "name":"Total approved HITs", "visibility":true, "description":"This Qualification is generated automatically and reflects the number of HITs which you have submitted an answer that has been approved. Your score is a value greater than or equal to 0.", "has_test":false, "is_requestable":false, "keywords":"total,assignments,approved" }, "caller_qualification_value":{ "integer_value":null, "locale_value":{ "country":null, "subdivision":null } } }, { "qualification_type_id":"3ZA6RUP9VE6IG8F6WGLOG7AL08KQXY", "comparator":"DoesNotExist", "worker_action":"PreviewHit", "qualification_values":[ ], "caller_meets_requirement":null, "qualification_type":{ "qualification_type_id":"3ZA6RUP9VE6IG8F6WGLOG7AL08KQXY", "name":"Exc: [1090339537-404928]", "visibility":true, "description":"Excluded from HIT 404928", "has_test":false, "is_requestable":true, "keywords":"" }, "caller_qualification_value":{ "integer_value":null, "locale_value":{ "country":null, "subdivision":null } } }, { "qualification_type_id":"3CE74LL4O7AZFGA0UGQGHW46O9VEKS", "comparator":"GreaterThanOrEqualTo", "worker_action":"ViewHitSet", "qualification_values":[ "100" ], "caller_meets_requirement":null, "qualification_type":{ "qualification_type_id":"3CE74LL4O7AZFGA0UGQGHW46O9VEKS", "name":"rhsnlk98", "visibility":true, "description":"rhsnlk98", "has_test":false, "is_requestable":true, "keywords":"" }, "caller_qualification_value":{ "integer_value":null, "locale_value":{ "country":null, "subdivision":null } } }, { "qualification_type_id":"000000000000000000L0", "comparator":"GreaterThanOrEqualTo", "worker_action":"PreviewHit", "qualification_values":[ "90" ], "caller_meets_requirement":null, "qualification_type":{ "qualification_type_id":"000000000000000000L0", "name":"HIT approval rate (%)", "visibility":true, "description":"This Qualification is generated automatically and reflects the percentage of HITs for which you have submitted an answer that has been approved divided by the total number of HITs that have been approved or rejected. Your score is a value between 0 and 100. A score of 100 indicates that every HIT you have submitted has been approved.", "has_test":false, "is_requestable":false, "keywords":"percent,assignments,approved" }, "caller_qualification_value":{ "integer_value":null, "locale_value":{ "country":null, "subdivision":null } } }, { "qualification_type_id":"00000000000000000071", "comparator":"In", "worker_action":"PreviewHit", "qualification_values":[ "US" ], "caller_meets_requirement":null, "qualification_type":{ "qualification_type_id":"00000000000000000071", "name":"Location", "visibility":true, "description":"The Location Qualification represents the location you specified with your mailing address. Some HITs may only be available to residents of particular countries, states, provinces or cities.", "has_test":false, "is_requestable":false, "keywords":"location" }, "caller_qualification_value":{ "integer_value":null, "locale_value":{ "country":null, "subdivision":null } } } ], "requester_url":"/requesters/A2K56VOSUG3VNK/projects.json?ref=w_pl_prvw" }, "expired_task_action_url":"/projects/34OVCINT39HEF9YHPEB2ZX9A2NQARP/tasks.json?ref=w_pl_prvw", "task_url":"/projects/34OVCINT39HEF9YHPEB2ZX9A2NQARP/tasks/3D5G8J4N5B6AICGVMTWIKG3NJTTTVK.json?assignment_id=3X73LLYYQ2GARHDLAAY4L01CLR4HNW&ref=w_pl_prvw" }, { "task_id":"371DNNCG44VU3DLRUTAR4FZSY848TH", "assignment_id":"37UEWGM5HU12YIM8HL1ID97WDOJ1RH", "accepted_at":"2023-03-02T17:52:36.000Z", "deadline":"2023-03-02T18:32:36.000Z", "time_to_deadline_in_seconds":2371, "state":"Assigned", "question":{ "value":"https://app.cloudresearch.com/TakeLaunchedSurvey/Take/407052?assignmentId=37UEWGM5HU12YIM8HL1ID97WDOJ1RH&hitId=371DNNCG44VU3DLRUTAR4FZSY848TH&workerId=AN4TEA6EBEB2V&turkSubmitTo=https%3A%2F%2Fwww.mturk.com", "type":"ExternalURL", "attributes":{ "FrameSourceAttribute":"https://app.cloudresearch.com/TakeLaunchedSurvey/Take/407052?assignmentId=37UEWGM5HU12YIM8HL1ID97WDOJ1RH&hitId=371DNNCG44VU3DLRUTAR4FZSY848TH&workerId=AN4TEA6EBEB2V&turkSubmitTo=https%3A%2F%2Fwww.mturk.com", "FrameHeight":"0" } }, "project":{ "hit_set_id":"3TO8OQV8SS7AASYDA776PS0ORD5LOY", "requester_id":"A1165NJPZ7NRHY", "requester_name":"Betterment Labs", "title":"Gambling and Time (~ 20 minutes)", "description":"In this study, you will be asked to answer questions about your gambling and how you think about yourself in relation to your gambling behaviour. Phase II: At the end of this survey, we will ask for your permission to contact you for a brief follow-up survey in one month. If you would like to participate in the follow-up survey, you will receive a $1.00 bonus for approximately 10 minutes of your time.", "assignment_duration_in_seconds":2400, "creation_time":"2023-03-01T22:15:47.000Z", "assignable_hits_count":44, "latest_expiration_time":"2023-03-31T22:15:47.000Z", "caller_meets_requirements":false, "caller_meets_preview_requirements":false, "last_updated_time":"2023-03-01T22:15:47.000Z", "monetary_reward":{ "currency_code":"USD", "amount_in_dollars":1.0 }, "hit_requirements":[ { "qualification_type_id":"00000000000000000040", "comparator":"GreaterThanOrEqualTo", "worker_action":"PreviewHit", "qualification_values":[ "100" ], "caller_meets_requirement":null, "qualification_type":{ "qualification_type_id":"00000000000000000040", "name":"Total approved HITs", "visibility":true, "description":"This Qualification is generated automatically and reflects the number of HITs which you have submitted an answer that has been approved. Your score is a value greater than or equal to 0.", "has_test":false, "is_requestable":false, "keywords":"total,assignments,approved" }, "caller_qualification_value":{ "integer_value":null, "locale_value":{ "country":null, "subdivision":null } } }, { "qualification_type_id":"00000000000000000040", "comparator":"LessThanOrEqualTo", "worker_action":"PreviewHit", "qualification_values":[ "10000" ], "caller_meets_requirement":null, "qualification_type":{ "qualification_type_id":"00000000000000000040", "name":"Total approved HITs", "visibility":true, "description":"This Qualification is generated automatically and reflects the number of HITs which you have submitted an answer that has been approved. Your score is a value greater than or equal to 0.", "has_test":false, "is_requestable":false, "keywords":"total,assignments,approved" }, "caller_qualification_value":{ "integer_value":null, "locale_value":{ "country":null, "subdivision":null } } }, { "qualification_type_id":"38SUCLIH8F2EKN7F79243ZMC018DVQ", "comparator":"DoesNotExist", "worker_action":"PreviewHit", "qualification_values":[ ], "caller_meets_requirement":null, "qualification_type":{ "qualification_type_id":"38SUCLIH8F2EKN7F79243ZMC018DVQ", "name":"Exc: [1562964400-407052]", "visibility":true, "description":"Excluded from HIT 407052", "has_test":false, "is_requestable":true, "keywords":"" }, "caller_qualification_value":{ "integer_value":null, "locale_value":{ "country":null, "subdivision":null } } }, { "qualification_type_id":"3CE74LL4O7AZFGA0UGQGHW46O9VEKS", "comparator":"GreaterThanOrEqualTo", "worker_action":"ViewHitSet", "qualification_values":[ "100" ], "caller_meets_requirement":null, "qualification_type":{ "qualification_type_id":"3CE74LL4O7AZFGA0UGQGHW46O9VEKS", "name":"rhsnlk98", "visibility":true, "description":"rhsnlk98", "has_test":false, "is_requestable":true, "keywords":"" }, "caller_qualification_value":{ "integer_value":null, "locale_value":{ "country":null, "subdivision":null } } }, { "qualification_type_id":"000000000000000000L0", "comparator":"GreaterThanOrEqualTo", "worker_action":"PreviewHit", "qualification_values":[ "97" ], "caller_meets_requirement":null, "qualification_type":{ "qualification_type_id":"000000000000000000L0", "name":"HIT approval rate (%)", "visibility":true, "description":"This Qualification is generated automatically and reflects the percentage of HITs for which you have submitted an answer that has been approved divided by the total number of HITs that have been approved or rejected. Your score is a value between 0 and 100. A score of 100 indicates that every HIT you have submitted has been approved.", "has_test":false, "is_requestable":false, "keywords":"percent,assignments,approved" }, "caller_qualification_value":{ "integer_value":null, "locale_value":{ "country":null, "subdivision":null } } }, { "qualification_type_id":"00000000000000000071", "comparator":"In", "worker_action":"PreviewHit", "qualification_values":[ "US" ], "caller_meets_requirement":null, "qualification_type":{ "qualification_type_id":"00000000000000000071", "name":"Location", "visibility":true, "description":"The Location Qualification represents the location you specified with your mailing address. Some HITs may only be available to residents of particular countries, states, provinces or cities.", "has_test":false, "is_requestable":false, "keywords":"location" }, "caller_qualification_value":{ "integer_value":null, "locale_value":{ "country":null, "subdivision":null } } } ], "requester_url":"/requesters/A1165NJPZ7NRHY/projects.json?ref=w_pl_prvw" }, "expired_task_action_url":"/projects/3TO8OQV8SS7AASYDA776PS0ORD5LOY/tasks.json?ref=w_pl_prvw", "task_url":"/projects/3TO8OQV8SS7AASYDA776PS0ORD5LOY/tasks/371DNNCG44VU3DLRUTAR4FZSY848TH.json?assignment_id=37UEWGM5HU12YIM8HL1ID97WDOJ1RH&ref=w_pl_prvw" }, { "task_id":"3FHTJGYT9QJL8RPOD4J06TE6KBTGP7", "assignment_id":"3300DTYQT61BA9S6XPD3VEFWQLREQ0", "accepted_at":"2023-03-02T17:52:31.000Z", "deadline":"2023-03-02T18:52:31.000Z", "time_to_deadline_in_seconds":3566, "state":"Assigned", "question":{ "value":"https://www.mturkcontent.com/dynamic/hit?assignmentId=3300DTYQT61BA9S6XPD3VEFWQLREQ0&hitId=3FHTJGYT9QJL8RPOD4J06TE6KBTGP7&workerId=AN4TEA6EBEB2V&turkSubmitTo=https%3A%2F%2Fwww.mturk.com", "type":"InternalURL", "attributes":{ "FrameSourceAttribute":"https://www.mturkcontent.com/dynamic/hit?assignmentId=3300DTYQT61BA9S6XPD3VEFWQLREQ0&hitId=3FHTJGYT9QJL8RPOD4J06TE6KBTGP7&workerId=AN4TEA6EBEB2V&turkSubmitTo=https%3A%2F%2Fwww.mturk.com", "FrameHeight":"0" } }, "project":{ "hit_set_id":"3G2I6FODBFTUPDKWR5RHO3FIO036LC", "requester_id":"A1QLBEGFG76R2D", "requester_name":"Matt Frei (Verisk)", "title":"Edit PDF files", "description":"Make simple edits to provided PDF documents", "assignment_duration_in_seconds":3600, "creation_time":"2023-02-28T17:02:32.000Z", "assignable_hits_count":342, "latest_expiration_time":"2023-03-07T17:02:32.000Z", "caller_meets_requirements":false, "caller_meets_preview_requirements":false, "last_updated_time":"2023-02-28T17:02:32.000Z", "monetary_reward":{ "currency_code":"USD", "amount_in_dollars":1.0 }, "hit_requirements":[ { "qualification_type_id":"000000000000000000L0", "comparator":"GreaterThan", "worker_action":"PreviewHit", "qualification_values":[ "90" ], "caller_meets_requirement":null, "qualification_type":{ "qualification_type_id":"000000000000000000L0", "name":"HIT approval rate (%)", "visibility":true, "description":"This Qualification is generated automatically and reflects the percentage of HITs for which you have submitted an answer that has been approved divided by the total number of HITs that have been approved or rejected. Your score is a value between 0 and 100. A score of 100 indicates that every HIT you have submitted has been approved.", "has_test":false, "is_requestable":false, "keywords":"percent,assignments,approved" }, "caller_qualification_value":{ "integer_value":null, "locale_value":{ "country":null, "subdivision":null } } }, { "qualification_type_id":"00000000000000000040", "comparator":"GreaterThan", "worker_action":"PreviewHit", "qualification_values":[ "50" ], "caller_meets_requirement":null, "qualification_type":{ "qualification_type_id":"00000000000000000040", "name":"Total approved HITs", "visibility":true, "description":"This Qualification is generated automatically and reflects the number of HITs which you have submitted an answer that has been approved. Your score is a value greater than or equal to 0.", "has_test":false, "is_requestable":false, "keywords":"total,assignments,approved" }, "caller_qualification_value":{ "integer_value":null, "locale_value":{ "country":null, "subdivision":null } } } ], "requester_url":"/requesters/A1QLBEGFG76R2D/projects.json?ref=w_pl_prvw" }, "expired_task_action_url":"/projects/3G2I6FODBFTUPDKWR5RHO3FIO036LC/tasks.json?ref=w_pl_prvw", "task_url":"/projects/3G2I6FODBFTUPDKWR5RHO3FIO036LC/tasks/3FHTJGYT9QJL8RPOD4J06TE6KBTGP7.json?assignment_id=3300DTYQT61BA9S6XPD3VEFWQLREQ0&ref=w_pl_prvw" }, { "task_id":"3VIVIU06GWUDEU4UVT9AP4U1KS1MI0", "assignment_id":"3W92K5RLW7ZNFC1IS3W9CB4Z6355VH", "accepted_at":"2023-03-02T17:52:33.000Z", "deadline":"2023-03-02T18:52:33.000Z", "time_to_deadline_in_seconds":3568, "state":"Assigned", "question":{ "value":"https://proxy-dot-aquxr-endor.uc.r.appspot.com/studies/8cc1c1?assignmentId=3W92K5RLW7ZNFC1IS3W9CB4Z6355VH&hitId=3VIVIU06GWUDEU4UVT9AP4U1KS1MI0&workerId=AN4TEA6EBEB2V&turkSubmitTo=https%3A%2F%2Fwww.mturk.com", "type":"ExternalURL", "attributes":{ "FrameSourceAttribute":"https://proxy-dot-aquxr-endor.uc.r.appspot.com/studies/8cc1c1?assignmentId=3W92K5RLW7ZNFC1IS3W9CB4Z6355VH&hitId=3VIVIU06GWUDEU4UVT9AP4U1KS1MI0&workerId=AN4TEA6EBEB2V&turkSubmitTo=https%3A%2F%2Fwww.mturk.com", "FrameHeight":"0" } }, "project":{ "hit_set_id":"3DPZKFEUV4YYF3DZ7UJPETYJST34IL", "requester_id":"AFDMB61DD2BET", "requester_name":"Mturk Study", "title":"Feature Detection Task | 10-12 minutes | Earn $1.50", "description":"Detect features in an image (10-12 minutes)", "assignment_duration_in_seconds":3600, "creation_time":"2023-02-28T23:10:27.000Z", "assignable_hits_count":12, "latest_expiration_time":"2023-03-02T23:10:27.000Z", "caller_meets_requirements":false, "caller_meets_preview_requirements":false, "last_updated_time":"2023-02-28T23:10:27.000Z", "monetary_reward":{ "currency_code":"USD", "amount_in_dollars":1.0 }, "hit_requirements":[ { "qualification_type_id":"00000000000000000040", "comparator":"GreaterThanOrEqualTo", "worker_action":"AcceptHit", "qualification_values":[ "1" ], "caller_meets_requirement":null, "qualification_type":{ "qualification_type_id":"00000000000000000040", "name":"Total approved HITs", "visibility":true, "description":"This Qualification is generated automatically and reflects the number of HITs which you have submitted an answer that has been approved. Your score is a value greater than or equal to 0.", "has_test":false, "is_requestable":false, "keywords":"total,assignments,approved" }, "caller_qualification_value":{ "integer_value":null, "locale_value":{ "country":null, "subdivision":null } } }, { "qualification_type_id":"000000000000000000L0", "comparator":"GreaterThanOrEqualTo", "worker_action":"AcceptHit", "qualification_values":[ "90" ], "caller_meets_requirement":null, "qualification_type":{ "qualification_type_id":"000000000000000000L0", "name":"HIT approval rate (%)", "visibility":true, "description":"This Qualification is generated automatically and reflects the percentage of HITs for which you have submitted an answer that has been approved divided by the total number of HITs that have been approved or rejected. Your score is a value between 0 and 100. A score of 100 indicates that every HIT you have submitted has been approved.", "has_test":false, "is_requestable":false, "keywords":"percent,assignments,approved" }, "caller_qualification_value":{ "integer_value":null, "locale_value":{ "country":null, "subdivision":null } } }, { "qualification_type_id":"00000000000000000071", "comparator":"EqualTo", "worker_action":"AcceptHit", "qualification_values":[ "US" ], "caller_meets_requirement":null, "qualification_type":{ "qualification_type_id":"00000000000000000071", "name":"Location", "visibility":true, "description":"The Location Qualification represents the location you specified with your mailing address. Some HITs may only be available to residents of particular countries, states, provinces or cities.", "has_test":false, "is_requestable":false, "keywords":"location" }, "caller_qualification_value":{ "integer_value":null, "locale_value":{ "country":null, "subdivision":null } } } ], "requester_url":"/requesters/AFDMB61DD2BET/projects.json?ref=w_pl_prvw" }, "expired_task_action_url":"/projects/3DPZKFEUV4YYF3DZ7UJPETYJST34IL/tasks.json?ref=w_pl_prvw", "task_url":"/projects/3DPZKFEUV4YYF3DZ7UJPETYJST34IL/tasks/3VIVIU06GWUDEU4UVT9AP4U1KS1MI0.json?assignment_id=3W92K5RLW7ZNFC1IS3W9CB4Z6355VH&ref=w_pl_prvw" } ] }
  3. Reading about "count" and I looking at examples.
  4. I have an associative array A that contains, among other things, a key named "requestor". I have a second array B that also contains a key named "requestor". I need a count of the number of elements in array A, excluding "requestor" value matches with those in array B. It appears there is no built in function that can help with that so I am wanting to confirm that a brute force loop is the only way.
  5. Thanks. I sort of came to the same conclusion myself so I asked here hoping someone smarter than me could help.
  6. My bad. It is an execute error so it does not show up until it tries to execute. It says 'window' is undefined. Do I need a plugin or something?
  7. Yes but when I try to use it I get an error that confirm is undefined. II just tried it again but this time there was no error. Odd. Thanks.
  8. Not sure what server you are talking about but if you add some error checking to your script you can determine if the update was successful or not. If unsuccessful you can schedule a one time rerun after some specified amount of time or just wait for the next regularly scheduled cron to run again.
  9. Whatever you can do from the command line you can do with a cron job either directly or as a script.
  10. I have a Chrome extension but I occasionally get a result that needs a confirmation from the user. It appears that there is no way to produce a popup confirmation window. Is that true and if not, how do I do it? TIA.
  11. What is not working and what error are you getting? Do you have error reporting turned on? error_reporting(E_ALL);
  12. Got it. Thanks.
  13. I thought a new thread would be better, sorry. In any case I am confused as I thought a regexp needed the '/' delimiters.
  14. Not sure how this became part of the previous topic although it is related in in that it is applying that solution. I thought I started a new topic. What I posted was the string before running it through Javascript RegExp. I assumed that the string was supposed to be a regexp expression string that RegExp would convert. Are you saying that the string should just be: FRENCH
  15. I thought this would be easy but I am really bad at regexps. I want to match the string 'FRENCH' anywhere in a string. /FRENCH/ Does not work. Please help. TIA.
  16. The OP said something about clicking a link which is why I asked to see some code.
  17. It is still not clear what you are trying to do. Do users click on a link and see the time for the next upload? Perhaps you need to show some code of what you tried and what didn't work. Be sure to use the code icon (<>) and specify PHP
  18. Got it. for (var i=0; i<config_data.excludes.length; i++) { regexes.push(new RegExp(config_data.excludes[i])); } I always struggle with data types in Java
  19. I think the problem is here: for (let item in config_data.excludes) { regexes.push(new RegExp(item)); } The result in regexexs is one entry and it is '/0/' because 'item' is '0' rather than '/FRENCH*/'.
  20. You need to be more explicit. If the next task is always 7:30PM each day, why do you need a timer? If you do need a timer are you running on Windows, Mac or Linux?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.