makandra dev

RubyMine has a HTTP Client that can be useful to test web APIs. Just create a .http scratch file an...

In a web application you sometimes have tasks that can not be processed during a request but need to go...

makandra dev
select2.org

Select2 comes with AJAX support built in, using jQuery's AJAX methods. ... For remote data sources only, Select2 does not...

github.com

If you render markdown from user input, an attacker might be able to use this to inject javascript code into...

Speaker today is Henning Koch, Head of Development at makandra. This talk will be in German with English slides.

We use CarrierWave in many of our projects to store and serve files of various formats - mostly images. A common...

tl;dr Don't forget require 'English' if you use a named global such as $LAST_MATCH_INFO. Otherwise this...

Test-Driven Development (TDD) in its most dogmatic form (red-green-refactor in micro-iterations) can be tedious. It does...

Simplecov is a code coverage tool. This helps you to find out which parts of your application are not tested...

Chrome allows you to throttle the Network and the CPU. Both settings are useful to measure the performance of you...

When we write a form with date fields, we often use graphical data picker like Rome to get a consistent...

Turns out, Cucumber::MultilineArgument::DataTable#diff! caches some stuff. Code of the following form will not work as intended:

Embedding videos on a website is very easy, add a tag to your source code and it just works...

By default, Devise redirects to a sign-in form when accessing a route that requires authentication. If for some reason...

Code comments allow for adding human readable text right next to the code: notes for other developers, and for your...

developer.mozilla.org

Heads up: transparent is not a real color, but black with 0% opacity. In transparent gradients, this adds some gray...

If you need to test some HTML, e.g. an embed code, you can use RubyMine's "scratch files":

We can use ActiveRecord's where to add conditions to a relation. But sometimes our condition is not on the...

TLS/SSL certificates are often used for HTTPS traffic. Occasionally a service may also use their TLS certificate to support public...

To set a default Node version for new shells, use nvm alias default : nvm alias default 1.2.3

Or: How to avoid and refactor spaghetti code Please note that I tried to keep the examples small. The effects...

Imagine you want to write a cucumber test for a user-to-user chat. To do this, you need the...

This is a personal post-mortem analysis of a project that was mainly build to provide a REST API to...