GithubHelp home page GithubHelp logo

human-nature-lab / breadboard-archive Goto Github PK

View Code? Open in Web Editor NEW
25.0 25.0 7.0 4 KB

breadboard is a software platform for developing and conducting human interaction experiments on networks. It allows researchers to rapidly design experiments using a flexible domain-specific language and provides researchers with immediate access to a diverse pool of online participants.

breadboard-archive's People

Contributors

disperse avatar gitter-badger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

breadboard-archive's Issues

recording data

Hey,

I've been running into some problems when trying to record experiment data.

  1. Parameters of an experiment always appear in the data window. However, additionally non-player action data recorded with a.addEvent(eventName, data) does not appear there.
    a.addEvent("DropPlayer", ["pid": (player.id)])
    E.g. records nothing in the data, even when players are dropped.

  2. Sometimes the parameters recorded do not match with the names of the parameters. Either the columns are switched around or parameters from other, previously launched experiments is recorded.

  3. How should the syntax look to record choices players make?

Thank you in advance,
I really appreciate all the support I'm getting here.

Localhost refused to connect

Hello,

I'm having trouble accessing the breadboard v2.2.3 application on my windows computer. After using the script for the command prompt (listed in the FAQ), the application launches and I can access the local host. If I close the window or log out, I'm prompted with the following error.

"This site can’t be reached

localhost refused to connect.
Search Google for localhost 9000
ERR_CONNECTION_REFUSED"

I've tried changing the id via command prompt but it says the application is already running. It only works again after I uninstall and install again. But after that initial log-in, same error as above occurs. Any help would be appreciated! I think it's really cool and would love to use it for research purposes.

Thanks,

Nikhil

on installation, application-prod.conf must be modified if breadboard runs on separate machine from the one your browser runs on

Suggestion for improving the documentation:

The admirably simple installation procedure for breadboard assumes that you are installing it on the same machine as runs your browser. If, however, you install breadboard on a remote host then in order for it to run properly, it is necessary to modify application-prod.conf. Specifically, the lines:

# DEV http
breadboard.rootUrl="http://localhost:9000"
breadboard.wsUrl="ws://localhost:9000/connect"

Must be changed to to something like

# DEV http
breadboard.rootUrl="http://192.168.x.x:9000"
breadboard.wsUrl="ws://192.168.x.x:9000/connect"

and then of course you browse to http://192.168.x.x:9000 (rather than to localhost). IF you don't modify the applications-prod.conf in this way, breadboard HALF WORKS. You can create a user account and login, but you can't create a new experiment and commands typed into the console are ignored.

Localhost

Hello -

I have installed the Java Development Kit 7 and the Breadboard package. When I attempt to launch, I get the following error:

`This site can’t be reached

localhost refused to connect.
Search Google for localhost 9000
ERR_CONNECTION_REFUSED`

Specs:
Mac OS X 10.11.9
Chrome Version 53.0.2785.101 (64-bit)

A colleague has also attempted to install in a similar situation (El Capitan; Chrome) and is having the same result. We are not using https.

Thanks

Timer and Progress Bar in Color Game

I'm having trouble getting a timer and the bonus progress bar to run at the same time. Is there an example of this implemented in another game?

Execute single line of code

At 3:59 in Tutorial 3 the narrator highlights the code 'g.empty()' and executes it via a keyboard shortcut. What is the shortcut to run a single line of code? If I highlight it and hit the 'execute' button it runs all the code in the script.

wiki example on `a.choose` does not work

The example proposed here:

def aiBehavior = { ai->
     // Sanity check to make sure the AI actually has choices to make
     if (ai.getProperty("choices")) {
        def choices = ai.getProperty("choices")
        // Choose a random choice
        def choice = choices[r.nextInt(choices.size())]
        a.choose(choice.uid)
     }
}

does not work. a.choose takes two parameters, the second being a structure containing choice parameters. As a workaround I use a.choose(choice.uid, null) instead.

Having trouble implementing an HTML form after coloring game is done.

I'm trying to display a survey at the end of the coloring game and can not find any documentation or code snippets on how to implement an HTML form within breadboard. Attached is a screen shot of a similar survey form, except my survey form has 6 questions and no text area for comments. Any guidance you could provide would be very helpful. Thank you.
formexample.docx

Narrow down firewall rules

We're trying to avoid leaving ports 9000 and 9443 open to the entire world. Can you explain what the ports are specifically used for so we can scope our firewall rules accordingly?

If these are just used to serve up the web application, can they be remapped to ports 80/443?

I'm on the IT staff for the group running the project, not the actual developer. Forgive me if this was already mentioned elsewhere in the documentation.

Dropping idle players from the game

When running breadboard on a server it seems that the the function to drop idle players miss-functions.
It seems to drop players around 1 sec before the countdown has run out. If players click the required button to closely to the end of the timer they either get dropped anyway or they get "semi-dropped". I.e. the data log records them as having been dropped but they do not get the drop screen and the game does not move on for other players. But at the same time they are unable to further participate.

Dropping them again manually from the game does not cause other players to get unstuck.

Timer in progressbar

Is there a way to add timers in the progress bar similar to the one that appears before players get dropped?
I can see where the timer gets called in the Client HTML file but cannot find the corresponding angular code anywhere.

private properties of edges

Hello,

I have trouble setting a private property for edges.
Using the e.private(v, key, value) methods as documented in the wiki throws and error:

Caught error: javax.script.ScriptException: groovy.lang.MissingMethodException: No signature of method: groovy.lang.MissingMethodException.private() is applicable for argument types: () values: []

I think the method only expects two parameters, however, I cannot figure out which two.

Thanks,
Annika

Arrow markers for edges

Hey,

I'm trying to add arrow markers to edges in the graph.
I tried to utilize the markers already set up in the client-graph.js by using the css marker-end property.
However, no markers appear in the graph.

line[arrow="1"] { 
  marker-end:"url(#end-green)";
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.