...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...

tableplus.io

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)

stackoverflow.com

...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

github.com

...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...

askubuntu.com

...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...

makandra dev

...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...

github.com

...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...

makandra dev
menuetos.net

...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...

getfirebug.com

...over at http://getfirebug.com/firebuglite#Stable. It usually loads the JavaScript code from a remote server but you can also download it to have it run locally. If adding the bookmarklet...

We use CarrierWave in many of our projects to store and serve files of various formats - mostly images. A common use case of CarrierWave's DSL is to "process" the...

github.com

Looks simpler than inaction_mailer: gem install mailcatcher mailcatcher Setup Rails to send mails to 127.0.0.1:1025. Usually you want...

postgresonline.com

...human-readable way. (image from the Postgres manual) Open up pgAdmin, connect to your server Pick a database from the left pane Click the "SQL" icon in the toolbar, or...