The article gives a very short tutorial how to customize tabs and fields of CKEditor's dialogs.
A short tutorial for XPath. It's the first XPath introduction that ever stuck with me. Also see XPath in...
A possible way for localisation in Rails applications that allows editing translations remotely.
Note: capistrano_colors was merged into Capistrano starting from v2.13.5. However, this requires Ruby 1.9+. If you cannot upgrade Capistrano...
Since Firefox 8 it is possible to define custom context menus (right clicking) with HTML markup.
class Errormaster CoffeeIsOut = Class.new(StandardError) # is prettier than class CoffeeIsOut < StandardError; end end Reference such an error class with Errormaster...
I think this pattern is really useful not just for upgrading suites from Webrat, but really anywhere you have an...
First option is to install it with your package manager: apt-get install vim-puppet vim-addons install puppet
If you’re a Mac user and want to increase the security of your data, check out the attached paper...
validate( "email".is("required").andIsAn("email") );
As far as I know, the only plugin out there that handles this (semantic issue) correctly is Makandra’s Aegis...
There is no one-liner in Ruby or ActiveSupport with the behavior described above. There have been discussions about adding a method like Enumerable#find_map:
If you want Sidekiq to be able to talk to Redis on staging and production servers, you need to add...
Rails is split into a large number of (sub-) frameworks. The most important and central of those are activesupport (extends...
Let's say you have a gem which has the following module: # within the imaginary super gem module SuperClient
...time of queries. While they serve similar purposes they do have some differences in behavior and implementation. PostgreSQL Timeout Type: statement_timeout Scope: Applies to all types of SQL statements...
...INSERT, UPDATE, DELETE). Units: Can be specified in various time units (milliseconds, seconds, minutes). Behavior: If any statement exceeds the specified timeout, PostgreSQL raises an error indicating the statement was...
...move the directory to its new location old_store_path = Pathname.new(old_store_dir) begin FileUtils.rmdir(old_store_path.parent) # cleanup empty directories afterwards rescue Errno::ENOTEMPTY => e # ignore exception for non-empty...
TL;DR PostgreSQL handles Rails 4+ text and string columns the same. Some libraries may still reflect on the column...
...with :vcr, VCR will complain about any attempted HTTP request. This is the default behaviour. If you want to turn this off temporarily, e.g. to communicate with an actual API...
VCR.use_cassette(name, options) { example.call } end end This saves cassettes here: spec/vcr/ / _ / .yml
When storing floating-point numbers such as prices or totals in an SQL database, always use a DECIMAL column. Never...
When using Chrome for Selenium tests, the chromedriver binary will be used to control Chrome. To debug problems that stem...
These are the top ten accessibility errors as researched by TPGi, a company focusing on accessibility. See the linked article...
Modern CSS offers the field-sizing property to allow elements to automatically adjust size (width and/or height) to fit their...
We've already learned how to integrate user-provided images uploads to our application in 205 basic file uploads and...