Git allows you to set push options when pushing a branch to the remote. You can use this to build...
tl;dr Since Rails 7+ you can use ComparisonValidator for validations like greater_than, less_than, etc. on dates, numerics...
...an error out of stale_session_check! if it cannot find all classes. The best way to go: Don't do this. Strings and numbers should be enough and if...
Usually, Unpoly compiler destructors are returned from the compiler function. However, when using async compiler functions, you can not register...
When you are using the default MIME-Type configuration and your application allows uploading files, it can be a security...
On some of our older projects, we use the mysql2 gem. Unfortunately, versions 0.2.x (required for Rails 2.3) and...
jQuery doesn't store information about event listeners and data values with the element itself. This information is instead stored...
Cookies without an expiration timestamp are called "session cookies". [1] They should only be kept until the end of the...
I had a very frequent cronjob that in rare cases could be relatively slow. To avoid multiple instances of this...
When deploying code with Capistrano (depending on your configuration) at some point Capistrano tries to check out code from your...
...to name any file @imported by SASS with a leading underscore. SASS files not beginning with an underscore will be rendered on their own, which will fail if they are...
Large projects usually have large test suites that can run for a long time. This can be annoying as running...
The maximum version of Internet Explorer you can have depends on your version of Windows. E.g. Windows 7 users can...
If you want to have a new log file every day automatically, but avoid using logrotate, the CustomLog directive is...
A word of caution There should rarely be a reason for you to split up config/routes.rb. If you need to...
In my opinion using this plus the icon font you get the best of all worlds, with low CPU usage, no JavaScript, and file-sizes in the one...
Since late 2015, all major browsers (still excluding Firefox) support pointing device media queries. These can be used to distinguish...
Deprecated ways to execute shell code in Ruby This is just a reference for legacy code. For new code, always...
Terminator has a cool feature that allows you to split your terminal into many panels and type in all of...
Rack has a limit for how many form parameters it will parse. This limit is 65536 by default.
In a web application you often need to move data between the client (HTML, Javascript) and the server (Ruby, Rails...
Fix Ensure your step definition cannot generate invalid selectors and instead prints better error messages. Adding field.should be_present might help, Note This error may be caused when...
Keep in mind Swap is not evil by definition. Some bytes per process beeing put to Swap will not have that much of performance influence. If you want the...
Look here for informations how you can show the MySQL default character set. At first you need the Amazon RDS...