Rails supports alert and notice as default flash types. This allows you to use these keys as options in e.g...
As you most likely know validates_uniqness_of :foreign_id does not allow nil values by default.
A rough guide how to implement a REST API. The discussion here includes some interesting points as well: Timestamps: ISO8601...
You can group contacts using a mailing list in Thunderbird for easier access and less trouble when trying to find...
If a model inherits from others or uses many concerns / traits, it might be hard to see in the code...
This step tests whether a given select option comes preselected in the HTML. There is another step to test that...
Getting the whole bucket size aws s3 ls s3://$BUCKETNAME/ --recursive --human-readable --summarize | tail -n2 Tail is used because...
There are several gems that make it easy to read and process xlsx files. Parsing the entire file at once...
RSpec supports a one-liner syntax for setting an expectation on the subject: describe Array do describe "when first created...
Simplecov is a code coverage tool. This helps you to find out which parts of your application are not tested...
When connecting to multiple (i.e. > 4) servers to dive into logfiles or do security updates, terminator is what you want...
Sometimes it might be helpful to have a version history for a gem, e.g. when you want to see if...
A while ago we were working on an application that had an entire version specially created for mobiles, such as...
Basic box shadow support is available in all browsers today, but you need to check to which extend they are...
When you render a nested form for a Movie which has_many :actors, you want to render the right number...
When you do a script/dbconsole -p, your MySQL shell will already be using UTF-8. When you call it yourself...
...and compare it to the decrypted hash to see if there is a match. Benefits of this are If an attacker steals your database, they can't decrypt any of...
...easier to see if you have anomalous calls to KMS. There is a huge benefit here in that it is impossible to do bulk decryption without a giant audit trail...
Given the problem you have a new column postion and that column should be updated for all existing rows with...
Ancestry is a gem/plugin that allows the records of a Ruby on Rails ActiveRecord model to be organised as a...
tl;dr: Ruby's Bundler environment is passed on to system calls, which may not be what you may want...
I highly recommend that you make use of RubyMine's feature to pin tabs. When you pin all "important" files...
In addition to the {{ myValue }} two-way binding syntax, since Angular 1.3 there's a one-time binding syntax, prefixing...
If you ever wondered why a constant wasn't defined or wasn't available where you expected it to be...
My front audio output would not work even though the front mic input did fine. The Pulse Audio mixer (= Ubuntu...