There are two parts to networking within QEMU:
- The virtual network device that is provided to the guest (e.g. a PCI network card).
- The network backend that interacts with the emulated NIC (e.g. puts packets onto the host's network).
| # ref. https://askubuntu.com/a/1075516/22308 | |
| sudo swapoff /swapfile # make all swap off | |
| sudo rm -rf /swapfile # remove the current | |
| # 8Gb=8*1024Mb=8192 Mb | |
| # 4Gb=4*1024Mb=4096 Mb | |
| sudo dd if=/dev/zero of=/swapfile bs=1M count=4096 # resize the swapfile to 4Gb | |
| # = |
| #!ruby | |
| require 'drb/drb' | |
| require 'logger' | |
| require "rack" | |
| require 'rack/rewindable_input' | |
| module Dispatch | |
| RAILS_ENV = 'staging' | |
| DRUBY_URI = "druby://localhost:13141" | |
| LOCKFILE = "../tmp/pids/dispatch.pid" |
| android { | |
| signingConfigs { | |
| release | |
| } | |
| buildTypes { | |
| release { | |
| signingConfig signingConfigs.release | |
| } |
| Key issue - format of entered dates: | |
| date is displayed like: 31/3/2011 | |
| date is input like: 31-3-2011 | |
| This is works correctly in ruby 1.8 and 1.9 | |
| ruby-1.8.7-p302 > Time.parse '31-3-2011' # => Thu Mar 31 00:00:00 -1000 2011 | |
| ruby-1.9.2-p0 > Time.parse('31-3-2011') # => 2011-03-31 00:00:00 -1000 | |
| Changes in parsing dates for ruby 1.9: | |
| * no longer has difference in parsing dates with dash or forward slash - they are always in euro format |