Local testing allows you to test your private and internal servers using the BrowserStack cloud, which has support for firewalls...
If you want to switch to another ruby versions, you have several options, depending on what you want: Do you...
In /etc/rc.local add: service bluetooth stop
CarrierWave attachments have two distinct methods #url and #path which appear to behave the same: document.file.url # => /storage/documents/4/letter.doc document.file.path # => /storage/documents/4/letter.doc
Before Rails 3.2.14, when supplying an invalid locale to I18n, it would fall back to its config.i18n.default_locale (which is...
Today I ran into trouble installing therubyracer on Ruby 1.8. The installation failed with *** extconf.rb failed *** Could not create Makefile...
There may be reasons to change the locale of your Postgres cluster. A popular one is your development system's...
For all late night coders: The program "redshift" changes your monitors' white balance according to your position on the planet...
In Rails 5 you can say: ApplicationController.render( :template => 'users/index', :layout => 'my_layout', :assigns => { users: @users } ) If a Request Environment is...
When you have files in your .gitignore they won't be considered for changes, but still you might want to...
1. Saving files to a directory that is not shared between deploys or servers If you save your uploads to...
If you want a widget for awesome that runs a command regularly (every X seconds) and puts the output into...
Sometimes you want git to ignore certain files that appear on your machine. You can do this in 3 ways...
Option 1: Creating a self-signed certificate with the openssl binary As igalic commented on this gist. openssl req -new...
ActiveRecord translations live in locale.activerecord. ActiveModel translations live in locale.activemodel. To use the same translations for both, use YAML references...
When HTTP clients make an request they can define which response formats they can process. They do it by adding...
Rails has generic error messages you can define in your locale .yml files. You may override those application-wide error...
yaml4r is a juxtaposition of yaml documents and their Ruby couterpart. Thus, it does a great job as YAML-doc...
When a controller action redirects to an external URL (like http://somehost.com/some/path) you will find that this is hard...
Sometimes it seems a favicon does not work because your browser displays an old version or (in case of local...
Here is a hacky way to load dumps directly from the source server, without fully copying them over and extracting...
Stringex is a gem that offers some extensions to Ruby's String class. Ruby 1.9 compatible, and knows its way...
You probably know that you can use CSS selectors to match against elements and their attributes, such as:
Microsoft provides virtual machines for different Internet Explorer versions. The images are available for various virtualization solutions, including VirtualBox...