In general, you should not put a block element inside an inline element. So don't do this: text

Exercise 1: XML On the start page of your Movie DB, show the title of a random movie that is...

So you're getting this failure when running bundle install on an older project: Your Gemfile.lock is corrupt. The following...

This method will remove automatically installed packages that no other packages depend on any more. This, of course...

If your external displays not switching on or showing a weird behavior (for e.g. all displays getting the same configuration...

When you're writing specs for ActiveRecord models that use memoization, a simple #reload will not do: it 'updates on...

A haml angular 1 template with .thing(class="is-{{:: item.type }}") will be compiled (by haml) to which is not what...

1. Sometimes you have search entries in the autocomplete of the address bar, which are higher weighted than your bookmarks...

Same requests are recorded only once in vcr. Replaying a test fails, if you trigger the same request multiple times...

If you need to modify (e.g. add 2px) a Sass variable that defines multiple values as one (e.g. for short...

To simulate Rails' to_sentence in your JavaScript application, you can use these few lines of CoffeeScript code: joinSentence = (array...

This pretty-prints a JSON object, with two spaces of indentation: JSON.stringify(object, null, 2)

Ruby's __FILE__ keyword returns the path to the current file. On popular for this are Ruby binaries: #!/usr/bin/env ruby...

When you're nesting setTimeout(f, 0) calls, your browser will silently increase the delay to 5 milliseconds after the...

makandra dev
dev.mensfeld.pl

Ruby 2.3.0 has been around since end of 2015. It brings some pretty nice new features! Make sure to read...

makandra dev
github.com

It claims to be even faster and brings a new plugin that polyfills object-fit and object-position. This allows...

to create a Gallery that has a name and has_many :images, which in turn have a...

You can use JavaScript to get or set cookie values on the client. Using the vanilla JavaScript API

While IE9 does support HTML5 tags, it fails to work until you force HTML5 mode. Here are two ways to...

You can find out about disk space usage of all tables within your database by running this: SELECT table_name...

The attached Coffeescript helper will let you create mouse events: $element = $('div') Trigger.mouseover($element) Trigger.mouseenter($element) Trigger.mousedown($element) Trigger.mouseup($element...

makandra Operations

If you want to perform a failover on another haproxy backend server this is the way you should do it...

RSpec provides a nice diff when certain matchers fail. Here is an example where this diff is helpful while comparing...

github.com

Stackprof is a sampling call-stack profile for Ruby 2.1+. Instead of tracking all method calls, it will simply collect...