At makandra, we've built a few gems over the years. Some of these are quite popular: spreewald (> 1M downloads...

As a web developer, you know Google Analytics (GA). Probably you've dropped the GA snippet into more than one...

Why secure-only cookies used to be necessary Cookies have an optional secure flag. It tells the browser to not...

makandra dev

For webpages to load fast it's recommended to optimize images. Ideally an image's file size should be as...

Background information about session storage in Rails Rails has a default mechanism to store the session in the CookieStore. This...

If possible your code should detect features, not browsers. But sometimes you just need to sniff the browser. And when...

makandra dev
litmus.com

The 90s are calling: they want their tables back. Unfortunately, you need them all for laying out your HTML emails...

When you need to store structured data (like Ruby hashes) in a single database column with ActiveRecord, a simple way...

makandracards.com

In medium-sized to large Rails applications, asset compilation can take several minutes. In order to speed up deployment, asset...

caniuse.com

There is a kinda secret, yet well supported CSS feature called currentColor. It's like a special CSS variable that...

github.com

Using the JS fullscreen API is painful because all browers use different methods and events and you need to use...

When your JavaScript bundle is so massive that you cannot load it all up front, I would recommend to load...

wiki.postgresql.org

When you have a large PG database, you may want to find out which tables are consuming the most disk...

Webpacker uses Babel and Webpack to transpile modern JavaScript down to EcmaScript 5. Depending on what browser a project needs...

For applications coming with lots of stylesheets and scripts, asset compilation might take quite long. This can be annoying when...

makandra dev
begriffs.com

The attached article explains options you have to store the order of items in a database table. The simplest solution...

Don't sum up columns with + in a sql-query if NULL-Values can be present. MySQL and PostgreSQL cannot...

When you find yourself constantly ignoring a RubyMine warning, you can simple disable that warning and de-clutter your editor...

makandra dev
github.com

geordi delete_dumps [directory] Recursively search for files ending in *.dump and offer to delete those. When no...

You might have some trouble running a Rails LTS 2 app with MySQL 5.7. If you don't want to...

MySQL and MariaDB have an SQL mode setting which changes how MySQL behaves. The SQL mode value is comprised of...

On your local system that only hosts non-critical development data and only you have access to, you can store...

You need to update a lof gems. Make sure you don't have any version constraints in your...

Running rails server will start a local server that you can access via http://localhost:3000. When you are working...