...need to index well under 5 million words, FULLTEXT will be fast enough to serve your searches until the project reaches end-of-life. But if you expect your data...
"private": true, "dependencies": { "@rails/webpacker": "^3.0.2", "bought-font": "file:vendor/asset-libs/bought-font" }, "devDependencies": { "webpack-dev-server": "^2.9.5" } } Note the path's prefix file: in the dependency of 'bought-font', which tells...
...character_set_database | latin1 | | character_set_filesystem | binary | | character_set_results | latin1 | | character_set_server | latin1 | | character_set_system | latin1 | | character_sets_dir | /usr/share/mysql/charsets/ | +--------------------------+----------------------------+ 8 rows in set (0.01 sec...
...default-character-set is not valid and you need to use character-set-server instead. Check you error log if mysql start leads to a timeout. After this check if...
...value of group_concat_max_len to an insanely high value on every database server your application runs on. Like MAX or COUNT, GROUP_CONCAT is a MySQL aggregation function...
}); Generating a PNG To save the signature as a png on the server, add this to your model (example with Paperclip): class Signature < ActiveRecord::Base HEIGHT = 160
...Unfortunately you will leave the situation broken for future bundle install runs on other servers or workstations. Option 2: Add the missing gems to your Gemfile (your best bet)
RawGit serves raw files directly from GitHub with proper Content-Type headers, for CDN-like purposes. Note that they don't offer any uptime guarantee. You probably don't want...
...to use it in production, but it may serve you well for some testing/prototyping/etc...
...This way you can say cap deploy to get the latest code on the server, migrate the database and restart as a default -- if that is what you want...
...AJAX like this: var request = new XMLHttpRequest(); request.open('POST', '/my/url', true); request.onload = function() { console.log("Server responded with %o", request.responseText) }; request.send(formData); In jQuery you would send it like this:
...timestamps that Rails uses by default. So to make sure Cloudfront will not server outdated assets, you have to incorporate a timestamp or something similar into the actual filename. This...
...textarea directly, it will lose its value and never send any changes to the server. // Instead, we use a container element and sync any changes into the textarea. $element.hide() session.setValue...
In case you're wondering, when concat-ing server certificate and intermediate certificates, the server certificate comes first. RFC 4346: certificate_list This is a sequence (chain) of X.509v3 certificates...
Here is a Javascript function reloadUsers() that fetches a HTML snippet from the server using AJAX and replaces the current .users container in the DOM: window.reloadUsers = -> $.get('/users').then (html...
...some DOM-related matchers like haveText(...). See Jasmine: Mocking API requests in an Angular service spec on how to do similar things in an Angular application...
...SSL, modify config/database.yml and add this: sslca: /path/to/mysql-ssl-ca-cert.pem Ensure only encrypted connections are accepted on server-side. Therefore, run GRANT USAGE ON *.* TO 'encrypted_user'@'%' REQUIRE SSL
...option -p tells thin to bind to port 3001. To have a http development server running at the same time, start it with thin start -p 3000. (To run your...
...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...
...sql mode in the config/database.yml (and that of all your colleagues, staging and production servers!): development: adapter: mysql2 ... variables: sql_mode: TRADITIONAL (Be aware, that this solution disables the only...
When a has_many association basically serves to store a list of associated strings (tags, categories, ...), it can be convenient to represent this association as a string array in the...
...format and extend the input with ajax options. You should paginate your results on server side to reduce the load. Select2 supports an "infinite scroll" feature, which will be enabled...
To avoid this in the future, make sure everybody installs gems on remote servers properly by using the install-gems-remotely command from our geordi gem.\
...couldn't set cookies with any browser at all. Solutions Use a dns wildcard service like lvh.me and set :domain => 'lvh.me' if Rails.env.development? Then you can access your local server...
...send a local file to the browser, you can save resources on the application server by setting the :x_sendfile option to true. This option is activated by default for...
This tool is used on our application servers (and called when deploying) but it also works locally. Just call dumple development from your project directory to dump your database.
...that is older than mine. Every time I wanted to run my rails dev server I was asked to check my yarn integrity: error Integrity check failed