You either have an old version of Mocha and an edge version of Rails 3.2, or you have a new...
This page lists many query methods and options in ActiveRecord which do not sanitize raw SQL arguments and are not...
Stringex is a gem that offers some extensions to Ruby's String class. Ruby 1.9 compatible, and knows its way...
When creating an ActiveRecord with .new, .create or create!, you cannot set the ID attribute (note: When using Machinist's...
You probably know that you can use CSS selectors to match against elements and their attributes, such as:
You can use the content CSS attribute to set an element's content -- which is especially useful for the :before...
Ruby has two different ways to match the start and the end of a text: ^ (Start of line) and $ (End...
Microsoft provides virtual machines for different Internet Explorer versions. The images are available for various virtualization solutions, including VirtualBox...
Spreewald now comes with a step that tests if a form field is visible: Then the "Due date" field should...
Consul 0.6.1+ gives your Power class a number of static methods that behave neutrally in case Power.current is nil. This...
We recently had a problem on a Memcache cluster, where one of the servers showed a significantly worse cache hit...
Calling bundle update GEMNAME will update a lot more gems than you think. E.g. when you do this...
Calling bundle update (without arguments) updates all your gems at once. Given that many gems don't care about stable...
If you get a message like this: Jan 21 13:42:38 foobar syslogd: /var/log/authlog : no such file or directory...
Apache HTTP server benchmarking tool (ab) is a nice tool to test performance on sites delivered by HTTP. If the...
li.active a:link Example output (specificity): | 0 | 2 | 2 | See also: https://www.codecaptain.io/tools/css-specificity-calculator
Every time you call $(...) jQuery will create a new object. Because of this, comparing two jQuery collections with == will never...
Examples how to create dozens of shapes using pure CSS and a single HTML element.
When doing a git blame, git will blame the person who added or removed white space in a line (e.g...
Axlsx is an incredible gem to generate "Office Open XML" spreadsheet files (XLSX). Does not break on large spreadsheets and...
You can define methods in any example group using Ruby's def keyword or define_method method. These helper methods...
TLDR: In tests you need to clean out the database before each example. Use :transaction where possible. Use :deletion for...
When you are using git rebase and are currently editing a commit (due to a conflict, for example), you may...
jquery-timing is a very useful jquery plugin that helps to remove lots of nested anonymous functions. It's API...