Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Step 4 and 5 for IAT #14

Open
ghost opened this issue Jun 12, 2013 · 32 comments
Open

Step 4 and 5 for IAT #14

ghost opened this issue Jun 12, 2013 · 32 comments

Comments

@ghost
Copy link

ghost commented Jun 12, 2013

Hi,

I am not very familiar with PHP for step 4) Modify "writeFile.php": set the variable $base_dir to the directory where you would like to keep the output

How do I set the variable $base_dir? Do I edit the following:
$base_dir = realpath(dirname(FILE));

$folder_dir = "../output/";

for example if my base directory is "Users/Kayla/Desktop/IAT-master/templates/Science/output" where do I put this in the "writeFile.php" ?

Also for directing participants to the browser. Two questions: Do I get participants to click "index.php" to complete the test?
And clicking on "index.php" works when I use "Opera" but when I try to use safari or google chrome it gives me an error message to enable javascript
However, I have javascript enabled. How do I fix this?

Thanks,
Kluhlynn

@nolach
Copy link
Contributor

nolach commented Jun 13, 2013

Hi Kluhlynn,

Once the files are uploaded to the server, the IAT should work without modification. Which list of directions are you referring to?

You should direct your participants to the index.php file. Does the error to enable JavaScript appear once you click index.php, or once index.php loads? A link to your problem would be helpful if possible.

Thanks,
Steven Allon

@ghost
Copy link
Author

ghost commented Jun 13, 2013

Hi Steven,

I was referring to these directions https://github.com/winteram/IAT (this
is the website that I downloaded the IAT from) and I was also referring to
these directions
http://sourceforge.net/projects/implicitassoc/files/?source=navbar. I was
quite lost so I did a lot of searching around. Maybe that's where the
confusion came in.
Anyways, this is the link to my server
http://192.168.1.67/~Kayla/IAT-master/

When I click on the index.php from the documents saved to my computer it
takes me to Opera and the test works fine, but when I follow this link
http://192.168.1.67/~Kayla/IAT-master/ and click on index.php I get the
error.

I am also having trouble getting the output to save to my base directory.
And I was wondering if there is a way to submit the test after it has been
completed?

Thanks so much,
Kayla

On Wed, Jun 12, 2013 at 8:31 PM, Steven Allon [email protected]:

Hi Kluhlynn,

Once the files are uploaded to the server, the IAT should work without
modification. Which list of directions are you referring to?

You should direct your participants to the index.php file. Does the error
to enable JavaScript appear once you click index.php, or once index.php
loads? A link to your problem would be helpful if possible.

Thanks,
Steven Allon


Reply to this email directly or view it on GitHubhttps://github.com//issues/14#issuecomment-19370224
.

@nolach
Copy link
Contributor

nolach commented Jun 13, 2013

Disregard any directions from the SourceForge site, as that project hasn't been updated since 2011. If you followed any of those directions, the IAT project may have been corrupted. As it would be difficult to ascertain the changes made, I'd recommend removing the IAT folder and reinstalling (sorry if this means a loss of IAT configuration data).

Let me know if this solves your problem!

(By the way, I believe the link you provided was for a local testing server. The files uploaded to that URL are only accessible by you.)

@ghost
Copy link
Author

ghost commented Jun 13, 2013

Do you mind me asking what my server is then? Can you look at this is the
other link I have before I delete everything http://192.168.1.67/
*
*

On Thu, Jun 13, 2013 at 4:25 PM, Steven Allon [email protected]:

Disregard any directions from the SourceForge site, as that project hasn't
been updated since 2011. If you followed any of those directions, the IAT
project may have been corrupted. As it would be difficult to ascertain the
changes made, I'd recommend removing the IAT folder and reinstalling (sorry
if this means a loss of IAT configuration data).

Let me know if this solves your problem!

(By the way, I believe the link you provided was for a local testing
server. The files uploaded to that URL are only accessible by you.)


Reply to this email directly or view it on GitHubhttps://github.com//issues/14#issuecomment-19431357
.

@nolach
Copy link
Contributor

nolach commented Jun 14, 2013

Don't delete everything hah! You only have to delete the IAT folder and reinstall it.
Do you mean what type of server you have? I'm not sure. When I try to visit http://192.168.1.67, I'm told it doesn't exist.

@ghost
Copy link
Author

ghost commented Jun 14, 2013

I really don't know what I mean haha. In the instructions it says to direct
people to [yourserver.com]/IAT
I thought that I was suppose to put the IAT folder into my "sites" folder
and then it would be accessible by anyone.
Do I need to download a server to run the IAT or?

On Thu, Jun 13, 2013 at 5:00 PM, Steven Allon [email protected]:

Don't delete everything hah! You only have to delete the IAT folder and
reinstall it.
Do you mean what type of server you have? I'm not sure. When I try to
visit http://192.168.1.67, I'm told it doesn't exist.


Reply to this email directly or view it on GitHubhttps://github.com//issues/14#issuecomment-19432475
.

@nolach
Copy link
Contributor

nolach commented Jun 14, 2013

Your understanding of installation is correct. Your files must be delivered by a server to parse the PHP code. From your description (and the fact that I can't access your site), I'm guessing you have a testing server (e.g., XAMPP). A testing server provides a local environment to serve files that is only accessible to you.

What is the local path to your files (i.e. C:/xampp/sites/IAT-master)? That should help reveal your server environment.

@ghost
Copy link
Author

ghost commented Jun 14, 2013

I'm not sure how to find the local path but when I click on info for the
IAT-master file I get the location /Users/Kayla/Sites
And when I click on the index.php file this is the link I
get file://localhost/Users/Kayla/Sites/IAT-master/index.php

On Thu, Jun 13, 2013 at 5:12 PM, Steven Allon [email protected]:

Your understanding of installation is correct. Your files must be
delivered by a server to parse the PHP code. From your description (and the
fact that I can't access your site), I'm guessing you have a testing server
(e.g., XAMPP). A testing server provides a local environment to serve files
that is only accessible to you.

What is the local path to your files (i.e. C:/xampp/sites/IAT-master)?
That should help reveal your server environment.


Reply to this email directly or view it on GitHubhttps://github.com//issues/14#issuecomment-19432863
.

@nolach
Copy link
Contributor

nolach commented Jun 14, 2013

Ok. Unless the machine you are on is a remote server (my guess is it's not as the IP address you gave me doesn't resolve), it sounds like you are running files on a testing server. If that's the case, you should be able to see your IAT by visiting http://localhost/IAT-master/index.php

For other people to access your IAT, your files must be hosted on a server. You can find a lot of free options by Googling "free web hosting."

@ghost
Copy link
Author

ghost commented Jun 14, 2013

I cannot see my IAT by visiting that link you gave me. I can only see the
IAT when I visit it directly from the folder it is in. I will google free
web hosting and see if I can find something. I honestly thought that my
computer just had a built in server. I have a macbook pro 10.6.8. I guess I
was wrong.

Thanks!

On Thu, Jun 13, 2013 at 5:28 PM, Steven Allon [email protected]:

Ok. Unless the machine you are on is a remote server (my guess is it's not
as the IP address you gave me doesn't resolve), it sounds like you are
running files on a testing server. If that's the case, you should be able
to see your IAT by visiting http://localhost/IAT-master/index.php

For other people to access your IAT, your files must be hosted on a
server. You can find a lot of free options by Googling "free web hosting."


Reply to this email directly or view it on GitHubhttps://github.com//issues/14#issuecomment-19433333
.

@nolach
Copy link
Contributor

nolach commented Jun 14, 2013

It seems you are right about Macs having built-in servers. Found this link with a quick explanation of how to set up the server on your machine: http://macs.about.com/od/networking/qt/websharing.htm

Hope that helps!

@ghost
Copy link
Author

ghost commented Jun 17, 2013

Hi Steven,

I've made some changes on my computer to try and make my web server
accessible by others. Now I get this message
Forbidden

You don't have permission to access /IAT on this server.
Would you know how to fix this?

Thanks,

Kayla

On Thu, Jun 13, 2013 at 6:00 PM, Kayla Oliver [email protected]:

Sorry it didn't show up I will attach a file

On Thu, Jun 13, 2013 at 6:00 PM, Kayla Oliver [email protected]:

On Thu, Jun 13, 2013 at 5:59 PM, Kayla Oliver [email protected]:

I've already completed this step. I've attached a screen shot of my
website address. This was the link I gave you before, but it didn't work?
I'm not sure what else I should do. Should I turn on file sharing?

On Thu, Jun 13, 2013 at 5:50 PM, Kayla Oliver [email protected]:

That's great! Thank you so much!

On Thu, Jun 13, 2013 at 5:44 PM, Steven Allon <[email protected]

wrote:

It seems you are right about Macs having built-in servers. Found this
link with a quick explanation of how to set up the server on your machine:
http://macs.about.com/od/networking/qt/websharing.htm

Hope that helps!


Reply to this email directly or view it on GitHubhttps://github.com//issues/14#issuecomment-19433838
.

@codydh
Copy link

codydh commented Jun 17, 2013

Kayla,

Just wanted to pipe in that unless you're just having people within a lab access, you absolutely don't want people on the Internet accessing this IAT hosted on your personal computer, for a very long list of reasons.

Cody

Sent from my iPhone

On Jun 17, 2013, at 11:29 AM, kluhlynn [email protected] wrote:

Hi Steven,

I've made some changes on my computer to try and make my web server
accessible by others. Now I get this message
Forbidden

You don't have permission to access /IAT on this server.
Would you know how to fix this?

Thanks,

Kayla

On Thu, Jun 13, 2013 at 6:00 PM, Kayla Oliver [email protected]:

Sorry it didn't show up I will attach a file

On Thu, Jun 13, 2013 at 6:00 PM, Kayla Oliver [email protected]:

On Thu, Jun 13, 2013 at 5:59 PM, Kayla Oliver [email protected]:

I've already completed this step. I've attached a screen shot of my
website address. This was the link I gave you before, but it didn't work?
I'm not sure what else I should do. Should I turn on file sharing?

On Thu, Jun 13, 2013 at 5:50 PM, Kayla Oliver [email protected]:

That's great! Thank you so much!

On Thu, Jun 13, 2013 at 5:44 PM, Steven Allon <[email protected]

wrote:

It seems you are right about Macs having built-in servers. Found this
link with a quick explanation of how to set up the server on your machine:
http://macs.about.com/od/networking/qt/websharing.htm

Hope that helps!


Reply to this email directly or view it on GitHubhttps://github.com//issues/14#issuecomment-19433838
.


Reply to this email directly or view it on GitHub.

@ghost
Copy link
Author

ghost commented Jun 17, 2013

Okay so would you suggest having people come into the lab and do the IAT from my computer, rather than setting up a webserver? Even if I do that, the output doesn't seem to be saving to the output folder.

Kayla

@ghost
Copy link
Author

ghost commented Jun 17, 2013

Or should I download a free web hosting service and have people access the IAT through there?

Kayla

@codydh
Copy link

codydh commented Jun 17, 2013

Kayla,

I'd suggest one of these paths:

  1. Get a cheap web hosting plan to host this IAT. It doesn't require anything other than a standard web host. This way it's accessible from anywhere you need it, and also should resolve these problems your'e having.
  2. If you are sure you want to host it on your computer, which I believe you said was a Mac, I'd go ahead and use MAMP (http://www.mamp.info/en/index.html). This will provide you one-click setup of the MAMP stack, as well as an htdocs folder that you can move the IAT to and host it from there.

I strongly, strongly suggest just going for a web host, however.

Cody

On Jun 17, 2013, at 11:39 AM, kluhlynn [email protected] wrote:

Okay so would you suggest having people come into the lab and do the IAT from my computer, rather than setting up a webserver? Even if I do that, the output doesn't seem to be saving to the output folder.

Kayla


Reply to this email directly or view it on GitHub.

@ghost
Copy link
Author

ghost commented Jun 17, 2013

Okay I will try the first option.

Thanks!
Kayla

@ghost
Copy link
Author

ghost commented Jun 17, 2013

Hi again,

Just wanted to confirm in the instructions it says copy folder to a publicly accessible folder on your web server. When I am copying the folder to the web server (I am trying to use weebly as the host server), I copy the entire "IAT-master" folder? I am having trouble uploading the entire folder. Every time I try, it seems I can only upload individual files within the folder.

Kayla

@thomasschubert
Copy link

maybe the guys were a bit optimistic that any web hosting would work. What you need is a server where you have access via FTP (to transfer whole folders up and down), and that offers PHP to run the website and save the data on the server. I don't think weebly offers this. I suggest you talk to the computing department of your university whether they can actually give you access to a server that has these. The servers I use are all from German providers, so that is not going to help you. Maybe somebody else can suggest a reasonably priced hosting service in the US? I checked rackspace.com, it looks suitable, but maybe you can suggest which packet to choose from there. I actually do not know a free service that offers this.

@codydh
Copy link

codydh commented Jun 18, 2013

Well, by 'any web hosting,' I really did mean a standard web host, not a page creation service like Weebly. To be specific, as far as affordable providers that should get the job done, you can check out:
NearlyFreeSpeech
DreamHost
HostGator
A Small Orange
Media Temple—What I use, an affiliate link
This range in price, performance, reliability, and what they offer you, but if you just want to host this IAT you could go with any of these.

@ghost
Copy link
Author

ghost commented Jun 18, 2013

Sorry I misunderstood what was meant by free web hosting. As you can tell I am new to a lot of these terms. I will look into these options and also contact the IT services at my University.

Thanks!
Kayla

@ghost
Copy link
Author

ghost commented Jun 18, 2013

Hi again,

Do I have to turn FTP access on in my computer to use these services?
I actually found a number of free services that have the requirements mentioned above.
For anyone else having trouble that may be interested, check out:
http://www.zymic.com/free-web-hosting/
http://byethost.com/index.php/free-hosting
http://www.freewebhostingarea.com/

There are many more too. I just googled http://www.google.ca/search?client=safari&rls=en&q=free+web+hosting+service+FTP+and+php&ie=UTF-8&oe=UTF-8&redir_esc=&ei=PJPAUYbcHuaziwLBtoHIBw

I haven't singed up for one yet, but it looks like these have access via FTP and run PHP.
I think I will try the zymic one because it offers the most disk space (6000MB). Is this going to be enough for the IAT?

Thanks so much for all your help. I really would of just given up if I didn't have access to this thread/ people who actually know what they are doing, so thanks you guys!!

Kayla

@codydh
Copy link

codydh commented Jun 18, 2013

Kayla,

No, you shouldn't have the web server, PHP, or FTP server running on your computer. You will have to use FTP software, such as Cyberduck, to transfer files over to the web server. Alternatively, you can use the web-based interface from whatever host you use to transfer the files.

6000mb will be plenty for the IAT.

Cody

@ghost
Copy link
Author

ghost commented Jun 18, 2013

Thanks I downloaded file zilla and transferred the folder but I get an error message saying
Response: 553 Filetype not allowed. File .DS_Store won't be saved.
Error: Critical file transfer error
Response: 227 Entering Passive Mode (67,220,217,230,82,198)
Command: STOR IATanalysis.R
Response: 553 Filetype not allowed. File IATanalysis.R won't be saved.
Error: Critical file transfer error

Are these files supposed to be uploaded to the server as well? Do you know how I can fix this?

Kayla

@codydh
Copy link

codydh commented Jun 18, 2013

Kayla,

.DS_Store is an OS X metadata file that you don't need to worry about uploading. And IATAnalysis.R is to facilitate analyzing the data from the IAT in R, so that doesn't need to go on the server either.

Cody

On Jun 18, 2013, at 2:08 PM, kluhlynn [email protected] wrote:

Thanks I downloaded file zilla and transferred the folder but I get an error message saying
Response: 553 Filetype not allowed. File .DS_Store won't be saved.
Error: Critical file transfer error
Response: 227 Entering Passive Mode (67,220,217,230,82,198)
Command: STOR IATanalysis.R
Response: 553 Filetype not allowed. File IATanalysis.R won't be saved.
Error: Critical file transfer error

Are these files supposed to be uploaded to the server as well? Do you know how I can fix this?

Kayla


Reply to this email directly or view it on GitHub.

@ghost
Copy link
Author

ghost commented Jun 18, 2013

okay perfect. Thanks!
Can I use SPSS to analyze the data or do I have to use R?

Kayla

@codydh
Copy link

codydh commented Jun 18, 2013

Works for me—looks like a browser issue. Enable Javascript in your browser or try a different one.

On Jun 18, 2013, at 3:22 PM, kluhlynn [email protected] wrote:

I'm sorry if I'm being annoying but this is all like a new language to me. I am trying my best to figure it out.
I transferred the folder using filezilla and now when I try to access my site it says javascript must be enabled
http://testdevelop.zymichost.com/


Reply to this email directly or view it on GitHub.

@ghost
Copy link
Author

ghost commented Jun 18, 2013

Okay so it works on chrome but not safari. I do have javascript enabled on safari.. I wonder why I am having this issue and if it will be an issue for potential participants? Would you know how to fix this?

Kayla

@codydh
Copy link

codydh commented Jun 18, 2013

I am not sure, I'm using Safari 6.0.5 and it's working fine for me..

On Jun 18, 2013, at 3:30 PM, kluhlynn [email protected] wrote:

Okay so it works on chrome but not safari. I do have javascript enabled on safari.. I wonder why I am having this issue and if it will be an issue for potential participants? Would you know how to fix this?

Kayla


Reply to this email directly or view it on GitHub.

@ghost
Copy link
Author

ghost commented Jun 18, 2013

Oh okay. Well that's good! Thanks again. :)

@ghost
Copy link
Author

ghost commented Jun 18, 2013

Okay so when I try to create a new IAT in the experimenter window it wont save.
I hit save and nothing happens. When I try to click on another IAT for example, race, it says
Unsaved Changes
Do you want to save changes to "Suicide-related attitudes"?

but then the save button doesn't work. I am using google chrome.

@ghost
Copy link
Author

ghost commented Jun 18, 2013

Can I edit this in the .txt file? When I had originally begun trying to use this IAT, I ran into this problem, so I just created a new folder in the templates folder called "Suicide-related attitudes" and then I created an input.txt file for the Suicide-related attitudes IAT. Then I changed the active.txt file to set my IAT to active. If I did it this way would I have to change any other files?

I re downloaded the IAT though so that I could upload the original version found on this site. The folder I uploaded to my site has not been changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants