Note: Making a reverse proxy with nginx is much more straightforward. A reverse proxy is a "man in the middle...
All major browsers (IE8+, FF3.5+, Safari 4+, any Chrome) support sessionStorage, a JavaScript storage object that survives page reloads and...
Capistrano 3 is a major rework of the framework and requires several adjustments to your deploy configuration files. The biggest...
You might wonder about this request in your test.log: Started GET "/__identify__" for 127.0.0.1 at 2015-04-29 18:00...
There are times when you have a chunk of text that you want to do something with, e.g. replace something...
When using send_file (for example for attachments of any kind), make sure your application knows the correct mime types...
To use a form model with devise, you can simply override #resource_class in a controller. A typical use case...
There are some frontends available, but they all suck, are no longer maintained or are hard to install.
Web applications can be used by multiple users at the same time. A typical application server like Passenger has multiple...
You can hook into Slack when using Capistrano for deployment. The slackistrano gem does most of the heavy lifting for...
Please don't simply copy line number links from Github. The URL usually contains a branch name like master which...
Write a // and indent every subsequent line by two spaces. This is great for documenting BEM blocks! // An action button...
The debate between using mixins or extends in Sass has been heating up recently. From the surface it appears they...
If you want to sort values from an enumerable into two arrays based on whether they match a certain criteria...
This guide shows how to create an AngularJS application that consumes more and more memory until, eventually, the browser process...
Obviously, you only can do this for your own sites. You need to authenticate a domain you want to remove...
When running migrations with rake db:migrate, there's the STEP and VERSION parameters that you can pass to nearly...
If your angular app is not served on /, but on a different url (say /admin), links generated with ui-router...
Using uncountable resources is not recommended as it breaks Rails' magic, e.g. when using form_for. You'll always be...
Add gem 'database_cleaner' to your Gemfile. Then: Cucumber & Rails 3+ # features/support/database_cleaner.rb DatabaseCleaner.clean_with(:deletion) # clean once, now DatabaseCleaner.strategy = :transaction...
Some insight into how browser rendering engines work. The article shows how the way you manipulate styles (and the DOM...
Here is a Javascript function reloadUsers() that fetches a HTML snippet from the server using AJAX and replaces the current...
Make sure you have libcurl3-dev installed: sudo apt-get install libcurl3-dev gem install typhoeus
Run bundle update cucumber capybara cucumber-rails to update to the newest versions. Backup your features/support/path.rb to be able to...