Ruby on Rails by default caches pre-compiled assets (sass, coffeescripts) to tmp/cache/assets directory in development and test environments. It makes page loading in development and running test faster (when assets are already precompiled), but may cause some weird bugs.
For example, when I was upgrading my Rails 3.2 application to Rails 4, I noticed that there are deprecation messages on CI server, but not on my local machine...
I've made RSpec test suite for my Ruby on Rails application 18% faster by following a Non-durable PostgreSQL configuration guide.
After upgrading to Ubuntu 13.10 (Saucy) 64 bits, I had troubles installing Adobe Air and Elance Tracker air application. None of the guides available online worked for me. The guide that I used to install it on Ubuntu 13.04 didn't work either...
It seems, that the easiest way to protect staging/testing version of the (rails) application from search engines and undesired users is using HTTP Basic Authentication. Configuring it for nginx is very easy and well documented.
First, enable HTTP Basic Authentication and specify passwords file location...
I am going to work for a couple weeks on my Ruby on Rails project without broadband internet connection, so decided to research, how to get browseable and nice looking offline copies of Ruby's, Rails' and some other gems' (like RSpec and Capybara) documentation.
Here I'll show, where to get and how to build offline copies of:
- Ruby Core and Std-lib html documentation (offline copy of http://ruby-doc.org/) 2...
I have a rails app, that uses Devise for authentication and CanCan for authorization. There is a group of controllers in my application, that should be accessible by administrators only. I was thinking about a DRY way to test these resources and their accessibility by administrators only (using request specs with RSpec and Capybara)...
Do you want your browser to launch console vim and open specified file on specified line when you click link like this:
vim:///etc/hosts&line=10? This article will show how to register console vim as
vim:// protocol handler in Ubuntu 11.10. Just follow these steps:
1. Create vim launcher script
We'll need small vim launcher script, which will handle
Once I decided to setup my rhythmbox broadcasting into local network (so my wife or home media player could connect and listen), and didn't find any comprehensive guide, so I decided to write my own when I managed to configure it.
I found a couple rhythmbox plugins for that, but they didn't work for me, so I stopped on
Installing and configuring icecast
Icecast is free server software for streaming multimedia...
Sometimes it is really nice to be able to call system default application for file or directory from vim. For example open
Document Reader for a
Nautilus. I didn't find working solution for NERDTree, which I use for file system navigation in vim, so I wrote simple [plugin] for it.
What it does, it simply creates new menu item
e(x)ecute in NERDTree menu, which executes system default application for selected file or directory...
When you work with source code, it is always nice to have the abilty to quickly jump to class/method definitions for either your own code or code from one of your ruby gems. This articles describes how to do this in vim with exuberant ctags, guard, and guard-ctags-bundler.
A tag is an identifier that appears in a "tags" file...