workflow:
$ rails g model NameOfModel
invoke active_record
create db/migrate/YYYYMMDDHHMMSS_create_name_of_models.rbThe goal: Upload several files (virtually big files) to a Rails application without compromising the user experience.
jQuery File Upload + Nginx + Rails (Carrierwave) + Sidekiq
| """ | |
| slidingPuzzle.py | |
| Emily Johnston | |
| 4/26/2014 | |
| A command-line, single-player sliding puzzle game of customizable size and difficulty. | |
| """ | |
| import sys | |
| from random import choice |
| http://tutorials.jumpstartlab.com/academy/sessions/gschool0/130213.html | |
| http://tutorials.jumpstartlab.com/academy/sessions/gschool0/130215.html | |
| http://tutorials.jumpstartlab.com/academy/sessions/gschool0/130218.html | |
| Refactoring: | |
| http://tutorials.jumpstartlab.com/academy/sessions/gschool0/130219.html | |
| Rake Tasks and Testing: |
| # app/controllers/users/password_controller.rb | |
| class Users::PasswordsController < Devise::PasswordsController | |
| def resource_params | |
| params.require(:user).permit(:email, :password, :password_confirmation) | |
| end | |
| private :resource_params | |
| end |
My user settings:
{These commands are good as of 2011-07-27.
App store http://itunes.apple.com/us/app/xcode/id448457090?mt=12) The download/install takes awhile so start it first. When it finishes downloading you will still need to run it to complete installation.
| /* | |
| * ATTENTION: | |
| * | |
| * This layout is now maintained in the `iosched' code.google.com project: | |
| * | |
| * http://code.google.com/p/iosched/source/browse/android/src/com/google/android/apps/iosched/ui/widget/DashboardLayout.java | |
| * | |
| */ | |
| /* |
| # Другие переводы на http://github.com/plataformatec/devise/wiki/I18n | |
| ru: | |
| errors: | |
| messages: | |
| not_found: "не найдена" | |
| already_confirmed: "уже подтверждена. Пожалуйста, попробуйте войти в систему" | |
| not_locked: "не заблокирована" | |
| not_saved: | |
| one: '%{resource}: сохранение не удалось из-за %{count} ошибки' |