Updated for Rails 4.0.0+
-
Set up the
bowergem. -
Follow the Bower instructions and list your dependencies in your
bower.json, e.g.// bower.json
{
| NOTE: Easier way is the X86 way, described on https://www.genymotion.com/help/desktop/faq/#google-play-services | |
| Download the following ZIPs: | |
| ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links) | |
| Download the correct GApps for your Android version: | |
| Google Apps for Android 6.0 (https://www.androidfilehost.com/?fid=24052804347835438 - benzo-gapps-M-20151011-signed-chroma-r3.zip) | |
| Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161891406 - gapps-L-4-21-15.zip) | |
| Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip) |
| BEFORE: | |
| sam@ubuntu discourse % rm -fr tmp/cache | |
| sam@ubuntu discourse % rm -fr public/assets | |
| sam@ubuntu discourse % time RAILS_ENV=production bin/rake assets:precompile | |
| 58.55s user 1.79s system 100% cpu 1:00.02 total | |
| AFTER: |
| # Hook into unicorn, unicorn middleware, not rack middleware | |
| # | |
| # Since we need no knowledge about the request we can simply | |
| # hook unicorn | |
| module Middleware::UnicornOobgc | |
| MIN_REQUESTS_PER_OOBGC = 3 | |
| def verbose(msg=nil) |
| require 'rblineprof' | |
| module Rblineprof | |
| module ConsoleHelpers | |
| include Rblineprof::Helpers | |
| def lineprof_block(options = {}, &block) | |
| profile = lineprof(rblineprof_profiler_regex(options[:lineprofiler])) do | |
| ret = yield | |
| end |
| <!-- Include Mixpanel and init before this. --> | |
| <!-- Place at the bottom of your layout (ex: app/views/layouts/application.html.erb) --> | |
| <% if content_for :mixpanel %> | |
| <%= javascript_tag(yield :mixpanel) %> | |
| <% end %> |
Updated for Rails 4.0.0+
Set up the bower gem.
Follow the Bower instructions and list your dependencies in your bower.json, e.g.
// bower.json{
| module ActiveSupport | |
| class TaggedLogging | |
| %w( fatal error warn info debug unknown ).each do |severity| | |
| eval <<-EOM, nil, __FILE__, __LINE__ + 1 | |
| def #{severity}(message = nil, progname = nil, &block) | |
| add(Logger::#{severity.upcase}, message, progname, &block) | |
| end | |
| EOM | |
| end |
Введение
Начать стоит отсюда. Не пугайтесь то, что это книга по незнакомой OS, эти термины практически везде одинаковые и здесь они изложены в понятной для начинающих форме.
http://www.qnx.com/developers/docs/6.4.1/neutrino/getting_started/s1_procs.html
Прочесть нужно треть главы до подраздела "Starting a process", если С не пугает, читайте полностью. После прочтения вы будете понимать, что такое process, thread, mutex, priorites, semaphores, scheduler, contex-switch, kernel states.
Ruby
| sudo add-apt-repository ppa:pitti/postgresql | |
| sudo apt-get update | |
| sudo apt-get install postgresql-9.2 postgresql-server-dev-9.2 postgresql-contrib-9.2 | |
| sudo su -l postgres | |
| psql -d template1 -p 5433 | |
| CREATE EXTENSION IF NOT EXISTS hstore; | |
| CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; | |
| service postgresql stop | |
| /usr/lib/postgresql/9.2/bin/pg_upgrade -b /usr/lib/postgresql/9.1/bin -B /usr/lib/postgresql/9.2/bin -d /var/lib/postgresql/9.1/main/ -D /var/lib/postgresql/9.2/main/ -O "-c config_file=/etc/postgresql/9.2/main/postgresql.conf" -o "-c config_file=/etc/postgresql/9.1/main/postgresql.conf" |