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)

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

...file attachments. If you need to move the files from local storage (i.e., your servers' harddisk) to Amazon S3, you can simply change settings for Paperclip to use the S3...

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

...The rails-erb-loader-dependencies comment is only needed to make the webpack-dev-server automatically regenerate the file, when your secrets.yml changes...

developer.mozilla.org

...to offer your users a live preview before they upload the file to the server. HTML5 via jQuery Luckily, HTML5 has simple support for this. Just create an object URL...

stackoverflow.com

...don't need to, but when you want to see which queries your MySQL server currently needs to handle (and if there are locks, etc), you could say SHOW PROCESSLIST...

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

If your application raises an error like ... Couldn't connect to the Solr server at http://127.0.0.1:8983/solr. 500 "Lock_obtain_timed_out_SimpleFSLock(...)" ... and if your jetty.request.log contains entries...

...sudo ip route del default sudo ip route add default via Add another DNS server to /etc/resolv.conf, for example

...Problem can occur when using the integrated Ruby Mine Debugger: Try to restart the server without debugging mode

...previewable to my knowledge till dato. Don't forget to provide rmagick on your server

makandra dev

...over 30 seconds to finish. It turns out that for some reason, the SOLR server seemed not to close its HTTP connections properly. After the maximum number of connections was...

...seriously speed up deployments with Capistrano when using a local git repository on the server you are deploying to. Simply add set :deploy_via, :remote_cache set :copy_exclude, [ '.git...

...know from Rails? Practice Checkout the repo for the makandra blog Start the preview server Make some changes, review them on localhost:4567 Add a new page /animals/your-favorite-animal that has...

...trouble will come from. Replace 147.0.0.123 with the client address, log into your web server and run: remote$ sudo tcpdump host 147.0.0.123 and port 80 -s 0 -w /tmp/network.dump

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

makandra dev

Each time thin boots, it prints a boot message : Thin web server (v1.6.3 codename Protein Powder) Maximum connections set to 1024 Listening on localhost:36309, CTRL+C to stop

...distinct version of RubyGems to be installed to replicate the same behavior across multiple servers. Usually would do this to update your RubyGems, but this always takes you to the...

makandra dev
github.com

...can be chosen via command line switches, e.g. for cleaning up multiple local database server installations in batches. Derivative database names like foo_development and foo_test4 for foo are...

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

This works in IE10+. Make sure that the field name ends in [] so your server-side code will parse the incoming files into an array. Obviously this naming convention...