Rubymine supports keybinding to switch panes by hotkey like awesome window manager users are used to.
Type "splitter" in the top right keymap section search field (not the global settings search)….
When you want to find out the data type of an attribute, you can just use ActiveRecord's
It returns a hash of column objects that include a
type attribute (and more databa…
I've written about the problem with user stories before. At the time, I found it better to just have the team talk over proposed changes to the product. This worked great when the team had gelled…
The mobile-friendly, responsive, and lightweight jQuery date & time input picker.
Does not depend on jQuery UI, but currently does not allow typing in the associated input field.
When your Cucumber feature seems to forget cookies / sessions when you run it with Selenium or capybara-webkit, check if the test travels in time like here:
Given the date is 1981-10-20 Wh...
This is an awesome gadget in your toolbox, even if your test coverage is great.
gem install ruby-debug(Ruby 1.8) or
gem install debugger(Ruby 1.9)
- Start your server with `script/server -…
Trick: Do not use
mogrify -resize 50% *
This overwrites the original image file.
convert writes to a different image file. Here is an example if you need this:
Note - This is not a tutorial on setup or configuration of Secure Shell, but is an overview of technology which underlies this system.
Rack::Attack is a rack middleware to protect your web app from bad clients. It allows whitelisting, blacklisting, throttling, and tracking based on arbitrary properties of the request.
When deploying, Capistrano will put a
REVISION file into your application's release directory. It contains the hash of the commit which was deployed.
You can just SSH to a server and do this: ``…
Here is a way to create a duplicate of one database, with all its tables and their data, under a new name.
- Make a dump of your source database:
mysqldump -uroot -p my_project -r my_proje...
FastClick is a simple, easy-to-use library for eliminating the 300ms delay between a physical tap and the firing of a click event on mobile browsers. The aim is to make your application feel less…
You can call the free echo test number
10005 and full-stack test your VoIP setup.
Starting with Rails 3.2, there is a nicer way to display custom error pages (i.e. "page not found") that does not interfere with ExceptionNotifier. (I'm not sure about Airbrake et al.)