Barby is a great Ruby gem to generate barcodes of all different sorts. It includes support for QR codes via...
This card is just about creating simple PostgreSQL dumps. This is no instruction for a backup strategy nor a guide...
Hint This applies only to distributions based on Debian. Requirement You need to setup the PostgreSQL Apt Repository first.
This is a visualization of the files that will be generated by some useful rails generators. Invoke a generator from...
on the bash (issued as postgres user) Start/Stop/Restart PostgreSQL pg_ctl -D $configdir start|stop|restart Start/Stop/Restart the corresponding PostgreSQL...
There are various ways to run external commands from within Ruby, but the most powerful ones are Open3.capture3 and Open3.popen3...
Sometimes your code has long lines: describe 'foo' do describe 'bar' do really_long_line_really_long_line_really_long...
A collection of code snippets which return a boolean value for a regex comparison. regexp.match?(string) # Recommended for Ruby >= 2.4...
There seems to be a nasty bug in Chrome 56 when testing with Selenium and Capybara: Slashes are not written...
Adding a gem means you take over the liability towards the external code. Checklist Based on "To gem, or not...
Web technology is a broad field and you cannot be an expert in all aspects. However, it is useful to...
Just like we use gems on the server, we use third party JavaScript libraries in the browser. These typically provide...
If you have a replication error with MySQL and you know the "error" is okay (e.g. you've executed the...
This error message may occur when rspec gets loaded by rake, e.g. when you migrate the test database. NoMethodError: undefined...
Reminder of what you can do with Geordi. Note: If you alias Geordi to something short like g, running commands...
First find the reference for the entry you want through looking at the stash: $ git stash list stash@{0}: WIP...
Sometimes huge refactorings or refactoring of core concepts of your application are necessary for being able to meet new requirements...
TLDR: A function is hard to use when it sometimes returns a promise and sometimes throws an exception. When writing...
A comprehensive introduction to sending HTML emails. Intro: HTML email: Two words that, when combined, brings tears to a developer...
Exercise 1: XML On the start page of your Movie DB, show the title of a random movie that is...
Adopting legacy Rails apps Talk to your mentor about how we're approaching applications that are either old or abandoned...
So you're getting an error like this: undefined method `activate_bin_path' for Gem:Module (NoMethodError)
Chrome gives you the currently selected element in the inspector with $0. If you select a button in the DOM...
So you're getting this failure when running bundle install on an older project: Your Gemfile.lock is corrupt. The following...