blog.patricktriest.com

Sometimes modern Javascript projects get out of hand. A major culprit in this can be the messy handling of asynchronous...

before(:all) runs the block once before all of the examples. before(:each) runs the block once before each...

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

You can use local copies of gems in your Gemfile like this: gem 'spreewald', path: '~/gems/spreewald' As soon as you...

github.com

Use Traim to build a RESTful API for your ActiveRecord models with very little code. Traim assumes your API resources...

ImageMagick can automatically crop surrounding transparent pixels from an image: convert input.png -trim +repage output.png

ActiveRecord::RecordNotFound errors provide quite meaningful error messages that can provide some insight on application details. Consider the following:

wiki.snom.com

If your Snom 300 always keeps the same volume for headset and ringtone (as soon as you change one you...

Webpack is the future. We're using it in our latest Rails applications. For tests, we want to compile assets...

This card will show you a cool way to define a class using Struct.new. A common usecase for Structs are...

When using GROUP BY, MySQL now complains if the SELECT includes columns which are not part of the GROUP BY...

Since Rails 5, domain models inherit from ApplicationRecord by default. This is the place to put code that should be...

Rails supports time zones, but there are several pitfalls. Most importantly because Time.now and Time.current are completely different things and...

Ubuntu might create several keyrings for you. Note that keyring passwords are initially set to the user password but do...

stackoverflow.com

This card will show you how to use git rebase --onto without confusion. Use case: You've got two feature...

makandra dev
stdgems.org

Ruby's standard library is in the process of being gemified. It will soon - Ruby 2.5 - consist of RubyGems, which...

Middleman is a static page generator that brings many of the goodies that Rails developers are used to.

Database connections are not thread-safe. That's why ActiveRecord uses a separate database connection for each thread.

makandra dev

This card compares patterns to store trees in a relation database like MySQL or PostgreSQL. Implementation examples are for the...

github.com

The parallel-gem is quite easy to use and can speed up rendering time if you want to render the...

blog.jetbrains.com

RubyMine allows bookmarking lines of code. This is super-helpful when working on a complex problem. I've been using...

For the initial setup or changes in the sentry reporting it might be useful to enabled reporting of sentry in...

makandra dev

You can start vim with a read-only option. This prevents making accidentally changes in files you don't want...

Note: The behaviour of Spreewald's within step is as described below for version < 1.9.0; For Spreewald >= 1.9.0 it is...