Code Monkey home page Code Monkey logo

Comments (10)

tandrasfay avatar tandrasfay commented on August 16, 2024

In virtual machine you can edit a non-existent document, and with this command, it creates that file as a blank file.

from questionnaire.

krstnkngs avatar krstnkngs commented on August 16, 2024

This might answer the 2nd part of your question:
https://kb.berkeley.edu/campus-shared-services/page.php?id=27226

from questionnaire.

SunnySunnia avatar SunnySunnia commented on August 16, 2024

@tandrasfay : so do you mean just 'vi ~/stat157.cfg' and type in what has been written in example.cfg? what do we do with it after saving it?

from questionnaire.

teresita avatar teresita commented on August 16, 2024

@SunnySunnia I believe we're using the bConnected key so we can access the questionnaire spreadsheet using the Google API. check the link that @krstnkngs posted.

You're getting the error message because the files don't exist in your virtual machine. it sounds like you cloned the questionnaire repo to your local machine (which I believe is the correct thing to do, as opposed to cloning into your VM.) My first thought is that maybe we should scp the files over to the VM, but I'm hesitant to do that until I've figured out how to use the .cfg file (I think it's there to have the authentication information we need to use the API).

This is the documentation I've found on the gspread API. I'll post more as I figure it out; please share any knowledge you gain too!

from questionnaire.

tandrasfay avatar tandrasfay commented on August 16, 2024

Also, I encountered a problem in which I hadn't changed my bConnected key to a real password so it still had symbols like !%: and those actually have meaning in python. So I would recommend changing your bConnected key to an alphanumeric password so that it doesn't trigger any commands in python.

from questionnaire.

SunnySunnia avatar SunnySunnia commented on August 16, 2024

so for now, I have tried

  1. save example.cfg by 'save link as' to my local Project1 folder and edited the email address and the fake password within hundreds of lines and nodes -,-, then save.
  2. run virtual machine, 'cp example.cfg ~/stat157.cfg' but received error msg. I then just 'vi ~/stat157.cfg' and made up my own file.
  3. I imported gspread to ipython notebook with my bconnected key but dont know how to view in on ipython. Also, havent used the .cfg file at all.

from questionnaire.

krstnkngs avatar krstnkngs commented on August 16, 2024

You can keep the bConnected spreadsheet open while working (split your screen w/ IPython)

from questionnaire.

rerock avatar rerock commented on August 16, 2024

You are not editting example.cfg but copy it to stat157.cfg and edit it from there

Here are my steps: in your terminal

  1. install git (in your vagrant file directory)
  2. git clone https://github.com/stat157/questionnaire.git
  3. copy example.cfg to home directory & named as stat157.cfg
    ----- "cp example.cfg ~/stat157.cfg" (in questionnaire directory)
  4. Edit stat157.cfg so it will use your full @berkeley username, e.g.: [email protected]. Password is your bConnected key.
    ------ vi ~/stat157.cfg (questionnaire directory)
    ------ By pressing the 'i' key, you can switch to insert mode.
    ------ Press 'Esc' to return to command mode, and :x to save and exit

from questionnaire.

SunnySunnia avatar SunnySunnia commented on August 16, 2024

@wliang88 THX!!! it works!! Do we edit our real bConnected key while editing this stat157.cfg?

from questionnaire.

rerock avatar rerock commented on August 16, 2024

The description of the project says yes to your question.
Glad it works, cheers :)

from questionnaire.

Related Issues (20)

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.