...your SOAP talk. In my case my tests had to talk to the same service the staging servers talk to, so any recorded results would contain some random other data...
...bundle install or gem install. Also see: When upgrading/downgrading RubyGems and Bundler on a server, you must clear bundled gems
...IP. Also manually set its DNS setting so it uses Google public DNS. This serves on the IP 8.8.8.8. On the restarted Ubuntu, connect to the internet with UMTS. Also...
...request. This way code changes take effect immediately, without requiring you to restart the server. If you have been working with Rails for a while, you might even have forgotten...
...themselves from disk. Production All files are loaded in a deterministic order once the server boots. Take this example with some constants referencing each other: # app/models/contract/document/uploader.rb class Contract::Document::Uploader...
...look like this: # Begin Whenever generated tasks for: project100 MAILTO="log@example.com" MAILFROM="cron@example.com" # When server is booting up, ensure Sidekiq is running @reboot start_sidekiq 23 8 * * * baz 30 * * * * plop...
describe '#crawl_messages' do it 'should process messages in batches so the server stays alive' do message = stub message.should_receive(:crawl) Message.should_receive(:find_in_batches).and_yield...
Better do: mysqldump -uroot -p database -r utf8.dump Note that when your MySQL server is not set to UTF-8 you need to do mysqldump --default-character-set=latin1...
We have often felt the pain where our models need to serve too many masters. E.g. we are adding a lot of logic and callbacks for a particular form screen...
Option 2: Drop each table individually Prefer this for production or staging servers. Permissions may be managed by your operations team, and you do not want to be...
...IP addresses via DHCP correctly (DHCPDiscover), but after the answer of the dnsmasq dhcp server (DHCPOffer) we did not see any further traffic on the host machine. FYI: The instance...
...new differently named directory. Example: git clone git@example.com:repo repo-copy (if your git server is slow you can also just copy the repository rsync -a repo/ repo-copy)
...other test databases. Make sure you create those test databases. If there are further services (e.g. a Redis store), update your configuration for them, too (e.g. use a different Redis...
...from the form field's ngModel (which means it's not sent to the # server, and old values would not be overwritten). # # This directive makes sure that form fields with...
Run script /dev/null to own the shell (more info over at Server Fault); then try screen again. Important: Do not chmod the virtual terminal device like suggested...
Ask your operations team to do it. After the update, log onto the server and remove the broken Bundler cache directories like (e. g. shared/bundle)
...per e-mail or Airbrake. Why? Rack has introduced this limit to prevent your server from being DOSed through large form submissions. The default value should also be enough for...
...previewable to my knowledge till dato. Don't forget to provide rmagick on your server
...after upgrading Ruby from 2.4.5 to 2.6.4 when I opened the Rails console - rails server still worked. Running via Spring preloader in process 14679 Loading development environment (Rails 5.2.2.1)
...systems `postgres` user $ sudo su -l postgres $ pgsql postgres=# \c your_database; psql (9.3.9, server 9.3.5) You are now connected to database "your_database" as user "postgres". your_database =# CREATE...
...Adobe Reader (acroread) if you need to: Download the .deb archive from the Adobe servers (yes, it's still there): cd /tmp && wget http://ardownload.adobe.com/pub/adobe/reader/unix/9.x/9.5.5/enu/AdbeRdr9.5.5-1_i386linux_enu.deb Install required dependencies first...
...XHR, but they (should) also send the correct Accept HTTP header to tell the server the data they expect to receive. If you say request.xhr? as a means for "wants...
...Make sure to commit and push .bundle/config so your fellow developers (and all the servers you will deploy to) will benefit from this setting...
...may become large some day, as this performs horribly and can kill your database server...
...Keyboard and Mouse support TCP/IP stack with Loopback & Ethernet drivers Email/ftp/http/chess clients and ftp/mp3/http servers Hard real-time data fetch
...string to the type of a given attribute (or column). The following model will serve as our example: create_table :notes do |t| t.string :title t.integer :user_id t.boolean :deleted...