If you have jQuery code like this: if (condition) { $element.show(); } else { $element.hide(); } ... you can shorten this to: $element.toggle(condition);

makandra dev

Redactor is yet another WYSIWYG editor. It definitely has its weak points, but I want to point out that it...

Rails 4 introduced raising an error on pending migrations. This is most annoying when you are crafting a migration but...

Our applications not only need to be functional, they need to be fast. But, to quote Donald Knuth, premature optimization...

This is a guide on how to effectively use Git when working on a feature branch. It is designed to...

makandra dev

Starting with Ruby 1.9, most #each methods can be called without a block, and will return an enumerator. This is...

postgresonline.com

When working with PostgreSQL, you can use pgAdmin as a GUI. While you can do most things just like on...

ma.ttias.be

Article shows how to make a script that fakes one kind of content when printed with cat, but uses different...

As the web is being used for more and more tasks, expectations rise. Not only should web pages offer rich...

makandra dev
developer.chrome.com

In the DevTools settings, there's a "Shortcuts" section. Found these keyboard shortcuts there: General ESC Toggle drawer

stackoverflow.com

With ngAnimate, you can easily animate certain events (see directive support). We'll make use of ngClass animations to style...

If you have problems installing a gem and get a error collect2: error: ld returned 1 exit status it's...

We organize our daily work with issues in our Linear workspace. Issue format A good issue needs to be precise...

When starting a project we always make a good estimate of all known requirements, and plan budgets and available developers...

andismith.com

If you need to upgrade code that uses the old jQuery methods bind, delegate, live, unbind and die, the attached...

makandra dev
blog.getbootstrap.com

Moved from Less to Sass. Bootstrap now compiles faster than ever thanks to Libsass, and we join...

It smells. Rethink your code design. Code example with makandra/has_defaults: class Post < ActiveRecord::Base has_defaults tags: [] # field in db...

Spreewald comes with a selector_for helper that matches an English term like the user's profile into a CSS...

aws.amazon.com

I am happy to announce that this information is now available in JSON form at https://ip-ranges.amazonaws.com/ip-ranges.json. The information...

If you need a postgresql extension for your database it isn't a good idea to give your applications database...

Use form models to handle this problem Or soften the validation to validates_presence_of :parent

If you hover over the text of a card, you will now see EDIT links at the top right corner...

makandra dev

tig is a command line explorer for Git that is just awesome. Install via apt-get or brew. Handy commands...

makandra dev

CTRL + SHIFT + ALT + N Search for any symbol in your application, like CSS classes, Ruby classes, methods, helpers etc...