11/27 - Mixed-up Monday!

Discussion in 'Daily mTurk HITs Threads' started by Melting Glacier, Nov 27, 2017.

?

What should we name the TurkerHub snowman? (final round!)

Poll closed Nov 28, 2017.
  1. Snowy McSnowface

    29.9%
  2. Slushy Schmidt

    18.2%
  3. Joe Sno

    51.9%
Thread Status:
Not open for further replies.
  1. Clozy

    Clozy Well-Known Turker

    Messages:
    712
    Gender:
    Male
    Ratings:
    +1,642
    This is a very smart suggestion, thank you! I already saw this code on the great Owerwatch by the great @Ethraiel (lol ^_^) but I never thought about using it.. I'll remember about it in the future! :ay:
     
    • Like Like x 1
    • Love Love x 1
  2. ChrisTurk

    ChrisTurk Administrator

    Messages:
    56,746
    Ratings:
    +163,330
    [​IMG]

    You're writing a class on Javascript? :emoji_thinking:
     
    • Love Love x 1
  3. purplepoppi

    purplepoppi Survey Slinger

    Messages:
    2,406
    Gender:
    Female
    Ratings:
    +3,591
    Suggestions for decent, cheap turking laptop with touchscreen? Mine is on its way to Croakville.
     
  4. MrTrentSD

    MrTrentSD Survey Slinger

    Messages:
    5,908
    Gender:
    Male
    Ratings:
    +9,645
    I was at The Paris Hotel for a corporate convention a few years ago. I get up early so I go downstairs to look for coffee and some hooker solicited me. The only thing I could think of was how many was she up to by 5 am in the morning.

    [​IMG]
     
    • LOL LOL x 2
  5. Outer1

    Outer1 Survey Slinger

    Messages:
    5,075
    Gender:
    Male
    Ratings:
    +7,992
    I'm afraid you'd have to go back more like 40 or 50 years. My first trip was 23ish years ago and it was a shithole even then.
     
    • LOL LOL x 1
  6. Totally Not Salem

    Totally Not Salem Survey Slinger

    Messages:
    5,664
    Gender:
    Male
    Ratings:
    +5,034
    Because hoisting any magic numbers to the top of the script helps you easily find and change the magic numbers when the ones you settled on don't feel so magical anymore.
     
  7. Salamander

    Salamander Survey Slinger

    Messages:
    6,816
    Gender:
    Female
    Ratings:
    +31,720
    • Like Like x 1
  8. Totally Not Salem

    Totally Not Salem Survey Slinger

    Messages:
    5,664
    Gender:
    Male
    Ratings:
    +5,034
    While we're on the topic of Javascript, I made a HitList object you can use that helps insulate you from the differences in layout on the search queue and the work queue.
    PHP:
    // ==UserScript==
    // @name         HitList Library
    // @namespace    ,
    // @version      1
    // @description  @require this script. It does nothing otherwise.
    // @author       Cuyler Stuwe (,)
    // @include      https://worker.mturk.com/*
    // @grant        none
    // ==/UserScript==

    function HitList(hitListInitOptions) {

        
    let _hitListData;
        
    let _hitList;
        
    let _searchPageHitListElement;
        
    let _queuePageHitListElement;

        function 
    _getHitListElement(reactComponentToSearchFor) {
            return 
    document.querySelector(`div[data-react-class^="require('reactComponents/${reactComponentToSearchFor}"]`);
        }

        function 
    _getSearchPageHitListElement() {
            return 
    _getHitListElement("hitSetTable");
        }

        function 
    _getQueuePageHitListElement() {
            return 
    _getHitListElement("taskQueueTable");
        }

        function 
    exists() {
            return 
    _hitListData !== undefined;
        }

        function 
    contents() {
            return 
    _hitList;
        }

        function 
    sourceName() {
            if(
    _searchPageHitListElement) {return "search";}
            else if(
    _queuePageHitListElement) {return "queue";}
            else {return 
    "none";}
        }

        function 
    init() {
            
    _searchPageHitListElement _getSearchPageHitListElement();
            
    _queuePageHitListElement _getQueuePageHitListElement();

            if(
    _searchPageHitListElement) {
                
    _hitListData _searchPageHitListElement.dataset.reactProps;
            }
            else if(
    _queuePageHitListElement) {
                
    _hitListData _queuePageHitListElement.dataset.reactProps;
            }

            
    _hitList JSON.parse(_hitListData).bodyData;

            if(
    hitListInitOptions && hitListInitOptions.standardizeKeys) {
                for(
    let hit of _hitList) {
                    
    let keys Object.keys(hit.project);
                    for(
    let key of keys) {
                        if(
    hit[key] === undefined) {
                            
    hit[key] = hit.project[key];
                        }
                        else {
                            
    console.error("Found a duplicate when trying to standardize keys!");
                        }
                    }
                }

                if(
    hitListInitOptions && hitListInitOptions.cleanupDuplicateKeys) {
                    for(
    let hit of _hitList) {
                        
    delete hit.project;
                    }
                }
            }
        }

        
    init();

        return {
            
    exists,
            
    contents,
            
    sourceName
        
    };
    }

    function 
    hitListTest() {

        
    let testHitList = new HitList({standardizeKeystruecleanupDuplicateKeystrue});

        if(
    testHitList.exists()) {
            
    console.log("hitListTest() function FOUND HitList with contents:"testHitList.contents());
        }
        else {
            
    console.log("hitListTest() ran but did not find a HitList");
        }

    }

    hitListTest();
     
  9. Confirmed Robot

    Confirmed Robot Survey Slinger

    Messages:
    7,291
    Ratings:
    +27,052
    Some of the stuff on the image in the description for the script does not exist for the decide the categories, like Astrology or Weddings (i think) isn't in option in the actual HIT. What are those buttons corresponding to? Also I just sort of woke up so I could be wrong about that.. still trying to finish my first cup of coffee here.
     
    • Like Like x 1
  10. leafs4_cup

    leafs4_cup Ugly Mug

    Messages:
    10,421
    Gender:
    Male
    Ratings:
    +31,313
    Life tip: Don't throw up in the shower. It seems like a good idea at first, but in the end, you feel like you are standing at the shores of Normandy.
     
    • LOL LOL x 8
    • Today I Learned Today I Learned x 2
    • Love Love x 1
  11. breakerofchains

    breakerofchains Active Turker

    Messages:
    364
    Gender:
    Female
    Ratings:
    +867
  12. CheshireKitty

    CheshireKitty Survey Slinger

    Messages:
    2,843
    Gender:
    Female
    Ratings:
    +5,022
    Moving the chair up stairs was 100% the worst part, but yay!
    9E87F2BD-E08E-4FBD-B8F2-8B658287193C.png
     
    • Love Love x 3
    • Like Like x 2
    • 5/5 Pay 5/5 Pay x 1
  13. Hummingbirdee

    Hummingbirdee Big Bird

    Messages:
    54,302
    Gender:
    Female
    Ratings:
    +115,710
    Matt's tactic was to throw up on the bathroom floor, leave it there, assume I would clean it up.

    [​IMG]
     
    • LOL LOL x 1
    • 5/5 Pay 5/5 Pay x 1
    • Today I Learned Today I Learned x 1
  14. Hummingbirdee

    Hummingbirdee Big Bird

    Messages:
    54,302
    Gender:
    Female
    Ratings:
    +115,710
    It's so neat!

    I feel like a slob now. :emoji_sweat_smile:
     
  15. Salamander

    Salamander Survey Slinger

    Messages:
    6,816
    Gender:
    Female
    Ratings:
    +31,720
    I'm using something similar, except not touchscreen. Have had it for like 5 years now and it's still going strong.

    Other than the bezel where it looks like shit from where i dropped it and cracked it, and then one time spilled acetone on it lol.

    STILL RUNS FINE!
     
  16. Confirmed Robot

    Confirmed Robot Survey Slinger

    Messages:
    7,291
    Ratings:
    +27,052
    Is that popcorn ceiling and carpet in there? I have a popcorn ceiling in my office and carpet and it is driving me crazy. Gonna rip all that stuff out soon and put down some pergo.
     
  17. dan

    dan daelian

    Messages:
    28,285
    Gender:
    Male
    Ratings:
    +61,817
    It takes some planning. You have to gauge whether or not there'll be chunks. If chunks - be prepared to push it down the drain with your toes. If it'll be mostly liquid - fair game.
     
    • Today I Learned Today I Learned x 2
    • LOL LOL x 1
  18. CheshireKitty

    CheshireKitty Survey Slinger

    Messages:
    2,843
    Gender:
    Female
    Ratings:
    +5,022
    If it makes you feel any better, here's what you didn't see, all the crap sitting in the hallway :emoji_joy:
    079BEEC6-2BBA-4D03-8E84-72A56F30BF2F.png
     
    • LOL LOL x 2
    • Love Love x 2
  19. keysman

    keysman Well-Known Turker

    Messages:
    2,973
    Gender:
    Male
    Ratings:
    +11,718
    https://www.frys.com/ads/view-all-store-ads sign up for the email list and get some serious discounts.
     
    • Like Like x 1
  20. ChrisTurk

    ChrisTurk Administrator

    Messages:
    56,746
    Ratings:
    +163,330
    ..lol
     
Thread Status:
Not open for further replies.