View
Posted 4 days ago by Dominik Schöler.

To get a quick overview of database table sizes, you can view the row count like this: # PostgreSQL SELECT schemaname...

Posted over 7 years ago by Arne Hartherz.

Applications often show or hide elements based on viewport dimensions, or may have components that behave differently (like mobile vs...

Posted about 2 years ago by Henning Koch.

Checking if a JavaScript value is of a given type can be very confusing: There are two operators typeof and...

Posted over 6 years ago by Henning Koch.

validates_uniqueness_of is not sufficient to ensure the uniqueness of a value. The reason for this is that in...

Posted almost 6 years ago by Henning Koch.

Whenever you create a table from a database migration, remember to add updated_at and created_at timestamps to that...

Posted 25 days ago by Henning Koch.

This release makes it easier to migrate to a recent version of Unpoly when your app still depends on jQuery...

Posted 26 days ago by Dominik Schöler. web.archive.org

Use the compile function to change the original DOM (template element) before AngularJS creates an instance of it and before...

Posted over 5 years ago by Arne Hartherz.

When you have a string containing umlauts which don't behave as expected (are not matched with a regexp, can...

Posted about 2 years ago by Emanuel De.

There are many approaches out there how you can import data from a legacy application to a new application. Here...

Posted almost 7 years ago by Henning Koch.

Selenium cannot reliably control a browser when its window is not in focus, or when you accidentally interact with the...

Posted almost 9 years ago by Arne Hartherz. kernel.org

Git allows you to do a binary search across commits to hunt down the commit that introduced a bug.

Posted about 9 years ago by Henning Koch. github.com

An alternative to this technique is using VCR. VCR allows you to record and replay real HTTP responses, saving you...

Posted about 1 month ago by Tobias Kraze.

Rails is split into a large number of (sub-) frameworks. The most important and central of those are activesupport (extends...

Posted about 1 month ago by Stefan Langenmaier.

MariaDB (and MySQL) is released in different versions with different behaviors. For backwards compatibility this can be managed with the...

Posted over 4 years ago by Henning Koch. github.com

When working with ActiveType you will often find it useful to cast an ActiveRecord instance to its extended ActiveType::Record...

Posted about 2 years ago by Arne Hartherz.

When localizing model attributes via I18n you may run into errors like this: I18n::InvalidPluralizationData: translation data {...

...} can not be...

Posted about 9 years ago by Henning Koch. github.com

There are three ways to define your own RSpec matchers, with increasing complexibility and options: 1) Use RSpec::Matchers.define

Posted 3 months ago by Emanuel De.

You can share a state in Ruby with global variables. Even if you should avoid them whenever possible, for debugging...

This website uses cookies to improve usability and analyze traffic.
Accept or learn more