mg5171

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • in reply to: Using .before/.after on Canvas #9989
    mg5171
    Participant

    Great, thanks!

    in reply to: Using .before/.after on Canvas #9986
    mg5171
    Participant

    One more thing: you have the text defined with a space after each word, so that the spaces appear when the words are printed. My spreadsheet does not have those space, and, while I could add them, that will complicated things on the other end. Is there a way to define a newText in PCIbex that consists just of a space, and add that with the .after command? When I try to do this, it either bumps the next word to the following line or doesn’t do anything.

    in reply to: Using .before/.after on Canvas #9985
    mg5171
    Participant

    Thank you!

    in reply to: TypeError error #7475
    mg5171
    Participant

    I found the actual error–one of my image files was ‘uploaded’ on my server with the correct name (so on some level PCIbex was able to ‘find’ it), but had a file size of 0 and was actually not there when I tried to access it. Since fixing that, everything works perfectly.

    in reply to: TypeError error #7410
    mg5171
    Participant

    Hi Jeremy–thanks. The problem just got fixed by uploading the same files into a new experiment. I still don’t know what the error was, but the new version is working so you don’t have to worry about this!

    in reply to: newKey with numeric choices #6821
    mg5171
    Participant

    Thanks for helping me fool the system! Works perfectly.

    in reply to: .zip file problems #6778
    mg5171
    Participant

    Wow, that’s an easy fix. Thanks for that tip; you saved me hours more frustration! I was using basically the same code as with the old version of PCIbex, so I wonder if that changed in this new version.

    in reply to: .zip file problems #6776
    mg5171
    Participant

    Right, so I suppose then the question is why my .htaccess file is not working. Did something change with the new version of PCIbex? I’ve used Zip files before, and it’s usually worked. I suppose the issue is either with that file or with DreamHost. Here’s the link to the experiment (https://farm.pcibex.net/r/vhmYyZ/), and these are the errors I get:

    Access to XMLHttpRequest at ‘https://maddiegilbert.com/abxziptest/abx_zipped.zip’ from origin ‘https://farm.pcibex.net’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
    PennController.js:65

    Uncaught Error: InvalidStateError: Failed to read the ‘responseText’ property from ‘XMLHttpRequest’: The value is only accessible if the object’s ‘responseType’ is ” or ‘text’ (was ‘arraybuffer’).
    at XMLHttpRequest.n.onreadystatechange (PennController.js:65)

    in reply to: .zip file problems #6772
    mg5171
    Participant

    Hi,
    I’m having trouble with CORS access–the warnings from Chrome are clear. I use DreamHost and have the .htaccess file uploaded in the same folder as the zip file. I can download the zip file by using the direct address. However, the .htaccess file appears in the DreamHost platform, but not when I try to access the folder directly (https://www.maddiegilbert.com/abxziptest/), the .htaccess file does not appear in the list of files. Any idea why? (I realize this is not strictly a PCIbex problem). I suspect this may be why PCIbex is having trouble accessing the folder.
    Thanks!

    in reply to: Reading data into R Column Names #6696
    mg5171
    Participant

    Perfect, thanks!

    in reply to: Editing the link in InitiateRecorder() #6312
    mg5171
    Participant

    Hi,
    I’m having a similar issue as question 1 here. No matter how much I try to use .wait commands and test conditions, the continue button appears and is clickable before the recording has finished from the preceding trial. Any idea on what’s going on here?

    
    Template(  
        variable => 
        
    newTrial(
        newText('instructions', 'Please record the following words:')
            .print()
        ,
        newText('word', variable.text)  //show people all the words in text column
            .print()
        ,
        newVoiceRecorder("recorder") 
            .log()
            .record()
            .print()
            .wait()
        ,
        newButton("continue", "Click here to continue.")  
            .print()
            .wait(getVoiceRecorder("recorder").test.recorded())
        
    ));
    
    in reply to: Choosing subet of items to present #5144
    mg5171
    Participant

    To follow up on this, I have the following. The items have a column called ‘number’ and are labeled 1-90. This seems to be giving me the first 45 only, but in a randomized order (which is also probably because I’m randomizing with the Sequence command at the beginning. Any ideas why it’s giving me the first 45 instead of a random 45 out of the total 90?

    //fillers
    
    numberRows_fillers = 90; 
    numberDraws_fillers = 45; 
    randomIDs_fillers = [...new Array(numberRows_fillers)].map((v,i)=>i).sort(v=>Math.random()>0.5).splice(1,numberDraws_fillers); 
    
    Template( defaultTable.filter( r => r.type=="filler" && randomIDs_fillers.indexOf(Number(r.number))>-1 ),
        variable =>
    
    in reply to: Logging order of elements #5111
    mg5171
    Participant

    Thanks!

    in reply to: Choosing subet of items to present #4896
    mg5171
    Participant

    Thanks so much Jeremy!

    in reply to: Randomize order of audio files #4878
    mg5171
    Participant

    Thanks; that works like a charm. Is there an easy way with this set up to record the order in which the files were played?

Viewing 15 posts - 1 through 15 (of 15 total)