- add a new file in
app/models/quiz_question/
that extendsQuizQuestion::Base
(or another question type) - extend the appropriate scoring functions:
- stats
- total_answer_parts
- correct_answer_parts
- incorrect_answer_parts
- requires_manual_scoring?
createdb -O ownername -T originaldb newdb |
http://jsfiddle.net/YfgPM/ |
sudo sed -i".bak" -e 's/\/\/us.archive.ubuntu.com/\/\/ftp.jaist.ac.jp/g' /etc/apt/sources.list |
sudo php5enmod mcrypt | |
sudo service apache2 restart |
# zsh-autosuggestions | |
> [Fish](http://fishshell.com/)-like fast/unobtrusive autosuggestions for zsh. | |
> [Shelr demo](http://shelr.tv/records/527007a99660803c5d000048). | |
## Installation | |
```sh | |
$ git clone git://github.com/tarruda/zsh-autosuggestions ~/.zsh-autosuggestions |
rdebug-ide --host 0.0.0.0 --port 7000 --dispatcher-port 26162 -- /usr/bin/passenger start -a 0.0.0.0 -p 3000 --max-pool-size 2 --spawn-method direct -e development |
sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions /usr/lib/VBoxGuestAdditions |
# install postgresql | |
brew install postgresql | |
# launch (temporarily) | |
postgres -D /usr/local/var/postgres | |
# create hstore extension | |
psql -d rails4_test -c 'create extension hstore;' |
9.1 The following settings should be set to no: | |
ChallengeResponseAuthentication no | |
PasswordAuthentication no | |
UsePAM no | |
9.2. Reload the configuration: | |
sudo service ssh reload |